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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f6e05df1cdce06badd2f76abc8f4fd50f6739ab | 212 | py | Python | 1011 - Esfera.py | le16bits/URI---Python | 9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db | [
"Apache-2.0"
] | null | null | null | 1011 - Esfera.py | le16bits/URI---Python | 9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db | [
"Apache-2.0"
] | null | null | null | 1011 - Esfera.py | le16bits/URI---Python | 9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''Autor: Alessandra Souza
Data: 05/05/2017
Objetivo: Calcular o volume de uma esfera.
ID Urionlinejudge: 1011'''
R=float(input())
vol=((4.0/3)*3.14159)*R**3
print("VOLUME = %.3f" %vol)
| 21.2 | 42 | 0.646226 | 35 | 212 | 3.914286 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.132075 | 212 | 9 | 43 | 23.555556 | 0.61413 | 0.617925 | 0 | 0 | 0 | 0 | 0.173333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f704e7278b9ef779559e766cacb1ef676546a1a | 194 | py | Python | programmers/lv3/2n_tiling.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv3/2n_tiling.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | programmers/lv3/2n_tiling.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | # 2 * n 타일링
def solution(n):
dp = [0] * 60001
dp[0], dp[1] = 1, 1
for i in range(2, n + 1):
dp[i] = (dp[i - 1] + dp[i - 2]) % 1000000007
return dp[n]
print(solution(4)) | 19.4 | 52 | 0.469072 | 37 | 194 | 2.459459 | 0.459459 | 0.098901 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198473 | 0.324742 | 194 | 10 | 53 | 19.4 | 0.496183 | 0.046392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1f85f7ae96d69285ca7b29169676435a4ce6e57d | 5,021 | py | Python | snakeskin/protos/peer/peer_pb2.py | healthverity/snakeskin-fabric | 31ba7fa5a71445eba76f89723c998d603704e0f9 | [
"Apache-2.0"
] | 5 | 2019-08-08T17:16:02.000Z | 2021-05-15T07:28:31.000Z | snakeskin/protos/peer/peer_pb2.py | healthverity/snakeskin-fabric | 31ba7fa5a71445eba76f89723c998d603704e0f9 | [
"Apache-2.0"
] | 4 | 2019-08-20T15:07:12.000Z | 2020-07-31T17:50:51.000Z | snakeskin/protos/peer/peer_pb2.py | healthverity/snakeskin-fabric | 31ba7fa5a71445eba76f89723c998d603704e0f9 | [
"Apache-2.0"
] | 2 | 2019-08-20T15:22:48.000Z | 2019-12-17T19:38:55.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: snakeskin/protos/peer/peer.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from ... | 34.390411 | 550 | 0.768174 | 629 | 5,021 | 5.810811 | 0.248013 | 0.024077 | 0.046785 | 0.034473 | 0.484268 | 0.436662 | 0.397811 | 0.397811 | 0.363064 | 0.33762 | 0 | 0.029971 | 0.10954 | 5,021 | 145 | 551 | 34.627586 | 0.78752 | 0.060147 | 0 | 0.474576 | 1 | 0.016949 | 0.217788 | 0.164509 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.059322 | 0 | 0.059322 | 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 |
1f8af70835313ee879d71169d774cac9ba7f41c9 | 1,714 | py | Python | app/__init__.py | zjyfdu/flask_huxiaofei | 2193bfe0aa45626fdb4b270f7532a1e04c5be556 | [
"MIT"
] | null | null | null | app/__init__.py | zjyfdu/flask_huxiaofei | 2193bfe0aa45626fdb4b270f7532a1e04c5be556 | [
"MIT"
] | null | null | null | app/__init__.py | zjyfdu/flask_huxiaofei | 2193bfe0aa45626fdb4b270f7532a1e04c5be556 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_mail import Mail
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import MetaData
from flask_login import LoginManager
from flask_msearch import Search
from config import config
from jieba.analyse import Chin... | 28.566667 | 72 | 0.757876 | 239 | 1,714 | 5.138075 | 0.23431 | 0.032573 | 0.057003 | 0.094463 | 0.053746 | 0.053746 | 0.053746 | 0 | 0 | 0 | 0 | 0.002721 | 0.142357 | 1,714 | 59 | 73 | 29.050847 | 0.832653 | 0.009918 | 0 | 0 | 0 | 0 | 0.126844 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.326087 | 0 | 0.369565 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1f944de947e6f066710ae464c5f7cd8435c93b21 | 189 | py | Python | zesty_metrics/defaults.py | Crossway/django-zesty-metrics | 863532dce1379039e3db99355c90e84ac2288534 | [
"BSD-3-Clause"
] | 1 | 2015-07-07T19:22:42.000Z | 2015-07-07T19:22:42.000Z | zesty_metrics/defaults.py | Crossway/django-zesty-metrics | 863532dce1379039e3db99355c90e84ac2288534 | [
"BSD-3-Clause"
] | 4 | 2016-08-01T18:11:18.000Z | 2018-02-06T18:02:02.000Z | zesty_metrics/defaults.py | Crossway/django-zesty-metrics | 863532dce1379039e3db99355c90e84ac2288534 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
ZESTY_TRACKING_CLASSES = [
'zesty_metrics.tracking.UserAccounts',
]
ZESTY_TIMING_SAMPLE_RATE = 1
ZESTY_TIME_RESPONSES = True
ZESTY_TRACK_USER_ACTIVITY = True
| 17.181818 | 42 | 0.756614 | 24 | 189 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.137566 | 189 | 10 | 43 | 18.9 | 0.797546 | 0.111111 | 0 | 0 | 0 | 0 | 0.210843 | 0.210843 | 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 |
2f082e2906c7c51226d4204e5140aa52273e420e | 984 | py | Python | model_code/grid_search/DecisionTreeClassifier.py | lacava/sklearn-benchmarks | bec1d5468f40b1fea08b605a11d5f7795fe5bb1b | [
"MIT"
] | 213 | 2016-02-03T02:56:40.000Z | 2022-02-26T06:44:27.000Z | model_code/grid_search/DecisionTreeClassifier.py | lacava/sklearn-benchmarks | bec1d5468f40b1fea08b605a11d5f7795fe5bb1b | [
"MIT"
] | 30 | 2016-02-03T14:32:27.000Z | 2020-05-12T17:32:40.000Z | model_code/grid_search/DecisionTreeClassifier.py | arunsinghyadav/sklearn-benchmarks | a917336f6fd3ffb89efd94b1c7f60b3a05ba780f | [
"MIT"
] | 59 | 2016-02-03T14:32:58.000Z | 2021-01-12T23:48:46.000Z | import sys
import pandas as pd
import numpy as np
import itertools
from sklearn.preprocessing import RobustScaler
from sklearn.tree import DecisionTreeClassifier
from evaluate_model import evaluate_model
dataset = sys.argv[1]
pipeline_components = [RobustScaler, DecisionTreeClassifier]
pipeline_parameters = {}
min_i... | 39.36 | 136 | 0.813008 | 125 | 984 | 6.096 | 0.4 | 0.072178 | 0.124672 | 0.065617 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032621 | 0.096545 | 984 | 24 | 137 | 41 | 0.824522 | 0 | 0 | 0 | 0 | 0 | 0.074187 | 0.021341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 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 |
2f1729df6cf48161f37c48656ac64fd0cceb2a63 | 11,830 | py | Python | fabfile.py | bbayles/link | 48cf656fac6c31c0aa82152ce68767e469ed5f06 | [
"Apache-2.0"
] | 9 | 2015-03-18T18:23:41.000Z | 2016-11-18T09:16:02.000Z | fabfile.py | bbayles/link | 48cf656fac6c31c0aa82152ce68767e469ed5f06 | [
"Apache-2.0"
] | 3 | 2015-11-07T16:56:51.000Z | 2016-11-22T19:32:09.000Z | fabfile.py | bbayles/link | 48cf656fac6c31c0aa82152ce68767e469ed5f06 | [
"Apache-2.0"
] | 7 | 2015-05-15T18:12:40.000Z | 2017-03-16T18:42:25.000Z | """
Fabfile for deploying and setting up code that looks like the production
environment. it also makes it easy to start up the servers
If you want to run on the localhost you may need to first do::
rm -rf ~/.ssh/known_hosts
"""
from __future__ import with_statement
import os
import re
from fabric.api import ... | 28.995098 | 129 | 0.608876 | 1,650 | 11,830 | 4.267273 | 0.24 | 0.018179 | 0.021872 | 0.005113 | 0.067036 | 0.028121 | 0 | 0 | 0 | 0 | 0 | 0.01081 | 0.272781 | 11,830 | 407 | 130 | 29.066339 | 0.807625 | 0.055621 | 0 | 0.142857 | 0 | 0.008658 | 0.264815 | 0.012666 | 0 | 0 | 0 | 0.004914 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.099567 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f190acf1519186091c3bd6551e361c43ae96fd6 | 515 | py | Python | layers/poky/meta/lib/oeqa/runtime/case.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 53 | 2018-02-28T08:51:32.000Z | 2022-02-28T06:49:23.000Z | layers/poky/meta/lib/oeqa/runtime/case.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 27 | 2018-01-25T00:26:53.000Z | 2020-08-09T05:20:04.000Z | layers/poky/meta/lib/oeqa/runtime/case.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 51 | 2018-02-21T04:46:08.000Z | 2022-03-02T04:20:41.000Z | # Copyright (C) 2016 Intel Corporation
# Released under the MIT license (see COPYING.MIT)
from oeqa.core.case import OETestCase
from oeqa.utils.package_manager import install_package, uninstall_package
class OERuntimeTestCase(OETestCase):
# target instance set by OERuntimeTestLoader.
target = None
def se... | 28.611111 | 73 | 0.735922 | 59 | 515 | 6.338983 | 0.610169 | 0.042781 | 0.139037 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009547 | 0.186408 | 515 | 17 | 74 | 30.294118 | 0.883055 | 0.250485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
2f1da8ae305ab06e7ec0677f650d3ae476d39207 | 1,851 | py | Python | water_modelling/hydrus/desktop/hydrus_desktop_deployer.py | Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine | 4b28f75fb74647d6453385a893149a48f797eeed | [
"MIT"
] | null | null | null | water_modelling/hydrus/desktop/hydrus_desktop_deployer.py | Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine | 4b28f75fb74647d6453385a893149a48f797eeed | [
"MIT"
] | null | null | null | water_modelling/hydrus/desktop/hydrus_desktop_deployer.py | Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine | 4b28f75fb74647d6453385a893149a48f797eeed | [
"MIT"
] | null | null | null | import os
import subprocess
from typing import Optional
from hydrus import hydrus_log_analyzer
from hydrus.hydrus_deployer_interface import IHydrusDeployer
from simulation.simulation_error import SimulationError
from utils import path_formatter
class _HydrusDesktopDeployer(IHydrusDeployer):
LOG_FILE = "simulatio... | 41.133333 | 98 | 0.703944 | 228 | 1,851 | 5.434211 | 0.359649 | 0.045198 | 0.041969 | 0.041162 | 0.17272 | 0.14205 | 0.109766 | 0 | 0 | 0 | 0 | 0.000683 | 0.209076 | 1,851 | 44 | 99 | 42.068182 | 0.845628 | 0.058887 | 0 | 0 | 0 | 0 | 0.105869 | 0.020713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.21875 | 0.0625 | 0.5625 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f237c48f402b5312560d0ad14f693b93cf182f6 | 1,797 | py | Python | backend/flask-api/migrations/versions/6fdbb9233bd6_.py | lucasbibianot/inova-cnj-time16 | e621d7027bd462d348e233ffd6ed88648c53704b | [
"Apache-2.0"
] | null | null | null | backend/flask-api/migrations/versions/6fdbb9233bd6_.py | lucasbibianot/inova-cnj-time16 | e621d7027bd462d348e233ffd6ed88648c53704b | [
"Apache-2.0"
] | null | null | null | backend/flask-api/migrations/versions/6fdbb9233bd6_.py | lucasbibianot/inova-cnj-time16 | e621d7027bd462d348e233ffd6ed88648c53704b | [
"Apache-2.0"
] | 2 | 2020-10-19T22:03:31.000Z | 2020-11-29T21:22:33.000Z | """Mapeamento das tabelas para persistir os processos datajud
Revision ID: 6fdbb9233bd6
Revises: 8d2eb6149b1d
Create Date: 2020-10-18 09:22:06.650559
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6fdbb9233bd6'
down_revision = '8d2eb6149b1d'
branch_labels = N... | 36.673469 | 76 | 0.709516 | 235 | 1,797 | 5.26383 | 0.340426 | 0.077607 | 0.145513 | 0.169766 | 0.493937 | 0.362975 | 0.31447 | 0.31447 | 0.153597 | 0.090542 | 0 | 0.043142 | 0.135782 | 1,797 | 48 | 77 | 37.4375 | 0.753381 | 0.189204 | 0 | 0.066667 | 0 | 0 | 0.230282 | 0.033099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 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 |
2f34112711a7f4d8c6fd98347f5ba592ca3f8d4f | 345 | py | Python | chapter03/demo_3_2_1_7_1.py | NetworkRanger/python-spider-project | f501e331a59608d9a321a0d7254fcbcf81b50ec2 | [
"MIT"
] | 1 | 2019-02-08T03:14:17.000Z | 2019-02-08T03:14:17.000Z | chapter03/demo_3_2_1_7_1.py | NetworkRanger/python-spider-project | f501e331a59608d9a321a0d7254fcbcf81b50ec2 | [
"MIT"
] | null | null | null | chapter03/demo_3_2_1_7_1.py | NetworkRanger/python-spider-project | f501e331a59608d9a321a0d7254fcbcf81b50ec2 | [
"MIT"
] | null | null | null | #!/usr/bin/python2.7
# -*- coding:utf-8 -*-
# Author: NetworkRanger
# Date: 2019/1/9 上午12:35
"""
使用ProxyHandler在程序中动态设置代理
"""
import urllib2
proxy = urllib2.ProxyHandler({'http': '127.0.0.1:8087'})
opener = urllib2.build_opener([proxy])
urllib2.install_opener(opener)
response = urllib2.urlopen('http://www.zhichu.com... | 21.5625 | 56 | 0.713043 | 46 | 345 | 5.304348 | 0.73913 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089457 | 0.092754 | 345 | 16 | 57 | 21.5625 | 0.690096 | 0.246377 | 0 | 0 | 0 | 0 | 0.177778 | 0 | 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 |
2f37d9b321c1b357a652919715d0a963e96430ee | 601 | py | Python | server/toolz_swap_app/migrations/0021_auto_20211217_2310.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | server/toolz_swap_app/migrations/0021_auto_20211217_2310.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | server/toolz_swap_app/migrations/0021_auto_20211217_2310.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-17 22:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('toolz_swap_app', '0020_auto_20211217_1402'),
]
operations = [
migrations.AddField(
model_name='listing',
name='item_... | 25.041667 | 87 | 0.599002 | 66 | 601 | 5.272727 | 0.666667 | 0.103448 | 0.132184 | 0.155172 | 0.270115 | 0.270115 | 0.270115 | 0.270115 | 0 | 0 | 0 | 0.072093 | 0.284526 | 601 | 23 | 88 | 26.130435 | 0.737209 | 0.074875 | 0 | 0.352941 | 1 | 0 | 0.16065 | 0.041516 | 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 |
2f3a828848ad3ed2bdecff21215f6a9e0ea54453 | 8,417 | py | Python | src/salt_finder_charts/standard_finder_charts.py | saltastroops/salt_finder_charts | f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de | [
"MIT"
] | null | null | null | src/salt_finder_charts/standard_finder_charts.py | saltastroops/salt_finder_charts | f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de | [
"MIT"
] | null | null | null | src/salt_finder_charts/standard_finder_charts.py | saltastroops/salt_finder_charts | f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from typing import BinaryIO, Generator, Optional, Tuple
import astropy.units as u
import pytz
from astropy.units import Quantity
from salt_finder_charts.image import Survey, SurveyImageService
from salt_finder_charts.mode import (
Mode,
ModeDetails,
ImagingModeDeta... | 34.63786 | 147 | 0.661756 | 1,033 | 8,417 | 5.268151 | 0.195547 | 0.033076 | 0.038405 | 0.038589 | 0.165748 | 0.107497 | 0.098309 | 0.05237 | 0.05237 | 0.03473 | 0 | 0.000826 | 0.281217 | 8,417 | 242 | 148 | 34.780992 | 0.898678 | 0.250802 | 0 | 0.065359 | 0 | 0.006536 | 0.144758 | 0.003451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006536 | false | 0.058824 | 0.071895 | 0 | 0.084967 | 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 |
2f3f9137757f79baedb08f68f1da6c337e1ee99a | 703 | py | Python | push_notifications/migrations/0002_auto_20180408_1513.py | walison17/pulso-api | b9edfc3f6042676dbdb50d7efcdb461a19ea90ed | [
"MIT"
] | null | null | null | push_notifications/migrations/0002_auto_20180408_1513.py | walison17/pulso-api | b9edfc3f6042676dbdb50d7efcdb461a19ea90ed | [
"MIT"
] | null | null | null | push_notifications/migrations/0002_auto_20180408_1513.py | walison17/pulso-api | b9edfc3f6042676dbdb50d7efcdb461a19ea90ed | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-04-08 15:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('push_notifications', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='device',
name='is_active',
... | 25.107143 | 99 | 0.5633 | 70 | 703 | 5.514286 | 0.7 | 0.103627 | 0.11658 | 0.147668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047325 | 0.308677 | 703 | 27 | 100 | 26.037037 | 0.746914 | 0.061166 | 0 | 0.285714 | 1 | 0 | 0.133739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
2f44190ef14e633a5b67ab12f51b43692438c0da | 855 | py | Python | tests/unit/test_iostatic.py | Rogdham/python-xz | f53266dae8d4f7fcc74cd53222f22105e40d5112 | [
"MIT"
] | 3 | 2021-07-13T16:06:38.000Z | 2022-03-04T22:52:58.000Z | tests/unit/test_iostatic.py | Rogdham/python-xz | f53266dae8d4f7fcc74cd53222f22105e40d5112 | [
"MIT"
] | 3 | 2021-09-19T09:48:35.000Z | 2022-01-09T15:38:48.000Z | tests/unit/test_iostatic.py | Rogdham/python-xz | f53266dae8d4f7fcc74cd53222f22105e40d5112 | [
"MIT"
] | null | null | null | from io import UnsupportedOperation
import pytest
from xz.io import IOStatic
def test_read() -> None:
static = IOStatic(b"abcdefghij")
# read all
static.seek(0)
assert static.read() == b"abcdefghij"
static.seek(4)
assert static.read() == b"efghij"
# read partial
static.seek(6)
... | 22.5 | 49 | 0.625731 | 111 | 855 | 4.792793 | 0.306306 | 0.180451 | 0.180451 | 0.12782 | 0.5 | 0.206767 | 0.206767 | 0.206767 | 0.206767 | 0.206767 | 0 | 0.012422 | 0.246784 | 855 | 37 | 50 | 23.108108 | 0.813665 | 0.024561 | 0 | 0.32 | 0 | 0 | 0.046931 | 0 | 0 | 0 | 0 | 0 | 0.32 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.24 | 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 |
2f494c01c823bdfd4b8fa27dc3e019de599fda15 | 897 | py | Python | queues/list_queue/queue.py | joeb15/202Problems | a8ab3dc49cb899b640cc836863e28e52fb978466 | [
"MIT"
] | null | null | null | queues/list_queue/queue.py | joeb15/202Problems | a8ab3dc49cb899b640cc836863e28e52fb978466 | [
"MIT"
] | null | null | null | queues/list_queue/queue.py | joeb15/202Problems | a8ab3dc49cb899b640cc836863e28e52fb978466 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
A queue is a first-in first-out type of data structure
For this to work, you must be able to enqueue (add) items to the queue, dequeue (remove) items from the queue
"""
class List_Queue:
"""
Creates a List Queue
"""
def __init__(self, size):
self.size = size
... | 19.933333 | 109 | 0.591973 | 134 | 897 | 3.910448 | 0.485075 | 0.091603 | 0.038168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.326644 | 897 | 44 | 110 | 20.386364 | 0.860927 | 0.018952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f4c73bdc5e9b2d9296a2574b70a67727f97ee93 | 1,806 | py | Python | forvo.py | edoput/ForvoDownloader | d2d034ee5d9f22cd4faad76444172490a0ff23e2 | [
"MIT"
] | 9 | 2018-09-03T22:36:53.000Z | 2021-11-09T11:59:14.000Z | forvo.py | EdoPut/ForvoDownloader | d2d034ee5d9f22cd4faad76444172490a0ff23e2 | [
"MIT"
] | null | null | null | forvo.py | EdoPut/ForvoDownloader | d2d034ee5d9f22cd4faad76444172490a0ff23e2 | [
"MIT"
] | 2 | 2015-01-27T15:09:26.000Z | 2017-01-29T04:39:22.000Z | import requests
import urllib
def ForvoRequest(QUERY, LANG, apikey, ACT='word-pronunciations', FORMAT='mp3', free= True):
# action, default is 'word-pronunciations', query, language, apikey, TRUE if free api(default), FALSE if commercial
# Return a list of link to mp3 pronunciations for the word QUERY in L... | 31.137931 | 121 | 0.516058 | 217 | 1,806 | 4.271889 | 0.447005 | 0.030205 | 0.022654 | 0.028047 | 0.040992 | 0.040992 | 0 | 0 | 0 | 0 | 0 | 0.007162 | 0.381506 | 1,806 | 57 | 122 | 31.684211 | 0.822739 | 0.354928 | 0 | 0.129032 | 0 | 0 | 0.109852 | 0.01918 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.193548 | 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 |
2f4c98ccb6eda3b00afce725dc8baea135ce04d6 | 422 | py | Python | fibonacci/fibonacci.py | nateGeorge/whiteboard_practice_problems | c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36 | [
"MIT"
] | null | null | null | fibonacci/fibonacci.py | nateGeorge/whiteboard_practice_problems | c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36 | [
"MIT"
] | null | null | null | fibonacci/fibonacci.py | nateGeorge/whiteboard_practice_problems | c54f9bcf5f743b3f3e9cd4e34fff3b6afcef6c36 | [
"MIT"
] | null | null | null | def fib(x):
if not isinstance(x, int):
print "argument must be an integer"
return
if x == 0:
return 0
a, b = 0, 1
for i in range(x-1):
a, b = b, a + b
return b
def fib_rec(x):
if not isinstance(x, int):
raise ValueError("argument must be an integer") # an... | 23.444444 | 87 | 0.537915 | 73 | 422 | 3.068493 | 0.438356 | 0.026786 | 0.09375 | 0.142857 | 0.383929 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0.02952 | 0.35782 | 422 | 17 | 88 | 24.823529 | 0.797048 | 0.06872 | 0 | 0.125 | 0 | 0 | 0.138107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f54a4c20f5d809def78444ea740f895640d9cbe | 557 | py | Python | conservation/migrations/0020_auto_20190418_1715.py | ropable/wastd | 295c60760548d177859de9c0bebdae93342767d0 | [
"MIT"
] | 3 | 2020-07-23T06:37:43.000Z | 2022-01-27T09:40:40.000Z | conservation/migrations/0020_auto_20190418_1715.py | ropable/wastd | 295c60760548d177859de9c0bebdae93342767d0 | [
"MIT"
] | 337 | 2018-07-12T05:56:29.000Z | 2022-03-30T02:40:41.000Z | conservation/migrations/0020_auto_20190418_1715.py | ropable/wastd | 295c60760548d177859de9c0bebdae93342767d0 | [
"MIT"
] | 2 | 2020-02-24T00:05:46.000Z | 2020-07-15T07:02:29.000Z | # Generated by Django 2.1.7 on 2019-04-18 09:15
from django.db import migrations, models
import django.db.models.deletion
import django_fsm
class Migration(migrations.Migration):
dependencies = [
('conservation', '0019_auto_20190410_1329'),
]
operations = [
migrations.RenameModel(
... | 23.208333 | 52 | 0.642729 | 53 | 557 | 6.603774 | 0.679245 | 0.045714 | 0.137143 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075426 | 0.262118 | 557 | 23 | 53 | 24.217391 | 0.776156 | 0.08079 | 0 | 0.235294 | 1 | 0 | 0.229412 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f57b78b84caa4984e3516eb70876b6001368c78 | 1,141 | py | Python | src/news/migrations/0005_news_base_fields.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | 10 | 2021-01-10T09:39:16.000Z | 2022-02-05T06:40:47.000Z | src/news/migrations/0005_news_base_fields.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | null | null | null | src/news/migrations/0005_news_base_fields.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | 1 | 2021-01-11T17:04:06.000Z | 2021-01-11T17:04:06.000Z | # Generated by Django 3.1.5 on 2021-04-28 16:22
import ckeditor.fields
from django.db import migrations, models
import django_minio_backend.models
class Migration(migrations.Migration):
dependencies = [
('news', '0004_profile_info'),
]
operations = [
migrations.AddField(
mod... | 28.525 | 179 | 0.595092 | 113 | 1,141 | 5.831858 | 0.530973 | 0.060698 | 0.078907 | 0.103187 | 0.218513 | 0.218513 | 0 | 0 | 0 | 0 | 0 | 0.030941 | 0.291849 | 1,141 | 39 | 180 | 29.25641 | 0.784653 | 0.039439 | 0 | 0.393939 | 1 | 0 | 0.080439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2f57fea89f96d0ae41ee6422418756f6c9d832f5 | 1,433 | py | Python | src/utils/common.py | Conni2461/admission_handler | 6ea2a696100c046fd5d5ede468febd9072f3763f | [
"MIT"
] | 1 | 2022-02-11T04:29:18.000Z | 2022-02-11T04:29:18.000Z | src/utils/common.py | Conni2461/admission_handler | 6ea2a696100c046fd5d5ede468febd9072f3763f | [
"MIT"
] | null | null | null | src/utils/common.py | Conni2461/admission_handler | 6ea2a696100c046fd5d5ede468febd9072f3763f | [
"MIT"
] | null | null | null | import socket
from threading import Thread, Timer
class Invokeable:
def __init__(self, signal, *args, **kwargs):
self._signal = signal
self._args = args
self._kwargs = kwargs
@property
def signal(self):
return self._signal
@property
def kwargs(self):
retur... | 22.390625 | 59 | 0.5806 | 176 | 1,433 | 4.545455 | 0.329545 | 0.0375 | 0.04125 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010848 | 0.292394 | 1,433 | 63 | 60 | 22.746032 | 0.778107 | 0 | 0 | 0.122449 | 0 | 0 | 0.009072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0 | 0.040816 | 0.061224 | 0.469388 | 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 |
2f5b87677f26662c1ce0c7a5ee5aaf173034c184 | 3,637 | py | Python | tests/1_local/test_keygroup.py | aporlowski/cloudmesh-cloud | 247479361300f97bbb8b7b1f4c99308358e9e2b2 | [
"Apache-2.0"
] | 5 | 2019-05-06T01:27:55.000Z | 2020-03-12T09:50:08.000Z | tests/1_local/test_keygroup.py | aporlowski/cloudmesh-cloud | 247479361300f97bbb8b7b1f4c99308358e9e2b2 | [
"Apache-2.0"
] | 137 | 2019-04-06T12:35:29.000Z | 2020-05-05T10:02:36.000Z | tests/1_local/test_keygroup.py | aporlowski/cloudmesh-cloud | 247479361300f97bbb8b7b1f4c99308358e9e2b2 | [
"Apache-2.0"
] | 27 | 2019-04-05T22:03:41.000Z | 2021-03-05T00:05:00.000Z | ###############################################################
# pytest -v --capture=no tests/test_keygroup.py
# pytest -v tests/test_keygroup.py
###############################################################
#import pytest
import os
from cloudmesh.common.variables import Variables
from cloudmesh.common.Benchmark i... | 25.978571 | 63 | 0.56915 | 434 | 3,637 | 4.656682 | 0.267281 | 0.064325 | 0.037605 | 0.023751 | 0.409203 | 0.316675 | 0.290945 | 0.251361 | 0.166254 | 0.166254 | 0 | 0.002348 | 0.297498 | 3,637 | 139 | 64 | 26.165468 | 0.78865 | 0.071487 | 0 | 0.526316 | 0 | 0 | 0.152327 | 0.015515 | 0 | 0 | 0 | 0.007194 | 0 | 1 | 0.078947 | false | 0 | 0.315789 | 0 | 0.421053 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2f5daa6050352bd82f556af83e14e2830de366ac | 3,226 | py | Python | packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 60 | 2018-09-26T15:46:00.000Z | 2021-10-10T02:37:14.000Z | packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py | gigabackup/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 1,706 | 2018-09-26T16:11:22.000Z | 2021-08-20T13:37:59.000Z | packages/gtmapi/lmsrvlabbook/tests/test_jobstatus_queries.py | griffinmilsap/gigantum-client | 70fe6b39b87b1c56351f2b4c551b6f1693813e4f | [
"MIT"
] | 11 | 2019-03-14T13:23:51.000Z | 2022-01-25T01:29:16.000Z | import pprint
import time
import json
from gtmcore.dispatcher import Dispatcher, jobs
from lmsrvlabbook.tests.fixtures import fixture_working_dir
class TestLabBookServiceQueries(object):
def test_query_finished_task(self, fixture_working_dir):
"""Test listing labbooks"""
d = Dispatcher()
... | 31.320388 | 103 | 0.532548 | 323 | 3,226 | 5.19195 | 0.235294 | 0.050686 | 0.14192 | 0.166965 | 0.733453 | 0.697674 | 0.660107 | 0.597496 | 0.597496 | 0.583184 | 0 | 0.004223 | 0.33943 | 3,226 | 102 | 104 | 31.627451 | 0.782731 | 0.040918 | 0 | 0.54878 | 0 | 0 | 0.395515 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 1 | 0.036585 | false | 0 | 0.060976 | 0 | 0.109756 | 0.02439 | 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 |
2f6154e27302aac990c76151fe6022aab6340e63 | 8,601 | py | Python | public/yum-3.2.28/callback.py | chillaxor/blogbin | 211202d513fa80a3d22fb3963f36a01a8dec5b68 | [
"MIT"
] | 8 | 2021-11-26T06:19:06.000Z | 2022-01-11T01:30:11.000Z | initrd/usr/share/yum-cli/callback.py | OpenCloudOS/OpenCloudOS-tools | 06b12aab3182f4207d78a5d8733be03f0d7b69a4 | [
"MulanPSL-1.0"
] | 5 | 2021-02-02T08:17:10.000Z | 2022-02-27T06:53:42.000Z | public/yum-3.2.28/callback.py | chillaxor/blogbin | 211202d513fa80a3d22fb3963f36a01a8dec5b68 | [
"MIT"
] | 2 | 2021-12-21T08:36:02.000Z | 2021-12-21T08:55:38.000Z | #!/usr/bin/python -t
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it... | 36.914163 | 87 | 0.482153 | 886 | 8,601 | 4.560948 | 0.27088 | 0.006929 | 0.053452 | 0.059886 | 0.340757 | 0.261321 | 0.168275 | 0.13264 | 0.13264 | 0.13264 | 0 | 0.013039 | 0.420416 | 8,601 | 232 | 88 | 37.073276 | 0.797593 | 0.10429 | 0 | 0.354651 | 0 | 0 | 0.05485 | 0.004548 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046512 | 0.034884 | null | null | 0.02907 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f6b78883c06f33b085d614b2c51070339de771d | 2,682 | py | Python | plot.py | nsi88/ctg-plot | c623fb76d72429f0411d42ff1e380a7a46d8c04f | [
"MIT"
] | null | null | null | plot.py | nsi88/ctg-plot | c623fb76d72429f0411d42ff1e380a7a46d8c04f | [
"MIT"
] | null | null | null | plot.py | nsi88/ctg-plot | c623fb76d72429f0411d42ff1e380a7a46d8c04f | [
"MIT"
] | null | null | null | import csv
import os
import sys
import matplotlib.pyplot as plt
from metrics.index import metrics
from plot_package.helpers import ascendence_label, descendence_label, with_sign
if len(sys.argv) != 2:
print(f"{__file__} sample_name.csv")
sys.exit(1)
sample_name = sys.argv[1]
# set size
plt.figure(figsize=(... | 28.531915 | 99 | 0.688292 | 381 | 2,682 | 4.692913 | 0.330709 | 0.061521 | 0.036353 | 0.018456 | 0.11689 | 0.11689 | 0.030201 | 0.030201 | 0 | 0 | 0 | 0.016887 | 0.183072 | 2,682 | 93 | 100 | 28.83871 | 0.799178 | 0.218867 | 0 | 0.15873 | 0 | 0 | 0.116369 | 0.052632 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2f6d26b42b45ea8ec8df168ee13e107fabe9add1 | 407 | py | Python | Back/ns_portal/database/main_db/troles_model.py | anthonyHenryNS/NsPortal | dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e | [
"MIT"
] | 1 | 2019-01-22T15:16:43.000Z | 2019-01-22T15:16:43.000Z | Back/ns_portal/database/main_db/troles_model.py | NaturalSolutions/NsPortal | bcd07fdf015948a82f4d0c3c9a02f513b2d99f5d | [
"MIT"
] | 16 | 2015-09-28T14:46:13.000Z | 2020-04-20T10:34:25.000Z | Back/ns_portal/database/main_db/troles_model.py | anthonyHenryNS/NsPortal | dcb4b4e0a70c1c3431d5438d97e80f5d05c8e10e | [
"MIT"
] | 10 | 2015-05-06T08:05:09.000Z | 2020-01-27T13:39:47.000Z | from ns_portal.database.meta import (
Main_Db_Base
)
from sqlalchemy import (
Column,
Integer,
String
)
class TRoles(Main_Db_Base):
__tablename__ = 'TRoles'
TRol_PK_ID = Column(
Integer,
primary_key=True
)
TRol_Label = Column(
String(250),
nullable=Fals... | 15.653846 | 37 | 0.594595 | 44 | 407 | 5.181818 | 0.613636 | 0.052632 | 0.087719 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021818 | 0.324324 | 407 | 25 | 38 | 16.28 | 0.807273 | 0 | 0 | 0.181818 | 0 | 0 | 0.014742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.318182 | 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 |
2f6fd35b1512af4a2c444f8b5323ece8c562f37c | 2,869 | py | Python | src/authorization/validators.py | dmitrijbozhkov/cloudcourseproject | 3e62a5fafef418c1c058587abc5615b03fc2325a | [
"Apache-2.0"
] | null | null | null | src/authorization/validators.py | dmitrijbozhkov/cloudcourseproject | 3e62a5fafef418c1c058587abc5615b03fc2325a | [
"Apache-2.0"
] | 7 | 2021-02-08T20:41:23.000Z | 2022-03-12T00:21:37.000Z | src/authorization/validators.py | dmitrijbozhkov/cloudcourseproject | 3e62a5fafef418c1c058587abc5615b03fc2325a | [
"Apache-2.0"
] | null | null | null | """ Form validators for authorization """
import re
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Length, ValidationError, Email, EqualTo
from cloudcourseproject.src.model import User
def password_validator(password):
""" Va... | 42.191176 | 117 | 0.684559 | 323 | 2,869 | 6.043344 | 0.291022 | 0.050205 | 0.032275 | 0.029201 | 0.553791 | 0.553791 | 0.553791 | 0.529201 | 0.485143 | 0.485143 | 0 | 0.008787 | 0.206692 | 2,869 | 67 | 118 | 42.820896 | 0.848858 | 0.102475 | 0 | 0.461538 | 0 | 0 | 0.274455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0.442308 | 0.096154 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2f74e4a6873c5b5dffd070a88fe2c8e9d487f559 | 191 | py | Python | common/helpers.py | denisov-vlad/mtuci-masters | 6fa68adb156ba4b43b4995d365f450654df70fa3 | [
"MIT"
] | null | null | null | common/helpers.py | denisov-vlad/mtuci-masters | 6fa68adb156ba4b43b4995d365f450654df70fa3 | [
"MIT"
] | null | null | null | common/helpers.py | denisov-vlad/mtuci-masters | 6fa68adb156ba4b43b4995d365f450654df70fa3 | [
"MIT"
] | null | null | null | import os
def encode(s):
if isinstance(s, bytes):
return s.decode('utf-8', 'ignore')
else:
return str(s)
path_joiner = os.path.join
path_basename = os.path.basename | 17.363636 | 42 | 0.633508 | 29 | 191 | 4.103448 | 0.655172 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.235602 | 191 | 11 | 43 | 17.363636 | 0.808219 | 0 | 0 | 0 | 0 | 0 | 0.057292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 |
2f7fed0d5af3b96a037248f18b9e9cf73c47b30c | 7,847 | py | Python | python/sacconfig.py | Cadair/VivaTalk | d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae | [
"MIT"
] | null | null | null | python/sacconfig.py | Cadair/VivaTalk | d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae | [
"MIT"
] | null | null | null | python/sacconfig.py | Cadair/VivaTalk | d9bd5b0c0fca7756c07cbe1adb2f809cd00e9dae | [
"MIT"
] | null | null | null | import os
import ConfigParser
mu0 = 1.25663706e-6
class SACConfig(object):
def __init__(self, cfg_file=os.path.dirname(__file__) + '/sac_config.cfg'):
self.cfg_file = cfg_file
self.cfg = ConfigParser.SafeConfigParser()
self.cfg.read(self.cfg_file)
def _get_value(self, section, optio... | 29.836502 | 79 | 0.521601 | 857 | 7,847 | 4.522754 | 0.110852 | 0.055728 | 0.049536 | 0.057018 | 0.272962 | 0.171569 | 0.131579 | 0.024252 | 0.024252 | 0 | 0 | 0.00468 | 0.264815 | 7,847 | 262 | 80 | 29.950382 | 0.667187 | 0.108704 | 0 | 0.223881 | 0 | 0 | 0.100587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00995 | null | null | 0.144279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2f80bcfa95cb3fbe5e797d073a38bc12a4dae7f4 | 842 | py | Python | sitemap_urls_auditor/logger/main_logger.py | alena-kono/sitemap-urls-auditor | b9f1651c48fd8e4131eca8ee44122ffa54a4576e | [
"MIT"
] | null | null | null | sitemap_urls_auditor/logger/main_logger.py | alena-kono/sitemap-urls-auditor | b9f1651c48fd8e4131eca8ee44122ffa54a4576e | [
"MIT"
] | null | null | null | sitemap_urls_auditor/logger/main_logger.py | alena-kono/sitemap-urls-auditor | b9f1651c48fd8e4131eca8ee44122ffa54a4576e | [
"MIT"
] | null | null | null | """Module configures project's main logger."""
import logging
from loguru import logger
def disable_usp_logging() -> None:
"""Disable logging of ultimate-sitemap-parser (usp) library.
Usp package initializes default logging.Logger() each time it
imports something from its core submodules.
Therefor... | 24.764706 | 78 | 0.709026 | 108 | 842 | 5.407407 | 0.564815 | 0.082192 | 0.077055 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.209026 | 842 | 33 | 79 | 25.515152 | 0.867868 | 0.447743 | 0 | 0 | 0 | 0 | 0.007229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2f8296613ef32d75696e51924c20cb22faf6bba2 | 812 | py | Python | dataporten/middleware.py | frafra/django-dataporten | 4236017611e08d08bd810be0beae1b994cb5fc67 | [
"MIT"
] | 4 | 2019-01-06T17:56:07.000Z | 2021-03-21T19:16:35.000Z | dataporten/middleware.py | frafra/django-dataporten | 4236017611e08d08bd810be0beae1b994cb5fc67 | [
"MIT"
] | 9 | 2019-10-21T17:23:53.000Z | 2021-06-10T21:06:25.000Z | dataporten/middleware.py | frafra/django-dataporten | 4236017611e08d08bd810be0beae1b994cb5fc67 | [
"MIT"
] | 2 | 2019-04-29T11:48:59.000Z | 2020-01-06T09:54:55.000Z | import logging
import requests
import requests_cache
from django.conf import settings
from django.http import HttpResponse, HttpRequest
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError:
MiddlewareMixin = object
from .api import usergroups
from .models import DataportenUser
# Cach... | 26.193548 | 60 | 0.758621 | 87 | 812 | 6.873563 | 0.563218 | 0.050167 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01203 | 0.181034 | 812 | 30 | 61 | 27.066667 | 0.887218 | 0.035714 | 0 | 0 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.391304 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2f8acf77c5feae7c80644d1d8292864bc245ea00 | 1,768 | py | Python | panamsquad/urls.py | the-mandarine/mypanamsquad | b34c1c6169a3b7496e171b9536472a1ede0bdc84 | [
"Beerware"
] | null | null | null | panamsquad/urls.py | the-mandarine/mypanamsquad | b34c1c6169a3b7496e171b9536472a1ede0bdc84 | [
"Beerware"
] | null | null | null | panamsquad/urls.py | the-mandarine/mypanamsquad | b34c1c6169a3b7496e171b9536472a1ede0bdc84 | [
"Beerware"
] | null | null | null | """panamsquad URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | 40.181818 | 79 | 0.70871 | 270 | 1,768 | 4.555556 | 0.27037 | 0.052033 | 0.045528 | 0.019512 | 0.150407 | 0.150407 | 0.11626 | 0.060976 | 0 | 0 | 0 | 0.005976 | 0.14819 | 1,768 | 43 | 80 | 41.116279 | 0.810757 | 0.426471 | 0 | 0 | 0 | 0 | 0.166998 | 0.023857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2f8c9b6939590e2c0b5c1ffc1236673c73cfa389 | 1,015 | py | Python | setup.py | yamahigashi/sphinx-git-lowdown | 3df8ba2bb44c987f9510d45cd31198cfc5249f14 | [
"Apache-2.0"
] | null | null | null | setup.py | yamahigashi/sphinx-git-lowdown | 3df8ba2bb44c987f9510d45cd31198cfc5249f14 | [
"Apache-2.0"
] | null | null | null | setup.py | yamahigashi/sphinx-git-lowdown | 3df8ba2bb44c987f9510d45cd31198cfc5249f14 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='sphinx-git-lowdown',
version='0.0.1',
url='https://github.com/yamahigashi/sphinx-git-lowdown',
# download_url='http://pypi.python.org/pypi/sphinx-git-lowdown',
license='Apache',
author='yamahigashi',
author_email='yamahigas... | 30.757576 | 68 | 0.634483 | 107 | 1,015 | 5.906542 | 0.616822 | 0.071203 | 0.126582 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011222 | 0.209852 | 1,015 | 32 | 69 | 31.71875 | 0.776808 | 0.125123 | 0 | 0 | 0 | 0 | 0.510181 | 0.023756 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 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 |
2f9b8862aa5b57db0e4c23d664291957a9fbe6a4 | 379 | py | Python | task_function.py | feihong/asyncio-tasks-talk | a4ef4e7246906d89aab81db69b7cba0c76258288 | [
"CC-BY-4.0"
] | 1 | 2016-09-10T02:47:26.000Z | 2016-09-10T02:47:26.000Z | task_function.py | feihong/asyncio-tasks-talk | a4ef4e7246906d89aab81db69b7cba0c76258288 | [
"CC-BY-4.0"
] | null | null | null | task_function.py | feihong/asyncio-tasks-talk | a4ef4e7246906d89aab81db69b7cba0c76258288 | [
"CC-BY-4.0"
] | null | null | null | import asyncio
async def long_task(writer):
total = 100
for i in range(1, total+1):
writer.write(type='progress', value=i, total=total)
print(i)
await asyncio.sleep(0.05)
class Writer:
def write(self, **kwargs):
print(kwargs)
coroutine = long_task(Writer())
asyncio.ensu... | 18.95 | 59 | 0.664908 | 53 | 379 | 4.641509 | 0.641509 | 0.065041 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026756 | 0.211082 | 379 | 19 | 60 | 19.947368 | 0.795987 | 0 | 0 | 0 | 0 | 0 | 0.021108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85ca2de785e536315d8103867a6f6f3babb8d84b | 346 | py | Python | a301/scripts/check_nearir.py | Pearl-Ayem/ATSC_Notebook_Data | c075d166c235ac4e68a4b77750e02b2a5e77abd0 | [
"MIT"
] | null | null | null | a301/scripts/check_nearir.py | Pearl-Ayem/ATSC_Notebook_Data | c075d166c235ac4e68a4b77750e02b2a5e77abd0 | [
"MIT"
] | null | null | null | a301/scripts/check_nearir.py | Pearl-Ayem/ATSC_Notebook_Data | c075d166c235ac4e68a4b77750e02b2a5e77abd0 | [
"MIT"
] | null | null | null | from pyhdf.SD import SD, SDC
from pathlib import Path
import numpy as np
import a301
m5_file = a301.data_dir / Path('myd05_l2_10_7.hdf')
the_file = SD(str(m5_file), SDC.READ)
wv_nearir_data = the_file.select('Water_Vapor_Near_Infrared').get()
the_file.end
positive = wv_nearir_data > 0.
print(f'found {np.sum(positive.f... | 24.714286 | 67 | 0.768786 | 63 | 346 | 3.968254 | 0.634921 | 0.084 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.115607 | 346 | 13 | 68 | 26.615385 | 0.767974 | 0 | 0 | 0 | 0 | 0 | 0.252907 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
85cff0c0609514a2aa77da41be4f85d685342405 | 12,197 | py | Python | sdk/python/pulumi_proxmox/ct/container.py | meyskens/pulumi-proxmox | bf48570690350be68fa554e1cec376212eb449ab | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2021-01-11T11:26:19.000Z | 2022-01-23T02:32:34.000Z | sdk/python/pulumi_proxmox/ct/container.py | meyskens/pulumi-proxmox | bf48570690350be68fa554e1cec376212eb449ab | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-01-29T08:15:46.000Z | 2021-10-17T16:33:19.000Z | sdk/python/pulumi_proxmox/ct/container.py | meyskens/pulumi-proxmox | bf48570690350be68fa554e1cec376212eb449ab | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-04-06T00:36:05.000Z | 2021-12-16T14:25:07.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | 44.677656 | 145 | 0.649832 | 1,257 | 12,197 | 6.08751 | 0.133652 | 0.089127 | 0.071093 | 0.10873 | 0.669106 | 0.595269 | 0.58207 | 0.572399 | 0.563513 | 0.563513 | 0 | 0.000108 | 0.242847 | 12,197 | 272 | 146 | 44.841912 | 0.828479 | 0.280151 | 0 | 0.329193 | 1 | 0 | 0.16003 | 0.047198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111801 | false | 0.006211 | 0.043478 | 0.012422 | 0.267081 | 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 |
85d2e42b2d5769672b5d6fd5964f344d0f20bc08 | 546 | py | Python | gore/models/project.py | akx/gentry | f4205f5a14054231d064657347862a15ecf4c0e0 | [
"MIT"
] | 4 | 2017-07-26T13:23:06.000Z | 2019-02-21T14:55:34.000Z | gore/models/project.py | akx/gentry | f4205f5a14054231d064657347862a15ecf4c0e0 | [
"MIT"
] | 26 | 2017-08-02T08:52:06.000Z | 2022-03-04T15:13:26.000Z | gore/models/project.py | akx/gentry | f4205f5a14054231d064657347862a15ecf4c0e0 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from gentry.utils import make_absolute_uri
class Project(models.Model):
slug = models.SlugField()
name = models.CharField(max_length=128)
date_added = models.DateTimeField(default=timezone.now, editable=False)
def __str__(self):
... | 26 | 95 | 0.661172 | 72 | 546 | 4.861111 | 0.625 | 0.057143 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.214286 | 546 | 20 | 96 | 27.3 | 0.808858 | 0 | 0 | 0 | 0 | 0 | 0.058608 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
85d8b4fdcc862d0733f6de5e3fdf2b8f4d3ba6b3 | 2,454 | py | Python | PinVidderer/PinVidderer.py | Gestas/PinVidderer | c980906cd77bf9a8cb66be022676e57e9a54702e | [
"MIT"
] | null | null | null | PinVidderer/PinVidderer.py | Gestas/PinVidderer | c980906cd77bf9a8cb66be022676e57e9a54702e | [
"MIT"
] | null | null | null | PinVidderer/PinVidderer.py | Gestas/PinVidderer | c980906cd77bf9a8cb66be022676e57e9a54702e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import signal
import click
from .client import Client
from .utils import Utils
utils = Utils()
signal.signal(signal.SIGINT, utils.signal_handler)
class Config(object):
def __init__(self):
self.loglevel = None
pass_config = click.make_pass_decorator(Config, ensure=True)
@click.... | 25.831579 | 119 | 0.698859 | 329 | 2,454 | 5.094225 | 0.303951 | 0.078759 | 0.118138 | 0.093079 | 0.363962 | 0.318616 | 0.294749 | 0.207041 | 0.207041 | 0.207041 | 0 | 0.000483 | 0.156887 | 2,454 | 94 | 120 | 26.106383 | 0.80957 | 0.117767 | 0 | 0.274194 | 0 | 0.016129 | 0.18609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.129032 | 0.064516 | 0 | 0.209677 | 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 |
85dc9bd56f92f2f2d3c556c7f4e9a56721c6e747 | 1,307 | py | Python | bootcamp/chapter-1/strings.py | pushkar2112/Python-practice | 75f88eaa2b4f3c47570b1a11e0e221436551ce89 | [
"Apache-2.0"
] | 1 | 2021-11-23T08:36:43.000Z | 2021-11-23T08:36:43.000Z | bootcamp/chapter-1/strings.py | pushkar2112/Python-practice | 75f88eaa2b4f3c47570b1a11e0e221436551ce89 | [
"Apache-2.0"
] | 1 | 2021-07-18T12:39:40.000Z | 2021-09-08T09:48:16.000Z | bootcamp/chapter-1/strings.py | pushkar2112/Python-practice | 75f88eaa2b4f3c47570b1a11e0e221436551ce89 | [
"Apache-2.0"
] | null | null | null | # Strings are used in Python to record text information, such as names.
# Strings in Python are actually a sequence, which basically means Python keeps track
# of every element in the string as a sequence.
# For example, Python understands the string "hello' to be a sequence of letters in a specific order.
# This me... | 25.627451 | 102 | 0.719204 | 211 | 1,307 | 4.454976 | 0.50237 | 0.034043 | 0.03617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01322 | 0.189748 | 1,307 | 51 | 103 | 25.627451 | 0.87441 | 0.658761 | 0 | 0 | 0 | 0 | 0.362998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85dcdeab8f386b3045fce501c4a13cd8e441b56a | 1,138 | py | Python | FindFT_NyquistFreq.py | PrabhjotKaurGosal/AudioAnalysisScripts | a752f62b2634022c1c2737b21998da218cef4dff | [
"MIT"
] | null | null | null | FindFT_NyquistFreq.py | PrabhjotKaurGosal/AudioAnalysisScripts | a752f62b2634022c1c2737b21998da218cef4dff | [
"MIT"
] | null | null | null | FindFT_NyquistFreq.py | PrabhjotKaurGosal/AudioAnalysisScripts | a752f62b2634022c1c2737b21998da218cef4dff | [
"MIT"
] | null | null | null | # This code finds the Fourier Tranform of a signal and the Nyquist frequency
import matplotlib.pyplot as plt
import numpy as np
import librosa
import librosa as lr
from scipy import signal
from scipy.fft import fft, ifft
import math
import matplotlib.pyplot as plt
if __name__ == "__main__":
# Read the audio ... | 33.470588 | 81 | 0.681019 | 182 | 1,138 | 4.126374 | 0.43956 | 0.027963 | 0.043941 | 0.063915 | 0.122503 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029801 | 0.203866 | 1,138 | 34 | 81 | 33.470588 | 0.799117 | 0.146749 | 0 | 0.076923 | 0 | 0 | 0.123316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
85e2fec7419e462992cdef82f856f348913b6d84 | 714 | py | Python | backend/errors.py | cryptSky/hlsa_task7 | 40365033e24ec147640f828cccc69f3711eedfc0 | [
"MIT"
] | 1 | 2021-05-20T06:04:13.000Z | 2021-05-20T06:04:13.000Z | backend/errors.py | cryptSky/hlsa_task7 | 40365033e24ec147640f828cccc69f3711eedfc0 | [
"MIT"
] | null | null | null | backend/errors.py | cryptSky/hlsa_task7 | 40365033e24ec147640f828cccc69f3711eedfc0 | [
"MIT"
] | null | null | null | from werkzeug.exceptions import HTTPException
class InternalServerError(HTTPException):
pass
class SchemaValidationError(HTTPException):
pass
class UserNotFoundError(HTTPException):
pass
class EmailAlreadyExistError(HTTPException):
pass
errors = {
"InternalServerError": {
"message": "Oops someth... | 21.636364 | 74 | 0.648459 | 57 | 714 | 8.122807 | 0.561404 | 0.146868 | 0.142549 | 0.082073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022263 | 0.245098 | 714 | 33 | 75 | 21.636364 | 0.836735 | 0 | 0 | 0.259259 | 0 | 0 | 0.352448 | 0.06014 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.148148 | 0.037037 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85e397373b9dc700b3ec2e1bd8bc94f48fdddec5 | 1,527 | py | Python | gecko/geckolib/driver/protocol/reminders.py | mmillmor/home_assistant-components | 625f97413bd6516a2358220a80819b85cc8072c6 | [
"Apache-2.0"
] | null | null | null | gecko/geckolib/driver/protocol/reminders.py | mmillmor/home_assistant-components | 625f97413bd6516a2358220a80819b85cc8072c6 | [
"Apache-2.0"
] | null | null | null | gecko/geckolib/driver/protocol/reminders.py | mmillmor/home_assistant-components | 625f97413bd6516a2358220a80819b85cc8072c6 | [
"Apache-2.0"
] | 1 | 2022-03-07T20:04:05.000Z | 2022-03-07T20:04:05.000Z | """ Gecko REQRM/RMREQ handlers """
import logging
import struct
from .packet import GeckoPacketProtocolHandler
REQRM_VERB = b"REQRM"
RMREQ_VERB = b"RMREQ"
_LOGGER = logging.getLogger(__name__)
class GeckoRemindersProtocolHandler(GeckoPacketProtocolHandler):
@staticmethod
def request(seq, **kwargs):
... | 30.54 | 87 | 0.606418 | 171 | 1,527 | 5.233918 | 0.385965 | 0.12067 | 0.150838 | 0.160894 | 0.331844 | 0.165363 | 0.046927 | 0.046927 | 0.046927 | 0.046927 | 0 | 0.074208 | 0.276359 | 1,527 | 49 | 88 | 31.163265 | 0.735747 | 0.050426 | 0 | 0.108108 | 0 | 0.054054 | 0.120666 | 0.110957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.081081 | 0.081081 | 0.351351 | 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 |
85e52bfde40a74e45c8231c717edf8c32b7d97fa | 376 | py | Python | components/studio/apps/migrations/0005_auto_20210209_1244.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 25 | 2020-05-08T22:24:54.000Z | 2022-03-11T18:16:58.000Z | components/studio/apps/migrations/0005_auto_20210209_1244.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 75 | 2020-05-08T22:15:59.000Z | 2021-11-22T10:00:04.000Z | components/studio/apps/migrations/0005_auto_20210209_1244.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 12 | 2020-11-04T13:09:46.000Z | 2022-03-14T16:22:40.000Z | # Generated by Django 2.2.13 on 2021-02-09 12:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('apps', '0004_auto_20210209_1243'),
]
operations = [
migrations.RenameField(
model_name='appinstance',
old_name='lab_session... | 19.789474 | 48 | 0.598404 | 41 | 376 | 5.292683 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120301 | 0.292553 | 376 | 18 | 49 | 20.888889 | 0.695489 | 0.12234 | 0 | 0 | 1 | 0 | 0.182927 | 0.070122 | 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 |
85eee91df955bbbecc3244390928eb3edef3f3cf | 5,730 | py | Python | trueWorld.py | str1k/dwatravel | 47be1377a60431ffcb3ad09846be7647d44e5760 | [
"MIT"
] | null | null | null | trueWorld.py | str1k/dwatravel | 47be1377a60431ffcb3ad09846be7647d44e5760 | [
"MIT"
] | null | null | null | trueWorld.py | str1k/dwatravel | 47be1377a60431ffcb3ad09846be7647d44e5760 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import re
import time
import MySQLdb
s = requests.Session()
login_url = "http://www.trueworldagency.com/member/login_ok.asp"
login_data = {'upw': '07092519', 'uid': '07092519'}
s.post(login_url, login_data)
counter = 0
trip_bookingID = []
trip_perio... | 35.590062 | 218 | 0.621466 | 840 | 5,730 | 4.132143 | 0.192857 | 0.019591 | 0.027658 | 0.034572 | 0.439643 | 0.394699 | 0.336502 | 0.281187 | 0.250072 | 0.221838 | 0 | 0.031056 | 0.157068 | 5,730 | 161 | 219 | 35.590062 | 0.687578 | 0.050087 | 0 | 0.210084 | 0 | 0.016807 | 0.177336 | 0.022788 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008403 | 0.042017 | null | null | 0.042017 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85f4fbb2d3d898f2e76022a95446b29026af0760 | 2,216 | py | Python | Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/MH/Layout/Visualisation/Graph/GridRenderer.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License,... | 38.206897 | 83 | 0.584386 | 273 | 2,216 | 4.699634 | 0.47619 | 0.065472 | 0.049883 | 0.024942 | 0.134061 | 0.06703 | 0.06703 | 0.06703 | 0 | 0 | 0 | 0.01025 | 0.295578 | 2,216 | 57 | 84 | 38.877193 | 0.811659 | 0.439982 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | 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 |
85f9b76b3b5d2af9bcf373c178d927992a22b317 | 280 | py | Python | CCC/CCC '19 J3 - Cold Compress.py | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 2 | 2021-04-13T00:19:56.000Z | 2021-04-13T01:19:45.000Z | CCC/CCC '19 J3 - Cold Compress.py | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | null | null | null | CCC/CCC '19 J3 - Cold Compress.py | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 1 | 2020-08-26T12:36:08.000Z | 2020-08-26T12:36:08.000Z | n = int(input())
for _ in range(n):
line = input()
prev = ''
counter = 0
for char in line:
if char != prev:
if prev != '':
print(counter, prev, end = ' ')
prev = char
counter = 1
else:
counter += 1
print(counter, prev) | 15.555556 | 39 | 0.478571 | 35 | 280 | 3.8 | 0.457143 | 0.180451 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.382143 | 280 | 18 | 40 | 15.555556 | 0.751445 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85fe97d41b6486d5e18a9ac451b9332abc6e4cd3 | 2,659 | py | Python | oldnumba/special.py | meawoppl/numba | bb8df0aee99133c6d52465ae9f9df2a7996339f3 | [
"BSD-2-Clause"
] | 1 | 2015-01-29T06:52:36.000Z | 2015-01-29T06:52:36.000Z | oldnumba/special.py | meawoppl/numba | bb8df0aee99133c6d52465ae9f9df2a7996339f3 | [
"BSD-2-Clause"
] | null | null | null | oldnumba/special.py | meawoppl/numba | bb8df0aee99133c6d52465ae9f9df2a7996339f3 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Special compiler-recognized numba functions and attributes.
"""
from __future__ import print_function, division, absolute_import
__all__ = ['NULL', 'typeof', 'python', 'nopython', 'addressof', 'prange']
import ctypes
from numba import error
#--------------------------------------------... | 27.989474 | 78 | 0.532907 | 251 | 2,659 | 5.486056 | 0.410359 | 0.029049 | 0.03268 | 0.026144 | 0.030501 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001835 | 0.180143 | 2,659 | 95 | 79 | 27.989474 | 0.629817 | 0.399398 | 0 | 0.05 | 0 | 0 | 0.092797 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.175 | false | 0 | 0.15 | 0.075 | 0.525 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c80394afc399b78e52b09f0399ffa60c6bd99be4 | 2,807 | py | Python | src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py | meteorologytoday/E3SM-sicn | 61acadf73929399586c8972f263f0d65696cba38 | [
"MIT"
] | null | null | null | src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py | meteorologytoday/E3SM-sicn | 61acadf73929399586c8972f263f0d65696cba38 | [
"MIT"
] | null | null | null | src/old/mpas-source/testing_and_setup/compass/landice/MISMIP3D/plot_speed_profiles.py | meteorologytoday/E3SM-sicn | 61acadf73929399586c8972f263f0d65696cba38 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Plots velocity profiles for a diagnostic solve for a range of resolutions, with and without GLP.
'''
import numpy as np
import netCDF4
#import datetime
# import math
# from pylab import *
from optparse import OptionParser
import matplotlib.pyplot as plt
from matplotlib import cm
# from matplot... | 29.239583 | 143 | 0.662629 | 417 | 2,807 | 4.42446 | 0.438849 | 0.03794 | 0.03252 | 0.020596 | 0.105149 | 0.082385 | 0.082385 | 0.082385 | 0.082385 | 0.082385 | 0 | 0.025597 | 0.164945 | 2,807 | 95 | 144 | 29.547368 | 0.761519 | 0.174207 | 0 | 0.105263 | 0 | 0 | 0.247217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.087719 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c804b2aba892b4eb59eed92a1fc2059a9fcab787 | 2,713 | py | Python | halfpipe/model/__init__.py | fossabot/Halfpipe-1 | 9e9fae20467d2c73b67fcb2cc73ed7144d79db3a | [
"FTL"
] | null | null | null | halfpipe/model/__init__.py | fossabot/Halfpipe-1 | 9e9fae20467d2c73b67fcb2cc73ed7144d79db3a | [
"FTL"
] | null | null | null | halfpipe/model/__init__.py | fossabot/Halfpipe-1 | 9e9fae20467d2c73b67fcb2cc73ed7144d79db3a | [
"FTL"
] | null | null | null | # -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
"""
from .exclude import ExcludeSchema, rating_indices
from .spec import SpecSchema, loadspec, savespec
from .tags import BoldTagsSchema, FuncTagsSchema, entities, entity_long... | 23.798246 | 97 | 0.708072 | 184 | 2,713 | 10.331522 | 0.478261 | 0.019989 | 0.027354 | 0.044187 | 0.601789 | 0.392425 | 0.392425 | 0.319832 | 0.319832 | 0.319832 | 0 | 0.003202 | 0.19425 | 2,713 | 113 | 98 | 24.00885 | 0.866423 | 0.048286 | 0 | 0 | 0 | 0 | 0.317899 | 0.08677 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019231 | 0.115385 | 0 | 0.115385 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8086e05aec0c6df0ba73279af11a14fb3f20635 | 15,813 | py | Python | Lab3.py | jamieaclifford/Crystal | d9ea44187a7673f523ad350834d38730c2d31126 | [
"MIT"
] | null | null | null | Lab3.py | jamieaclifford/Crystal | d9ea44187a7673f523ad350834d38730c2d31126 | [
"MIT"
] | null | null | null | Lab3.py | jamieaclifford/Crystal | d9ea44187a7673f523ad350834d38730c2d31126 | [
"MIT"
] | null | null | null |
from numpy import *
from scipy.signal import correlate2d
from numpy.random import randint,choice,uniform
from matplotlib.pyplot import *
import matplotlib.pyplot as plt
from os import system
class KineticMonteCarlo(object) :
def __init__( self, Model ) :
# reference state
... | 34.526201 | 207 | 0.568393 | 2,188 | 15,813 | 4.030165 | 0.13117 | 0.113404 | 0.083012 | 0.05398 | 0.517124 | 0.485144 | 0.436834 | 0.434112 | 0.43139 | 0.416875 | 0 | 0.021588 | 0.30867 | 15,813 | 457 | 208 | 34.601751 | 0.785035 | 0.135079 | 0 | 0.455975 | 0 | 0 | 0.061444 | 0.001667 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018868 | null | null | 0.13522 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c80b2595bdb7003b8c3cf6b926f272d5aafaf2b7 | 2,917 | py | Python | src/autoschedulers/nelli2021/cmdscale.py | InteonCo/Halide | cb38ed9942e878bf40674d75da1cdd2527b81d0a | [
"Apache-2.0"
] | 1 | 2021-12-30T09:27:33.000Z | 2021-12-30T09:27:33.000Z | src/autoschedulers/nelli2021/cmdscale.py | InteonCo/Halide | cb38ed9942e878bf40674d75da1cdd2527b81d0a | [
"Apache-2.0"
] | 3 | 2021-03-16T22:01:02.000Z | 2021-09-23T19:17:10.000Z | src/autoschedulers/nelli2021/cmdscale.py | InteonCo/Halide | cb38ed9942e878bf40674d75da1cdd2527b81d0a | [
"Apache-2.0"
] | null | null | null | # thanks to Francis Song for this function
# source: http://www.nervouscomputer.com/hfs/cmdscale-in-python/
from __future__ import division
import numpy as np
def cmdscale(D):
"""
Classical multidimensional scaling (MDS) ... | 56.096154 | 95 | 0.255399 | 168 | 2,917 | 4.410714 | 0.60119 | 0.008097 | 0.037787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.694892 | 2,917 | 51 | 96 | 57.196078 | 0.826966 | 0.774083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c80fb814451534b7b615ad0d3cac56241fef8195 | 9,150 | py | Python | selection/algorithms/tests/test_sqrt_lasso.py | wfithian/selective-inference | 19ea427118b04716b23b394f37aafcf126d29a53 | [
"BSD-3-Clause"
] | null | null | null | selection/algorithms/tests/test_sqrt_lasso.py | wfithian/selective-inference | 19ea427118b04716b23b394f37aafcf126d29a53 | [
"BSD-3-Clause"
] | null | null | null | selection/algorithms/tests/test_sqrt_lasso.py | wfithian/selective-inference | 19ea427118b04716b23b394f37aafcf126d29a53 | [
"BSD-3-Clause"
] | 1 | 2019-07-13T04:14:12.000Z | 2019-07-13T04:14:12.000Z | from __future__ import division
import numpy as np
import numpy.testing.decorators as dec
import nose.tools as nt
import statsmodels as sm
import matplotlib.pyplot as plt
from selection.algorithms.sqrt_lasso import (sqrt_lasso, choose_lambda,
estimate_sigma, data_carving, split_model)... | 33.888889 | 114 | 0.500656 | 1,248 | 9,150 | 3.541667 | 0.165064 | 0.030769 | 0.054299 | 0.074661 | 0.384615 | 0.359276 | 0.311765 | 0.275113 | 0.275113 | 0.275113 | 0 | 0.038222 | 0.368087 | 9,150 | 269 | 115 | 34.01487 | 0.726219 | 0.026448 | 0 | 0.324201 | 0 | 0 | 0.00701 | 0.0026 | 0 | 0 | 0 | 0 | 0.022831 | 0 | null | null | 0 | 0.050228 | null | null | 0.018265 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c813a1eed5677e2bde6506474cc6f8326d3c6475 | 6,680 | py | Python | proxy-server/proxy_server.py | MS17-010/python-misc | 15fbf3215359c97b75d4809756644626e6b577ed | [
"MIT"
] | null | null | null | proxy-server/proxy_server.py | MS17-010/python-misc | 15fbf3215359c97b75d4809756644626e6b577ed | [
"MIT"
] | null | null | null | proxy-server/proxy_server.py | MS17-010/python-misc | 15fbf3215359c97b75d4809756644626e6b577ed | [
"MIT"
] | null | null | null | import socket
import threading
import signal
import sys
import fnmatch
import utils
from time import gmtime, strftime, localtime
import logging
config = {
"HOST_NAME" : "192.168.0.136",
"BIND_PORT" : 12345,
"MAX_REQUEST_LEN" : 1024,
"CONNECTION_TIMEOUT" : 5,
... | 37.954545 | 137 | 0.550898 | 754 | 6,680 | 4.770557 | 0.320955 | 0.015569 | 0.010842 | 0.01112 | 0.070058 | 0.043925 | 0.043925 | 0.022241 | 0 | 0 | 0 | 0.013438 | 0.331587 | 6,680 | 175 | 138 | 38.171429 | 0.792161 | 0 | 0 | 0.095652 | 0 | 0.017391 | 0.098111 | 0 | 0 | 0 | 0 | 0.005714 | 0 | 0 | null | null | 0 | 0.069565 | 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 |
c8146b0afe8645af236462b961f5cb0186da93f4 | 9,336 | py | Python | basestation/xbox.py | ksurct-officers/Mercury2018-19 | ee90803c1b14727663c65ebc396cdb92c2b79667 | [
"Apache-2.0"
] | null | null | null | basestation/xbox.py | ksurct-officers/Mercury2018-19 | ee90803c1b14727663c65ebc396cdb92c2b79667 | [
"Apache-2.0"
] | null | null | null | basestation/xbox.py | ksurct-officers/Mercury2018-19 | ee90803c1b14727663c65ebc396cdb92c2b79667 | [
"Apache-2.0"
] | null | null | null | ''' xbox.py
Responsible for getting information directly from controller
Courtesy Aaron Schif, former member
Don't touch this file, it's perfect.
'''
from math import isclose
from collections import namedtuple
import sdl2
from sdl2 import ext
ButtonEvent = namedtuple('ButtonEvent', ['time', 'state'])
Ax... | 28.638037 | 88 | 0.60347 | 1,112 | 9,336 | 4.843525 | 0.161871 | 0.058485 | 0.033791 | 0.031749 | 0.386558 | 0.354437 | 0.296881 | 0.198106 | 0.18251 | 0.18251 | 0 | 0.017782 | 0.283205 | 9,336 | 325 | 89 | 28.726154 | 0.787059 | 0.108183 | 0 | 0.334884 | 0 | 0 | 0.018742 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 1 | 0.204651 | false | 0.013953 | 0.023256 | 0.037209 | 0.35814 | 0.004651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c818d2ec8f5ff64e655e15444fca7720cb2c47a4 | 385 | py | Python | server/server.py | BShadid/TFKAKsubmission | b324ea477f5658c4b0b46fd05cde60c4c8a43b93 | [
"MIT"
] | null | null | null | server/server.py | BShadid/TFKAKsubmission | b324ea477f5658c4b0b46fd05cde60c4c8a43b93 | [
"MIT"
] | null | null | null | server/server.py | BShadid/TFKAKsubmission | b324ea477f5658c4b0b46fd05cde60c4c8a43b93 | [
"MIT"
] | null | null | null | from flask import Flask
import easyWik
app = Flask(__name__)
@app.route('/')
def usage():
return "you shouldn't be here."
@app.route('/<title>')
def simplify(title):
# do some magic
return easyWik.run_main(title)
# return title
if __name__ == "__main__":
context = ('yourserver.crt','yourserver.k... | 20.263158 | 59 | 0.664935 | 55 | 385 | 4.4 | 0.581818 | 0.024793 | 0.024793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.168831 | 385 | 18 | 60 | 21.388889 | 0.73125 | 0.067532 | 0 | 0 | 0 | 0 | 0.219101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c821e277e58638d63f9549aad5f4d477bf38817b | 643 | py | Python | advancing_hero/settings.py | hentt30/ces22-project | 06f13ebdf06bbab182b83c882846701ab69e8631 | [
"MIT"
] | 1 | 2021-04-12T01:27:34.000Z | 2021-04-12T01:27:34.000Z | advancing_hero/settings.py | hentt30/ces22-project | 06f13ebdf06bbab182b83c882846701ab69e8631 | [
"MIT"
] | null | null | null | advancing_hero/settings.py | hentt30/ces22-project | 06f13ebdf06bbab182b83c882846701ab69e8631 | [
"MIT"
] | 2 | 2021-04-01T00:13:51.000Z | 2021-04-11T07:15:54.000Z | TITLE = 'Knight of Valhalla'
SCREEN_ROWS = 9
SCREEN_COLUMNS = 16
SIZE = screen_width, screen_height = 64 * 16, 64 * 9
FPS = 60
tile_size = 64
## Speeds
WORLD_SPEED = 1
DEFAULT_PLAYER_SPEED = 5
ASPHALT_SPEED = 1 * DEFAULT_PLAYER_SPEED
GRASS_SPEED = 1 * DEFAULT_PLAYER_SPEED
DIRT_SPEED = 0.6 * DEFAULT_PLAYER_SPEED
WATER_... | 18.911765 | 52 | 0.695179 | 104 | 643 | 4.067308 | 0.461538 | 0.153664 | 0.212766 | 0.134752 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094697 | 0.178849 | 643 | 33 | 53 | 19.484848 | 0.706439 | 0.037325 | 0 | 0 | 0 | 0 | 0.140523 | 0.050654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c823fba7bcffc4b21c83b60516082a369618b755 | 891 | py | Python | flask_pdv/ext/resources/transacao.py | evaristofm/api_transacao | 3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2 | [
"MIT"
] | null | null | null | flask_pdv/ext/resources/transacao.py | evaristofm/api_transacao | 3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2 | [
"MIT"
] | null | null | null | flask_pdv/ext/resources/transacao.py | evaristofm/api_transacao | 3a8d1d1459f5f58c8df7473fe6f7ea1a438738d2 | [
"MIT"
] | null | null | null | from flask_restful import Resource, marshal
from flask_pdv.ext.api import requests
from flask_pdv.ext.db.models import TransacaoModel
from flask_pdv.ext.db.schemas import transacao_field
from flask_pdv.ext.db import db
class Transacao(Resource):
def get(self):
transacao = TransacaoModel.query.all()
... | 26.205882 | 85 | 0.65881 | 96 | 891 | 6.041667 | 0.385417 | 0.077586 | 0.082759 | 0.103448 | 0.087931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232323 | 891 | 33 | 86 | 27 | 0.847953 | 0 | 0 | 0.086957 | 0 | 0 | 0.087542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c82b86e4546012be74409a7f90dcbec90ae16446 | 12,279 | py | Python | satori/serviceinstall.py | mgeisler/satori | dea382bae1cd043189589c0f7d4c20b4b6725ab5 | [
"Apache-2.0"
] | 1 | 2015-01-18T19:56:28.000Z | 2015-01-18T19:56:28.000Z | satori/serviceinstall.py | samstav/satori | 239fa1e3c7aac78599145c670576f0ac76a41a89 | [
"Apache-2.0"
] | null | null | null | satori/serviceinstall.py | samstav/satori | 239fa1e3c7aac78599145c670576f0ac76a41a89 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2003-2012 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# $Id: serviceinstall.py 1141 2014-02-12 16:39:51Z bethus@gmail.com $
#
# Service Install Helper librar... | 40.391447 | 79 | 0.540353 | 1,219 | 12,279 | 5.347826 | 0.244463 | 0.045099 | 0.025311 | 0.028992 | 0.330419 | 0.295444 | 0.259856 | 0.216598 | 0.177481 | 0.177481 | 0 | 0.007164 | 0.374786 | 12,279 | 303 | 80 | 40.524752 | 0.841996 | 0.214431 | 0 | 0.476852 | 0 | 0 | 0.086874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.050926 | 0.041667 | 0 | 0.125 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c82bebdc20706924551678f498e8c6d34044e848 | 11,879 | py | Python | pirates/battle/DistributedBattleAvatarAI.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/battle/DistributedBattleAvatarAI.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/battle/DistributedBattleAvatarAI.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | from direct.directnotify import DirectNotifyGlobal
from pirates.reputation. DistributedReputationAvatarAI import DistributedReputationAvatarAI
from Teamable import Teamable
from direct.distributed.ClockDelta import globalClockDelta
from pirates.piratesbase import EmoteGlobals
class DistributedBattleAvatarAI(Distribut... | 27.819672 | 98 | 0.6562 | 1,179 | 11,879 | 6.536896 | 0.133164 | 0.038926 | 0.052679 | 0.027248 | 0.096795 | 0.066303 | 0.066303 | 0.018425 | 0.018425 | 0.018425 | 0 | 0.003276 | 0.254735 | 11,879 | 426 | 99 | 27.884977 | 0.867277 | 0.00362 | 0 | 0.026059 | 0 | 0 | 0.035663 | 0.002113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.351792 | false | 0 | 0.016287 | 0.094463 | 0.47557 | 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 |
c82da452c1cd0b32e3a74054db0ed0b447787df9 | 31,942 | py | Python | agora_deploy/OVF.py | ThinkBriK/fwap | b01e3b856ad29f6cfac7d5e368deb18faed7d113 | [
"Apache-2.0"
] | null | null | null | agora_deploy/OVF.py | ThinkBriK/fwap | b01e3b856ad29f6cfac7d5e368deb18faed7d113 | [
"Apache-2.0"
] | null | null | null | agora_deploy/OVF.py | ThinkBriK/fwap | b01e3b856ad29f6cfac7d5e368deb18faed7d113 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Script pour déployer une VM TAT1 dont on a récupéré les informations
Ecrit par Benoit BARTHELEMY
benoit.barthelemy2@open-groupe.com
"""
import atexit
import datetime
import re
import ssl
from argparse import ArgumentParser
from getpass import getpass
from os import path
from sys import exit
... | 40.794381 | 142 | 0.589475 | 3,610 | 31,942 | 5.085042 | 0.19446 | 0.011113 | 0.009588 | 0.022117 | 0.315302 | 0.244975 | 0.205099 | 0.17127 | 0.132157 | 0.104265 | 0 | 0.007938 | 0.321645 | 31,942 | 782 | 143 | 40.846547 | 0.839256 | 0.171592 | 0 | 0.25 | 0 | 0 | 0.080939 | 0.011524 | 0 | 0 | 0 | 0.005115 | 0 | 1 | 0.05303 | false | 0.05303 | 0.039773 | 0 | 0.117424 | 0.024621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8304da49c7cd5f405be7c2e58f33877d39f8895 | 2,499 | py | Python | accounts/views.py | bornamir/ThreeAttemptLogin | a1ac34e106df913dedef80f595b9690bbc77f674 | [
"MIT"
] | 1 | 2019-09-03T08:40:19.000Z | 2019-09-03T08:40:19.000Z | accounts/views.py | bornamir/ThreeAttemptLogin | a1ac34e106df913dedef80f595b9690bbc77f674 | [
"MIT"
] | 5 | 2021-03-19T01:11:56.000Z | 2022-02-10T09:59:36.000Z | accounts/views.py | bornamir/ThreeAttemptLogin | a1ac34e106df913dedef80f595b9690bbc77f674 | [
"MIT"
] | null | null | null | from django.shortcuts import render,redirect
from django.contrib import messages, auth
from django.contrib.auth.models import User
from django.http.request import HttpRequest
# Create your views here.
def home(req):
return redirect('login')
def login(req):
if req.method == 'POST':
username = req.POST[... | 33.32 | 87 | 0.602641 | 285 | 2,499 | 5.277193 | 0.305263 | 0.083777 | 0.075798 | 0.037234 | 0.324468 | 0.261303 | 0.261303 | 0.261303 | 0.200133 | 0.117686 | 0 | 0.001682 | 0.286114 | 2,499 | 75 | 88 | 33.32 | 0.841368 | 0.058824 | 0 | 0.40678 | 0 | 0 | 0.166738 | 0.008978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.169492 | 0.067797 | 0.016949 | 0.389831 | 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 |
c83df5c3590f08b7881a0afefb6d8d7e7060a2fb | 2,124 | py | Python | anygraph/recipes/autobuilding_a_graph.py | gemerden/anygraph | c20cab82ad4a7f4117690a445e136c2b0e84f0f3 | [
"MIT"
] | 10 | 2020-06-11T14:11:58.000Z | 2021-12-31T11:59:26.000Z | anygraph/recipes/autobuilding_a_graph.py | gemerden/anygraph | c20cab82ad4a7f4117690a445e136c2b0e84f0f3 | [
"MIT"
] | null | null | null | anygraph/recipes/autobuilding_a_graph.py | gemerden/anygraph | c20cab82ad4a7f4117690a445e136c2b0e84f0f3 | [
"MIT"
] | null | null | null | """
Here we will show how to build a graph from a class inheritance structure. Since we will n change the class of classes (type), we will use a wrapper to do this.
"""
from anygraph import Many
"""
First we define the wrapper class; because we create instances of ClassWrapper on the flight;
to detect if the class w... | 32.181818 | 160 | 0.69162 | 319 | 2,124 | 4.442006 | 0.382445 | 0.062103 | 0.048694 | 0.016937 | 0.070572 | 0.070572 | 0.070572 | 0 | 0 | 0 | 0 | 0.000594 | 0.207627 | 2,124 | 65 | 161 | 32.676923 | 0.841355 | 0.168079 | 0 | 0 | 0 | 0 | 0.028182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.2 | 0.04 | 0 | 0.6 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8425c27ac3a898cc687ebecf30963739e854bd4 | 506 | py | Python | project/app/models.py | cs-fullstack-fall-2018/django-auth1-bachmanryan | cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8 | [
"Apache-2.0"
] | null | null | null | project/app/models.py | cs-fullstack-fall-2018/django-auth1-bachmanryan | cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8 | [
"Apache-2.0"
] | null | null | null | project/app/models.py | cs-fullstack-fall-2018/django-auth1-bachmanryan | cb83e4bc75e1c8bfde7c43d478505ecec45d5cd8 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from datetime import datetime
# Create your models here.
# create a new attribute in your model
class FormModel(models.Model):
username = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True)
blog_title = models.CharF... | 31.625 | 88 | 0.764822 | 71 | 506 | 5.295775 | 0.605634 | 0.053191 | 0.095745 | 0.12766 | 0.143617 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.152174 | 506 | 15 | 89 | 33.733333 | 0.862471 | 0.120553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 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 |
c845141e40b8a0dd5938ae534f453a3c938206c8 | 926 | py | Python | ChatAPI/migrations/0002_auto_20210520_1134.py | swasthikshetty10/Chat-Bot-using-Deep-Learning | 76856399e3984d8563eb72bb7412767b1b5f724a | [
"MIT"
] | 7 | 2021-01-05T15:27:55.000Z | 2021-10-05T06:37:50.000Z | ChatAPI/migrations/0002_auto_20210520_1134.py | swasthikshetty10/Chat-Bot-using-Deep-Learning | 76856399e3984d8563eb72bb7412767b1b5f724a | [
"MIT"
] | null | null | null | ChatAPI/migrations/0002_auto_20210520_1134.py | swasthikshetty10/Chat-Bot-using-Deep-Learning | 76856399e3984d8563eb72bb7412767b1b5f724a | [
"MIT"
] | 2 | 2021-01-08T12:50:33.000Z | 2021-01-09T23:34:04.000Z | # Generated by Django 3.1.3 on 2021-05-20 06:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('ChatAPI', '00... | 31.931034 | 136 | 0.595032 | 94 | 926 | 5.734043 | 0.62766 | 0.044527 | 0.051948 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028614 | 0.282937 | 926 | 28 | 137 | 33.071429 | 0.783133 | 0.048596 | 0 | 0.090909 | 1 | 0 | 0.06463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c845aa5c017b1dfeb4dad13bc07e41c3088b51c3 | 303 | py | Python | vanir/plugins/migrations/0003_delete_newcoinconfig.py | guanana/vanir | b0bb9c874795a5803e6437ff0105ea036f1ae7b6 | [
"Apache-2.0"
] | 1 | 2022-01-19T07:11:05.000Z | 2022-01-19T07:11:05.000Z | vanir/plugins/migrations/0003_delete_newcoinconfig.py | guanana/vanir | b0bb9c874795a5803e6437ff0105ea036f1ae7b6 | [
"Apache-2.0"
] | 10 | 2021-11-07T14:17:07.000Z | 2022-03-30T18:24:48.000Z | vanir/plugins/migrations/0003_delete_newcoinconfig.py | guanana/vanir | b0bb9c874795a5803e6437ff0105ea036f1ae7b6 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.13 on 2021-10-02 23:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('plugins', '0002_auto_20211002_2236'),
]
operations = [
migrations.DeleteModel(
name='NewCoinConfig',
),
]
| 17.823529 | 48 | 0.613861 | 32 | 303 | 5.71875 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146119 | 0.277228 | 303 | 16 | 49 | 18.9375 | 0.689498 | 0.151815 | 0 | 0 | 1 | 0 | 0.168627 | 0.090196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8475200f6eac06a5a76c9c297ba11ee2a7ea2ed | 831 | py | Python | PythonDAdata/3358OS_12_Code/code12/core.py | shijiale0609/Python_Data_Analysis | c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e | [
"MIT"
] | 1 | 2020-02-22T18:55:54.000Z | 2020-02-22T18:55:54.000Z | PythonDAdata/3358OS_12_Code/code12/core.py | shijiale0609/Python_Data_Analysis | c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e | [
"MIT"
] | null | null | null | PythonDAdata/3358OS_12_Code/code12/core.py | shijiale0609/Python_Data_Analysis | c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e | [
"MIT"
] | 1 | 2020-02-22T18:55:57.000Z | 2020-02-22T18:55:57.000Z | from nltk.corpus import movie_reviews
import random
import cython_module as cm
import cytoolz
def label_docs():
docs = [(list(movie_reviews.words(fid)), cat)
for cat in movie_reviews.categories()
for fid in movie_reviews.fileids(cat)]
random.seed(42)
random.shuffle(docs)
return... | 23.742857 | 50 | 0.68231 | 118 | 831 | 4.652542 | 0.457627 | 0.10929 | 0.061931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015083 | 0.202166 | 831 | 34 | 51 | 24.441176 | 0.812971 | 0 | 0 | 0 | 0 | 0 | 0.033694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c84d4f1ef2e89c1c188fc5c0934712deace909e7 | 2,973 | py | Python | MNIST/util.py | zswdian/BinarizedSNPS | d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5 | [
"Apache-2.0"
] | null | null | null | MNIST/util.py | zswdian/BinarizedSNPS | d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5 | [
"Apache-2.0"
] | null | null | null | MNIST/util.py | zswdian/BinarizedSNPS | d1a1a1f7eea74ee8f9c2233ae94f7fa079dc11d5 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import numpy
class BinOp():
def __init__(self, model):
count_conv2d = 0
for m in model.modules():
if isinstance(m, nn.Conv2d):
count_conv2d += 1
start_range = 1
end_range = count_conv2d - 2
self.bin_range = numpy.linspace... | 37.1625 | 89 | 0.582913 | 395 | 2,973 | 4.237975 | 0.177215 | 0.101553 | 0.17264 | 0.210275 | 0.542413 | 0.440263 | 0.424134 | 0.424134 | 0.366786 | 0.321386 | 0 | 0.019793 | 0.286243 | 2,973 | 79 | 90 | 37.632911 | 0.769086 | 0 | 0 | 0.184615 | 0 | 0 | 0.001009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123077 | false | 0 | 0.030769 | 0 | 0.169231 | 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 |
c8530a2187ea583ad5783e02a5317fc84ce553e4 | 1,620 | py | Python | old_version/forms/auth_form.py | DenisZhmakin/VK-Music-Downloader | 217d54f462b2da74776eec47bf1c355c54b017ab | [
"Unlicense"
] | null | null | null | old_version/forms/auth_form.py | DenisZhmakin/VK-Music-Downloader | 217d54f462b2da74776eec47bf1c355c54b017ab | [
"Unlicense"
] | 1 | 2021-12-20T03:42:21.000Z | 2021-12-20T09:57:57.000Z | old_version/forms/auth_form.py | DenisZhmakin/VK-Music-Downloader | 217d54f462b2da74776eec47bf1c355c54b017ab | [
"Unlicense"
] | null | null | null | import json
from pathlib import Path
from PyQt5 import uic
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QWidget
from vk_api.vk_api import VkApi
from utils import print_message, validate_QLineEdit
class AuthForm(QWidget):
authorized_successfull = pyqtSignal()
def __init__(self):
... | 27.931034 | 84 | 0.591358 | 178 | 1,620 | 5.157303 | 0.455056 | 0.052288 | 0.056645 | 0.04793 | 0.056645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002737 | 0.323457 | 1,620 | 58 | 85 | 27.931034 | 0.834854 | 0.010494 | 0 | 0.04878 | 0 | 0 | 0.111529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.097561 | 0.170732 | 0 | 0.317073 | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8561da14e0cfa8d9fef29a387534b2cad910276 | 5,122 | py | Python | pytests/ent_backup_restore/provider/provider.py | sumedhpb/testrunner | 9ff887231c75571624abc31a3fb5248110e01203 | [
"Apache-2.0"
] | 14 | 2015-02-06T02:47:57.000Z | 2020-03-14T15:06:05.000Z | pytests/ent_backup_restore/provider/provider.py | sumedhpb/testrunner | 9ff887231c75571624abc31a3fb5248110e01203 | [
"Apache-2.0"
] | 3 | 2019-02-27T19:29:11.000Z | 2021-06-02T02:14:27.000Z | pytests/ent_backup_restore/provider/provider.py | sumedhpb/testrunner | 9ff887231c75571624abc31a3fb5248110e01203 | [
"Apache-2.0"
] | 108 | 2015-03-26T08:58:49.000Z | 2022-03-21T05:21:39.000Z | #!/usr/bin/python3
import abc
import re
import logger
class Provider(metaclass=abc.ABCMeta):
def __init__(self, access_key_id, bucket, cacert, endpoint, no_ssl_verify, region, secret_access_key, staging_directory):
"""Instantiate a new 'Provider' object. Should only be created by implementing super classe... | 43.042017 | 194 | 0.664779 | 670 | 5,122 | 4.947761 | 0.289552 | 0.029864 | 0.048265 | 0.074208 | 0.266063 | 0.178884 | 0.124887 | 0.086878 | 0.073605 | 0.046456 | 0 | 0.013758 | 0.233698 | 5,122 | 118 | 195 | 43.40678 | 0.830828 | 0.322921 | 0 | 0.231884 | 0 | 0.014493 | 0.099239 | 0.072451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202899 | false | 0 | 0.043478 | 0 | 0.318841 | 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 |
c8645ddbacbee9365d7d4fed6a9839538bcee96a | 828 | py | Python | bin/util/ckan-datasets-in-group.py | timrdf/csv2rdf4lod-automation-prod | d7e096fda18aea6236b6245b1e4a221101611640 | [
"Apache-2.0"
] | 56 | 2015-01-15T13:11:28.000Z | 2021-11-16T14:50:48.000Z | bin/util/ckan-datasets-in-group.py | timrdf/csv2rdf4lod-automation-prod | d7e096fda18aea6236b6245b1e4a221101611640 | [
"Apache-2.0"
] | 10 | 2015-02-17T19:19:39.000Z | 2021-12-10T21:04:37.000Z | bin/util/ckan-datasets-in-group.py | timrdf/csv2rdf4lod-automation-prod | d7e096fda18aea6236b6245b1e4a221101611640 | [
"Apache-2.0"
] | 13 | 2015-08-25T18:48:35.000Z | 2021-12-13T15:28:16.000Z | #!/usr/bin/env python
#
#3> <> prov:specializationOf <https://github.com/timrdf/csv2rdf4lod-automation/blob/master/bin/util/ckan-datasets-in-group.py>;
#3> prov:wasDerivedFrom <https://raw.github.com/timrdf/DataFAQs/master/packages/faqt.python/faqt/faqt.py>,
#3> <https://github.com/timrdf/... | 41.4 | 127 | 0.729469 | 116 | 828 | 5.034483 | 0.508621 | 0.047945 | 0.077055 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010855 | 0.109903 | 828 | 19 | 128 | 43.578947 | 0.781547 | 0.605072 | 0 | 0 | 0 | 0 | 0.141066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c866107dba038466832105575d5f0486fb0c0c27 | 1,281 | py | Python | resources/tests/test_users.py | pacofvf/agency_performance_model | 1692d7e11ac3141715845d2a4ecf416563539f89 | [
"MIT"
] | 2 | 2018-01-10T05:51:31.000Z | 2018-01-18T21:25:45.000Z | resources/tests/test_users.py | pacofvf/pivot_table_api | 1692d7e11ac3141715845d2a4ecf416563539f89 | [
"MIT"
] | null | null | null | resources/tests/test_users.py | pacofvf/pivot_table_api | 1692d7e11ac3141715845d2a4ecf416563539f89 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import unittest
import json
import base64
from mock import patch
import api
class UserTests(unittest.TestCase):
def setUp(self):
api.app.testing = True
self.app = api.app.test_client()
def test_user_creation(self):
with patch('models.db.session'):
respons... | 33.710526 | 103 | 0.565183 | 133 | 1,281 | 5.345865 | 0.406015 | 0.067511 | 0.036568 | 0.053446 | 0.495077 | 0.495077 | 0.495077 | 0.495077 | 0.495077 | 0.495077 | 0 | 0.017798 | 0.298205 | 1,281 | 37 | 104 | 34.621622 | 0.773081 | 0.01249 | 0 | 0.333333 | 0 | 0 | 0.137658 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | null | null | 0.033333 | 0.166667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c070571b2741261b60b7d7b775818838f5089fed | 1,938 | py | Python | golpy/main.py | dkuska/golpy | a7bc73693090c252fa5ac587fe0d6c77472d9e9c | [
"MIT"
] | 1 | 2021-01-06T09:19:19.000Z | 2021-01-06T09:19:19.000Z | golpy/main.py | dkuska/golpy | a7bc73693090c252fa5ac587fe0d6c77472d9e9c | [
"MIT"
] | null | null | null | golpy/main.py | dkuska/golpy | a7bc73693090c252fa5ac587fe0d6c77472d9e9c | [
"MIT"
] | null | null | null | import golpy.controller.controller as controller
import golpy.view.view as view
import golpy.model.gamemodel as model
import golpy.eventmanager.eventmanager as eventm
import golpy.config as config
import log.log as log
import argparse
def pass_args():
""" Takes Argument from the command line and returns an Argum... | 46.142857 | 134 | 0.697626 | 250 | 1,938 | 5.26 | 0.364 | 0.041065 | 0.077567 | 0.045627 | 0.123194 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006423 | 0.196594 | 1,938 | 41 | 135 | 47.268293 | 0.83815 | 0.034056 | 0 | 0 | 0 | 0.03125 | 0.244504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.21875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c072ef7683ac75d9de6d4b4eb8e1ab74898e3920 | 914 | py | Python | spatial/edge.py | jbschwartz/spatial | 04dc619ae024ebb4f516cd6483f835421c7d84b1 | [
"MIT"
] | 1 | 2022-01-02T22:03:09.000Z | 2022-01-02T22:03:09.000Z | spatial/edge.py | jbschwartz/spatial | 04dc619ae024ebb4f516cd6483f835421c7d84b1 | [
"MIT"
] | null | null | null | spatial/edge.py | jbschwartz/spatial | 04dc619ae024ebb4f516cd6483f835421c7d84b1 | [
"MIT"
] | null | null | null | from functools import cached_property
from .vector3 import Vector3
class Edge:
"""An edge created by two points."""
def __init__(self, start: Vector3, end: Vector3) -> None:
self.start = start
self.end = end
def __eq__(self, other: object) -> bool:
"""Return True if this edge is... | 26.114286 | 67 | 0.591904 | 115 | 914 | 4.608696 | 0.347826 | 0.084906 | 0.045283 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007899 | 0.30744 | 914 | 34 | 68 | 26.882353 | 0.829384 | 0.167396 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.65 | 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 |
c083ad9611b00848cfe7baab07a7e05df20d4b0d | 1,011 | py | Python | insert_table.py | Cassiel60/python | 3f451e398a8705a5859d347d5fcdcfd9a5671e1c | [
"MIT"
] | null | null | null | insert_table.py | Cassiel60/python | 3f451e398a8705a5859d347d5fcdcfd9a5671e1c | [
"MIT"
] | null | null | null | insert_table.py | Cassiel60/python | 3f451e398a8705a5859d347d5fcdcfd9a5671e1c | [
"MIT"
] | 1 | 2019-12-19T00:34:02.000Z | 2019-12-19T00:34:02.000Z | '''
table AD contains RS,ADID;table Parkinson contains RS,PDID;table variant contains ADID,
PDID insert table variant
one way: below
two way: by merge
'''
import sys ,re
import pandas as pd
varfil1=r'C:\Users\BAIOMED07\Desktop\AD_Database_20170629.xls'
varfil2=r'C:\Users\BAIOMED07\Desktop\parkinson_TOTAL.xls'
varfil... | 25.275 | 87 | 0.723046 | 177 | 1,011 | 4.056497 | 0.463277 | 0.008357 | 0.029248 | 0.066852 | 0.0961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063527 | 0.096934 | 1,011 | 39 | 88 | 25.923077 | 0.722892 | 0.05638 | 0 | 0 | 0 | 0 | 0.299371 | 0.187421 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | 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 |
c08e3ff69724d52b478b9cfd81ca7910c42f6c6e | 7,390 | py | Python | chemreg/compound/migrations/0001_vega_sprint.py | Chemical-Curation/chemcurator | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | 1 | 2020-10-05T18:02:24.000Z | 2020-10-05T18:02:24.000Z | chemreg/compound/migrations/0001_vega_sprint.py | Chemical-Curation/chemcurator_django | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | 207 | 2020-01-30T19:17:44.000Z | 2021-02-24T19:45:29.000Z | chemreg/compound/migrations/0001_vega_sprint.py | Chemical-Curation/chemcurator_django | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-11-18 06:06
import chemreg.common.utils
import chemreg.common.validators
import chemreg.compound.models
import chemreg.compound.utils
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
def fwd_create_illdefined_querystructure... | 38.092784 | 85 | 0.472666 | 545 | 7,390 | 6.190826 | 0.240367 | 0.026082 | 0.041494 | 0.065205 | 0.561648 | 0.561648 | 0.561648 | 0.528156 | 0.505335 | 0.469769 | 0 | 0.007203 | 0.436401 | 7,390 | 193 | 86 | 38.290155 | 0.802881 | 0.006089 | 0 | 0.565934 | 1 | 0 | 0.121885 | 0.046711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.038462 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c09416d25e79ddab37c35127443d972589822576 | 796 | py | Python | tests/starter/test_starter_admin_email.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 17 | 2015-02-10T07:10:29.000Z | 2021-05-14T22:24:45.000Z | tests/starter/test_starter_admin_email.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 459 | 2015-03-31T18:24:23.000Z | 2022-03-30T19:44:40.000Z | tests/starter/test_starter_admin_email.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 9 | 2015-04-18T16:57:31.000Z | 2020-10-30T11:49:13.000Z | import unittest
from mock import patch
from starter.starter_AdminEmail import starter_AdminEmail
from tests.activity.classes_mock import FakeLogger
from tests.classes_mock import FakeLayer1
import tests.settings_mock as settings_mock
class TestStarterAdminEmail(unittest.TestCase):
def setUp(self):
self.fa... | 34.608696 | 81 | 0.761307 | 100 | 796 | 5.85 | 0.32 | 0.082051 | 0.082051 | 0.061538 | 0.37265 | 0.37265 | 0.37265 | 0.37265 | 0.249573 | 0.249573 | 0 | 0.01037 | 0.15201 | 796 | 22 | 82 | 36.181818 | 0.856296 | 0 | 0 | 0.222222 | 0 | 0 | 0.055276 | 0.055276 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c09430f692b1d375bbff6b77320ac21d3531ed34 | 15,963 | py | Python | tests/commit/math/test__tensors.py | eliasdjo/PhiFlow | dc88dca696d25a5ea5793aa48fae390469f0d829 | [
"MIT"
] | null | null | null | tests/commit/math/test__tensors.py | eliasdjo/PhiFlow | dc88dca696d25a5ea5793aa48fae390469f0d829 | [
"MIT"
] | null | null | null | tests/commit/math/test__tensors.py | eliasdjo/PhiFlow | dc88dca696d25a5ea5793aa48fae390469f0d829 | [
"MIT"
] | null | null | null | from unittest import TestCase
import numpy as np
import phi
from phi import math
from phi.math import channel, batch
from phi.math._shape import CHANNEL_DIM, BATCH_DIM, shape_stack, spatial
from phi.math._tensors import TensorStack, CollapsedTensor, wrap, tensor, cached
from phi.math.backend import Backend
BACKENDS ... | 40.930769 | 178 | 0.58811 | 2,173 | 15,963 | 4.213069 | 0.099862 | 0.144184 | 0.055707 | 0.0142 | 0.472966 | 0.400983 | 0.330639 | 0.272419 | 0.222283 | 0.15325 | 0 | 0.030413 | 0.256405 | 15,963 | 389 | 179 | 41.03599 | 0.740859 | 0.007267 | 0 | 0.209726 | 0 | 0 | 0.032759 | 0 | 0 | 0 | 0 | 0 | 0.413374 | 1 | 0.142857 | false | 0.012158 | 0.024316 | 0.006079 | 0.18845 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c094fb0ecd2841945312d32ccd2105e21bce1b3b | 1,202 | py | Python | index/admin.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 1 | 2019-06-29T15:24:24.000Z | 2019-06-29T15:24:24.000Z | index/admin.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 2 | 2020-01-12T17:47:33.000Z | 2020-01-12T17:47:45.000Z | index/admin.py | KolibriSolutions/BepMarketplace | c47d252fd744cde6b927e37c34d7a103c6162be5 | [
"BSD-3-Clause"
] | 2 | 2019-06-29T15:24:26.000Z | 2020-01-08T15:15:03.000Z | # Bep Marketplace ELE
# Copyright (c) 2016-2021 Kolibri Solutions
# License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE
#
from django.contrib import admin
from django.shortcuts import reverse
from django.utils.html import format_html
from .models import Track, Broadca... | 33.388889 | 102 | 0.757903 | 139 | 1,202 | 6.402878 | 0.503597 | 0.060674 | 0.114607 | 0.060674 | 0.08764 | 0.08764 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.118136 | 1,202 | 35 | 103 | 34.342857 | 0.832075 | 0.135607 | 0 | 0 | 0 | 0 | 0.163601 | 0.021297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c0955acbb8e9da3cf689449a7886da397be4ac74 | 9,025 | py | Python | stacks/firecares_web.py | FireCARES/firecares-ansible | f650798a7a343626402f6d46782651a2f7a5f086 | [
"MIT"
] | 1 | 2017-02-12T13:38:57.000Z | 2017-02-12T13:38:57.000Z | stacks/firecares_web.py | FireCARES/firecares-ansible | f650798a7a343626402f6d46782651a2f7a5f086 | [
"MIT"
] | 16 | 2015-10-21T13:00:54.000Z | 2021-09-23T23:21:07.000Z | stacks/firecares_web.py | FireCARES/firecares-ansible | f650798a7a343626402f6d46782651a2f7a5f086 | [
"MIT"
] | 4 | 2015-08-19T00:52:54.000Z | 2017-02-13T08:14:10.000Z | from datetime import datetime
from pytz import timezone
from troposphere import Ref, Template, Parameter, GetAZs, Output, Join, GetAtt, autoscaling, ec2, elasticloadbalancing as elb
t = Template()
t.add_description("Create FireCARES Webserver Load Balancer, Auto-Scaling group and Celery beat VM")
base_ami = "ami-7646... | 29.493464 | 125 | 0.582493 | 931 | 9,025 | 5.589689 | 0.27927 | 0.013067 | 0.05246 | 0.053036 | 0.416218 | 0.405842 | 0.385473 | 0.349923 | 0.33359 | 0.33359 | 0 | 0.068249 | 0.253186 | 9,025 | 305 | 126 | 29.590164 | 0.703858 | 0 | 0 | 0.521127 | 0 | 0.003521 | 0.320776 | 0.024155 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010563 | null | null | 0.003521 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c096a0804783d5b361fcbd0253a74c4dbbc3423f | 447 | py | Python | topk/gen_count.py | ririripley/recipes | 04267c68a7424326b4aa8dd14b1a879b59ab887c | [
"BSD-3-Clause"
] | 1,418 | 2015-01-07T09:40:09.000Z | 2022-03-29T08:37:02.000Z | topk/gen_count.py | algoideas/recipes | 77bc5cb180e49edb31983938386ef23f752e2d2f | [
"BSD-3-Clause"
] | 22 | 2015-02-17T17:31:18.000Z | 2022-02-08T07:00:29.000Z | topk/gen_count.py | algoideas/recipes | 77bc5cb180e49edb31983938386ef23f752e2d2f | [
"BSD-3-Clause"
] | 854 | 2015-01-03T11:56:10.000Z | 2022-03-31T08:50:28.000Z | #!/usr/bin/python
import random
word_len = 5
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
output = open('word_count', 'w')
words = set()
N = 1000*1000
for x in xrange(N):
arr = [random.choice(alphabet) for i in range(word_len)]
words.add(''.join(arr))
print len(words)
for word... | 20.318182 | 75 | 0.686801 | 63 | 447 | 4.825397 | 0.555556 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055851 | 0.158837 | 447 | 21 | 76 | 21.285714 | 0.75266 | 0.035794 | 0 | 0 | 0 | 0 | 0.179487 | 0.144522 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0984d7ef444e29454bfa97d1cc9a76bb27bd524 | 1,243 | py | Python | sortedListToBST.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | sortedListToBST.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | sortedListToBST.py | pflun/learningAlgorithms | 3101e989488dfc8a56f1bf256a1c03a837fe7d97 | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
... | 21.067797 | 55 | 0.584875 | 162 | 1,243 | 4.419753 | 0.32716 | 0.027933 | 0.036313 | 0.047486 | 0.083799 | 0.083799 | 0.083799 | 0.083799 | 0.083799 | 0 | 0 | 0.028169 | 0.314562 | 1,243 | 58 | 56 | 21.431034 | 0.812207 | 0.055511 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c099053af9b9ff299e9a4615defe7551e4d4dfdc | 1,105 | py | Python | train.py | divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning | f52c0887cb12cf1322a37d1042917be5d679c725 | [
"MIT"
] | null | null | null | train.py | divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning | f52c0887cb12cf1322a37d1042917be5d679c725 | [
"MIT"
] | null | null | null | train.py | divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning | f52c0887cb12cf1322a37d1042917be5d679c725 | [
"MIT"
] | null | null | null | import tensorflow as tf
import tensorflow.keras as k
import numpy as np
from load_and_augment import load_and_augment_data
from modelconfig import modelconfig
from compile_model import compile_model_adam
import compile_model
if __name__=='__main__':
path=r'/content/drive/My Drive/data'
testing_path=r'/c... | 42.5 | 143 | 0.729412 | 156 | 1,105 | 4.884615 | 0.467949 | 0.062992 | 0.055118 | 0.047244 | 0.062992 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0.024973 | 0.166516 | 1,105 | 25 | 144 | 44.2 | 0.802389 | 0 | 0 | 0 | 0 | 0 | 0.134259 | 0.021296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c0a105c9215ae6c27a0f573e79372161fa79223f | 3,054 | py | Python | exhibitor/migrations/0001_initial.py | Make-Munich/SaBoT | cabc7e2f5e0f7166d94d2ef683f75d8d3be02834 | [
"MIT"
] | 19 | 2016-04-09T10:13:26.000Z | 2020-06-21T23:14:16.000Z | exhibitor/migrations/0001_initial.py | Make-Munich/SaBoT | cabc7e2f5e0f7166d94d2ef683f75d8d3be02834 | [
"MIT"
] | 13 | 2017-01-14T20:42:45.000Z | 2019-08-10T22:48:44.000Z | exhibitor/migrations/0001_initial.py | Make-Munich/SaBoT | cabc7e2f5e0f7166d94d2ef683f75d8d3be02834 | [
"MIT"
] | 9 | 2016-04-09T12:52:48.000Z | 2018-08-16T19:08:16.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-11 13:45
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | 57.622642 | 216 | 0.655206 | 331 | 3,054 | 5.924471 | 0.413897 | 0.061703 | 0.045895 | 0.044875 | 0.344212 | 0.332483 | 0.281999 | 0.263131 | 0.263131 | 0.263131 | 0 | 0.012505 | 0.214473 | 3,054 | 52 | 217 | 58.730769 | 0.804919 | 0.022266 | 0 | 0.25 | 1 | 0 | 0.226953 | 0.031847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0a2cc928103a456829c10c8f15fb433031cebc9 | 6,036 | py | Python | etils/epath/abstract_path.py | google/etils | ff4c222cd6ce2f416d66a3cd64b39125f5ad25de | [
"Apache-2.0"
] | 13 | 2021-12-14T19:18:53.000Z | 2022-03-30T17:09:20.000Z | etils/epath/abstract_path.py | google/etils | ff4c222cd6ce2f416d66a3cd64b39125f5ad25de | [
"Apache-2.0"
] | 2 | 2022-01-07T01:34:33.000Z | 2022-01-12T01:35:33.000Z | etils/epath/abstract_path.py | google/etils | ff4c222cd6ce2f416d66a3cd64b39125f5ad25de | [
"Apache-2.0"
] | 1 | 2022-01-04T14:34:30.000Z | 2022-01-04T14:34:30.000Z | # Copyright 2022 The etils Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 28.338028 | 98 | 0.650431 | 788 | 6,036 | 4.942893 | 0.304569 | 0.086264 | 0.068293 | 0.073684 | 0.181515 | 0.147625 | 0.125802 | 0.114506 | 0.077535 | 0.024647 | 0 | 0.006373 | 0.220179 | 6,036 | 212 | 99 | 28.471698 | 0.821117 | 0.362989 | 0 | 0.330357 | 0 | 0 | 0.046588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223214 | false | 0 | 0.0625 | 0.008929 | 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 |
c0b679addf1f8188d5d6b4db7a0f798d7c5b295a | 3,048 | py | Python | python/meta-regex.py | tbedford/code-snippets | 9afe36c2726829f14fa5ec11acb8214bed704938 | [
"MIT"
] | null | null | null | python/meta-regex.py | tbedford/code-snippets | 9afe36c2726829f14fa5ec11acb8214bed704938 | [
"MIT"
] | null | null | null | python/meta-regex.py | tbedford/code-snippets | 9afe36c2726829f14fa5ec11acb8214bed704938 | [
"MIT"
] | 1 | 2018-10-09T02:03:12.000Z | 2018-10-09T02:03:12.000Z | # \s Returns a match where the string contains a white space character
# \S Returns a match where the string DOES NOT contain a white space character
import re
s1 = '''
---
slug: python-non-greedy-regexes
title: Python non-greedy regexes
summary: How to make Python regexes a little less greedy using the `?` modifier.... | 26.973451 | 392 | 0.686024 | 519 | 3,048 | 4.023121 | 0.391137 | 0.015326 | 0.015805 | 0.01341 | 0.236111 | 0.21408 | 0.178161 | 0.1341 | 0.12069 | 0.083333 | 0 | 0.010791 | 0.179134 | 3,048 | 112 | 393 | 27.214286 | 0.823741 | 0.059383 | 0 | 0.413333 | 0 | 0.12 | 0.949703 | 0.074048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.026667 | 0 | 0.066667 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0ba62a6a723e9a0a8608f8d14f5550d2b17eba4 | 6,735 | py | Python | kuka_arm/scripts/IK_server.py | congthanh184/RoboND-Kinematics-Project | 4c14ad5a9461fa5cdf465a04f8f11ff296b00760 | [
"MIT"
] | null | null | null | kuka_arm/scripts/IK_server.py | congthanh184/RoboND-Kinematics-Project | 4c14ad5a9461fa5cdf465a04f8f11ff296b00760 | [
"MIT"
] | null | null | null | kuka_arm/scripts/IK_server.py | congthanh184/RoboND-Kinematics-Project | 4c14ad5a9461fa5cdf465a04f8f11ff296b00760 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2017 Udacity Inc.
#
# This file is part of Robotic Arm: Pick and Place project for Udacity
# Robotics nano-degree program
#
# All Rights Reserved.
# Author: Harsh Pandya
# import modules
import rospy
import tf
from kuka_arm.srv import *
from trajectory_msgs.msg import JointTraje... | 35.634921 | 119 | 0.621678 | 959 | 6,735 | 4.211679 | 0.25756 | 0.023768 | 0.020054 | 0.028472 | 0.118346 | 0.074771 | 0.037633 | 0.037633 | 0.037633 | 0.037633 | 0 | 0.055858 | 0.263697 | 6,735 | 188 | 120 | 35.824468 | 0.758621 | 0.176986 | 0 | 0.019231 | 0 | 0 | 0.027712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c0bafd320c0a8a62b60bbf8a3554bd41b71dc5db | 12,205 | py | Python | bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | 1 | 2021-11-04T21:48:14.000Z | 2021-11-04T21:48:14.000Z |
import os
import csv
import glob
import time
import threading
from .misc import name2env as ru_name2env
from .misc import get_hostname as ru_get_hostname
from .misc import get_hostip as ru_get_hostip
from .read_json import read_json as ru_read_json
# ---------------------------------... | 28.990499 | 84 | 0.498484 | 1,393 | 12,205 | 4.242642 | 0.235463 | 0.00643 | 0.005584 | 0.005415 | 0.108799 | 0.091371 | 0.054484 | 0.054484 | 0.054484 | 0.031472 | 0 | 0.003731 | 0.319295 | 12,205 | 420 | 85 | 29.059524 | 0.707631 | 0.240475 | 0 | 0.19 | 0 | 0 | 0.06953 | 0.01161 | 0 | 0 | 0 | 0.004762 | 0.01 | 0 | null | null | 0.01 | 0.05 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c0bd2f1bb8af7bb26fd427d057716fce6e53b345 | 607 | py | Python | uniform_distribution.py | khinthandarkyaw98/Python_Practice | 9b431129c79315a57dae81048a22bf85c4b5132c | [
"MIT"
] | null | null | null | uniform_distribution.py | khinthandarkyaw98/Python_Practice | 9b431129c79315a57dae81048a22bf85c4b5132c | [
"MIT"
] | null | null | null | uniform_distribution.py | khinthandarkyaw98/Python_Practice | 9b431129c79315a57dae81048a22bf85c4b5132c | [
"MIT"
] | null | null | null | # uniform_distribution
# used to describe the probability where every event has equal chances of
# occuring
"""
E.g. Generation of random numbers.
It has three parameters.
a - lower bound - default 0.0
b - upper bound - default 1.0
size = The shape of the returned array
"""
# 2x3 uniform distribution... | 20.233333 | 75 | 0.70346 | 87 | 607 | 4.896552 | 0.643678 | 0.133803 | 0.070423 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02537 | 0.220758 | 607 | 29 | 76 | 20.931034 | 0.875264 | 0.589786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c0c468474802f951d70f92ebb743554a56f1d46b | 1,577 | py | Python | Estructuras de control/ejercicio12.py | mariapdm/talleres_de_algoritmos | fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb | [
"MIT"
] | null | null | null | Estructuras de control/ejercicio12.py | mariapdm/talleres_de_algoritmos | fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb | [
"MIT"
] | null | null | null | Estructuras de control/ejercicio12.py | mariapdm/talleres_de_algoritmos | fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb | [
"MIT"
] | null | null | null | """
Datos de entrada
nota_examen_ matematicas-->nem-->float
nota_ta1_matematicas-->ntm-->
nota_ta2_matematicas-->nttm-->
nota_ta3_matematicas-->ntttm-->
nota_examen_fisica-->nef-->float
nota_ta1_fisica-->ntf-->float
nota_ta2_fisica-->nttf-->float
nota_examen_quimica-->neq-->float
nota_ta1_quimica-->ntq-->float
nota_ta2... | 38.463415 | 70 | 0.726062 | 268 | 1,577 | 4.175373 | 0.216418 | 0.098302 | 0.167113 | 0.186774 | 0.355675 | 0.355675 | 0.355675 | 0.355675 | 0.264522 | 0.264522 | 0 | 0.024788 | 0.104629 | 1,577 | 41 | 71 | 38.463415 | 0.767705 | 0.338618 | 0 | 0 | 0 | 0 | 0.583172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.210526 | 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 |
c0c904cad48edbd6699de73edf6362e41250b47a | 509 | py | Python | app/exceptions.py | syedwaseemjan/RiskManager | c788daf533b125740ccd1fb09acebe023ca286b7 | [
"MIT"
] | null | null | null | app/exceptions.py | syedwaseemjan/RiskManager | c788daf533b125740ccd1fb09acebe023ca286b7 | [
"MIT"
] | null | null | null | app/exceptions.py | syedwaseemjan/RiskManager | c788daf533b125740ccd1fb09acebe023ca286b7 | [
"MIT"
] | null | null | null | class RiskManagerError(Exception):
"""Base application error class."""
def __init__(self, msg):
self.msg = msg
class RiskDoesNotExist(RiskManagerError):
def __init__(self):
super(RiskDoesNotExist, self).__init__(
"No risk record found for the provided ID. Are you sure you hav... | 25.45 | 99 | 0.681729 | 59 | 509 | 5.610169 | 0.59322 | 0.063444 | 0.099698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222004 | 509 | 19 | 100 | 26.789474 | 0.835859 | 0.147348 | 0 | 0 | 0 | 0 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0d3c4a39dc9908b549fa2b113fe0a1b00c9a7a2 | 9,520 | py | Python | twittersmash/management/commands/smash_stuff.py | mrkurt/twittersmash | 095af27fafa6f2074e0ce82596196c2141d0b7de | [
"MIT"
] | 1 | 2016-05-09T11:29:35.000Z | 2016-05-09T11:29:35.000Z | twittersmash/management/commands/smash_stuff.py | mrkurt/twittersmash | 095af27fafa6f2074e0ce82596196c2141d0b7de | [
"MIT"
] | null | null | null | twittersmash/management/commands/smash_stuff.py | mrkurt/twittersmash | 095af27fafa6f2074e0ce82596196c2141d0b7de | [
"MIT"
] | null | null | null | import twitter
import datetime
import feedparser
import re
import string
from django.core.management.base import BaseCommand
from optparse import make_option
from twittersmash.models import Feed, TwitterAccount, Message
import pytz
from pytz import timezone
central = timezone('US/Central')
utc = pytz.utc
# Parses th... | 42.5 | 101 | 0.463866 | 884 | 9,520 | 4.855204 | 0.281674 | 0.029357 | 0.020969 | 0.031454 | 0.066869 | 0.016775 | 0 | 0 | 0 | 0 | 0 | 0.006209 | 0.458613 | 9,520 | 224 | 102 | 42.5 | 0.826542 | 0.067962 | 0 | 0.166667 | 0 | 0 | 0.086693 | 0 | 0 | 0 | 0 | 0.004464 | 0 | 0 | null | null | 0.005747 | 0.057471 | null | null | 0.057471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c0e6f4156c765d61d6562b34e46e4af7e1c03fe7 | 1,958 | py | Python | cegs_portal/search/json_templates/v1/tests/test_search_results.py | ReddyLab/cegs-portal | a83703a3557167be328c24bfb866b6aa019ba059 | [
"MIT"
] | null | null | null | cegs_portal/search/json_templates/v1/tests/test_search_results.py | ReddyLab/cegs-portal | a83703a3557167be328c24bfb866b6aa019ba059 | [
"MIT"
] | null | null | null | cegs_portal/search/json_templates/v1/tests/test_search_results.py | ReddyLab/cegs-portal | a83703a3557167be328c24bfb866b6aa019ba059 | [
"MIT"
] | null | null | null | import pytest
from django.db.models import Manager
from cegs_portal.search.json_templates.v1.dna_region import dnaregions
from cegs_portal.search.json_templates.v1.search_results import (
search_results as sr_json,
)
from cegs_portal.search.models import DNARegion, Facet
from cegs_portal.search.models.utils import... | 38.392157 | 111 | 0.62666 | 214 | 1,958 | 5.53271 | 0.266355 | 0.197635 | 0.121622 | 0.16723 | 0.704392 | 0.592905 | 0.592905 | 0.533784 | 0.533784 | 0.533784 | 0 | 0.009868 | 0.223698 | 1,958 | 50 | 112 | 39.16 | 0.769079 | 0 | 0 | 0.409091 | 0 | 0 | 0.185904 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.022727 | false | 0 | 0.136364 | 0 | 0.159091 | 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 |
c0f597adef0dae65ff023459c242c4d6daf5a5e9 | 2,812 | py | Python | kod/zeropython/zerocon/seriesdefinition.py | piotrmaslanka/zero | 4a4e8341b06032b7ade6d7a56d9ae33dd1a5f47d | [
"BSD-3-Clause"
] | null | null | null | kod/zeropython/zerocon/seriesdefinition.py | piotrmaslanka/zero | 4a4e8341b06032b7ade6d7a56d9ae33dd1a5f47d | [
"BSD-3-Clause"
] | null | null | null | kod/zeropython/zerocon/seriesdefinition.py | piotrmaslanka/zero | 4a4e8341b06032b7ade6d7a56d9ae33dd1a5f47d | [
"BSD-3-Clause"
] | null | null | null | import struct
class SeriesDefinition(object):
def __init__(self, seriesname, replicacount, generation, autotrim, recordsize, options, tombstonedon):
self._seriesname = seriesname
self._replicacount = replicacount
self._generation = generation
self._autotrim = autotrim
s... | 29.291667 | 106 | 0.599218 | 284 | 2,812 | 5.757042 | 0.176056 | 0.077064 | 0.066055 | 0.085627 | 0.120489 | 0.106422 | 0.03792 | 0 | 0 | 0 | 0 | 0.008718 | 0.306543 | 2,812 | 96 | 107 | 29.291667 | 0.829744 | 0 | 0 | 0.1875 | 0 | 0 | 0.006399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2375 | false | 0 | 0.0125 | 0.1 | 0.3875 | 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 |
c0fa6359178c8344bf4c2736824c78112998b09b | 511 | py | Python | books_and_notes/professional_courses/operating_system/sources/ucore_os_lab/docs/ucore实验指导书/lab2/rename.py | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/operating_system/sources/ucore_os_lab/docs/ucore实验指导书/lab2/rename.py | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/operating_system/sources/ucore_os_lab/docs/ucore实验指导书/lab2/rename.py | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z | #!/usr/bin/python
import os
lines = [line for line in open("hehe.txt")]
for line in lines:
i = 0
for c in line:
if (c != '_' and not (c >= '0' and c <= '9')):
break
i+=1
cmd = "mv " + line[0:i].strip() + line[i+5:].strip() + " lab2_" + line[0:i].strip() + line[i+5:].strip()
print cmd
os.system(cmd)
c... | 19.653846 | 106 | 0.547945 | 88 | 511 | 3.113636 | 0.409091 | 0.054745 | 0.065693 | 0.080292 | 0.29927 | 0.160584 | 0.160584 | 0.160584 | 0 | 0 | 0 | 0.038462 | 0.236791 | 511 | 25 | 107 | 20.44 | 0.664103 | 0.048924 | 0 | 0.111111 | 0 | 0 | 0.076446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0fc8fa48988775dbfa087aacb17d54064d6211e | 2,915 | py | Python | visartm/settings_default.py | alexeyev/visartm | d19e193b3c084d7f355a45b966c8bb2ebb6fa366 | [
"BSD-3-Clause"
] | 1 | 2020-10-01T10:11:21.000Z | 2020-10-01T10:11:21.000Z | visartm/settings_default.py | alexeyev/visartm | d19e193b3c084d7f355a45b966c8bb2ebb6fa366 | [
"BSD-3-Clause"
] | null | null | null | visartm/settings_default.py | alexeyev/visartm | d19e193b3c084d7f355a45b966c8bb2ebb6fa366 | [
"BSD-3-Clause"
] | null | null | null | # This is default settings for VisARTM for local usage
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DATA_DIR = os.path.join(BASE_DIR, "data")
SECRET_KEY = 'yj_fhwf$-8ws1%a_vl5c0lf($#ke@c3+lu3l-f733k(j-!q*57'
DEBUG = True
ALLOWED_HOSTS = ["127.0.0.1"]
THREADING = True
REGISTRAT... | 23.699187 | 71 | 0.646312 | 286 | 2,915 | 6.405594 | 0.465035 | 0.120633 | 0.074236 | 0.045852 | 0.161026 | 0.108079 | 0 | 0 | 0 | 0 | 0 | 0.010965 | 0.217839 | 2,915 | 122 | 72 | 23.893443 | 0.792544 | 0.017839 | 0 | 0.102041 | 0 | 0 | 0.501922 | 0.396365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081633 | 0.010204 | 0 | 0.010204 | 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 |
8d0d1deb21adb6e5f10d2c2fc89468f8264b3969 | 1,229 | py | Python | pyOCD/target/target_lpc1768.py | karlp/pyOCD | cfb76afdc8f50eeaf2c6a841ed9de1f5070e8916 | [
"Apache-2.0"
] | 1 | 2016-01-05T04:08:57.000Z | 2016-01-05T04:08:57.000Z | pyOCD/target/target_lpc1768.py | karlp/pyOCD | cfb76afdc8f50eeaf2c6a841ed9de1f5070e8916 | [
"Apache-2.0"
] | null | null | null | pyOCD/target/target_lpc1768.py | karlp/pyOCD | cfb76afdc8f50eeaf2c6a841ed9de1f5070e8916 | [
"Apache-2.0"
] | null | null | null | """
mbed CMSIS-DAP debugger
Copyright (c) 2006-2013 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | 30.725 | 73 | 0.689992 | 164 | 1,229 | 5.097561 | 0.597561 | 0.07177 | 0.0311 | 0.038278 | 0.236842 | 0.236842 | 0.236842 | 0.236842 | 0.236842 | 0.236842 | 0 | 0.061489 | 0.245728 | 1,229 | 40 | 74 | 30.725 | 0.840345 | 0.581774 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052738 | 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 |
8d0d5fc54b12bc4a2778b7b411b9ddf33d8564a9 | 16,444 | py | Python | CORNISH_B-CNN_Trainer_And_Optimiser.py | s-neilson/CORNISH-CNN-classifier | 983754c582276a80f0bc28ccf5e8124840958d03 | [
"MIT"
] | 2 | 2019-06-23T06:58:51.000Z | 2019-11-21T01:36:48.000Z | CORNISH_B-CNN_Trainer_And_Optimiser.py | s-neilson/CORNISH-CNN-classifier | 983754c582276a80f0bc28ccf5e8124840958d03 | [
"MIT"
] | null | null | null | CORNISH_B-CNN_Trainer_And_Optimiser.py | s-neilson/CORNISH-CNN-classifier | 983754c582276a80f0bc28ccf5e8124840958d03 | [
"MIT"
] | null | null | null | import os
import warnings
warnings.simplefilter("ignore")
import csv
import numpy
import hyperopt
from hyperopt import Trials,tpe,hp,fmin
from keras.utils import to_categorical
import pickle
from loadConfiguration import Configuration
from objectCreation import createImagedObjects
from trainBCNN import run... | 62.287879 | 220 | 0.769582 | 1,157 | 16,444 | 10.932584 | 0.268799 | 0.056447 | 0.005692 | 0.006087 | 0.059135 | 0.036999 | 0.02435 | 0.021346 | 0.021346 | 0.021346 | 0 | 0.002209 | 0.146558 | 16,444 | 264 | 221 | 62.287879 | 0.899102 | 0.050109 | 0 | 0.067039 | 0 | 0 | 0.208801 | 0.084485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005587 | false | 0 | 0.072626 | 0 | 0.078212 | 0.296089 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
23a6372b0029d78dd5def2146734771fbbe2bd48 | 1,632 | py | Python | server.py | hugoantunes/EchoServer | da4a6b8d8f4362e6770f767c8e75e80cac55d417 | [
"MIT"
] | null | null | null | server.py | hugoantunes/EchoServer | da4a6b8d8f4362e6770f767c8e75e80cac55d417 | [
"MIT"
] | null | null | null | server.py | hugoantunes/EchoServer | da4a6b8d8f4362e6770f767c8e75e80cac55d417 | [
"MIT"
] | null | null | null | import Queue
import select
import socket
from conf import ADDRESS, BACKLOG, SIZE
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setblocking(0)
print 'starting up on %s port %s' % ADDRESS
server.bind(ADDRESS)
server.listen(BACKLOG)
inputs = [server]
outputs = []
message_queues = {}
while inputs:
... | 27.661017 | 76 | 0.578431 | 191 | 1,632 | 4.874346 | 0.361257 | 0.083781 | 0.06015 | 0.034372 | 0.064447 | 0.064447 | 0.064447 | 0.064447 | 0 | 0 | 0 | 0.001826 | 0.329044 | 1,632 | 58 | 77 | 28.137931 | 0.848402 | 0 | 0 | 0.208333 | 0 | 0 | 0.102328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.145833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
23a85b9835619dae1db6fad9d342a22f09ccf61a | 272 | py | Python | solved_bronze/num10952.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | solved_bronze/num10952.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | solved_bronze/num10952.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | # a = 1
# b = 1
# while (not ((a==0) and (b==0))):
# a, b = map(int, input().split())
# print(a+b)
while True:
a, b = map(int, input().split())
if a == 0 and b == 0:
break
print(a+b) | 17 | 42 | 0.338235 | 38 | 272 | 2.421053 | 0.394737 | 0.086957 | 0.108696 | 0.130435 | 0.543478 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.470588 | 272 | 16 | 43 | 17 | 0.597222 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23a8eaed478e43d59a2f6ba4f9c799fc00e83544 | 267 | py | Python | 1526_minIncrementsToReachTargetArray.py | stuti-rastogi/leetcode-python-solutions | 73593fe642a06a83cde974ba5e6de3a7b396ec84 | [
"MIT"
] | 4 | 2018-07-24T08:36:42.000Z | 2019-08-25T17:48:47.000Z | 1526_minIncrementsToReachTargetArray.py | stuti-rastogi/leetcodesolutions | 73593fe642a06a83cde974ba5e6de3a7b396ec84 | [
"MIT"
] | null | null | null | 1526_minIncrementsToReachTargetArray.py | stuti-rastogi/leetcodesolutions | 73593fe642a06a83cde974ba5e6de3a7b396ec84 | [
"MIT"
] | null | null | null | class Solution:
def minNumberOperations(self, target: List[int]) -> int:
num_ops = target[0]
for i in range(1, len(target)):
diff = target[i]-target[i-1]
if diff > 0:
num_ops += diff
return num_ops
| 26.7 | 60 | 0.524345 | 35 | 267 | 3.914286 | 0.571429 | 0.131387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.363296 | 267 | 9 | 61 | 29.666667 | 0.782353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.