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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7cbe3198f6071ec0d541441f81f18f624a937b6f | 5,044 | py | Python | t2k/bin/cmttags.py | tianluyuan/pyutils | 2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50 | [
"MIT"
] | 1 | 2019-02-22T10:57:13.000Z | 2019-02-22T10:57:13.000Z | t2k/bin/cmttags.py | tianluyuan/pyutils | 2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50 | [
"MIT"
] | null | null | null | t2k/bin/cmttags.py | tianluyuan/pyutils | 2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
A script to create tags for CMT managed packages.
Call from within cmt/ directory
"""
import subprocess
import sys
import os
from optparse import OptionParser
__author__ = 'Tianlu Yuan'
__email__ = 'tianlu.yuan [at] colorado.edu'
# Ignore large external packages for now
IGNORES = ['CMT', ... | 28.822857 | 80 | 0.585052 | 639 | 5,044 | 4.482003 | 0.353678 | 0.039106 | 0.024441 | 0.030726 | 0.076466 | 0.050628 | 0.039804 | 0.039804 | 0 | 0 | 0 | 0.003606 | 0.285289 | 5,044 | 174 | 81 | 28.988506 | 0.790846 | 0.126289 | 0 | 0.086022 | 0 | 0 | 0.136083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043011 | null | null | 0.021505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7cbea5a7d278dcb466c16a1d3e035b7e14f3c77c | 63,630 | py | Python | salt/daemons/masterapi.py | rickh563/salt | 02822d6466c47d0daafd6e98b4e767a396b0ed48 | [
"Apache-2.0"
] | null | null | null | salt/daemons/masterapi.py | rickh563/salt | 02822d6466c47d0daafd6e98b4e767a396b0ed48 | [
"Apache-2.0"
] | null | null | null | salt/daemons/masterapi.py | rickh563/salt | 02822d6466c47d0daafd6e98b4e767a396b0ed48 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
This module contains all of the routines needed to set up a master server, this
involves preparing the three listeners and the workers needed by the master.
'''
from __future__ import absolute_import
# Import python libs
import fnmatch
import logging
import os
import re
import time
import s... | 39.253547 | 173 | 0.49604 | 6,893 | 63,630 | 4.476861 | 0.098796 | 0.036553 | 0.027577 | 0.032373 | 0.547879 | 0.500891 | 0.476717 | 0.438413 | 0.407499 | 0.389643 | 0 | 0.002932 | 0.394232 | 63,630 | 1,620 | 174 | 39.277778 | 0.797665 | 0.055603 | 0 | 0.510989 | 0 | 0 | 0.154149 | 0.010159 | 0 | 0 | 0 | 0.000617 | 0 | 0 | null | null | 0.002355 | 0.027473 | 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 |
7cc20f1f6a53dbfc79dbca785199d6d05868daf1 | 25,440 | py | Python | tests/prep_post/test.py | Aslic/rmats_turbo_4.1.0 | c651509a5d32799315054fa37a2210fab2aae5e5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/prep_post/test.py | Aslic/rmats_turbo_4.1.0 | c651509a5d32799315054fa37a2210fab2aae5e5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/prep_post/test.py | Aslic/rmats_turbo_4.1.0 | c651509a5d32799315054fa37a2210fab2aae5e5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import glob
import os.path
import subprocess
import sys
import unittest
import tests.bam
import tests.base_test
import tests.gtf
import tests.output_parser as output_parser
import tests.test_config
import tests.util
class Test(tests.base_test.BaseTest):
def setUp(self):
super().setUp()
self._tes... | 39.75 | 83 | 0.553263 | 3,131 | 25,440 | 3.984031 | 0.067071 | 0.020683 | 0.025573 | 0.025814 | 0.797819 | 0.735289 | 0.662819 | 0.618086 | 0.568462 | 0.531666 | 0 | 0.031469 | 0.347956 | 25,440 | 639 | 84 | 39.812207 | 0.720521 | 0.006879 | 0 | 0.527531 | 0 | 0 | 0.070521 | 0 | 0 | 0 | 0 | 0 | 0.104796 | 1 | 0.046181 | false | 0.017762 | 0.019538 | 0.001776 | 0.078153 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cc57c915f6cace046e0bbe739957206038f009f | 1,527 | py | Python | nltk/align/util.py | kruskod/nltk | dba7b5431b1d57a75d50e048961c1a203b98c3da | [
"Apache-2.0"
] | 1 | 2015-11-25T00:47:58.000Z | 2015-11-25T00:47:58.000Z | nltk/align/util.py | kruskod/nltk | dba7b5431b1d57a75d50e048961c1a203b98c3da | [
"Apache-2.0"
] | null | null | null | nltk/align/util.py | kruskod/nltk | dba7b5431b1d57a75d50e048961c1a203b98c3da | [
"Apache-2.0"
] | null | null | null | # Natural Language Toolkit: Aligner Utilities
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Anna Garbar
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
from nltk.align.api import Alignment
def pharaohtext2tuples(pharaoh_text):
"""
Converts pharaoh text format into an Alignment ob... | 33.933333 | 81 | 0.642436 | 218 | 1,527 | 4.444954 | 0.348624 | 0.113519 | 0.070175 | 0.016512 | 0.335397 | 0.321981 | 0.321981 | 0.260062 | 0.260062 | 0.163055 | 0 | 0.058219 | 0.235102 | 1,527 | 44 | 82 | 34.704545 | 0.771404 | 0.693517 | 0 | 0 | 0 | 0 | 0.008357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cd4c163b81a2a9f7a9f4fb51454b97b7933bffd | 1,565 | py | Python | dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | resource ='human ad machime'
class DimProcess:
def __init__(
self,
*kwargs,
process_key: int,
module: str,
type: str,
step: str,
sub_step: str,
resource: str = 'human',
):
def step(self):
return ['qc', 'auto_qc', 'apr_qc', 'ke... | 27.946429 | 62 | 0.548882 | 173 | 1,565 | 4.572254 | 0.271676 | 0.136536 | 0.030341 | 0.072061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001988 | 0.357189 | 1,565 | 56 | 62 | 27.946429 | 0.784294 | 0 | 0 | 0.269231 | 0 | 0 | 0.104725 | 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 |
7cd6ff8a4443655a42df05eccf62b0e804763fb0 | 2,898 | py | Python | service.py | Tigge/script.filmtipset-grade | a5b438dc478d6ef40f611585e9cd196c2ff49cf6 | [
"BSD-2-Clause"
] | 1 | 2015-02-19T08:45:57.000Z | 2015-02-19T08:45:57.000Z | service.py | Tigge/script.filmtipset-grade | a5b438dc478d6ef40f611585e9cd196c2ff49cf6 | [
"BSD-2-Clause"
] | 1 | 2015-02-01T19:28:17.000Z | 2015-03-18T22:27:14.000Z | service.py | Tigge/script.filmtipset-grade | a5b438dc478d6ef40f611585e9cd196c2ff49cf6 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2013, Gustav Tiger
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and th... | 34.094118 | 82 | 0.670807 | 352 | 2,898 | 5.485795 | 0.463068 | 0.024858 | 0.020197 | 0.023822 | 0.095287 | 0.07043 | 0.07043 | 0.07043 | 0.07043 | 0.07043 | 0 | 0.00866 | 0.242926 | 2,898 | 84 | 83 | 34.5 | 0.871468 | 0.446515 | 0 | 0.046512 | 0 | 0 | 0.080482 | 0.028517 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7cda6328ac58b61f05923cca8623aa6b42f94561 | 3,591 | py | Python | lib/reindex/reporting.py | scality/utapi | 29475f1b9aa25cf3c883262bfb6f4573f846a5b7 | [
"Apache-2.0"
] | 13 | 2016-10-07T20:25:11.000Z | 2022-02-23T06:33:59.000Z | lib/reindex/reporting.py | scality/utapi | 29475f1b9aa25cf3c883262bfb6f4573f846a5b7 | [
"Apache-2.0"
] | 427 | 2016-08-17T18:03:32.000Z | 2022-03-31T10:46:12.000Z | lib/reindex/reporting.py | scality/utapi | 29475f1b9aa25cf3c883262bfb6f4573f846a5b7 | [
"Apache-2.0"
] | 5 | 2017-04-25T21:13:03.000Z | 2018-01-23T00:21:06.000Z | import requests
import redis
import json
import ast
import sys
import time
import urllib
import re
import sys
from threading import Thread
from concurrent.futures import ThreadPoolExecutor
import argparse
def get_options():
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--sentinel-ip", default=... | 35.554455 | 114 | 0.634085 | 452 | 3,591 | 4.889381 | 0.292035 | 0.032579 | 0.038462 | 0.01086 | 0.184163 | 0.175113 | 0.158371 | 0.133937 | 0.133937 | 0.133937 | 0 | 0.021708 | 0.217488 | 3,591 | 101 | 115 | 35.554455 | 0.764769 | 0 | 0 | 0.109756 | 0 | 0 | 0.190145 | 0.076837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.073171 | 0.146341 | 0 | 0.292683 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cdd5ddf7b7d2568fd208a60927251ae8e3ac857 | 10,399 | py | Python | retargeting/models/Kinematics.py | yujiatay/deep-motion-editing | 0a6fc5fd20059c5074f68a452cd49cf6ede36ea8 | [
"BSD-2-Clause"
] | 1 | 2021-07-06T14:34:12.000Z | 2021-07-06T14:34:12.000Z | retargeting/models/Kinematics.py | bmd080/deep-motion-editing | 19604abdc0ead66f8c82d9211b8c5862c6a68089 | [
"BSD-2-Clause"
] | null | null | null | retargeting/models/Kinematics.py | bmd080/deep-motion-editing | 19604abdc0ead66f8c82d9211b8c5862c6a68089 | [
"BSD-2-Clause"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
import math
class ForwardKinematics:
def __init__(self, args, edges):
self.topology = [-1] * (len(edges) + 1)
self.rotation_map = []
for i, edge in enumerate(edges):
self.topology[edge[1]] = edge[0]
self.rotation... | 36.233449 | 131 | 0.521877 | 1,272 | 10,399 | 4.203616 | 0.121855 | 0.005985 | 0.020946 | 0.026931 | 0.715728 | 0.695156 | 0.683935 | 0.662615 | 0.634187 | 0.625771 | 0 | 0.036943 | 0.315415 | 10,399 | 286 | 132 | 36.36014 | 0.714145 | 0.026637 | 0 | 0.671171 | 0 | 0 | 0.009929 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 1 | 0.067568 | false | 0 | 0.018018 | 0.004505 | 0.153153 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ce0fee58832e03db2dedb448c80880f25c203aa | 800 | py | Python | mppi/Utilities/AttributeDict.py | marcodalessandro76/MPPI | ad60b73270b1f376ac501d47285146f1c3af457a | [
"MIT"
] | 1 | 2019-05-04T09:26:36.000Z | 2019-05-04T09:26:36.000Z | mppi/Utilities/AttributeDict.py | marcodalessandro76/MPPI | ad60b73270b1f376ac501d47285146f1c3af457a | [
"MIT"
] | null | null | null | mppi/Utilities/AttributeDict.py | marcodalessandro76/MPPI | ad60b73270b1f376ac501d47285146f1c3af457a | [
"MIT"
] | null | null | null | class AttributeDict(object):
"""
A class to convert a nested Dictionary into an object with key-values
accessibly using attribute notation (AttributeDict.attribute) instead of
key notation (Dict["key"]). This class recursively sets Dicts to objects,
allowing you to recurse down nested dicts (like: A... | 34.782609 | 77 | 0.62875 | 94 | 800 | 5.159574 | 0.531915 | 0.043299 | 0.045361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275 | 800 | 22 | 78 | 36.363636 | 0.836207 | 0.4125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ce16cb7ee2c1e090289468a70fd88401aba8ddc | 339 | py | Python | examples/xml-rpc/echoserver.py | keobox/yap101 | 26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9 | [
"MIT"
] | null | null | null | examples/xml-rpc/echoserver.py | keobox/yap101 | 26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9 | [
"MIT"
] | null | null | null | examples/xml-rpc/echoserver.py | keobox/yap101 | 26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9 | [
"MIT"
] | null | null | null | import SimpleXMLRPCServer as xmls
def echo(msg):
print 'Got', msg
return msg
class echoserver(xmls.SimpleXMLRPCServer):
allow_reuse_address = True
server = echoserver(('127.0.0.1', 8001))
server.register_function(echo, 'echo')
print 'Listening on port 8001'
try:
server.serve_forever()
except:
ser... | 19.941176 | 42 | 0.728614 | 45 | 339 | 5.377778 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049123 | 0.159292 | 339 | 16 | 43 | 21.1875 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.112094 | 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 |
7ce32e38118a236e7f22400e28b670e7f2079e82 | 869 | py | Python | practice/2008/qualification/C-Fly_swatter/c.py | victorWeiFreelancer/CodeJam | edb8f921860a35985823cb3dbd3ebec8a8f3c12f | [
"MIT"
] | null | null | null | practice/2008/qualification/C-Fly_swatter/c.py | victorWeiFreelancer/CodeJam | edb8f921860a35985823cb3dbd3ebec8a8f3c12f | [
"MIT"
] | null | null | null | practice/2008/qualification/C-Fly_swatter/c.py | victorWeiFreelancer/CodeJam | edb8f921860a35985823cb3dbd3ebec8a8f3c12f | [
"MIT"
] | null | null | null | import sys
sys.dont_write_bytecode = True
def hitP(f, R, t, r, g):
if f>=g/2 :
return 0.0
missArea = 0.0
gridL = g+2*r
nGrids = (R - t) // gridL
missGridSideLength = g - 2*f
print("gridL %.12f; nGrids %d" %(gridL, nGrids) )
indentSquareLength = nGrids*gridL
remain = (R - t) - in... | 25.558824 | 69 | 0.537399 | 127 | 869 | 3.598425 | 0.393701 | 0.030635 | 0.019694 | 0.026258 | 0.050328 | 0.039387 | 0 | 0 | 0 | 0 | 0 | 0.040519 | 0.289988 | 869 | 34 | 70 | 25.558824 | 0.700162 | 0 | 0 | 0 | 0 | 0 | 0.087356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ce3c5ddd55aea55c48d0f942c54f7645b346e45 | 24,690 | py | Python | tests/test_date.py | andy-z/ged4py | 2270bd8366174dcc98424cc6671bdaecf770fda0 | [
"MIT"
] | 10 | 2017-07-25T22:39:34.000Z | 2022-03-01T04:40:38.000Z | tests/test_date.py | andy-z/ged4py | 2270bd8366174dcc98424cc6671bdaecf770fda0 | [
"MIT"
] | 20 | 2018-03-25T10:25:40.000Z | 2021-05-02T20:38:48.000Z | tests/test_date.py | andy-z/ged4py | 2270bd8366174dcc98424cc6671bdaecf770fda0 | [
"MIT"
] | 6 | 2018-04-29T12:45:34.000Z | 2021-09-14T14:30:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `ged4py.date` module."""
import unittest
from ged4py.calendar import (
CalendarType, CalendarDate, FrenchDate, GregorianDate, HebrewDate, JulianDate,
CalendarDateVisitor
)
from ged4py.date import (
DateValue, DateValueAbout, DateValueAfter, DateV... | 41.356784 | 108 | 0.637708 | 2,825 | 24,690 | 5.540177 | 0.095221 | 0.147594 | 0.127468 | 0.029519 | 0.685515 | 0.588844 | 0.440419 | 0.387196 | 0.343684 | 0.308223 | 0 | 0.067049 | 0.22981 | 24,690 | 596 | 109 | 41.426175 | 0.755995 | 0.047833 | 0 | 0.314943 | 0 | 0 | 0.096256 | 0 | 0 | 0 | 0 | 0 | 0.565517 | 1 | 0.075862 | false | 0 | 0.006897 | 0 | 0.124138 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ce4ea0979a0d8bcdfade749e59f8ad94da264f2 | 3,487 | py | Python | var/spack/repos/builtin/packages/visionary-dev-tools/package.py | electronicvisions/spack | d6121eb35b4948f7d8aef7ec7a305a5123a7439e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-10T13:47:48.000Z | 2019-04-17T13:05:17.000Z | var/spack/repos/builtin/packages/visionary-dev-tools/package.py | einc-eu/spack | 15468b92ed21d970c0111ae19144e85e66746433 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-05-28T06:39:59.000Z | 2022-03-30T15:12:35.000Z | var/spack/repos/builtin/packages/visionary-dev-tools/package.py | einc-eu/spack | 15468b92ed21d970c0111ae19144e85e66746433 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2018-04-06T09:04:11.000Z | 2020-01-24T12:52:12.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os.path as osp
class VisionaryDevTools(Package):
"""Developer convenience packages common to all visionary
... | 33.854369 | 124 | 0.677086 | 474 | 3,487 | 4.805907 | 0.478903 | 0.288411 | 0.125549 | 0.014925 | 0.04741 | 0.04741 | 0.04741 | 0.04741 | 0.04741 | 0.04741 | 0 | 0.024756 | 0.177516 | 3,487 | 102 | 125 | 34.186275 | 0.769526 | 0.217666 | 0 | 0 | 0 | 0 | 0.34507 | 0.022239 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.012195 | false | 0 | 0.012195 | 0 | 0.060976 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ceab378038506dba92e4b8d3ecd8a07fc74f4a2 | 1,469 | py | Python | tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | 1 | 2020-12-23T12:34:00.000Z | 2020-12-23T12:34:00.000Z | tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | import pytest
from jina.enums import RemoteAccessType
from jina.flow import Flow
from jina.parser import set_pea_parser, set_pod_parser
from jina.peapods.pods import BasePod
from jina.peapods.runtimes.remote.ssh import SSHRuntime
from jina.proto import jina_pb2
@pytest.mark.skip('works locally, but until I findout h... | 32.644444 | 96 | 0.701157 | 235 | 1,469 | 4.27234 | 0.297872 | 0.047809 | 0.083665 | 0.043825 | 0.681275 | 0.681275 | 0.666335 | 0.666335 | 0.610558 | 0.610558 | 0 | 0.042037 | 0.157931 | 1,469 | 44 | 97 | 33.386364 | 0.769604 | 0 | 0 | 0.451613 | 0 | 0 | 0.21307 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.129032 | false | 0.032258 | 0.225806 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cec971c07d5ed98dc62f84b80e44472db92d7d3 | 531 | py | Python | Uber/validExpression.py | Nithanaroy/random_scripts | 908e539e2b7050a09e03b4fc0d2621b23733d65a | [
"MIT"
] | null | null | null | Uber/validExpression.py | Nithanaroy/random_scripts | 908e539e2b7050a09e03b4fc0d2621b23733d65a | [
"MIT"
] | null | null | null | Uber/validExpression.py | Nithanaroy/random_scripts | 908e539e2b7050a09e03b4fc0d2621b23733d65a | [
"MIT"
] | null | null | null | def main(expr):
openingParams = '({['
closingParams = ')}]'
stack = []
for c in expr:
if c in openingParams:
stack.append(c)
elif c in closingParams:
topOfStack = stack.pop()
openingIndex = openingParams.find(topOfStack)
closingIndex = clos... | 25.285714 | 57 | 0.551789 | 53 | 531 | 5.377358 | 0.509434 | 0.031579 | 0.091228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002874 | 0.344633 | 531 | 20 | 58 | 26.55 | 0.816092 | 0 | 0 | 0.111111 | 0 | 0 | 0.039548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
7cf38c52d649f28843e5da3730409c34a52dc82f | 8,026 | py | Python | platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | 2 | 2020-07-25T05:03:06.000Z | 2020-11-04T04:55:57.000Z | # Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.362903 | 75 | 0.705457 | 825 | 8,026 | 6.66303 | 0.193939 | 0.068219 | 0.040022 | 0.033473 | 0.698563 | 0.681281 | 0.652538 | 0.652538 | 0.64235 | 0.629252 | 0 | 0.006286 | 0.187391 | 8,026 | 247 | 76 | 32.493927 | 0.836553 | 0.076501 | 0 | 0.672316 | 0 | 0 | 0.128888 | 0.023803 | 0 | 0 | 0 | 0 | 0.175141 | 1 | 0.050847 | false | 0 | 0.045198 | 0 | 0.101695 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cf46d5f8307606187101597e795384399b48446 | 804 | py | Python | vote/migrations/0005_auto_20210204_1900.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | 2 | 2021-02-24T21:57:50.000Z | 2021-03-15T08:44:09.000Z | vote/migrations/0005_auto_20210204_1900.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | null | null | null | vote/migrations/0005_auto_20210204_1900.py | jnegrete2005/JuradoFMS | 25848037e51de1781c419155615d0fb41edc07ec | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-02-05 00:00
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vote', '0004_auto_20210131_1621'),
]
operations = [
migrations.AlterField(
model_name='com... | 32.16 | 163 | 0.655473 | 88 | 804 | 5.886364 | 0.522727 | 0.07529 | 0.121622 | 0.156371 | 0.633205 | 0.633205 | 0.467181 | 0.467181 | 0.467181 | 0.467181 | 0 | 0.059295 | 0.223881 | 804 | 24 | 164 | 33.5 | 0.770833 | 0.05597 | 0 | 0.333333 | 1 | 0 | 0.093791 | 0.030383 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cfa416e684eef42a41f05552ac51704b017a9e1 | 1,471 | py | Python | arguments_setting.py | Projectoy/ml_framework | f3d37d632a1aec314eb186a3da6d174a5dc4beee | [
"Apache-2.0"
] | null | null | null | arguments_setting.py | Projectoy/ml_framework | f3d37d632a1aec314eb186a3da6d174a5dc4beee | [
"Apache-2.0"
] | null | null | null | arguments_setting.py | Projectoy/ml_framework | f3d37d632a1aec314eb186a3da6d174a5dc4beee | [
"Apache-2.0"
] | null | null | null | import argparse, os
class ArgumentManager:
def __init__(self, model_list):
self.model_list = model_list
self.args = self.get_input_arguments()
self.validate_arguments()
def get_input_arguments(self):
parser = argparse.ArgumentParser(description='Process some integers.')
... | 36.775 | 119 | 0.680489 | 185 | 1,471 | 5.221622 | 0.302703 | 0.057971 | 0.040373 | 0.055901 | 0.045549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2155 | 1,471 | 40 | 120 | 36.775 | 0.837088 | 0 | 0 | 0 | 0 | 0 | 0.186821 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.290323 | false | 0 | 0.032258 | 0.096774 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cfa745e3890fcda9ffd072f599dc7be286f99a5 | 11,039 | py | Python | fileHandler.py | Omer-Sella/ldpc | 955c0bc32236e171365cbbb88f00574302771610 | [
"MIT"
] | null | null | null | fileHandler.py | Omer-Sella/ldpc | 955c0bc32236e171365cbbb88f00574302771610 | [
"MIT"
] | null | null | null | fileHandler.py | Omer-Sella/ldpc | 955c0bc32236e171365cbbb88f00574302771610 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 28 12:10:11 2019
@author: Omer
"""
## File handler
## This file was initially intended purely to generate the matrices for the near earth code found in: https://public.ccsds.org/Pubs/131x1o2e2s.pdf
## The values from the above pdf were copied manually to a txt file, and ... | 38.197232 | 172 | 0.621343 | 1,254 | 11,039 | 5.37799 | 0.250399 | 0.029656 | 0.057977 | 0.071619 | 0.213078 | 0.197805 | 0.126928 | 0.116696 | 0.105724 | 0.084371 | 0 | 0.031883 | 0.266963 | 11,039 | 288 | 173 | 38.329861 | 0.801532 | 0.151191 | 0 | 0.10101 | 1 | 0 | 0.039043 | 0.012764 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.050505 | false | 0.010101 | 0.040404 | 0 | 0.141414 | 0.015152 | 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 |
7cfaab0b77af0b6c7c138ff09a0a82244c391f57 | 12,133 | py | Python | stage/configuration/test_amazon_s3_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | null | null | null | stage/configuration/test_amazon_s3_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | null | null | null | stage/configuration/test_amazon_s3_origin.py | Sentienz/datacollector-tests | ca27988351dc3366488098b5db6c85a8be2f7b85 | [
"Apache-2.0"
] | 1 | 2019-10-29T08:46:11.000Z | 2019-10-29T08:46:11.000Z | import logging
import pytest
from streamsets.testframework.markers import aws, sdc_min_version
from streamsets.testframework.utils import get_random_string
logger = logging.getLogger(__name__)
S3_SANDBOX_PREFIX = 'sandbox'
LOG_FIELD_MAPPING = [{'fieldPath': '/date', 'group': 1},
{'fieldPath': '/... | 46.84556 | 334 | 0.656556 | 1,539 | 12,133 | 4.925926 | 0.223522 | 0.050125 | 0.040628 | 0.049334 | 0.502308 | 0.45614 | 0.441367 | 0.397705 | 0.351801 | 0.311305 | 0 | 0.050808 | 0.193769 | 12,133 | 258 | 335 | 47.027132 | 0.724187 | 0.031979 | 0 | 0.26178 | 0 | 0.04712 | 0.359911 | 0.071111 | 0 | 0 | 0 | 0 | 0.005236 | 1 | 0.136126 | false | 0.120419 | 0.020942 | 0 | 0.167539 | 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 |
7cfcc11fbbb1d31705e442bed5fe7d622b04a2bd | 4,472 | py | Python | benchmark/AMS/HIGGSTES/TP.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | 2 | 2019-03-20T09:05:02.000Z | 2019-03-20T15:23:44.000Z | benchmark/AMS/HIGGSTES/TP.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | benchmark/AMS/HIGGSTES/TP.py | victor-estrade/SystGradDescent | 822e7094290301ec47a99433381a8d6406798aff | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_literals
# Command line :
# python -m benchmark.VAR.GG.TP
import os
import logging
from config import SEED
from config import _ERROR
from co... | 30.841379 | 97 | 0.687165 | 590 | 4,472 | 4.981356 | 0.283051 | 0.039809 | 0.04049 | 0.037428 | 0.059204 | 0.018374 | 0.018374 | 0 | 0 | 0 | 0 | 0.002498 | 0.19432 | 4,472 | 144 | 98 | 31.055556 | 0.812934 | 0.070662 | 0 | 0.06 | 0 | 0 | 0.046366 | 0.007486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07 | false | 0 | 0.31 | 0.01 | 0.43 | 0.07 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cffa5673d098c5404a18e4042db11fef2170e1f | 6,540 | py | Python | common/OpTestASM.py | kyle-ibm/op-test | df8dbf8cbff1390668c22632052adb46ebf277c1 | [
"Apache-2.0"
] | null | null | null | common/OpTestASM.py | kyle-ibm/op-test | df8dbf8cbff1390668c22632052adb46ebf277c1 | [
"Apache-2.0"
] | null | null | null | common/OpTestASM.py | kyle-ibm/op-test | df8dbf8cbff1390668c22632052adb46ebf277c1 | [
"Apache-2.0"
] | 1 | 2021-05-25T11:33:18.000Z | 2021-05-25T11:33:18.000Z | #!/usr/bin/env python3
# encoding=utf8
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: op-test-framework/common/OpTestASM.py $
#
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2017
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache ... | 31.902439 | 90 | 0.555657 | 762 | 6,540 | 4.711286 | 0.374016 | 0.032591 | 0.027298 | 0.037047 | 0.193593 | 0.157382 | 0.124791 | 0.106964 | 0.083008 | 0.083008 | 0 | 0.016988 | 0.324924 | 6,540 | 204 | 91 | 32.058824 | 0.796149 | 0.193119 | 0 | 0.284722 | 1 | 0 | 0.130509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0.034722 | 0.097222 | 0 | 0.263889 | 0.013889 | 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 |
6b00216e5015b612b495eca186f46004bdc92b04 | 1,824 | py | Python | test/test_storage.py | jrabasco/PyPasser | 3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6 | [
"MIT"
] | null | null | null | test/test_storage.py | jrabasco/PyPasser | 3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6 | [
"MIT"
] | null | null | null | test/test_storage.py | jrabasco/PyPasser | 3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.4
__author__ = "Jeremy Rabasco"
import sys
import os
sys.path.append("..")
import unittest
from modules import storage
from modules.service import Service
from modules.database import Database
class TestStorage(unittest.TestCase):
def setUp(self):
self.service = Service()
self... | 35.076923 | 104 | 0.668311 | 215 | 1,824 | 5.553488 | 0.246512 | 0.100503 | 0.050251 | 0.065327 | 0.204355 | 0.058626 | 0.058626 | 0 | 0 | 0 | 0 | 0.008844 | 0.194079 | 1,824 | 52 | 105 | 35.076923 | 0.803401 | 0.010417 | 0 | 0.04878 | 0 | 0 | 0.077008 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 1 | 0.097561 | false | 0.073171 | 0.146341 | 0 | 0.268293 | 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 |
6b01058178b8f414abe46085a609e4696e9cb097 | 1,096 | py | Python | setup.py | ripiuk/fant_sizer | dcc0908c79ed76af3f4189ebd2a75cecf7a89e34 | [
"MIT"
] | null | null | null | setup.py | ripiuk/fant_sizer | dcc0908c79ed76af3f4189ebd2a75cecf7a89e34 | [
"MIT"
] | null | null | null | setup.py | ripiuk/fant_sizer | dcc0908c79ed76af3f4189ebd2a75cecf7a89e34 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from os.path import join, dirname
setup(
name="fant_sizer",
version="0.7",
author="Rypiuk Oleksandr",
author_email="ripiuk96@gmail.com",
description="fant_sizer command-line file-information",
url="https://github.com/ripiuk/fan... | 36.533333 | 76 | 0.581204 | 104 | 1,096 | 5.961538 | 0.673077 | 0.087097 | 0.041935 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.297445 | 1,096 | 29 | 77 | 37.793103 | 0.796104 | 0 | 0 | 0 | 0 | 0 | 0.457117 | 0.024635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b04db30f6d56200725a9e9d3be9cbc67d645d65 | 2,074 | py | Python | tests/python/unittest/test_tir_pass_inject_double_buffer.py | 0xreza/tvm | f08d5d78ee000b2c113ac451f8d73817960eafd5 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | null | null | null | tests/python/unittest/test_tir_pass_inject_double_buffer.py | 0xreza/tvm | f08d5d78ee000b2c113ac451f8d73817960eafd5 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | 1 | 2020-07-29T00:21:19.000Z | 2020-07-29T00:21:19.000Z | tests/python/unittest/test_tir_pass_inject_double_buffer.py | 0xreza/tvm | f08d5d78ee000b2c113ac451f8d73817960eafd5 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0"
] | 1 | 2021-07-22T17:33:16.000Z | 2021-07-22T17:33:16.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 36.385965 | 74 | 0.655738 | 318 | 2,074 | 4.18239 | 0.430818 | 0.03609 | 0.02406 | 0.031579 | 0.065414 | 0.041353 | 0.028571 | 0.028571 | 0 | 0 | 0 | 0.019171 | 0.220347 | 2,074 | 56 | 75 | 37.035714 | 0.80334 | 0.362584 | 0 | 0.055556 | 0 | 0 | 0.085824 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.055556 | false | 0.083333 | 0.055556 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6b052c373e2583931e7668595c831adfd5fed432 | 491 | py | Python | read_sensor.py | shivupoojar/openfaas-pi | 5eda501368a1ac321954cb2aaf58be617977bd58 | [
"Apache-2.0"
] | 1 | 2020-11-24T03:31:26.000Z | 2020-11-24T03:31:26.000Z | read_sensor.py | shivupoojar/openfaas-pi | 5eda501368a1ac321954cb2aaf58be617977bd58 | [
"Apache-2.0"
] | null | null | null | read_sensor.py | shivupoojar/openfaas-pi | 5eda501368a1ac321954cb2aaf58be617977bd58 | [
"Apache-2.0"
] | null | null | null | import requests
from sense_hat import SenseHat
import smbus
import time
while True:
try:
pressure=0
sense = SenseHat()
pressure = sense.get_pressure()
data = {'pressure':pressure}
print(pressure)
#send http request to sense serverless function with pressure
#data
r=req... | 21.347826 | 69 | 0.672098 | 63 | 491 | 5.190476 | 0.571429 | 0.079511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028947 | 0.226069 | 491 | 22 | 70 | 22.318182 | 0.831579 | 0.130346 | 0 | 0.117647 | 0 | 0 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.235294 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b0a2521796cb92f0d1e011306fd05dc969275cf | 355 | py | Python | origamibot/core/teletypes/poll_option.py | cmd410/OrigamiBot | 03667d069f0c0b088671936ce36bf8f85a029b93 | [
"MIT"
] | 4 | 2020-06-30T10:32:54.000Z | 2020-11-01T23:07:58.000Z | origamibot/core/teletypes/poll_option.py | cmd410/OrigamiBot | 03667d069f0c0b088671936ce36bf8f85a029b93 | [
"MIT"
] | 6 | 2020-06-26T23:14:59.000Z | 2020-07-26T11:48:07.000Z | origamibot/core/teletypes/poll_option.py | cmd410/OrigamiBot | 03667d069f0c0b088671936ce36bf8f85a029b93 | [
"MIT"
] | 1 | 2020-07-28T08:52:51.000Z | 2020-07-28T08:52:51.000Z | from .base import TelegramStructure, Field
class PollOption(TelegramStructure):
text = Field()
voter_count = Field()
def __init__(self,
text: str,
voter_count: int
):
self.text = \
Field(text, [str])
self.voter_count = \
... | 19.722222 | 42 | 0.515493 | 33 | 355 | 5.30303 | 0.454545 | 0.228571 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.388732 | 355 | 17 | 43 | 20.882353 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b0f57abb4c6963ae8d955c1ecf87495f2b1c219 | 12,193 | py | Python | plugins/modules/oci_blockstorage_volume_backup_policy_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_blockstorage_volume_backup_policy_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_blockstorage_volume_backup_policy_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 38.342767 | 157 | 0.584598 | 1,269 | 12,193 | 5.459417 | 0.253743 | 0.04157 | 0.046622 | 0.057592 | 0.365762 | 0.285508 | 0.182448 | 0.167436 | 0.141599 | 0.113453 | 0 | 0.012455 | 0.341507 | 12,193 | 317 | 158 | 38.463722 | 0.850417 | 0.033954 | 0 | 0.278986 | 0 | 0.018116 | 0.784652 | 0.055579 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018116 | false | 0.003623 | 0.021739 | 0.01087 | 0.061594 | 0.003623 | 0 | 0 | 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 |
6b118924fc3b616de8ffa2d875b9ce842c00da9f | 2,141 | py | Python | api/app/models/bookings/exam.py | pixelater/queue-management | 9881505d4af2b9860aeaf76b9572315dd016c7dc | [
"Apache-2.0"
] | null | null | null | api/app/models/bookings/exam.py | pixelater/queue-management | 9881505d4af2b9860aeaf76b9572315dd016c7dc | [
"Apache-2.0"
] | 1 | 2019-02-26T00:27:31.000Z | 2019-02-26T00:27:31.000Z | api/app/models/bookings/exam.py | pixelater/queue-management | 9881505d4af2b9860aeaf76b9572315dd016c7dc | [
"Apache-2.0"
] | null | null | null | '''Copyright 2018 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 43.693878 | 111 | 0.739841 | 316 | 2,141 | 4.882911 | 0.39557 | 0.08814 | 0.110175 | 0.082955 | 0.270253 | 0.241737 | 0.204148 | 0 | 0 | 0 | 0 | 0.014161 | 0.142457 | 2,141 | 48 | 112 | 44.604167 | 0.826253 | 0.263428 | 0 | 0 | 0 | 0 | 0.077658 | 0.029917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0.037037 | 0.962963 | 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 |
6b1abd24dcce5c1b223e996046c73de1b7c697fc | 1,332 | py | Python | Concurrent/PipelineDecomposingTask.py | rafagarciac/ParallelProgrammingPython | bba91984018688f41049fd63961d3b8872876336 | [
"MIT"
] | null | null | null | Concurrent/PipelineDecomposingTask.py | rafagarciac/ParallelProgrammingPython | bba91984018688f41049fd63961d3b8872876336 | [
"MIT"
] | null | null | null | Concurrent/PipelineDecomposingTask.py | rafagarciac/ParallelProgrammingPython | bba91984018688f41049fd63961d3b8872876336 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Artesanal example Pipe without Pipe class.
"""
__author__ = "Rafael García Cuéllar"
__email__ = "r.gc@hotmail.es"
__copyright__ = "Copyright (c) 2018 Rafael García Cuéllar"
__license__ = "MIT"
from concurrent.futures import ProcessPoolExecutor
import time
import random
def worker(arg):... | 27.183673 | 107 | 0.678679 | 152 | 1,332 | 5.703947 | 0.473684 | 0.055363 | 0.069204 | 0.055363 | 0.251442 | 0.251442 | 0.198385 | 0.10842 | 0 | 0 | 0 | 0.008531 | 0.207958 | 1,332 | 49 | 108 | 27.183673 | 0.81327 | 0.173423 | 0 | 0.060606 | 0 | 0 | 0.080111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.090909 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1f450e0afe4b703c2e85c366b7453eddf2730b | 1,289 | py | Python | iota/commands/core/get_node_info.py | EasonC13/iota.py | f596c1ac0d9bcbceda1cf6109cd921943a6599b3 | [
"MIT"
] | 347 | 2016-12-23T14:28:06.000Z | 2019-09-30T13:46:30.000Z | iota/commands/core/get_node_info.py | EasonC13/iota.py | f596c1ac0d9bcbceda1cf6109cd921943a6599b3 | [
"MIT"
] | 194 | 2016-12-22T21:22:47.000Z | 2019-10-01T09:01:16.000Z | iota/commands/core/get_node_info.py | EasonC13/iota.py | f596c1ac0d9bcbceda1cf6109cd921943a6599b3 | [
"MIT"
] | 147 | 2017-01-08T13:14:47.000Z | 2019-10-01T22:27:31.000Z | import filters as f
from iota import TransactionHash, Address
from iota.commands import FilterCommand, RequestFilter, ResponseFilter
from iota.filters import Trytes
__all__ = [
'GetNodeInfoCommand',
]
class GetNodeInfoCommand(FilterCommand):
"""
Executes `getNodeInfo` command.
See :py:meth:`iota.ap... | 28.644444 | 73 | 0.6827 | 115 | 1,289 | 7.426087 | 0.513043 | 0.028103 | 0.066745 | 0.084309 | 0.140515 | 0.105386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221102 | 1,289 | 44 | 74 | 29.295455 | 0.850598 | 0.150504 | 0 | 0.153846 | 0 | 0 | 0.098696 | 0.027002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.538462 | 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 |
6b2003bf580dcb3f7c6fda11b1276e5b7d0fe837 | 4,925 | py | Python | Aplicacion/Presentacion/views.py | Juandiegordp/TPI | 427266f00745e9d9678110c1d01d3be4febca673 | [
"MIT"
] | null | null | null | Aplicacion/Presentacion/views.py | Juandiegordp/TPI | 427266f00745e9d9678110c1d01d3be4febca673 | [
"MIT"
] | null | null | null | Aplicacion/Presentacion/views.py | Juandiegordp/TPI | 427266f00745e9d9678110c1d01d3be4febca673 | [
"MIT"
] | null | null | null | from Negocio import controller
import forms, functions
from flask import Flask, render_template, request, redirect, url_for, flash
def register(mysql, request):
registerForm= forms.RegisterForm(request.form)
if request.method == 'POST' and registerForm.validate():
return controller.registraUsuario(mysql... | 40.702479 | 236 | 0.718376 | 527 | 4,925 | 6.616698 | 0.178368 | 0.096358 | 0.068254 | 0.091769 | 0.540006 | 0.515056 | 0.458847 | 0.378262 | 0.317178 | 0.216232 | 0 | 0.002699 | 0.172589 | 4,925 | 121 | 237 | 40.702479 | 0.853006 | 0 | 0 | 0.457143 | 0 | 0 | 0.071255 | 0.009947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.028571 | 0 | 0.514286 | 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 |
6b22b1c8cec3284d72a98eea77ac255711ba8ec7 | 811 | py | Python | web/backend/backend_django/apps/capacity/models.py | tOverney/ADA-Project | 69221210b1f4f13f6979123c6a7a1a9813ea18e5 | [
"Apache-2.0"
] | null | null | null | web/backend/backend_django/apps/capacity/models.py | tOverney/ADA-Project | 69221210b1f4f13f6979123c6a7a1a9813ea18e5 | [
"Apache-2.0"
] | 1 | 2016-11-04T01:03:21.000Z | 2016-11-04T10:10:06.000Z | web/backend/backend_django/apps/capacity/models.py | tOverney/ADA-Project | 69221210b1f4f13f6979123c6a7a1a9813ea18e5 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from multigtfs.models import (
Block, Fare, FareRule, Feed, Frequency, Route, Service, ServiceDate, Shape,
ShapePoint, Stop, StopTime, Trip, Agency)
class Path(models.Model):
trip = models.ForeignKey(Trip)
stop = models.ForeignKey(Stop)
path = models.CharField(max_len... | 32.44 | 79 | 0.705302 | 94 | 811 | 6.010638 | 0.425532 | 0.141593 | 0.069027 | 0.090265 | 0.307965 | 0.307965 | 0.307965 | 0.169912 | 0.169912 | 0.169912 | 0 | 0.011976 | 0.176326 | 811 | 25 | 80 | 32.44 | 0.833832 | 0 | 0 | 0.222222 | 0 | 0 | 0.067734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.777778 | 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 |
6b2889ee02cbc2db0ebf9270a48b091ad3ca3b59 | 8,237 | py | Python | core/views.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | core/views.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | core/views.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.conf import settings
from django.core.files.storage import FileSystemStorage,default_storage
from django.core.mail import send_mail, EmailMessage
from core.models import Document
from core.forms import DocumentForm
from django.contrib import messages
import os... | 42.901042 | 167 | 0.617701 | 1,016 | 8,237 | 4.889764 | 0.20374 | 0.059783 | 0.064815 | 0.038245 | 0.466787 | 0.367552 | 0.298712 | 0.285427 | 0.285427 | 0.253019 | 0 | 0.020186 | 0.2422 | 8,237 | 191 | 168 | 43.125654 | 0.775713 | 0 | 0 | 0.223684 | 0 | 0 | 0.124964 | 0.003171 | 0.013158 | 0 | 0.000577 | 0 | 0 | 1 | 0.046053 | false | 0.164474 | 0.098684 | 0.006579 | 0.210526 | 0.046053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b2b5f9728064d787e0b3474fa79a57d993dda3b | 594 | py | Python | main.py | Meat0Project/ChatBot | 35ebadc71b100d861f9c9e211e1e751175f47c50 | [
"MIT"
] | 4 | 2020-10-30T07:46:39.000Z | 2020-10-30T18:20:57.000Z | main.py | Meat0Project/ChatBot | 35ebadc71b100d861f9c9e211e1e751175f47c50 | [
"MIT"
] | null | null | null | main.py | Meat0Project/ChatBot | 35ebadc71b100d861f9c9e211e1e751175f47c50 | [
"MIT"
] | null | null | null | '''
Made by - Aditya mangal
Purpose - Python mini project
Date - 18 october 2020
'''
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
form termcolor import cprint
import time
chatbot = ChatBot('Bot')
trainer = ChatterBotCorpusTrainer(chatbot)
trainer.train('chatterbot.corpus.eng... | 22.846154 | 55 | 0.69697 | 74 | 594 | 5.581081 | 0.662162 | 0.067797 | 0.072639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024341 | 0.170034 | 594 | 25 | 56 | 23.76 | 0.813387 | 0 | 0 | 0.117647 | 0 | 0 | 0.182711 | 0.049116 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.235294 | null | null | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6b2cec5a2588f39302333a5f4dacaf75c507b16b | 3,344 | py | Python | backend/api/management/commands/create_testdb.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | 2 | 2021-06-01T08:33:04.000Z | 2021-08-20T04:22:39.000Z | backend/api/management/commands/create_testdb.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | null | null | null | backend/api/management/commands/create_testdb.py | INSRapperswil/nornir-web | 458e6b24bc373197044b4b7b5da74f16f93a9459 | [
"MIT"
] | null | null | null | """
Setup DB with example data for tests
"""
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User, Group
from django.core.management.base import BaseCommand
from api import models
class Command(BaseCommand):
help = 'Setup DB with example data for tests'
... | 54.819672 | 121 | 0.62201 | 387 | 3,344 | 5.21447 | 0.284238 | 0.06442 | 0.084242 | 0.035679 | 0.433598 | 0.35332 | 0.247275 | 0.173935 | 0.173935 | 0.098612 | 0 | 0.006486 | 0.262261 | 3,344 | 60 | 122 | 55.733333 | 0.811512 | 0.010766 | 0 | 0 | 0 | 0 | 0.283333 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.093023 | 0.093023 | 0 | 0.162791 | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b2e543e1da4f0dd04f05a16bdaaac83f262d6ce | 1,505 | py | Python | ipuz/puzzlekinds/__init__.py | maiamcc/ipuz | fbe6f663b28ad42754622bf2d3bbe59a26be2615 | [
"MIT"
] | 5 | 2015-06-23T17:18:41.000Z | 2020-05-05T16:43:14.000Z | ipuz/puzzlekinds/__init__.py | maiamcc/ipuz | fbe6f663b28ad42754622bf2d3bbe59a26be2615 | [
"MIT"
] | 3 | 2015-08-21T05:17:22.000Z | 2021-03-20T18:39:31.000Z | ipuz/puzzlekinds/__init__.py | maiamcc/ipuz | fbe6f663b28ad42754622bf2d3bbe59a26be2615 | [
"MIT"
] | 3 | 2018-01-15T17:28:10.000Z | 2020-09-29T20:32:21.000Z | from .acrostic import IPUZ_ACROSTIC_VALIDATORS
from .answer import IPUZ_ANSWER_VALIDATORS
from .block import IPUZ_BLOCK_VALIDATORS
from .crossword import IPUZ_CROSSWORD_VALIDATORS
from .fill import IPUZ_FILL_VALIDATORS
from .sudoku import IPUZ_SUDOKU_VALIDATORS
from .wordsearch import IPUZ_WORDSEARCH_VALIDATORS
IPUZ_... | 23.153846 | 50 | 0.509635 | 120 | 1,505 | 6.15 | 0.15 | 0.094851 | 0.104336 | 0.170732 | 0.173442 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007216 | 0.355482 | 1,505 | 64 | 51 | 23.515625 | 0.753608 | 0 | 0 | 0.403226 | 0 | 0 | 0.226578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112903 | 0 | 0.112903 | 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 |
6b385bed93debf4cc525192d73536e80c2566746 | 591 | py | Python | python/ray/train/__init__.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 33 | 2020-05-27T14:25:24.000Z | 2022-03-22T06:11:30.000Z | python/ray/train/__init__.py | jamesliu/ray | 11ab412db1fa3603a3006e8ed414e80dd1f11c0c | [
"Apache-2.0"
] | 227 | 2021-10-01T08:00:01.000Z | 2021-12-28T16:47:26.000Z | python/ray/train/__init__.py | gramhagen/ray | c18caa4db36d466718bdbcb2229aa0b2dc03da1f | [
"Apache-2.0"
] | 5 | 2020-08-06T15:53:07.000Z | 2022-02-09T03:31:31.000Z | from ray.train.backend import BackendConfig
from ray.train.callbacks import TrainingCallback
from ray.train.checkpoint import CheckpointStrategy
from ray.train.session import (get_dataset_shard, local_rank, load_checkpoint,
report, save_checkpoint, world_rank, world_size)
from ray.train.t... | 42.214286 | 79 | 0.749577 | 64 | 591 | 6.640625 | 0.375 | 0.082353 | 0.141176 | 0.084706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153976 | 591 | 13 | 80 | 45.461538 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.258883 | 0 | 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 |
6b3881271e2eaf5752f4f95cac12eda083886a6f | 301 | py | Python | byurak/accounts/admin.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | null | null | null | byurak/accounts/admin.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-06-27T16:19:47.000Z | 2021-08-01T16:41:54.000Z | byurak/accounts/admin.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-08-21T13:32:52.000Z | 2021-12-20T10:12:45.000Z | from django.contrib import admin
from accounts.models import User, Profile, UserFollow
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = ['email', 'nickname']
list_display_links = ['email', 'nickname']
admin.site.register(Profile)
admin.site.register(UserFollow)
| 23.153846 | 53 | 0.750831 | 36 | 301 | 6.194444 | 0.555556 | 0.098655 | 0.152466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129568 | 301 | 12 | 54 | 25.083333 | 0.851145 | 0 | 0 | 0 | 0 | 0 | 0.086667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6b3deda0113b8eb8f9bdf6272cc95e4fe0c53714 | 2,743 | py | Python | jupyanno/sheets.py | betatim/jupyanno | 11fbb1825c8e6966260620758768e0e1fa5cecc9 | [
"Apache-2.0"
] | 23 | 2018-08-24T16:48:20.000Z | 2021-02-26T02:52:40.000Z | jupyanno/sheets.py | L3-data/jupyanno | 6f6ec37e88b4d92f00bc359e7e39157b6b7f0eb5 | [
"Apache-2.0"
] | 73 | 2018-08-13T07:56:15.000Z | 2018-10-09T13:55:20.000Z | jupyanno/sheets.py | L3-data/jupyanno | 6f6ec37e88b4d92f00bc359e7e39157b6b7f0eb5 | [
"Apache-2.0"
] | 4 | 2018-08-13T07:55:50.000Z | 2020-09-30T12:04:27.000Z | """Code for reading and writing results to google sheets"""
from bs4 import BeautifulSoup
import requests
import warnings
import json
import pandas as pd
from six.moves.urllib.parse import urlparse, parse_qs
from six.moves.urllib.request import urlopen
_CELLSET_ID = "AIzaSyC8Zo-9EbXgHfqNzDxVb_YS_IIZBWtvoJ4"
def get_... | 33.45122 | 79 | 0.606635 | 367 | 2,743 | 4.370572 | 0.427793 | 0.018703 | 0.016833 | 0.022444 | 0.009975 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018063 | 0.273423 | 2,743 | 81 | 80 | 33.864198 | 0.786754 | 0.063434 | 0 | 0 | 0 | 0.016949 | 0.101415 | 0.02555 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.118644 | false | 0 | 0.118644 | 0.067797 | 0.372881 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6b3e1154af6f1eb866c2c34cdc822a0ff3902ab9 | 2,191 | py | Python | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | 6 | 2017-08-31T07:13:34.000Z | 2018-09-10T08:54:43.000Z | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | null | null | null | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
'''
最大堆实现
98
/ \
96 84
/ \ / \
92 82 78 47
/ \ / \ / \ / \
... | 24.076923 | 84 | 0.426289 | 281 | 2,191 | 3.245552 | 0.263345 | 0.201754 | 0.059211 | 0.048246 | 0.222588 | 0.157895 | 0.072368 | 0.072368 | 0.057018 | 0.057018 | 0 | 0.076735 | 0.440895 | 2,191 | 90 | 85 | 24.344444 | 0.667755 | 0.219534 | 0 | 0 | 0 | 0 | 0.004869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.02 | 0.04 | 0.24 | 0.06 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b3e3c2d633954d06881dc1103a976a7248201f2 | 585 | py | Python | ink2canvas/svg/Use.py | greipfrut/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | 4 | 2016-05-06T21:29:39.000Z | 2020-02-25T08:47:48.000Z | ink2canvas/svg/Use.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | ink2canvas/svg/Use.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | from ink2canvas.svg.AbstractShape import AbstractShape
class Use(AbstractShape):
def drawClone(self):
drawables = self.rootTree.getDrawable()
OriginName = self.getCloneId()
OriginObject = self.rootTree.searchElementById(OriginName,drawables)
OriginObject.runDraw()
de... | 32.5 | 76 | 0.647863 | 53 | 585 | 7.150943 | 0.603774 | 0.063325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.247863 | 585 | 18 | 77 | 32.5 | 0.856818 | 0 | 0 | 0 | 0 | 0 | 0.015358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b454d373a4daf57bd5eb97d08752d3322beb78a | 6,146 | py | Python | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | import requests
import aiohttp
from constants import API_KEY
class User(object):
def __init__(self, author_info):
# "author": {
# "about": "",
# "avatar": {
# "cache": "//a.disquscdn.com/1519942534/images/noavatar92.png",
# ... | 36.802395 | 143 | 0.493817 | 548 | 6,146 | 5.394161 | 0.24635 | 0.040934 | 0.052097 | 0.051759 | 0.515223 | 0.490189 | 0.434709 | 0.393437 | 0.362652 | 0.310893 | 0 | 0.064012 | 0.374715 | 6,146 | 166 | 144 | 37.024096 | 0.705178 | 0.432314 | 0 | 0.324675 | 0 | 0 | 0.113583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168831 | false | 0 | 0.038961 | 0.103896 | 0.376623 | 0.064935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b496440b1b757ff1f65cdc922e139b550fcb6ef | 473 | py | Python | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2020-04-27T16:30:50.000Z | 2020-04-27T16:30:50.000Z | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | null | null | null | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2021-01-13T02:16:56.000Z | 2021-01-13T02:16:56.000Z | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
Setup for the dbservice
"""
from setuptools import setup, find_packages
setup(
name='dbservice',
version='0.9',
description="Database service for storing meter data",
author="Søren Aagaard Mikkelsen",
author_email='smik@eng.au.dk',
url='htt... | 22.52381 | 58 | 0.646934 | 56 | 473 | 5.392857 | 0.803571 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.162791 | 473 | 20 | 59 | 23.65 | 0.752525 | 0.145877 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
6b4af341d1bd006f2df5874fa788b8866cb5c77d | 800 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The arg spec for the junos facts module.
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type
class FactsArgs(object):
""" The... | 25.806452 | 74 | 0.60625 | 95 | 800 | 4.884211 | 0.705263 | 0.025862 | 0.043103 | 0.056034 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0.014706 | 0.235 | 800 | 30 | 75 | 26.666667 | 0.743464 | 0.2775 | 0 | 0.133333 | 0 | 0 | 0.233929 | 0.091071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0 | 0.266667 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
860a91391db83eb979d9849bfe427e0dbb8bf3eb | 1,171 | py | Python | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 3 | 2020-03-26T11:43:40.000Z | 2021-12-27T18:26:06.000Z | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 2 | 2021-05-14T01:31:12.000Z | 2021-08-23T16:07:44.000Z | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 1 | 2020-04-22T19:06:43.000Z | 2020-04-22T19:06:43.000Z | from server import roles
def hasRole(member, roleID):
role = member.guild.get_role(roleID)
return role in member.roles
def gainedRole(before, after, roleID):
role = before.guild.get_role(roleID)
return (role not in before.roles) and (role in after.roles)
def isExplorer(ctx):
return hasRole(ctx... | 20.189655 | 63 | 0.679761 | 149 | 1,171 | 5.228188 | 0.47651 | 0.057766 | 0.102696 | 0.121951 | 0.264442 | 0.264442 | 0 | 0 | 0 | 0 | 0 | 0.18313 | 0.230572 | 1,171 | 57 | 64 | 20.54386 | 0.681465 | 0 | 0 | 0 | 0 | 0 | 0.024765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.02439 | 0.121951 | 0.95122 | 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 |
860b82a531bcd228b8d28c903681d9b70c4a8b49 | 2,793 | py | Python | topology.py | destinysky/nsh_sfc | 290fa49df2880527e0b7844bf3bec4d55c4945a6 | [
"Apache-2.0"
] | 2 | 2020-10-26T17:22:04.000Z | 2020-11-11T13:19:08.000Z | topology.py | destinysky/nsh_sfc | 290fa49df2880527e0b7844bf3bec4d55c4945a6 | [
"Apache-2.0"
] | null | null | null | topology.py | destinysky/nsh_sfc | 290fa49df2880527e0b7844bf3bec4d55c4945a6 | [
"Apache-2.0"
] | 3 | 2020-03-28T12:53:35.000Z | 2021-06-29T18:13:43.000Z | #!/usr/bin/python
"""
"""
from mininet.net import Mininet
from mininet.node import Controller, RemoteController, OVSKernelSwitch,UserSwitch
#OVSLegacyKernelSwitch, UserSwitch
from mininet.cli import CLI
from mininet.log import setLogLevel
from mininet.link import Link, TCLink
#conf_port=50000
conf_ip_1='10.0.0.254'... | 30.358696 | 90 | 0.617257 | 474 | 2,793 | 3.535865 | 0.219409 | 0.047733 | 0.053699 | 0.047733 | 0.25358 | 0.25358 | 0.214797 | 0.214797 | 0.074582 | 0 | 0 | 0.125 | 0.192266 | 2,793 | 92 | 91 | 30.358696 | 0.617908 | 0.022914 | 0 | 0 | 0 | 0 | 0.304412 | 0.038603 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074627 | null | null | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
860eaaee93a0cd4aceb0ebc7da1f6e2b65f05589 | 224 | py | Python | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
from boa3.builtin.contract import Nep5TransferEvent
transfer = Nep5TransferEvent
@public
def Main(from_addr: bytes, to_addr: bytes, amount: int):
transfer(from_addr, to_addr, amount)
| 18.666667 | 56 | 0.785714 | 30 | 224 | 5.733333 | 0.5 | 0.093023 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.138393 | 224 | 11 | 57 | 20.363636 | 0.870466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86161f7e9f969066db82c2f68d6e2be07cfb7ad1 | 3,694 | py | Python | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | """Internal API endpoint constant library.
_______ __ _______ __ __ __
| _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----.
|. 1___| _| _ | | | | _ | 1___| _| _| | <| -__|
|. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____|
|: 1 | ... | 35.180952 | 95 | 0.600704 | 426 | 3,694 | 4.997653 | 0.469484 | 0.01644 | 0.0155 | 0.023485 | 0.139032 | 0.093001 | 0.073274 | 0.035698 | 0 | 0 | 0 | 0.005631 | 0.278831 | 3,694 | 104 | 96 | 35.519231 | 0.793544 | 0.457228 | 0 | 0.181818 | 0 | 0.015152 | 0.624124 | 0.055055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
861a31bb111c594972aeb70c462a963cf1fefdb9 | 5,215 | py | Python | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HH3C-PPPOE-SERVER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-PPPOE-SERVER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:16:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 115.888889 | 892 | 0.797124 | 519 | 5,215 | 8.00578 | 0.263969 | 0.007702 | 0.01083 | 0.01444 | 0.351865 | 0.282551 | 0.222383 | 0.222383 | 0.222383 | 0.218773 | 0 | 0.091964 | 0.074209 | 5,215 | 44 | 893 | 118.522727 | 0.768641 | 0.06443 | 0 | 0 | 0 | 0 | 0.141889 | 0.013347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.189189 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
861a472cf4ef7f924185a3fe1ea6569338502257 | 2,041 | py | Python | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 4 | 2019-10-21T11:00:55.000Z | 2020-10-22T16:11:21.000Z | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 1 | 2019-12-17T05:20:26.000Z | 2019-12-17T05:20:26.000Z | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 9 | 2019-10-20T05:48:03.000Z | 2020-11-17T14:08:14.000Z | name = input("masukkan nama pembeli = ")
alamat= input("Alamat = ")
NoTelp = input("No Telp = ")
print("\n")
print("=================INFORMASI HARGA MOBIL DEALER JAYA ABADI===============")
print("Pilih Jenis Mobil :")
print("\t 1.Daihatsu ")
print("\t 2.Honda ")
print("\t 3.Toyota ")
print("")
pilihan = int(input("Pil... | 34.59322 | 80 | 0.529152 | 241 | 2,041 | 4.481328 | 0.307054 | 0.092593 | 0.125 | 0.055556 | 0.221296 | 0.15463 | 0.15463 | 0 | 0 | 0 | 0 | 0.031228 | 0.293974 | 2,041 | 58 | 81 | 35.189655 | 0.718251 | 0 | 0 | 0.115385 | 0 | 0 | 0.476237 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.596154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
861d74d55db578d9eef6b283f432f055362e839e | 975 | py | Python | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Example to train and evaluate a model with given data
@author: Quoc-Tuan Truong <tuantq.vnu@gmail.com>
"""
from cornac.data import Reader
from cornac.eval_methods import BaseMethod
from cornac.models import MF
from cornac.metrics import MAE, RMSE
from cornac.utils import cache
# Download... | 33.62069 | 100 | 0.73641 | 146 | 975 | 4.80137 | 0.541096 | 0.071327 | 0.039943 | 0.054208 | 0.194009 | 0.194009 | 0.194009 | 0.194009 | 0.194009 | 0.194009 | 0 | 0.026222 | 0.139487 | 975 | 28 | 101 | 34.821429 | 0.809297 | 0.2 | 0 | 0 | 0 | 0 | 0.158442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
861f5e4cfdc98de2a394371bb5b02dd397322979 | 203 | py | Python | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1 | 2018-12-19T11:42:09.000Z | 2018-12-19T11:42:09.000Z | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1 | 2019-10-25T09:19:21.000Z | 2019-10-25T09:19:21.000Z | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 7 | 2019-09-11T07:17:32.000Z | 2019-09-25T12:23:52.000Z | #Doesn't work.
import time
fibonacci = [1, 1]
n = int(input())
while len(fibonacci) < n:
fibonacci.append(fibonacci[-1] + fibonacci[-2])
for i in range(n):
print(fibonacci[i], end=' ')
| 20.3 | 52 | 0.605911 | 30 | 203 | 4.1 | 0.666667 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.211823 | 203 | 9 | 53 | 22.555556 | 0.74375 | 0.064039 | 0 | 0 | 0 | 0 | 0.005556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
86205fe9ef8a0c045201301f18357ead5b9c92fc | 6,081 | py | Python | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2018-03-14T06:45:40.000Z | 2018-06-08T07:46:02.000Z | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2019-03-23T08:23:21.000Z | 2019-03-23T08:23:21.000Z | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2017-11-07T18:05:19.000Z | 2017-11-14T18:06:55.000Z | """
basic logging functionality based on a producer/consumer scheme.
XXX implement this API: (maybe put it into slogger.py?)
log = Logger(
info=py.log.STDOUT,
debug=py.log.STDOUT,
command=None)
log.info("hello", "world")
log... | 32.518717 | 79 | 0.587568 | 682 | 6,081 | 5.093842 | 0.256598 | 0.037997 | 0.018998 | 0.017271 | 0.107369 | 0.090674 | 0.048071 | 0.035406 | 0.035406 | 0.035406 | 0 | 0.002831 | 0.302911 | 6,081 | 186 | 80 | 32.693548 | 0.816702 | 0.233021 | 0 | 0.132743 | 0 | 0 | 0.04698 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 1 | 0.230089 | false | 0.00885 | 0.00885 | 0.053097 | 0.389381 | 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 |
86207cdb07326bc532b6b5b79d11a692b3f498c4 | 1,696 | py | Python | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | import re
from model.contact import Contact
def test_all_contacts(app, db):
contacts_from_db = db.get_contact_list()
phone_list_from_db = db.phones_from_db()
#email_liset_from_db = db.emails_from_db()
phone_list = []
for phone in phone_list_from_db:
phone_list.append(merge_phones_like_on_h... | 38.545455 | 94 | 0.635024 | 234 | 1,696 | 4.209402 | 0.235043 | 0.113706 | 0.121827 | 0.056853 | 0.35736 | 0.294416 | 0.257868 | 0.257868 | 0.257868 | 0.194924 | 0 | 0.001608 | 0.266509 | 1,696 | 43 | 95 | 39.44186 | 0.790193 | 0.154481 | 0 | 0.142857 | 0 | 0 | 0.009097 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.178571 | false | 0 | 0.071429 | 0.142857 | 0.392857 | 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 |
86226920fab3327506a58d2f239e976d2e4d87d4 | 634 | py | Python | games/migrations/0002_auto_20201026_1221.py | IceArrow256/game-list | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | 3 | 2020-10-19T12:33:37.000Z | 2020-10-21T05:28:35.000Z | games/migrations/0002_auto_20201026_1221.py | IceArrow256/gamelist | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | null | null | null | games/migrations/0002_auto_20201026_1221.py | IceArrow256/gamelist | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-26 12:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('games', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='game',
... | 25.36 | 111 | 0.600946 | 69 | 634 | 5.449275 | 0.57971 | 0.06383 | 0.074468 | 0.117021 | 0.196809 | 0.196809 | 0 | 0 | 0 | 0 | 0 | 0.041215 | 0.272871 | 634 | 24 | 112 | 26.416667 | 0.774403 | 0.070978 | 0 | 0.333333 | 1 | 0 | 0.09029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
862625f0bd5d6882a14a812018126e427778e14a | 11,603 | py | Python | build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | """ PackageTools - A set of tools to aid working with packages.
Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2015, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Re... | 35.375 | 82 | 0.613031 | 1,395 | 11,603 | 4.967025 | 0.21147 | 0.008659 | 0.011257 | 0.012989 | 0.340597 | 0.311156 | 0.297878 | 0.290807 | 0.254438 | 0.233223 | 0 | 0.00666 | 0.314143 | 11,603 | 327 | 83 | 35.48318 | 0.864036 | 0.026976 | 0 | 0.242038 | 0 | 0 | 0.018765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006369 | 0.057325 | 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 |
86273fb9e1a631cb61fc755f591bccb65bcc2063 | 553 | py | Python | gapipy/resources/tour/transport.py | wmak/gapipy | b6849606d4f6af24b9f871f65e87aaf0d0c013cc | [
"MIT"
] | null | null | null | gapipy/resources/tour/transport.py | wmak/gapipy | b6849606d4f6af24b9f871f65e87aaf0d0c013cc | [
"MIT"
] | null | null | null | gapipy/resources/tour/transport.py | wmak/gapipy | b6849606d4f6af24b9f871f65e87aaf0d0c013cc | [
"MIT"
] | null | null | null | # Python 2 and 3
from __future__ import unicode_literals
from ...models import Address, SeasonalPriceBand
from ..base import Product
class Transport(Product):
_resource_name = 'transports'
_is_listable = False
_as_is_fields = [
'id', 'href', 'availability', 'name', 'product_line', 'sku', 'type... | 27.65 | 87 | 0.703436 | 63 | 553 | 5.714286 | 0.68254 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004357 | 0.169982 | 553 | 19 | 88 | 29.105263 | 0.779956 | 0.025316 | 0 | 0 | 0 | 0 | 0.236499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.833333 | 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 |
862dc531f725b524bb6846cb090205fc7468f382 | 1,166 | py | Python | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | from string import Template
import re
class PositionalArgumentTemplate(Template):
# (?i): 大文字小文字を区別しないモードを開始する
# (?-i): 大文字小文字を区別しないモードを無効にする
idpattern_default = Template.idpattern # (?-i:[_a-zA-Z][_a-zA-Z0-9]*)
idpattern = '([0-9]+)'
def find_place_holders(self, template:str):
#for m in re... | 31.513514 | 73 | 0.587479 | 145 | 1,166 | 4.593103 | 0.344828 | 0.072072 | 0.066066 | 0.024024 | 0.075075 | 0.075075 | 0 | 0 | 0 | 0 | 0 | 0.007946 | 0.244425 | 1,166 | 36 | 74 | 32.388889 | 0.748014 | 0.316467 | 0 | 0 | 0 | 0 | 0.038314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.285714 | 0.47619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
862e0a0793ac26ff1693be29a952ce4f785121be | 1,020 | py | Python | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | # Copyright The Linux Foundation and each contributor to CommunityBridge.
# SPDX-License-Identifier: MIT
import json
import os
import requests
import uuid
import hug
import pytest
from falcon import HTTP_200, HTTP_409
import cla
from cla import routes
ID_TOKEN = os.environ.get('ID_TOKEN')
API_URL = os.environ.get('... | 23.72093 | 73 | 0.673529 | 133 | 1,020 | 4.992481 | 0.428571 | 0.099398 | 0.036145 | 0.051205 | 0.225904 | 0.225904 | 0.13253 | 0.13253 | 0.13253 | 0 | 0 | 0.018916 | 0.222549 | 1,020 | 42 | 74 | 24.285714 | 0.818411 | 0.157843 | 0 | 0.133333 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.366667 | 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 |
8630b3c80464d13f544a914873b82ed141f94bf1 | 9,098 | py | Python | qstklearn/1knn.py | elxavicio/QSTK | 4981506c37227a72404229d5e1e0887f797a5d57 | [
"BSD-3-Clause"
] | 339 | 2015-01-01T10:06:49.000Z | 2022-03-23T23:32:24.000Z | QSTK/qstklearn/1knn.py | jenniyanjie/QuantSoftwareToolkit | 0eb2c7a776c259a087fdcac1d3ff883eb0b5516c | [
"BSD-3-Clause"
] | 19 | 2015-01-04T13:12:33.000Z | 2021-07-19T11:13:47.000Z | QSTK/qstklearn/1knn.py | jenniyanjie/QuantSoftwareToolkit | 0eb2c7a776c259a087fdcac1d3ff883eb0b5516c | [
"BSD-3-Clause"
] | 154 | 2015-01-30T09:41:15.000Z | 2022-03-19T02:27:59.000Z | '''
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.
Created on Feb 20, 2011
@author: John Cornwell
@organization: Georgia Institute of Technology
@contact: JohnW... | 31.811189 | 112 | 0.523522 | 1,069 | 9,098 | 4.434051 | 0.282507 | 0.008017 | 0.022785 | 0.021519 | 0.277004 | 0.228481 | 0.203587 | 0.197468 | 0.197468 | 0.165823 | 0 | 0.056915 | 0.339525 | 9,098 | 285 | 113 | 31.922807 | 0.731902 | 0.029677 | 0 | 0.189189 | 0 | 0 | 0.041518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
86346fa63b7971b7ad956846f8bc8dcc94175283 | 2,679 | py | Python | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | null | null | null | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | 3 | 2020-02-11T23:38:20.000Z | 2021-06-10T19:10:53.000Z | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | 1 | 2018-09-19T11:19:48.000Z | 2018-09-19T11:19:48.000Z | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AdminPasswordChangeForm, PasswordChangeForm, UserCreationForm
from django.contrib.auth import update_session_auth_hash, login, authenticate
from django.contrib import messages
from django... | 31.892857 | 99 | 0.709966 | 312 | 2,679 | 5.942308 | 0.294872 | 0.04315 | 0.036677 | 0.040453 | 0.081985 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0.00464 | 0.195595 | 2,679 | 83 | 100 | 32.277108 | 0.855684 | 0 | 0 | 0.231884 | 0 | 0 | 0.086226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.15942 | 0.15942 | 0.028986 | 0.347826 | 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 |
863b23444fda9cb581afbddd6338c59075cfc887 | 1,793 | py | Python | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import pytest
import app as service
import yaml
import responder
from starlette.responses import PlainTextResponse
@pytest.fixture
def api():
return service.api
def test_hello_world(api):
r = api.requests.get("/api/v1.0/index")
assert r.text == "Hello, World!"
def test_basic_route(api... | 19.703297 | 65 | 0.621305 | 253 | 1,793 | 4.316206 | 0.284585 | 0.051282 | 0.065934 | 0.082418 | 0.349817 | 0.311355 | 0.261905 | 0.177656 | 0.1337 | 0.1337 | 0 | 0.018813 | 0.229225 | 1,793 | 90 | 66 | 19.922222 | 0.771346 | 0.00725 | 0 | 0.189655 | 0 | 0 | 0.106299 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 1 | 0.275862 | false | 0 | 0.103448 | 0.034483 | 0.413793 | 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 |
863e8a2ed0006f7150de09f27d406b39ae986ad3 | 827 | py | Python | saleor/order/migrations/0081_auto_20200406_0456.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/order/migrations/0081_auto_20200406_0456.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/order/migrations/0081_auto_20200406_0456.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | # Generated by Django 3.0.4 on 2020-04-06 09:56
from django.db import migrations
from saleor.order import OrderStatus
def match_orders_with_users(apps, *_args, **_kwargs):
Order = apps.get_model("order", "Order")
User = apps.get_model("account", "User")
orders_without_user = Order.objects.filter(
... | 25.060606 | 63 | 0.665054 | 102 | 827 | 5.176471 | 0.568627 | 0.051136 | 0.056818 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029688 | 0.226119 | 827 | 32 | 64 | 25.84375 | 0.795313 | 0.054414 | 0 | 0 | 1 | 0 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 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 |
8648090bbe37bd69072d860284239d2be5f5a913 | 469 | py | Python | code-wars/010.moving-zeros-to-the-end.py | code-knayam/DataStructureAlgorithms | 8425911633d4d343c58798a123175289ed0df1fe | [
"MIT"
] | null | null | null | code-wars/010.moving-zeros-to-the-end.py | code-knayam/DataStructureAlgorithms | 8425911633d4d343c58798a123175289ed0df1fe | [
"MIT"
] | null | null | null | code-wars/010.moving-zeros-to-the-end.py | code-knayam/DataStructureAlgorithms | 8425911633d4d343c58798a123175289ed0df1fe | [
"MIT"
] | null | null | null | # Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
def move_zeros(array):
#your code here
new_array = []
new_index = 0
while len(array) > 0:
item = array.pop(0)
if item == 0 and not type(item) == bool :
... | 31.266667 | 123 | 0.603412 | 70 | 469 | 3.914286 | 0.557143 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015674 | 0.319829 | 469 | 15 | 124 | 31.266667 | 0.84326 | 0.287846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
864a44b2fa4b1d6dbb15ace15ef151c81922788f | 928 | py | Python | __main__.py | miezebieze/scott-launcher | a03597d0883af075128d1ea4ea53e7b5132807b1 | [
"MIT"
] | 1 | 2020-06-12T20:49:47.000Z | 2020-06-12T20:49:47.000Z | __main__.py | miezebieze/scott-launcher | a03597d0883af075128d1ea4ea53e7b5132807b1 | [
"MIT"
] | null | null | null | __main__.py | miezebieze/scott-launcher | a03597d0883af075128d1ea4ea53e7b5132807b1 | [
"MIT"
] | null | null | null | from enum import Enum
from window import Window
D = Enum ('Directions','N NE E SE S SW W NW')
selector_map = {
D.NW: [0.5,0.5], D.N: [1.5,0], D.NE: [2.5,0.5],
D.W: [0,1.5], D.E: [3,1.5],
D.SW: [0.5,2.5], D.S: [1.5,3], D.SE: [2.5,2.5],
}
selector_size = 100
window_si... | 29 | 82 | 0.626078 | 158 | 928 | 3.620253 | 0.28481 | 0.181818 | 0.195804 | 0.013986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041721 | 0.173491 | 928 | 31 | 83 | 29.935484 | 0.704042 | 0.017241 | 0 | 0 | 0 | 0 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 0.043478 | 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 |
864a6447cb894e438d5dd8c26760c86abeb04746 | 760 | py | Python | cride/circles/serializers.py | monteals/C-Ride | 6e9368011f49ff619d1edaeaf1e8232685cc2095 | [
"MIT"
] | null | null | null | cride/circles/serializers.py | monteals/C-Ride | 6e9368011f49ff619d1edaeaf1e8232685cc2095 | [
"MIT"
] | 9 | 2020-04-24T01:29:38.000Z | 2022-03-12T00:25:50.000Z | cride/circles/serializers.py | monteals/C-Ride | 6e9368011f49ff619d1edaeaf1e8232685cc2095 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from cride.circles.models import Circle
class CircleSerializer(serializers.Serializer):
name = serializers.CharField()
slug_name = serializers.SlugField()
rides_taken = serializers.IntegerField()
rides_offered ... | 36.190476 | 113 | 0.777632 | 80 | 760 | 7.2625 | 0.5125 | 0.10327 | 0.123924 | 0.149742 | 0.227194 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.131579 | 760 | 20 | 114 | 38 | 0.868182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0.066667 | 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 |
865535238f10c51c669114bcf29b3699dd34b1e8 | 559 | py | Python | examples/django/hello_world/wsgi.py | liuyu81/SnapSearch-Client-Python | 41857806c2b26f0537de2dcc23a145107a4ecd04 | [
"MIT"
] | null | null | null | examples/django/hello_world/wsgi.py | liuyu81/SnapSearch-Client-Python | 41857806c2b26f0537de2dcc23a145107a4ecd04 | [
"MIT"
] | null | null | null | examples/django/hello_world/wsgi.py | liuyu81/SnapSearch-Client-Python | 41857806c2b26f0537de2dcc23a145107a4ecd04 | [
"MIT"
] | 1 | 2018-03-04T20:24:14.000Z | 2018-03-04T20:24:14.000Z | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_world.settings")
# django WSGI application
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
# load SnapSearch API credentials
api_email = "<email>"
api_key = "<key>"
# initialize the interceptor
from SnapSearch im... | 27.95 | 71 | 0.815742 | 65 | 559 | 6.846154 | 0.415385 | 0.101124 | 0.080899 | 0.125843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103757 | 559 | 19 | 72 | 29.421053 | 0.888224 | 0.187835 | 0 | 0 | 0 | 0 | 0.120267 | 0.048998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
865b44ebd78e20ddd28ec532ea20204eaa6a07dc | 848 | py | Python | examples/run_merger.py | needlehaystack/needlestack | e00529a2a7c2d85059936a85f54dfb55e515b6ef | [
"Apache-2.0"
] | 3 | 2019-10-03T22:15:21.000Z | 2022-02-08T09:05:41.000Z | examples/run_merger.py | cungtv/needlestack | e00529a2a7c2d85059936a85f54dfb55e515b6ef | [
"Apache-2.0"
] | 1 | 2021-04-30T21:08:47.000Z | 2021-04-30T21:08:47.000Z | examples/run_merger.py | cungtv/needlestack | e00529a2a7c2d85059936a85f54dfb55e515b6ef | [
"Apache-2.0"
] | 2 | 2019-08-02T19:13:09.000Z | 2019-10-25T01:47:17.000Z | import logging
from grpc_health.v1 import health_pb2, health_pb2_grpc
from grpc_health.v1.health import HealthServicer
from needlestack.apis import servicers_pb2_grpc
from needlestack.servicers import factory
from needlestack.servicers.merger import MergerServicer
from examples import configs
logging.getLogger("kaz... | 25.69697 | 92 | 0.792453 | 101 | 848 | 6.356436 | 0.376238 | 0.056075 | 0.043614 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.127358 | 848 | 32 | 93 | 26.5 | 0.856757 | 0 | 0 | 0 | 0 | 0 | 0.027123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
865b48e5b6d60c2c5b81fb4b0a827e80f5502ece | 4,482 | py | Python | engine_wrapper.py | lidevelopers/Lishogi-Bot-1 | 5e669870930fe497e323324f36ccdbf5b04d26d3 | [
"MIT"
] | null | null | null | engine_wrapper.py | lidevelopers/Lishogi-Bot-1 | 5e669870930fe497e323324f36ccdbf5b04d26d3 | [
"MIT"
] | 2 | 2021-06-28T11:09:19.000Z | 2021-06-30T16:59:13.000Z | engine_wrapper.py | lidevelopers/Lishogi-Bot-1 | 5e669870930fe497e323324f36ccdbf5b04d26d3 | [
"MIT"
] | 9 | 2021-06-28T08:06:08.000Z | 2021-10-06T05:01:57.000Z | import os
import shogi
import backoff
import subprocess
from util import *
import logging
logger = logging.getLogger(__name__)
import engine_ctrl
@backoff.on_exception(backoff.expo, BaseException, max_time=120)
def create_engine(config, board):
cfg = config["engine"]
engine_path = os.path.realpath(os.path.j... | 29.486842 | 109 | 0.566934 | 528 | 4,482 | 4.660985 | 0.206439 | 0.056887 | 0.026412 | 0.026006 | 0.422999 | 0.369768 | 0.323446 | 0.222267 | 0.201138 | 0.168631 | 0 | 0.00197 | 0.320616 | 4,482 | 151 | 110 | 29.682119 | 0.80624 | 0 | 0 | 0.471074 | 0 | 0 | 0.041499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173554 | false | 0.07438 | 0.057851 | 0.008264 | 0.297521 | 0.024793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
865e9017c35669feb5f2b679820ab813bc9d8b73 | 533 | py | Python | scene_action2.py | encela95dus/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | 36 | 2019-01-12T04:17:49.000Z | 2022-03-31T05:33:29.000Z | scene_action2.py | Backup-eric645/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | null | null | null | scene_action2.py | Backup-eric645/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | 15 | 2018-12-30T21:18:05.000Z | 2022-01-30T13:17:07.000Z | import scene
class MyScene(scene.Scene):
def setup(self):
self.label_node = scene.LabelNode('A',
position=(100,400), parent=self)
self.start_flag = False
def update(self):
if self.start_flag:
x,y = self.label_node.position
if x < 34... | 25.380952 | 52 | 0.525328 | 64 | 533 | 4.25 | 0.453125 | 0.132353 | 0.191176 | 0.132353 | 0.154412 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.371482 | 533 | 20 | 53 | 26.65 | 0.78209 | 0 | 0 | 0.125 | 0 | 0 | 0.001876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
865e9adf437f79d36a8db146c26aeeb0ca4e34fa | 672 | py | Python | bot/commands/disconnect.py | aq1/vkPostman | db6b8d387d484ff53d12dcaf77ba3dcaa6da3822 | [
"MIT"
] | 1 | 2020-09-14T04:47:31.000Z | 2020-09-14T04:47:31.000Z | bot/commands/disconnect.py | aq1/vkPostman | db6b8d387d484ff53d12dcaf77ba3dcaa6da3822 | [
"MIT"
] | null | null | null | bot/commands/disconnect.py | aq1/vkPostman | db6b8d387d484ff53d12dcaf77ba3dcaa6da3822 | [
"MIT"
] | null | null | null | from bot.commands import BaseCommand
import mongo
class DisconnectCommand(BaseCommand):
_COMMAND = 'disconnect'
_DESCRIPTION = 'Close currently active chat.'
_SUCCESS_MESSAGE = 'Disconnected from chat'
def _callback(self, user, _bot, update, **kwargs):
return self._call(user, _bot, update, ... | 25.846154 | 66 | 0.633929 | 79 | 672 | 5.151899 | 0.544304 | 0.051597 | 0.095823 | 0.140049 | 0.113022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272321 | 672 | 25 | 67 | 26.88 | 0.832311 | 0 | 0 | 0 | 0 | 0 | 0.147321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
865f59e775e337c6b42c37791b8b1b83a1c4fa34 | 2,522 | py | Python | pysh/bash_vm/shell_command.py | JordanKoeller/Pysch | 6775db00e6d551328ce49a50a5987223a9e9a9c3 | [
"MIT"
] | null | null | null | pysh/bash_vm/shell_command.py | JordanKoeller/Pysch | 6775db00e6d551328ce49a50a5987223a9e9a9c3 | [
"MIT"
] | null | null | null | pysh/bash_vm/shell_command.py | JordanKoeller/Pysch | 6775db00e6d551328ce49a50a5987223a9e9a9c3 | [
"MIT"
] | null | null | null | from __future__ import annotations
import subprocess
import os
from typing import List, Dict, Iterator, Optional, Tuple
class ShellCommand:
def __init__(self, cmd: str):
self.run_args = [
"bash", "-c", f'{cmd}'
]
# self.run_args: List[str] = [executable, *args]
def exe... | 28.022222 | 81 | 0.527756 | 257 | 2,522 | 4.984436 | 0.307393 | 0.049961 | 0.025761 | 0.037471 | 0.090554 | 0.090554 | 0.090554 | 0.090554 | 0.090554 | 0 | 0 | 0.001261 | 0.371134 | 2,522 | 89 | 82 | 28.337079 | 0.806431 | 0.018239 | 0 | 0.134328 | 0 | 0 | 0.056589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0 | 0.059701 | 0.119403 | 0.41791 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
865fae0cf0882393868b033ff9b36122ab7504f2 | 76,601 | py | Python | src/saml2/saml.py | masterapps-au/pysaml2 | 97ad6c066c93cb31a3c3b9d504877c02e93ca9a9 | [
"Apache-2.0"
] | null | null | null | src/saml2/saml.py | masterapps-au/pysaml2 | 97ad6c066c93cb31a3c3b9d504877c02e93ca9a9 | [
"Apache-2.0"
] | null | null | null | src/saml2/saml.py | masterapps-au/pysaml2 | 97ad6c066c93cb31a3c3b9d504877c02e93ca9a9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Generated Mon May 2 14:23:33 2011 by parse_xsd.py version 0.4.
#
# A summary of available specifications can be found at:
# https://wiki.oasis-open.org/security/FrontPage
#
# saml core specifications to be found at:
# if any question arise please query the following pdf.
# http://docs.oasis-... | 38.185942 | 98 | 0.6752 | 8,490 | 76,601 | 5.754888 | 0.061602 | 0.029841 | 0.029043 | 0.038683 | 0.584478 | 0.513764 | 0.485479 | 0.472994 | 0.458196 | 0.411449 | 0 | 0.008473 | 0.223483 | 76,601 | 2,005 | 99 | 38.204988 | 0.812935 | 0.104711 | 0 | 0.402315 | 1 | 0.000681 | 0.141912 | 0.066663 | 0 | 0 | 0 | 0 | 0.078965 | 1 | 0.060585 | false | 0.005446 | 0.008169 | 0.03744 | 0.394826 | 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 |
866017a177effed366d9a7810ad090cd23a963da | 1,163 | py | Python | ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py | PierreExeter/custom_gym_envs | 2b6a1c16a4198c8d9fa64f10fe09a041826ac81a | [
"MIT"
] | 1 | 2020-09-25T01:51:58.000Z | 2020-09-25T01:51:58.000Z | ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py | PierreExeter/custom_gym_envs | 2b6a1c16a4198c8d9fa64f10fe09a041826ac81a | [
"MIT"
] | null | null | null | ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py | PierreExeter/custom_gym_envs | 2b6a1c16a4198c8d9fa64f10fe09a041826ac81a | [
"MIT"
] | 1 | 2021-07-16T02:55:59.000Z | 2021-07-16T02:55:59.000Z | #!/usr/bin/env python
import gym
import rospy
from openai_ros.openai_ros_common import StartOpenAI_ROS_Environment
# initialise environment
rospy.init_node('turtlebot2_maze_random', anonymous=True, log_level=rospy.WARN)
task_and_robot_environment_name = rospy.get_param('/turtlebot2/task_and_robot_environment_name')
e... | 27.690476 | 96 | 0.687016 | 149 | 1,163 | 5.154362 | 0.395973 | 0.071615 | 0.072917 | 0.089844 | 0.105469 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008466 | 0.187446 | 1,163 | 42 | 97 | 27.690476 | 0.804233 | 0.085985 | 0 | 0 | 0 | 0 | 0.188679 | 0.061321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.481481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
86609708c6740fc5dcff69f746034012abb3d227 | 1,112 | py | Python | 01_basics/01_building_expressions/02_vector_mat_soln.py | johny-c/theano_exercises | 7fd43315bf7c475a6f218091316c0bd34e0688c4 | [
"BSD-3-Clause"
] | 711 | 2015-01-10T05:39:21.000Z | 2022-03-15T23:45:45.000Z | 01_basics/01_building_expressions/02_vector_mat_soln.py | rsingh2083/theano_exercises | 7fd43315bf7c475a6f218091316c0bd34e0688c4 | [
"BSD-3-Clause"
] | 2 | 2016-06-13T06:46:58.000Z | 2017-04-14T08:21:20.000Z | 01_basics/01_building_expressions/02_vector_mat_soln.py | rsingh2083/theano_exercises | 7fd43315bf7c475a6f218091316c0bd34e0688c4 | [
"BSD-3-Clause"
] | 371 | 2015-01-16T01:31:41.000Z | 2022-03-15T11:37:30.000Z | import numpy as np
from theano import function
import theano.tensor as T
def make_vector():
"""
Returns a new Theano vector.
"""
return T.vector()
def make_matrix():
"""
Returns a new Theano matrix.
"""
return T.matrix()
def elemwise_mul(a, b):
"""
a: A theano matrix
b: ... | 19.508772 | 48 | 0.607014 | 176 | 1,112 | 3.664773 | 0.289773 | 0.018605 | 0.023256 | 0.052713 | 0.20155 | 0.20155 | 0.083721 | 0.083721 | 0.083721 | 0.083721 | 0 | 0.008589 | 0.267086 | 1,112 | 56 | 49 | 19.857143 | 0.782822 | 0 | 0 | 0 | 0 | 0 | 0.019656 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | null | null | 0 | 0.111111 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
866731500bf9de7d963d33a61b133cfd0fb18eda | 1,727 | py | Python | examples/src/python/join_streamlet_topology.py | aaronstjohn/incubator-heron | bdc35f8d23296472983956a477ea38da54d16b2b | [
"Apache-2.0"
] | 2 | 2016-07-04T07:10:31.000Z | 2018-03-28T16:59:02.000Z | examples/src/python/join_streamlet_topology.py | aaronstjohn/incubator-heron | bdc35f8d23296472983956a477ea38da54d16b2b | [
"Apache-2.0"
] | 1 | 2019-05-08T22:30:16.000Z | 2019-05-08T22:30:16.000Z | examples/src/python/join_streamlet_topology.py | aaronstjohn/incubator-heron | bdc35f8d23296472983956a477ea38da54d16b2b | [
"Apache-2.0"
] | 1 | 2017-06-05T17:55:45.000Z | 2017-06-05T17:55:45.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache... | 35.979167 | 93 | 0.735379 | 251 | 1,727 | 4.988048 | 0.505976 | 0.047923 | 0.063898 | 0.025559 | 0.049521 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013774 | 0.159236 | 1,727 | 47 | 94 | 36.744681 | 0.848485 | 0.536769 | 0 | 0 | 0 | 0 | 0.07732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86695a9d77f6427fc910ad0a37e4e6d95359ee20 | 1,918 | py | Python | tests/test.py | Nekmo/spice | 717a2cc24ad969e1caec2aabeffc30a796c6ec91 | [
"MIT"
] | null | null | null | tests/test.py | Nekmo/spice | 717a2cc24ad969e1caec2aabeffc30a796c6ec91 | [
"MIT"
] | null | null | null | tests/test.py | Nekmo/spice | 717a2cc24ad969e1caec2aabeffc30a796c6ec91 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import requests
import sys, os
from time import sleep
sys.path.insert(0, '/home/may/Dropbox/Programming/spice/')
import spice_api as spice
def main():
creds = spice.load_auth_from_file('auth')
print(creds)
results = spice.search('Re:Zero Kara Hajimeru Isekai Seikatsu', spic... | 34.25 | 101 | 0.717414 | 279 | 1,918 | 4.65233 | 0.333333 | 0.124807 | 0.151002 | 0.065485 | 0.200308 | 0.132512 | 0.095532 | 0 | 0 | 0 | 0 | 0.020258 | 0.150678 | 1,918 | 55 | 102 | 34.872727 | 0.77655 | 0 | 0 | 0 | 0 | 0 | 0.114181 | 0.01877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.104167 | 0 | 0.125 | 0.479167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
866b10a749a0729a15fdb56c60d4ea92a50f3344 | 3,270 | py | Python | neutron/db/models/l3ha.py | cleo4zheng/neutron | 6d65318308edfd984bdd0ff1ac7fef9486a040f7 | [
"Apache-2.0"
] | 4 | 2018-08-05T00:43:03.000Z | 2021-10-13T00:45:45.000Z | neutron/db/models/l3ha.py | cleo4zheng/neutron | 6d65318308edfd984bdd0ff1ac7fef9486a040f7 | [
"Apache-2.0"
] | 8 | 2018-06-14T14:50:16.000Z | 2018-11-13T16:30:42.000Z | neutron/db/models/l3ha.py | cleo4zheng/neutron | 6d65318308edfd984bdd0ff1ac7fef9486a040f7 | [
"Apache-2.0"
] | 7 | 2018-06-12T18:57:04.000Z | 2019-05-09T15:42:30.000Z | # Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
#
# 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 applicabl... | 37.159091 | 76 | 0.644954 | 413 | 3,270 | 4.900726 | 0.360775 | 0.047431 | 0.034585 | 0.035573 | 0.242095 | 0.204545 | 0.1917 | 0.159091 | 0.089921 | 0.089921 | 0 | 0.014737 | 0.2737 | 3,270 | 87 | 77 | 37.586207 | 0.837474 | 0.296942 | 0 | 0.214286 | 0 | 0 | 0.10892 | 0.048857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.547619 | 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 |
8671b6a372caa3589eb77dcc566a9b3713aa80a9 | 6,499 | py | Python | genlist.py | truckli/technotes | 11d3cc0a1bd33141a22eaa2247cac1be1d74718a | [
"Apache-2.0"
] | null | null | null | genlist.py | truckli/technotes | 11d3cc0a1bd33141a22eaa2247cac1be1d74718a | [
"Apache-2.0"
] | null | null | null | genlist.py | truckli/technotes | 11d3cc0a1bd33141a22eaa2247cac1be1d74718a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import shutil, re, os, sys
file_model = "Model.template"
bookname = "TechNotes"
file_bibtex = "thebib.bib"
folder_target = "../pdf/"
#if name is a chapter, return its sections
def get_sections(name):
if not os.path.isdir(name):
return []
files = os.listdir(name)
sections = ... | 27.892704 | 82 | 0.610248 | 810 | 6,499 | 4.687654 | 0.201235 | 0.047406 | 0.046352 | 0.023703 | 0.1596 | 0.053463 | 0.029497 | 0.018436 | 0.018436 | 0 | 0 | 0.003137 | 0.264348 | 6,499 | 232 | 83 | 28.012931 | 0.791048 | 0.142791 | 0 | 0.135484 | 0 | 0 | 0.088342 | 0.017304 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006452 | null | null | 0.025806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
86735b1546f055d4c408acb184f9fb83f843ede1 | 2,272 | py | Python | Older Examples - enter at your own risk/lavender_pos/app/models.py | electricimp/examples | ebdd01baf64f3aa67f027194457432c7d7501d37 | [
"MIT"
] | 26 | 2015-01-17T23:43:06.000Z | 2021-09-28T18:24:28.000Z | Older Examples - enter at your own risk/lavender_pos/app/models.py | silver2row/examples | 0ef3bd4b4a875364db883c7c387f1f175a3ce61e | [
"MIT"
] | 5 | 2015-02-27T22:23:39.000Z | 2020-10-19T23:58:55.000Z | Older Examples - enter at your own risk/lavender_pos/app/models.py | silver2row/examples | 0ef3bd4b4a875364db883c7c387f1f175a3ce61e | [
"MIT"
] | 42 | 2015-01-22T16:33:12.000Z | 2021-01-14T02:33:15.000Z | import datetime
from database import Base
from sqlalchemy import Column, String, Integer, ForeignKey, DateTime, Float
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
first_name = Column(String(255))
last_name = Column(String(255))
email = Column(String(255), index... | 28.049383 | 81 | 0.652729 | 272 | 2,272 | 5.341912 | 0.341912 | 0.074329 | 0.072264 | 0.060564 | 0.408809 | 0.355127 | 0.31521 | 0.162423 | 0.162423 | 0 | 0 | 0.015762 | 0.246039 | 2,272 | 80 | 82 | 28.4 | 0.832458 | 0.247359 | 0 | 0.35 | 0 | 0 | 0.051513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.025 | 0.075 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8674487bc14ab6d974246602ccaa1b9927159028 | 4,724 | py | Python | rr_ml/nodes/end_to_end/train.py | ebretl/roboracing-software | 8803c97a885500069d04e70894b19f807ae5baf9 | [
"MIT"
] | null | null | null | rr_ml/nodes/end_to_end/train.py | ebretl/roboracing-software | 8803c97a885500069d04e70894b19f807ae5baf9 | [
"MIT"
] | null | null | null | rr_ml/nodes/end_to_end/train.py | ebretl/roboracing-software | 8803c97a885500069d04e70894b19f807ae5baf9 | [
"MIT"
] | null | null | null | import os
import math
import string
import numpy as np
import rospy
import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D, \
GaussianNoise, BatchNormalization
import cv2
import collections
import random
import time
from example_s... | 33.503546 | 94 | 0.622777 | 583 | 4,724 | 4.919383 | 0.319039 | 0.030683 | 0.018131 | 0.01569 | 0.108787 | 0.08159 | 0.08159 | 0.032775 | 0.032775 | 0 | 0 | 0.022932 | 0.270745 | 4,724 | 140 | 95 | 33.742857 | 0.809579 | 0.028154 | 0 | 0 | 0 | 0 | 0.054101 | 0.006108 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130841 | null | null | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
86798d0504dd04df9298eafb92e49de14fb4653a | 3,804 | py | Python | cloudferry/actions/prechecks/check_vmax_prerequisites.py | SVilgelm/CloudFerry | 4459c0d21ba7ccffe51176932197b352e426ba63 | [
"Apache-2.0"
] | 6 | 2017-04-20T00:49:49.000Z | 2020-12-20T16:27:10.000Z | cloudferry/actions/prechecks/check_vmax_prerequisites.py | SVilgelm/CloudFerry | 4459c0d21ba7ccffe51176932197b352e426ba63 | [
"Apache-2.0"
] | 3 | 2017-04-08T15:47:16.000Z | 2017-05-18T17:40:59.000Z | cloudferry/actions/prechecks/check_vmax_prerequisites.py | SVilgelm/CloudFerry | 4459c0d21ba7ccffe51176932197b352e426ba63 | [
"Apache-2.0"
] | 8 | 2017-04-07T23:42:36.000Z | 2021-08-10T11:05:10.000Z | # Copyright 2016 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 41.347826 | 79 | 0.624869 | 457 | 3,804 | 5.056893 | 0.380744 | 0.021203 | 0.023799 | 0.02077 | 0.168758 | 0.064907 | 0.064907 | 0.064907 | 0 | 0 | 0 | 0.002985 | 0.295478 | 3,804 | 91 | 80 | 41.802198 | 0.859328 | 0.166404 | 0 | 0.177419 | 0 | 0 | 0.268974 | 0.023182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.129032 | 0.096774 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8681dc9beb7ce1fcfe008337221dc6feb16aedb5 | 1,888 | py | Python | conan/tools/env/virtualrunenv.py | dscole/conan | ff7b8e6703e8407773968517d68424b9ec59aa30 | [
"MIT"
] | null | null | null | conan/tools/env/virtualrunenv.py | dscole/conan | ff7b8e6703e8407773968517d68424b9ec59aa30 | [
"MIT"
] | 1 | 2019-06-07T03:02:02.000Z | 2019-06-07T03:02:02.000Z | conan/tools/env/virtualrunenv.py | dscole/conan | ff7b8e6703e8407773968517d68424b9ec59aa30 | [
"MIT"
] | 1 | 2021-08-20T19:47:51.000Z | 2021-08-20T19:47:51.000Z | from conan.tools.env import Environment
def runenv_from_cpp_info(conanfile, cpp_info):
""" return an Environment deducing the runtime information from a cpp_info
"""
dyn_runenv = Environment(conanfile)
if cpp_info is None: # This happens when the dependency is a private one = BINARY_SKIP
retu... | 37.76 | 94 | 0.697034 | 253 | 1,888 | 4.928854 | 0.351779 | 0.078589 | 0.028869 | 0.064154 | 0.158781 | 0.158781 | 0.056135 | 0.056135 | 0 | 0 | 0 | 0 | 0.227225 | 1,888 | 49 | 95 | 38.530612 | 0.854695 | 0.26589 | 0 | 0.068966 | 0 | 0 | 0.049364 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.137931 | false | 0 | 0.034483 | 0 | 0.310345 | 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 |
868508f96e8daab66111c1b9c301708733421f4d | 652 | py | Python | src/api/api_lists/models/list.py | rrickgauer/lists | 371de6af332789ef386392fd24857702794d05a6 | [
"Apache-2.0"
] | null | null | null | src/api/api_lists/models/list.py | rrickgauer/lists | 371de6af332789ef386392fd24857702794d05a6 | [
"Apache-2.0"
] | 67 | 2021-12-14T22:30:56.000Z | 2022-03-15T18:28:27.000Z | src/api/api_lists/models/list.py | rrickgauer/lists | 371de6af332789ef386392fd24857702794d05a6 | [
"Apache-2.0"
] | null | null | null | """
**********************************************************************************
List model
**********************************************************************************
"""
from enum import Enum
from dataclasses import dataclass
from uuid import UUID
from datetime import datetime
class ListType(str, Enum... | 23.285714 | 82 | 0.460123 | 57 | 652 | 5.192982 | 0.45614 | 0.081081 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231595 | 652 | 28 | 83 | 23.285714 | 0.590818 | 0.269939 | 0 | 0 | 0 | 0 | 0.025586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0.058824 | 0.882353 | 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 |
86864787ee128fda8f0e696df8fc12952938543c | 4,356 | py | Python | run_mod.py | fpl-analytics/gr_crypto | 2b0ab451c9c205a9f572c4bca23fffbb68ca188f | [
"MIT"
] | null | null | null | run_mod.py | fpl-analytics/gr_crypto | 2b0ab451c9c205a9f572c4bca23fffbb68ca188f | [
"MIT"
] | null | null | null | run_mod.py | fpl-analytics/gr_crypto | 2b0ab451c9c205a9f572c4bca23fffbb68ca188f | [
"MIT"
] | null | null | null | """
Setup:
- Import Libraries
- Setup tf on multiple cores
- Import Data
"""
import pandas as pd
import numpy as np
import tensorflow as tf
import seaborn as sns
from time import time
import multiprocessing
import random
import os
from tensorflow.keras.models import Sequential
from tensorflow.keras.layer... | 25.623529 | 93 | 0.677456 | 657 | 4,356 | 4.266362 | 0.252664 | 0.048163 | 0.024973 | 0.028541 | 0.358188 | 0.34142 | 0.330717 | 0.271495 | 0.271495 | 0.261149 | 0 | 0.022166 | 0.181818 | 4,356 | 169 | 94 | 25.775148 | 0.76431 | 0.025941 | 0 | 0.186047 | 0 | 0 | 0.093323 | 0.05122 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.197674 | null | null | 0.05814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
868928ba8707be83d375694167add597b520a225 | 616 | py | Python | SmartCache/sim/Utilities/setup.py | Cloud-PG/smart-cache | 467987abece3fd4830fd615288046359761229f8 | [
"Apache-2.0"
] | 1 | 2019-10-13T09:05:24.000Z | 2019-10-13T09:05:24.000Z | SmartCache/sim/Utilities/setup.py | Cloud-PG/smart-cache | 467987abece3fd4830fd615288046359761229f8 | [
"Apache-2.0"
] | null | null | null | SmartCache/sim/Utilities/setup.py | Cloud-PG/smart-cache | 467987abece3fd4830fd615288046359761229f8 | [
"Apache-2.0"
] | 1 | 2019-05-16T11:53:38.000Z | 2019-05-16T11:53:38.000Z | from distutils.core import setup
setup(
name='utils',
version='1.0.0',
author='Mirco Tracolli',
author_email='mirco.tracolli@pg.infn.it',
packages=[
'utils',
],
scripts=[],
url='https://github.com/Cloud-PG/smart-cache',
license='Apache 2.0 License',
description='Utils fo... | 26.782609 | 56 | 0.61039 | 71 | 616 | 5.253521 | 0.774648 | 0.069705 | 0.042895 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.227273 | 616 | 22 | 57 | 28 | 0.766807 | 0 | 0 | 0 | 0 | 0 | 0.469156 | 0.040584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
868f63854096baf68c5ff8cc2009603138d30b30 | 5,195 | py | Python | delphiIDE.py | JeisonJHA/Plugins-Development | cccb58908eed6114c569e53d5710e70b8d53f5c5 | [
"MIT"
] | null | null | null | delphiIDE.py | JeisonJHA/Plugins-Development | cccb58908eed6114c569e53d5710e70b8d53f5c5 | [
"MIT"
] | null | null | null | delphiIDE.py | JeisonJHA/Plugins-Development | cccb58908eed6114c569e53d5710e70b8d53f5c5 | [
"MIT"
] | null | null | null | import sublime_plugin
class MethodDeclaration(object):
"""docstring for MethodDeclaration"""
def __init__(self):
self._methodclass = None
self.has_implementation = False
self.has_interface = False
@property
def has_implementation(self):
return self._has_implementation... | 26.237374 | 99 | 0.609047 | 504 | 5,195 | 6.099206 | 0.212302 | 0.046519 | 0.059206 | 0.023422 | 0.030579 | 0.014964 | 0.014964 | 0 | 0 | 0 | 0 | 0.001937 | 0.304524 | 5,195 | 197 | 100 | 26.370558 | 0.848879 | 0.071992 | 0 | 0.124088 | 0 | 0 | 0.039375 | 0.019792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.248175 | false | 0.007299 | 0.007299 | 0.094891 | 0.416058 | 0.014599 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
869f105dabe3ba66d48901d5ab1ef89fe7052f2e | 624 | py | Python | investment_report/migrations/0020_auto_20180911_1005.py | uktrade/pir-api | 79747ceab042c42c287e2b7471f6dade70f68693 | [
"MIT"
] | 1 | 2021-02-02T19:08:55.000Z | 2021-02-02T19:08:55.000Z | investment_report/migrations/0020_auto_20180911_1005.py | uktrade/invest-pir-api | be56efddf9dfdf81c8557441a9a54d9a4dd4bab1 | [
"MIT"
] | 21 | 2018-07-10T10:20:47.000Z | 2022-03-24T09:36:29.000Z | investment_report/migrations/0020_auto_20180911_1005.py | uktrade/pir-api | 79747ceab042c42c287e2b7471f6dade70f68693 | [
"MIT"
] | 1 | 2021-02-04T11:28:37.000Z | 2021-02-04T11:28:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-09-11 10:05
from __future__ import unicode_literals
import config.s3
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('investment_report', '0019_auto_20180820_1304'),
]
operations = [
... | 27.130435 | 155 | 0.653846 | 74 | 624 | 5.324324 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079002 | 0.229167 | 624 | 22 | 156 | 28.363636 | 0.740125 | 0.110577 | 0 | 0 | 1 | 0 | 0.25 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
86a51a9e777416f598dec47e504f16a9b1fa7744 | 433 | py | Python | myFirstApp/travello/models.py | cankush625/Django | a3e874a69fbf34bf9123a7d60697a2449c7591c6 | [
"MIT"
] | null | null | null | myFirstApp/travello/models.py | cankush625/Django | a3e874a69fbf34bf9123a7d60697a2449c7591c6 | [
"MIT"
] | 10 | 2020-02-12T03:08:48.000Z | 2022-02-10T11:27:50.000Z | myFirstApp/travello/models.py | cankush625/Django | a3e874a69fbf34bf9123a7d60697a2449c7591c6 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Destination(models.Model) :
name = models.CharField(max_length = 100)
img = models.ImageField(upload_to = 'pics')
desc = models.TextField()
price = models.IntegerField()
offer = models.BooleanField(default = False)
class News()... | 22.789474 | 48 | 0.637413 | 52 | 433 | 5.269231 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.265589 | 433 | 19 | 49 | 22.789474 | 0.852201 | 0.055427 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
86a7a933257c5b58ca131b6e09db3e5af93d5f4e | 19,069 | py | Python | netesto/local/psPlot.py | fakeNetflix/facebook-repo-fbkutils | 16ec0c024322c163e7dbe691812ba8fdf5b511ad | [
"BSD-3-Clause"
] | 346 | 2016-04-08T17:04:29.000Z | 2021-09-30T06:05:47.000Z | netesto/local/psPlot.py | fakeNetflix/facebook-repo-fbkutils | 16ec0c024322c163e7dbe691812ba8fdf5b511ad | [
"BSD-3-Clause"
] | 38 | 2016-04-26T14:58:17.000Z | 2021-10-07T20:43:39.000Z | netesto/local/psPlot.py | fakeNetflix/facebook-repo-fbkutils | 16ec0c024322c163e7dbe691812ba8fdf5b511ad | [
"BSD-3-Clause"
] | 76 | 2016-04-08T17:59:23.000Z | 2021-09-05T13:18:27.000Z | #!/usr/bin/env python2
import sys
import random
import os.path
import shutil
import commands
import types
import math
#gsPath = '/usr/local/bin/gs'
gsPath = 'gs'
logFile = '/dev/null'
#logFile = 'plot.log'
#--- class PsPlot(fname, pageHeader, pageSubHeader, plotsPerPage)
#
class PsPlot(object):
def __init__(self... | 31.260656 | 147 | 0.457968 | 2,295 | 19,069 | 3.798693 | 0.156427 | 0.070658 | 0.099908 | 0.0195 | 0.254416 | 0.193164 | 0.161849 | 0.146708 | 0.133861 | 0.129158 | 0 | 0.054708 | 0.391316 | 19,069 | 609 | 148 | 31.311987 | 0.69639 | 0.063873 | 0 | 0.280079 | 0 | 0 | 0.090128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013807 | null | null | 0.149901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
86a7e9fe107833a210f5b3b41b68cc42c51f48ee | 402 | py | Python | physio2go/exercises/migrations/0003_auto_20161128_1753.py | hamole/physio2go | ebd14c9406e2b6818dc649e4863a734bf812e9b0 | [
"MIT"
] | null | null | null | physio2go/exercises/migrations/0003_auto_20161128_1753.py | hamole/physio2go | ebd14c9406e2b6818dc649e4863a734bf812e9b0 | [
"MIT"
] | null | null | null | physio2go/exercises/migrations/0003_auto_20161128_1753.py | hamole/physio2go | ebd14c9406e2b6818dc649e4863a734bf812e9b0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-28 06:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('exercises', '0002_auto_20161128_1718'),
]
operations = [
migrations.RenameModel(
... | 20.1 | 49 | 0.621891 | 44 | 402 | 5.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111486 | 0.263682 | 402 | 19 | 50 | 21.157895 | 0.699324 | 0.169154 | 0 | 0 | 1 | 0 | 0.148036 | 0.069486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ab8849571d80e31e545baaa8fc3a7e45faa001 | 6,176 | py | Python | tests/test_agent/test_manhole.py | guidow/pyfarm-agent | bb5d464f9f6549a3db3529a93e3d9f388b365586 | [
"Apache-2.0"
] | null | null | null | tests/test_agent/test_manhole.py | guidow/pyfarm-agent | bb5d464f9f6549a3db3529a93e3d9f388b365586 | [
"Apache-2.0"
] | null | null | null | tests/test_agent/test_manhole.py | guidow/pyfarm-agent | bb5d464f9f6549a3db3529a93e3d9f388b365586 | [
"Apache-2.0"
] | null | null | null | # No shebang line, this module is meant to be imported
#
# Copyright 2014 Oliver Palmer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 32.505263 | 79 | 0.615771 | 647 | 6,176 | 5.812983 | 0.33694 | 0.018612 | 0.017549 | 0.02712 | 0.279713 | 0.250997 | 0.238235 | 0.238235 | 0.227067 | 0.227067 | 0 | 0.011322 | 0.284974 | 6,176 | 189 | 80 | 32.677249 | 0.840353 | 0.114475 | 0 | 0.316176 | 0 | 0 | 0.106221 | 0.014485 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.095588 | false | 0.073529 | 0.102941 | 0 | 0.286765 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
86abdce88613d6ee71e638ae7487297146c3e7a8 | 338 | py | Python | func-button/klSigmode.py | xcgoo/uiKLine | 80683401d7dc66262ae645db4c2780d6e71be551 | [
"MIT"
] | 232 | 2017-10-11T09:19:03.000Z | 2022-03-09T01:34:49.000Z | func-button/klSigmode.py | DON-2020-LEE/uiKLine-2 | fd1d0dca5fd6b1542af4b10c110e39361b29d378 | [
"MIT"
] | 8 | 2017-12-09T09:10:15.000Z | 2021-04-22T03:35:26.000Z | func-button/klSigmode.py | DON-2020-LEE/uiKLine-2 | fd1d0dca5fd6b1542af4b10c110e39361b29d378 | [
"MIT"
] | 132 | 2017-10-11T09:16:29.000Z | 2022-02-09T10:37:57.000Z | # coding: utf-8
"""
插入所有需要的库,和函数
"""
#----------------------------------------------------------------------
def klSigmode(self):
"""查找模式"""
if self.mode == 'deal':
self.canvas.updateSig(self.signalsOpen)
self.mode = 'dealOpen'
else:
self.canvas.updateSig(self.signals)
se... | 21.125 | 71 | 0.446746 | 30 | 338 | 5.033333 | 0.6 | 0.15894 | 0.15894 | 0.304636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.213018 | 338 | 15 | 72 | 22.533333 | 0.56391 | 0.301775 | 0 | 0 | 0 | 0 | 0.072398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 |
86ae868b0b9598e5f2e99607cce26d99b3a34dc3 | 4,147 | py | Python | vantage6/server/resource/recover.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 2 | 2020-10-19T08:59:08.000Z | 2022-03-07T10:30:21.000Z | vantage6/server/resource/recover.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 67 | 2020-04-15T09:43:31.000Z | 2022-03-18T08:29:17.000Z | vantage6/server/resource/recover.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 2 | 2021-01-21T15:09:26.000Z | 2021-04-19T14:58:10.000Z | # -*- coding: utf-8 -*-
import logging
import datetime
from flask import request, render_template
from flask_jwt_extended import (
create_access_token,
decode_token
)
from jwt.exceptions import DecodeError
from flasgger import swag_from
from http import HTTPStatus
from pathlib import Path
from sqlalchemy.orm.e... | 30.718519 | 80 | 0.590306 | 459 | 4,147 | 5.187364 | 0.346405 | 0.033599 | 0.01008 | 0.01638 | 0.107518 | 0.094918 | 0.094918 | 0 | 0 | 0 | 0 | 0.002001 | 0.276827 | 4,147 | 134 | 81 | 30.947761 | 0.791931 | 0.15674 | 0 | 0.175824 | 0 | 0 | 0.180375 | 0.036075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0.21978 | 0.131868 | 0 | 0.252747 | 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 |
86b4af0033c71e00f4e30f0ac3bfd045c1932aa8 | 760 | py | Python | examples/server/models/image_file_upload.py | ParikhKadam/django-angular | 1fdd2ab3211ed1655acc2d172d826ed7f3ad0574 | [
"MIT"
] | 941 | 2015-01-01T18:17:43.000Z | 2022-02-26T07:45:40.000Z | examples/server/models/image_file_upload.py | ParikhKadam/django-angular | 1fdd2ab3211ed1655acc2d172d826ed7f3ad0574 | [
"MIT"
] | 228 | 2015-01-11T16:36:34.000Z | 2022-03-11T23:17:15.000Z | examples/server/models/image_file_upload.py | ParikhKadam/django-angular | 1fdd2ab3211ed1655acc2d172d826ed7f3ad0574 | [
"MIT"
] | 294 | 2015-01-04T09:01:33.000Z | 2022-02-26T07:45:41.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
# start tutorial
from django.db import models
from djng.forms import NgModelFormMixin, NgFormValidationMixin
from djng.styling.bootstrap3.forms import Bootstrap3ModelForm
class SubscribeUser(models.Model):
full_name = models.CharField(
"Full ... | 28.148148 | 82 | 0.728947 | 83 | 760 | 6.506024 | 0.590361 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.175 | 760 | 26 | 83 | 29.230769 | 0.851675 | 0.047368 | 0 | 0 | 0 | 0 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.764706 | 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 |
86bd70e7874de4b570ed32325f28d65eaa058486 | 4,544 | py | Python | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | 5 | 2021-09-16T10:41:44.000Z | 2021-11-04T14:45:24.000Z | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | null | null | null | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | null | null | null |
class LineSegment3D(object):
"""A class to represent a 3D line segment."""
def __init__(self, p1, p2):
"""Initialize with two endpoints."""
if p1 > p2:
p1, p2 = (p2, p1)
self.p1 = p1
self.p2 = p2
self.count = 1
def __len__(self):
"""Line segment... | 28.223602 | 79 | 0.53015 | 573 | 4,544 | 4.073298 | 0.230366 | 0.033419 | 0.027849 | 0.011997 | 0.218081 | 0.183376 | 0.167095 | 0.164524 | 0.116538 | 0.116538 | 0 | 0.028485 | 0.34331 | 4,544 | 160 | 80 | 28.4 | 0.753686 | 0.224692 | 0 | 0.205607 | 0 | 0 | 0.010291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214953 | false | 0 | 0 | 0.009346 | 0.401869 | 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 |
86cc1ac4bd0be7cfc736232b574de4d27f85e0ca | 6,656 | py | Python | discord/types/interactions.py | Voxel-Fox-Ltd/Novus | 3e254115daf1c09455b26dc7819b73fbf5ee56e5 | [
"MIT"
] | 61 | 2021-08-30T05:30:31.000Z | 2022-03-24T11:24:38.000Z | discord/types/interactions.py | Voxel-Fox-Ltd/Novus | 3e254115daf1c09455b26dc7819b73fbf5ee56e5 | [
"MIT"
] | 30 | 2021-08-31T10:16:42.000Z | 2022-03-09T22:53:15.000Z | discord/types/interactions.py | Voxel-Fox-Ltd/Novus | 3e254115daf1c09455b26dc7819b73fbf5ee56e5 | [
"MIT"
] | 15 | 2021-09-02T09:40:58.000Z | 2022-02-25T12:19:02.000Z | """
The MIT License (MIT)
Copyright (c) 2015-2021 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, ... | 27.618257 | 99 | 0.790415 | 614 | 6,656 | 8.495114 | 0.32899 | 0.029525 | 0.057515 | 0.005752 | 0.063842 | 0.02339 | 0.02339 | 0 | 0 | 0 | 0 | 0.007615 | 0.151593 | 6,656 | 240 | 100 | 27.733333 | 0.916062 | 0.167819 | 0 | 0.239726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068493 | 0 | 0.90411 | 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 |
86ce3c0225876fe3453133a9a0965f8f30c17a84 | 5,447 | py | Python | flask_unchained/bundles/session/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/bundles/session/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | flask_unchained/bundles/session/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | import os
from datetime import timedelta
from flask_unchained import BundleConfig
try:
from flask_unchained.bundles.sqlalchemy import db
except ImportError:
db = None
class _DefaultFlaskConfigForSessions(BundleConfig):
SESSION_COOKIE_NAME = 'session'
"""
The name of the session cookie.
Defa... | 27.371859 | 111 | 0.668258 | 672 | 5,447 | 5.315476 | 0.318452 | 0.050392 | 0.052912 | 0.058231 | 0.221165 | 0.18589 | 0.179731 | 0.080627 | 0.080627 | 0.033035 | 0 | 0.012814 | 0.226363 | 5,447 | 198 | 112 | 27.510101 | 0.834836 | 0.00973 | 0 | 0 | 0 | 0 | 0.054662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.9375 | 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 |
86d39cbeb38ed832359d8101e1462aeccc15eee8 | 1,400 | py | Python | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | 1 | 2018-04-25T08:08:47.000Z | 2018-04-25T08:08:47.000Z | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | null | null | null | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | 1 | 2018-04-25T08:08:48.000Z | 2018-04-25T08:08:48.000Z | import pickle
import threading
from bmconfigparser import BMConfigParser
import state
knownNodesLock = threading.Lock()
knownNodes = {}
knownNodesTrimAmount = 2000
def saveKnownNodes(dirName = None):
if dirName is None:
dirName = state.appdata
with knownNodesLock:
with open(dirName + 'knownn... | 30.434783 | 120 | 0.648571 | 134 | 1,400 | 6.776119 | 0.440299 | 0.079295 | 0.088106 | 0.114537 | 0.160793 | 0.160793 | 0.160793 | 0.160793 | 0.160793 | 0.160793 | 0 | 0.010496 | 0.251429 | 1,400 | 45 | 121 | 31.111111 | 0.855916 | 0 | 0 | 0.315789 | 0 | 0 | 0.047143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.105263 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.