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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
896d5a8411ec33203a666f53039905ece489486a | 1,602 | py | Python | nessai/flows/maf.py | mj-will/nessai | e1ccc791a332565af372d14e5986920d552e1294 | [
"MIT"
] | 16 | 2021-02-18T00:04:54.000Z | 2021-09-01T03:25:45.000Z | nessai/flows/maf.py | mj-will/nessai | e1ccc791a332565af372d14e5986920d552e1294 | [
"MIT"
] | 59 | 2021-03-09T11:05:37.000Z | 2022-03-30T14:21:14.000Z | nessai/flows/maf.py | mj-will/nessai | e1ccc791a332565af372d14e5986920d552e1294 | [
"MIT"
] | 1 | 2022-03-25T12:28:16.000Z | 2022-03-25T12:28:16.000Z | # -*- coding: utf-8 -*-
"""
Implementation of MaskedAutoregressiveFlow.
"""
from nflows.flows import MaskedAutoregressiveFlow as BaseMAF
class MaskedAutoregressiveFlow(BaseMAF):
"""
Wrapper for MaskedAutoregressiveFlow included in nflows
Adds the additional methods that are used in FlowModel.
See: h... | 30.226415 | 73 | 0.646067 | 190 | 1,602 | 5.357895 | 0.352632 | 0.041257 | 0.047151 | 0.055992 | 0.333988 | 0.242633 | 0.19057 | 0.19057 | 0.094303 | 0 | 0 | 0.000855 | 0.269663 | 1,602 | 52 | 74 | 30.807692 | 0.869231 | 0.479401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
896f80de412e3bb1a13f8f586923ea825e79cf81 | 3,167 | py | Python | picture-management/smug_linker.py | ndhuang/python-lib | 7686c31ec009053be8bd941f4fba17b9216812f9 | [
"MIT"
] | null | null | null | picture-management/smug_linker.py | ndhuang/python-lib | 7686c31ec009053be8bd941f4fba17b9216812f9 | [
"MIT"
] | null | null | null | picture-management/smug_linker.py | ndhuang/python-lib | 7686c31ec009053be8bd941f4fba17b9216812f9 | [
"MIT"
] | null | null | null | '''
Notes on wordpress hero theme:
'''
BORDERSTYLE = "border:12px solid transparent;"
import argparse
import re
def parseHTML(html):
'''
Parse the smugmug link for the things we need. The return is
link, src, alt
'''
regex = '<a href="(\S+)"><img src="(\S+)".*alt="(.*)"></a>'
match = re.mat... | 39.5875 | 160 | 0.550363 | 414 | 3,167 | 4.147343 | 0.316425 | 0.041934 | 0.079208 | 0.030285 | 0.057076 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006186 | 0.285444 | 3,167 | 79 | 161 | 40.088608 | 0.752541 | 0.017367 | 0 | 0.070175 | 0 | 0.035088 | 0.255469 | 0.023994 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035088 | null | null | 0.087719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
897f3bc230422826b368abceee058af1ba97fc46 | 1,778 | py | Python | AbletonLiveScripts/v10/ComradeEncoders/control.py | lzref/ComradeEncoders | 154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9 | [
"MIT"
] | 1 | 2021-11-26T01:52:30.000Z | 2021-11-26T01:52:30.000Z | AbletonLiveScripts/v10/ComradeEncoders/control.py | lzref/ComradeEncoders | 154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9 | [
"MIT"
] | null | null | null | AbletonLiveScripts/v10/ComradeEncoders/control.py | lzref/ComradeEncoders | 154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9 | [
"MIT"
] | 1 | 2021-11-26T01:52:31.000Z | 2021-11-26T01:52:31.000Z | # uncompyle6 version 3.4.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10)
# [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/SL_MkIII/con... | 35.56 | 135 | 0.667604 | 233 | 1,778 | 4.7897 | 0.39485 | 0.028674 | 0.035842 | 0.072581 | 0.238351 | 0.0681 | 0.0681 | 0 | 0 | 0 | 0 | 0.050259 | 0.239033 | 1,778 | 50 | 136 | 35.56 | 0.774575 | 0.19685 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0.03125 | 0.4375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
897f85295b5a2446117a53e4f975c272ce62332f | 4,380 | py | Python | picture.py | squallord/mosaic-gallery | df0ce934fde4f42e9ef0dd6ee4795956b9c28c38 | [
"MIT"
] | 1 | 2017-05-01T10:20:04.000Z | 2017-05-01T10:20:04.000Z | picture.py | squallord/mosaic-gallery | df0ce934fde4f42e9ef0dd6ee4795956b9c28c38 | [
"MIT"
] | null | null | null | picture.py | squallord/mosaic-gallery | df0ce934fde4f42e9ef0dd6ee4795956b9c28c38 | [
"MIT"
] | null | null | null | import utils, math
import constants as ct
from PIL import ExifTags
# class to keep picture data
#
class Picture:
def __init__(self, name, path, image, number):
self._name = name
self._path = path
self._image = utils.changeAR(self._correctImageOrientation(image, number))
self._ar = float(self._image.size[0])/s... | 27.898089 | 99 | 0.702283 | 610 | 4,380 | 4.940984 | 0.285246 | 0.059721 | 0.034506 | 0.033179 | 0.077638 | 0.045786 | 0.019244 | 0 | 0 | 0 | 0 | 0.013419 | 0.183333 | 4,380 | 156 | 100 | 28.076923 | 0.829186 | 0.201826 | 0 | 0.144231 | 0 | 0 | 0.015287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028846 | null | null | 0.067308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8984864422399814abacfc01d3254a148dd06c35 | 38,122 | py | Python | src/cloudlight/classes/graph.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | 3 | 2020-08-21T00:18:50.000Z | 2020-10-21T17:40:47.000Z | src/cloudlight/classes/graph.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | src/cloudlight/classes/graph.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on Mar 16, 2010
@author: jose
'''
import sys, zlib, base64, time, re, cPickle, copy
from math import log
from random import shuffle
from cStringIO import StringIO
import networkx as nx
from cloudlight.utils.random_items import random_items
from cloudlight.utils.itertools_recipes import izip
from cloudli... | 29.713172 | 130 | 0.557185 | 4,373 | 38,122 | 4.606677 | 0.093757 | 0.020352 | 0.016927 | 0.027302 | 0.55721 | 0.481261 | 0.411814 | 0.358451 | 0.335865 | 0.306131 | 0 | 0.010582 | 0.353025 | 38,122 | 1,282 | 131 | 29.736349 | 0.806195 | 0.035203 | 0 | 0.387009 | 0 | 0 | 0.065576 | 0.009018 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012179 | 0.013532 | null | null | 0.044655 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89863d9194f9739e497859323f0c9b56fe9e922c | 2,989 | py | Python | tests/case_test.py | yzhang123/pynini | 46d9e5b7eaead76c6b29ba57b039fdde9cdf0d20 | [
"Apache-2.0"
] | 1 | 2021-04-09T22:57:07.000Z | 2021-04-09T22:57:07.000Z | tests/case_test.py | yzhang123/pynini | 46d9e5b7eaead76c6b29ba57b039fdde9cdf0d20 | [
"Apache-2.0"
] | null | null | null | tests/case_test.py | yzhang123/pynini | 46d9e5b7eaead76c6b29ba57b039fdde9cdf0d20 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2016-2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 43.955882 | 77 | 0.67715 | 338 | 2,989 | 5.964497 | 0.514793 | 0.052083 | 0.065972 | 0.069444 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005315 | 0.181666 | 2,989 | 67 | 78 | 44.61194 | 0.818888 | 0.386082 | 0 | 0 | 0 | 0 | 0.233593 | 0 | 0 | 0 | 0 | 0 | 0.483871 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89951dcda0668e9af121c40d1e247a4381ac4698 | 4,857 | py | Python | lecture_4/regex/regex.py | leonel-123/python-fundamentals | 1ce9f666449866a13147d4f3a774c43f9107da41 | [
"MIT"
] | null | null | null | lecture_4/regex/regex.py | leonel-123/python-fundamentals | 1ce9f666449866a13147d4f3a774c43f9107da41 | [
"MIT"
] | null | null | null | lecture_4/regex/regex.py | leonel-123/python-fundamentals | 1ce9f666449866a13147d4f3a774c43f9107da41 | [
"MIT"
] | null | null | null | # I'm going to use the principal function of regex in python
# simple concept: is a sequence of characters that forms a search pattern
# To use regular expressions in Python you need to import the re module
# as the following:
import re
# METACHARACTERS -- DESCRIPTION -- EXAMPLE
#=============================... | 42.605263 | 135 | 0.593782 | 663 | 4,857 | 4.28356 | 0.254902 | 0.071831 | 0.06338 | 0.042254 | 0.414085 | 0.376761 | 0.373239 | 0.292254 | 0.20493 | 0.175352 | 0 | 0.016041 | 0.242742 | 4,857 | 113 | 136 | 42.982301 | 0.756117 | 0.468396 | 0 | 0.202703 | 0 | 0.013514 | 0.214568 | 0.068092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013514 | 0 | 0.013514 | 0.472973 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
899c4eab9f9f5038e445c51d7aa654937b9d7902 | 2,008 | py | Python | algorithms_01_stanford/4_week/exercise_04.py | h-mayorquin/coursera | 508e800566f3a2ceba759656bb5ee407de927b14 | [
"BSD-2-Clause"
] | null | null | null | algorithms_01_stanford/4_week/exercise_04.py | h-mayorquin/coursera | 508e800566f3a2ceba759656bb5ee407de927b14 | [
"BSD-2-Clause"
] | null | null | null | algorithms_01_stanford/4_week/exercise_04.py | h-mayorquin/coursera | 508e800566f3a2ceba759656bb5ee407de927b14 | [
"BSD-2-Clause"
] | null | null | null | import networkx as nx
# Construct the node
filename = 'SCC.txt'
DG = nx.DiGraph()
with open(filename) as f:
for line in f:
# Parse the line
parsed_line = line.rsplit(' ')
DG.add_edge(int(parsed_line[0]), int(parsed_line[1]))
# Add labels to the nodes equal to integers
for i in DG.nodes(... | 18.766355 | 61 | 0.63745 | 284 | 2,008 | 4.440141 | 0.28169 | 0.04996 | 0.020619 | 0.020619 | 0.218874 | 0.150674 | 0.150674 | 0.150674 | 0.080888 | 0.080888 | 0 | 0.021045 | 0.266434 | 2,008 | 106 | 62 | 18.943396 | 0.835031 | 0.150398 | 0 | 0.030303 | 0 | 0 | 0.042705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015152 | null | null | 0.106061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89a5d4b41f385812e344ae88367747b6e93ab008 | 320 | py | Python | RTplzrunBlog/DP/9461.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | RTplzrunBlog/DP/9461.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | RTplzrunBlog/DP/9461.py | lkc263/Algorithm_Study_Python | 5b9a74ecf7e864c861df2280a1bf4b393b0fcbca | [
"MIT"
] | null | null | null | import sys
t = int(sys.stdin.readline())
p = [0] * 110
for idx in range(1, 110):
if idx == 1 or idx == 2 or idx == 3:
p[idx] = 1
elif idx == 4 or idx == 5:
p[idx] = 2
else:
p[idx] = p[idx - 5] + p[idx - 1]
while t > 0:
n = int(sys.stdin.readline())
print(p[n])
t -= 1
| 16.842105 | 40 | 0.459375 | 59 | 320 | 2.491525 | 0.423729 | 0.136054 | 0.14966 | 0.258503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092233 | 0.35625 | 320 | 18 | 41 | 17.777778 | 0.621359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 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 |
89a69cb7b14c521cecba601ab41fd1e4bfa35064 | 1,937 | py | Python | service_db_gen.py | dazete92/t_work | 2a773f1481efd82083905e98dfaf6f9a4b609b0d | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2017-06-27T23:01:33.000Z | 2017-06-27T23:01:33.000Z | service_db_gen.py | dazete92/t_work | 2a773f1481efd82083905e98dfaf6f9a4b609b0d | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | service_db_gen.py | dazete92/t_work | 2a773f1481efd82083905e98dfaf6f9a4b609b0d | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | import sys
import time
import subprocess
import shared_util
from subprocess import Popen, PIPE, STDOUT
from collections import defaultdict
def parseData(chars):
# chars format = host IP address, port, protocol, name, state (open/closed), info
return (chars[0], chars[1], chars[2], chars[3], chars[4], chars[5])
... | 28.485294 | 155 | 0.591637 | 244 | 1,937 | 4.631148 | 0.372951 | 0.042478 | 0.042478 | 0.055752 | 0.145133 | 0.145133 | 0.145133 | 0.145133 | 0.145133 | 0.145133 | 0 | 0.004968 | 0.272586 | 1,937 | 67 | 156 | 28.910448 | 0.797019 | 0.134744 | 0 | 0.142857 | 0 | 0 | 0.072455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89b557f85dc098b25bd083e857f2130efc69792c | 2,133 | py | Python | space_war/state_pause.py | Mikaspe/6.Space-Warr | a7a2d65525f9466392f9245d301f24bcd4477add | [
"MIT"
] | null | null | null | space_war/state_pause.py | Mikaspe/6.Space-Warr | a7a2d65525f9466392f9245d301f24bcd4477add | [
"MIT"
] | null | null | null | space_war/state_pause.py | Mikaspe/6.Space-Warr | a7a2d65525f9466392f9245d301f24bcd4477add | [
"MIT"
] | null | null | null | import pygame
from .state import State
from .menu_manager import MenuManager
class Pause(State, MenuManager):
"""Pauses game and displays pause menu."""
def __init__(self, data) -> None:
"""
Parameters:
data: 'ShareData' object
"""
self.data = data
State.__... | 29.219178 | 89 | 0.579466 | 247 | 2,133 | 4.874494 | 0.368421 | 0.053987 | 0.036545 | 0.069767 | 0.259136 | 0.259136 | 0.227575 | 0.154485 | 0.094684 | 0.094684 | 0 | 0 | 0.312236 | 2,133 | 72 | 90 | 29.625 | 0.820723 | 0.428504 | 0 | 0.071429 | 0 | 0 | 0.040796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.035714 | 0.107143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89b8282d15d639d04b13944489529124db0d9c09 | 430 | py | Python | palindrome-partitioning/palindrome-partitioning.py | QQuinn03/LeetHub | 51ce21d721f0f524a07ed24266fb5fca473fcaa5 | [
"MIT"
] | null | null | null | palindrome-partitioning/palindrome-partitioning.py | QQuinn03/LeetHub | 51ce21d721f0f524a07ed24266fb5fca473fcaa5 | [
"MIT"
] | null | null | null | palindrome-partitioning/palindrome-partitioning.py | QQuinn03/LeetHub | 51ce21d721f0f524a07ed24266fb5fca473fcaa5 | [
"MIT"
] | null | null | null | class Solution:
def partition(self, s: str) -> List[List[str]]:
res=[]
self.helper(res,s,[])
return res
def helper(self,res,s,path):
if not s:
res.append(path)
return
for i in range(1,len(s)+1):
if self.check(s[:i])==True:
... | 26.875 | 51 | 0.448837 | 60 | 430 | 3.216667 | 0.383333 | 0.062176 | 0.134715 | 0.145078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.381395 | 430 | 16 | 52 | 26.875 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89bb7e008776c093815b2f7db35ec04bb6d22f94 | 609 | py | Python | src/fidesops/schemas/encryption_request.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | null | null | null | src/fidesops/schemas/encryption_request.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | null | null | null | src/fidesops/schemas/encryption_request.py | nathanawmk/fidesops | 1ab840206a78e60673aebd5838ba567095512a58 | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel
class AesEncryptionRequest(BaseModel):
"""Specifies fields provided to the AES Encryption endpoint"""
value: str
key: str
class AesEncryptionResponse(BaseModel):
"""Specifies fields returned from the AES Encryption endpoint"""
encrypted_value: str
nonce: str
... | 20.3 | 68 | 0.730706 | 66 | 609 | 6.712121 | 0.393939 | 0.054176 | 0.162528 | 0.14447 | 0.388262 | 0.180587 | 0.180587 | 0 | 0 | 0 | 0 | 0 | 0.197044 | 609 | 29 | 69 | 21 | 0.90593 | 0.37931 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9820a9b6a9b32bb61b3e1d3a34e1b773d3bcf5b1 | 971 | py | Python | uta_rest/django_secret_key.py | SACGF/uta_rest | 533760769e576b8d990fcebd151cb1d4682ac85f | [
"MIT"
] | 1 | 2022-02-03T06:45:56.000Z | 2022-02-03T06:45:56.000Z | cdot_rest/django_secret_key.py | SACGF/cdot_rest | 07a94ecdd5c4dcbcc5740403ee3f1e99d13dee83 | [
"MIT"
] | 2 | 2022-01-31T07:33:14.000Z | 2022-02-03T06:24:24.000Z | uta_rest/django_secret_key.py | SACGF/uta_rest | 533760769e576b8d990fcebd151cb1d4682ac85f | [
"MIT"
] | null | null | null | import os
import random
from base64 import urlsafe_b64encode as b64encode
random.seed()
def generate_key(max_length, seed_length):
"""
Generate a Base64-encoded 'random' key by hashing the data.
data is a tuple of seeding values. Pass arbitrary encoder and
digester for specific hashing and formatting... | 27.742857 | 82 | 0.680742 | 141 | 971 | 4.496454 | 0.524823 | 0.085174 | 0.037855 | 0.059937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036939 | 0.219361 | 971 | 34 | 83 | 28.558824 | 0.799472 | 0.22863 | 0 | 0 | 1 | 0 | 0.040278 | 0.029167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9821afbc5b29d86cb6a873b9538eccf5fe0caad5 | 6,116 | py | Python | cisco/aci/createVshieldController.py | arielik/devops-utils | 70f0e011030fd9e4e9fd30e2ab3f204069aa33ef | [
"BSD-2-Clause"
] | 1 | 2017-02-10T13:19:51.000Z | 2017-02-10T13:19:51.000Z | cisco/aci/createVshieldController.py | arielik/devops-utils | 70f0e011030fd9e4e9fd30e2ab3f204069aa33ef | [
"BSD-2-Clause"
] | 1 | 2019-04-05T00:38:31.000Z | 2019-04-05T13:10:16.000Z | cisco/aci/createVshieldController.py | FibercorpLabs/FibercorpDevops | 70f0e011030fd9e4e9fd30e2ab3f204069aa33ef | [
"BSD-2-Clause"
] | 1 | 2019-08-08T23:09:43.000Z | 2019-08-08T23:09:43.000Z | from cobra.model.vmm import DomP, CtrlrP, RsAcc, UsrAccP, RsMgmtEPg, RsVmmCtrlrP, RsVxlanNs, RsMcastAddrNs
from createVcenterDomain import input_key_args as input_vcenter_domain
from createMo import *
DEFAULT_MANAGEMENT_EPG = None
DEFAULT_ASSOCIATED_CREDENTIAL = None
DEFAULT_ASSOCIATED_VCENTER_CONTROLLER = None
DEFA... | 53.649123 | 249 | 0.739536 | 785 | 6,116 | 5.430573 | 0.171975 | 0.039643 | 0.027445 | 0.033779 | 0.289468 | 0.184377 | 0.101806 | 0.080225 | 0.057237 | 0.046446 | 0 | 0 | 0.15484 | 6,116 | 114 | 250 | 53.649123 | 0.824724 | 0 | 0 | 0.069767 | 0 | 0.011628 | 0.267515 | 0.074356 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034884 | null | null | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9821d19b715a8d72b2a4ea15edc1c753b5ed0963 | 440 | py | Python | example/example.py | jnhyperion/WikiBot | 695bb660922e599d23b4f010fddf6a6bad00120c | [
"MIT"
] | 1 | 2021-03-12T13:14:23.000Z | 2021-03-12T13:14:23.000Z | example/example.py | jnhyperion/WikiBot | 695bb660922e599d23b4f010fddf6a6bad00120c | [
"MIT"
] | null | null | null | example/example.py | jnhyperion/WikiBot | 695bb660922e599d23b4f010fddf6a6bad00120c | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from wikibot import WikiBot
def modification_callback(soup):
a = soup.find('table').find_all_next('tr')[6].find_all_next('td')[6].div
a.append(BeautifulSoup('<b>WikiBot is awesome!</b>', 'html.parser'))
wiki_bot = WikiBot(url='https://localhost', username='WikiBot', password='*... | 33.846154 | 109 | 0.736364 | 61 | 440 | 5.114754 | 0.622951 | 0.192308 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009975 | 0.088636 | 440 | 12 | 110 | 36.666667 | 0.76808 | 0 | 0 | 0 | 0 | 0 | 0.202273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9822045aae9d2ee92c2bc8f3419cd2f008a8ab93 | 1,922 | py | Python | notify_tools.py | ashander/notify-tools | cbfa978791637c56e7aeaaa543482c170d11e13d | [
"BSD-3-Clause"
] | null | null | null | notify_tools.py | ashander/notify-tools | cbfa978791637c56e7aeaaa543482c170d11e13d | [
"BSD-3-Clause"
] | 1 | 2015-05-27T21:02:24.000Z | 2015-05-27T21:02:24.000Z | notify_tools.py | ashander/notify-tools | cbfa978791637c56e7aeaaa543482c170d11e13d | [
"BSD-3-Clause"
] | null | null | null | """
Command line tools wrapping growlnotify.
timer -- ergonomic or productivity timer (e.g., pomodoro technique)
todo -- post todos (sticky by default)
"""
import time
import os
import click
@click.command()
@click.version_option()
@click.argument('rounds', default=5)
@click.option('work', '-w', '--work-time', defa... | 24.641026 | 80 | 0.601457 | 259 | 1,922 | 4.405405 | 0.397683 | 0.048203 | 0.029798 | 0.042068 | 0.103418 | 0.075372 | 0.075372 | 0 | 0 | 0 | 0 | 0.015994 | 0.251821 | 1,922 | 77 | 81 | 24.961039 | 0.777469 | 0.255463 | 0 | 0.222222 | 0 | 0 | 0.195794 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 1 | 0.111111 | false | 0 | 0.066667 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
982247d3b9751a57707dd4e0701524f67675e9dc | 1,085 | py | Python | 7dof_arm_reaching/dynamical_system/ik.py | YilunZhou/RoCUS | fb64aeac941f454b1b7edbc7c5cf06123ee2c4d4 | [
"MIT"
] | 7 | 2020-11-20T20:45:49.000Z | 2021-12-14T19:27:20.000Z | 7dof_arm_reaching/dynamical_system/ik.py | YilunZhou/RoCUS | fb64aeac941f454b1b7edbc7c5cf06123ee2c4d4 | [
"MIT"
] | 1 | 2021-03-03T03:57:21.000Z | 2021-03-03T03:57:21.000Z | 7dof_arm_reaching/dynamical_system/ik.py | YilunZhou/RoCUS | fb64aeac941f454b1b7edbc7c5cf06123ee2c4d4 | [
"MIT"
] | 4 | 2020-11-20T17:00:27.000Z | 2021-04-01T00:53:50.000Z |
import time
from copy import deepcopy as copy
import numpy as np
from klampt import WorldModel
from klampt.model import ik
class IK():
def __init__(self):
self.world = WorldModel()
self.robot = self.world.loadRobot('franka_panda/panda_model_w_table.urdf')
self.robot.setJointLimits(
[-0.0, -0.0, -0.0, -0.0... | 31.911765 | 125 | 0.679263 | 207 | 1,085 | 3.396135 | 0.318841 | 0.113798 | 0.14936 | 0.176387 | 0.113798 | 0.113798 | 0.113798 | 0.113798 | 0.091038 | 0.091038 | 0 | 0.13587 | 0.152074 | 1,085 | 33 | 126 | 32.878788 | 0.628261 | 0 | 0 | 0 | 0 | 0 | 0.034133 | 0.034133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0 | 0.357143 | 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 |
982c00206c9de27e386cd8de8acc90bbb4f9e28f | 1,511 | py | Python | api/migrations/20210115_01_O2h5J-add-hs-r4.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 15 | 2021-09-24T00:46:04.000Z | 2022-03-16T13:24:56.000Z | api/migrations/20210115_01_O2h5J-add-hs-r4.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 98 | 2021-09-22T12:33:21.000Z | 2022-03-21T22:23:52.000Z | api/migrations/20210115_01_O2h5J-add-hs-r4.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 12 | 2021-09-25T05:08:18.000Z | 2022-02-28T21:02:20.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Add hate speech round 4.
"""
import secrets
from yoyo import step
secret = secrets.token_hex()
__depends__ = {"20210111_01_XmZj0-add-mo... | 36.853659 | 84 | 0.625414 | 209 | 1,511 | 4.425837 | 0.578947 | 0.016216 | 0.03027 | 0.036757 | 0.047568 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030201 | 0.211118 | 1,511 | 40 | 85 | 37.775 | 0.745805 | 0.128392 | 0 | 0.148148 | 0 | 0.074074 | 0.710788 | 0.132364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 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 |
982c47e9e880e50a9145dce8745cd575a7c52711 | 6,193 | py | Python | students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/consumers.py | EgorovM/ITMO_ICT_WebDevelopment_2021-2022 | 35c41ba024d7a3cd89654bd4db23f7d447e0f0a2 | [
"MIT"
] | null | null | null | students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/consumers.py | EgorovM/ITMO_ICT_WebDevelopment_2021-2022 | 35c41ba024d7a3cd89654bd4db23f7d447e0f0a2 | [
"MIT"
] | null | null | null | students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/consumers.py | EgorovM/ITMO_ICT_WebDevelopment_2021-2022 | 35c41ba024d7a3cd89654bd4db23f7d447e0f0a2 | [
"MIT"
] | null | null | null | import bs4
import json
import random
import requests
from asgiref.sync import async_to_sync
from channels.generic.websocket import WebsocketConsumer
class RoomConsumer(WebsocketConsumer):
def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'ro... | 28.15 | 81 | 0.558211 | 704 | 6,193 | 4.65625 | 0.153409 | 0.076876 | 0.069555 | 0.082977 | 0.696766 | 0.672056 | 0.672056 | 0.655583 | 0.655583 | 0.655583 | 0 | 0.018913 | 0.325529 | 6,193 | 219 | 82 | 28.278539 | 0.765861 | 0.075408 | 0 | 0.477987 | 0 | 0.006289 | 0.093953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106918 | false | 0 | 0.037736 | 0 | 0.18239 | 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 |
983521ebae86b107cffa4344c5ec1e4bb595751e | 3,487 | py | Python | src/views/Login.py | LinkIsACake/PTUT-CoffreFortElectronique | 7c1fb0fb408f641a6d3ae77d50c8d3088dd21964 | [
"MIT"
] | null | null | null | src/views/Login.py | LinkIsACake/PTUT-CoffreFortElectronique | 7c1fb0fb408f641a6d3ae77d50c8d3088dd21964 | [
"MIT"
] | null | null | null | src/views/Login.py | LinkIsACake/PTUT-CoffreFortElectronique | 7c1fb0fb408f641a6d3ae77d50c8d3088dd21964 | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import QPushButton, QLineEdit, QMessageBox, QGridLayout, QLabel, QListWidget
from PyQt5 import QtWidgets
from src.controllers import MainController
from src.assets.Label import Label
class UserList(QListWidget):
def __init__(self, parent=None):
super(UserList, self).__init__(parent)... | 30.321739 | 97 | 0.667909 | 416 | 3,487 | 5.389423 | 0.206731 | 0.049063 | 0.067797 | 0.051293 | 0.211418 | 0.11909 | 0.106155 | 0.040143 | 0.040143 | 0 | 0 | 0.013011 | 0.228563 | 3,487 | 114 | 98 | 30.587719 | 0.820446 | 0 | 0 | 0.075 | 0 | 0 | 0.015486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.0875 | 0.05 | 0 | 0.3375 | 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 |
9841b40bf4bfac50a6060d34bcad29752b8e846d | 3,501 | py | Python | tests/test_rigid_transform.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 54 | 2019-11-15T16:30:34.000Z | 2022-01-13T15:18:54.000Z | tests/test_rigid_transform.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 11 | 2019-02-28T08:28:24.000Z | 2020-04-07T04:47:12.000Z | tests/test_rigid_transform.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 1 | 2020-02-26T13:59:40.000Z | 2020-02-26T13:59:40.000Z | import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
from scipy.spatial.transform import Rotation
from tadataka.matrix import motion_matrix
from tadataka.rigid_transform import (inv_transform_all, transform_all,
transform_each, Transform, tra... | 21.745342 | 79 | 0.377035 | 507 | 3,501 | 2.504931 | 0.098619 | 0.050394 | 0.054331 | 0.040945 | 0.569291 | 0.532283 | 0.525984 | 0.451181 | 0.355906 | 0.325197 | 0 | 0.158454 | 0.40874 | 3,501 | 160 | 80 | 21.88125 | 0.455072 | 0.162525 | 0 | 0.591304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06087 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9844bf0090c5d6cda5b77ed35160a943d9540905 | 13,341 | py | Python | jade/basic/structure/BioPose.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 5 | 2017-02-24T08:55:51.000Z | 2020-09-01T01:59:33.000Z | jade/basic/structure/BioPose.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 2 | 2020-10-27T21:03:50.000Z | 2021-11-15T17:46:45.000Z | jade/basic/structure/BioPose.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 2 | 2019-08-01T11:21:14.000Z | 2020-09-01T01:59:35.000Z | #!/usr/bin/env python
#Jared Adolf-Bryfogle (jadolfbr@gmail.com)
import os
import gzip
import re
import math
from collections import defaultdict
from Bio.PDB import PDBParser
from Bio.PDB import PPBuilder
from Bio.PDB import MMCIFParser
from Bio.PDB import calc_dihedral
from Bio.PDB import Vector
from jade.basic.Re... | 29.515487 | 126 | 0.57312 | 1,751 | 13,341 | 4.199886 | 0.14506 | 0.044602 | 0.034675 | 0.026108 | 0.41542 | 0.338183 | 0.254419 | 0.232527 | 0.19282 | 0.153522 | 0 | 0.006948 | 0.320291 | 13,341 | 451 | 127 | 29.580931 | 0.804036 | 0.031557 | 0 | 0.287081 | 0 | 0 | 0.02516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08134 | null | null | 0.07177 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
984b29afb7494c41f7a98e595f5e4c600ffae51d | 4,832 | py | Python | CoopSort.py | thorntwig/CoopSort | 0dfca32d1c9ca302d1a6066c36d84c1bdef07298 | [
"Apache-2.0"
] | null | null | null | CoopSort.py | thorntwig/CoopSort | 0dfca32d1c9ca302d1a6066c36d84c1bdef07298 | [
"Apache-2.0"
] | null | null | null | CoopSort.py | thorntwig/CoopSort | 0dfca32d1c9ca302d1a6066c36d84c1bdef07298 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from datetime import datetime
from html.parser import HTMLParser
from openpyxl import Workbook
import os
now = datetime.now()
current_time = now.strftime("%Y%m%d")
#with open("Logistics_133800_20200528.xls") as f: // use for testing
# add path to file
path = r'C:\Users\Username\Path\To\Logist... | 33.09589 | 211 | 0.575124 | 609 | 4,832 | 4.417077 | 0.288998 | 0.020074 | 0.015613 | 0.016357 | 0.171375 | 0.076952 | 0.043494 | 0.027138 | 0 | 0 | 0 | 0.014184 | 0.270488 | 4,832 | 146 | 212 | 33.09589 | 0.748936 | 0.051531 | 0 | 0.04918 | 0 | 0 | 0.140381 | 0.025997 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008197 | 0.032787 | null | null | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
984b5a04cdc9e19ac64be78165a24e8a78de3412 | 567 | py | Python | 523. Continuous Subarray Sum.py | patrick-luo/Leet-Code | 989ec20c1069ce93e1d0e9ae4a4dfc59b1b1622a | [
"MIT"
] | null | null | null | 523. Continuous Subarray Sum.py | patrick-luo/Leet-Code | 989ec20c1069ce93e1d0e9ae4a4dfc59b1b1622a | [
"MIT"
] | null | null | null | 523. Continuous Subarray Sum.py | patrick-luo/Leet-Code | 989ec20c1069ce93e1d0e9ae4a4dfc59b1b1622a | [
"MIT"
] | null | null | null | class Solution(object):
def checkSubarraySum(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: bool
"""
remainders = {0:-1}
subSum = 0
for i, ni in enumerate(nums):
subSum += ni
if k != 0:
subSum %= ... | 24.652174 | 46 | 0.388007 | 52 | 567 | 4.230769 | 0.519231 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018587 | 0.525573 | 567 | 22 | 47 | 25.772727 | 0.799257 | 0.082892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
984cee2fb594dbbdefa85a094f878a366cb28c35 | 3,681 | py | Python | eval-partition-stability.py | derekgreene/topic-ensemble | f5edceaeca66f3781e3c7fb96f82af5027354bcf | [
"Apache-2.0"
] | 21 | 2017-02-08T14:20:47.000Z | 2021-08-05T11:09:01.000Z | eval-partition-stability.py | derekgreene/topic-ensemble | f5edceaeca66f3781e3c7fb96f82af5027354bcf | [
"Apache-2.0"
] | null | null | null | eval-partition-stability.py | derekgreene/topic-ensemble | f5edceaeca66f3781e3c7fb96f82af5027354bcf | [
"Apache-2.0"
] | 13 | 2017-02-26T17:50:26.000Z | 2021-05-13T04:43:10.000Z | #!/usr/bin/env python
"""
Evaluate the stability (i.e. agreement) between a set of partitions generated on the same dataset, using Pairwise Normalized Mutual Information (PNMI).
Sample usage:
python eval-partition-stability.py models/base/*partition*.pkl
"""
import os, sys
import logging as log
from optparse import O... | 37.561224 | 164 | 0.67536 | 541 | 3,681 | 4.471349 | 0.362292 | 0.040926 | 0.018603 | 0.022323 | 0.109963 | 0.033072 | 0.033072 | 0.033072 | 0.033072 | 0 | 0 | 0.008983 | 0.153219 | 3,681 | 97 | 165 | 37.948454 | 0.767084 | 0.168161 | 0 | 0.028986 | 1 | 0 | 0.228647 | 0.015769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.101449 | 0 | 0.115942 | 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 |
9856340f4568264adee67d66d4f77f5fbc13077a | 1,409 | py | Python | stsc_autograd.py | NathanHowell/STSC | e59bd896ccccd0635964eeaf9b12229659689e12 | [
"Unlicense"
] | 27 | 2018-07-09T19:12:18.000Z | 2021-12-31T02:37:15.000Z | stsc_autograd.py | NathanHowell/STSC | e59bd896ccccd0635964eeaf9b12229659689e12 | [
"Unlicense"
] | 1 | 2018-05-27T13:35:55.000Z | 2018-05-27T13:42:51.000Z | stsc_autograd.py | NathanHowell/STSC | e59bd896ccccd0635964eeaf9b12229659689e12 | [
"Unlicense"
] | 8 | 2017-12-20T22:11:38.000Z | 2021-06-28T12:05:21.000Z | from autograd import numpy as npy
from functools import reduce
from scipy.optimize import minimize
from autograd import grad
def generate_Givens_rotation(i, j, theta, size):
g = npy.eye(size)
c = npy.cos(theta)
s = npy.sin(theta)
g[i, i] = 0
g[j, j] = 0
g[j, i] = 0
g[i, j] = 0
ii_mat =... | 29.354167 | 83 | 0.573456 | 249 | 1,409 | 3.072289 | 0.277108 | 0.070588 | 0.057516 | 0.078431 | 0.181699 | 0.073203 | 0.073203 | 0 | 0 | 0 | 0 | 0.016915 | 0.286728 | 1,409 | 47 | 84 | 29.978723 | 0.744279 | 0 | 0 | 0 | 1 | 0 | 0.004258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.102564 | 0.025641 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
985a110ed77285c196a84efc7d6e18a34afb0f81 | 426 | py | Python | autogalaxy/profiles/point_sources.py | jonathanfrawley/PyAutoGalaxy_copy | 1cedbfdcf65020538128163f7d8a7f8e169646e0 | [
"MIT"
] | null | null | null | autogalaxy/profiles/point_sources.py | jonathanfrawley/PyAutoGalaxy_copy | 1cedbfdcf65020538128163f7d8a7f8e169646e0 | [
"MIT"
] | null | null | null | autogalaxy/profiles/point_sources.py | jonathanfrawley/PyAutoGalaxy_copy | 1cedbfdcf65020538128163f7d8a7f8e169646e0 | [
"MIT"
] | null | null | null | import numpy as np
from autoarray.structures import grids
import typing
class PointSource:
def __init__(self, centre: typing.Tuple[float, float] = (0.0, 0.0)):
self.centre = centre
class PointSourceFlux(PointSource):
def __init__(
self, centre: typing.Tuple[float, float] = (0.0... | 21.3 | 81 | 0.619718 | 54 | 426 | 4.666667 | 0.407407 | 0.047619 | 0.047619 | 0.174603 | 0.420635 | 0.420635 | 0.420635 | 0.420635 | 0.420635 | 0.420635 | 0 | 0.031949 | 0.265258 | 426 | 19 | 82 | 22.421053 | 0.773163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 |
985b47a9c9d7a23c1fbe28dbdc492854ac78979a | 2,240 | py | Python | zhihu_spider/MySQL.py | VictoryNo1/soulmate | e6af43e8f9818f44303805c83e3b63322688bcf6 | [
"MIT"
] | null | null | null | zhihu_spider/MySQL.py | VictoryNo1/soulmate | e6af43e8f9818f44303805c83e3b63322688bcf6 | [
"MIT"
] | null | null | null | zhihu_spider/MySQL.py | VictoryNo1/soulmate | e6af43e8f9818f44303805c83e3b63322688bcf6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : leeyoshinari
import pymysql
import zhihu_spider.settings as cfg
class MySQL(object):
def __init__(self):
self.db = None
self.cursor = None
self.connect()
def connect(self):
self.db = pymysql.connect(host... | 33.939394 | 134 | 0.445089 | 203 | 2,240 | 4.73399 | 0.394089 | 0.056191 | 0.045786 | 0.033299 | 0.270552 | 0.270552 | 0.108221 | 0.108221 | 0.108221 | 0.108221 | 0 | 0.027923 | 0.488393 | 2,240 | 65 | 135 | 34.461538 | 0.810646 | 0.029018 | 0 | 0.301887 | 0 | 0 | 0.721879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.018868 | 0.037736 | 0 | 0.113208 | 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 |
98687d6d0685b6fa13e39fe8b3d4b6032ecd5246 | 8,045 | py | Python | models/pix2pix_model_perceptual_refineGAN.py | icon-lab/provoGAN | e4abee668ca5a5733a04c0e27e379a0434b0270f | [
"BSD-3-Clause"
] | 1 | 2022-03-27T09:16:22.000Z | 2022-03-27T09:16:22.000Z | models/pix2pix_model_perceptual_refineGAN.py | icon-lab/provoGAN | e4abee668ca5a5733a04c0e27e379a0434b0270f | [
"BSD-3-Clause"
] | null | null | null | models/pix2pix_model_perceptual_refineGAN.py | icon-lab/provoGAN | e4abee668ca5a5733a04c0e27e379a0434b0270f | [
"BSD-3-Clause"
] | null | null | null | import torch
from collections import OrderedDict
from torch.autograd import Variable
import util.util as util
from util.image_pool import ImagePool
from .base_model import BaseModel
from . import networks
class Pix2PixModel(BaseModel):
def name(self):
return 'Pix2PixModel'
def initialize... | 39.630542 | 133 | 0.590677 | 1,129 | 8,045 | 3.947741 | 0.130204 | 0.078977 | 0.05654 | 0.043976 | 0.489343 | 0.407449 | 0.367961 | 0.332062 | 0.323087 | 0.323087 | 0 | 0.019797 | 0.277937 | 8,045 | 202 | 134 | 39.826733 | 0.747461 | 0.04885 | 0 | 0.233871 | 0 | 0 | 0.025686 | 0.006321 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056452 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
986a52bad3fc9a5ad7585e820cc42d67f70853a0 | 389 | py | Python | procurement/migrations/0002_procurement_timestamp.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | null | null | null | procurement/migrations/0002_procurement_timestamp.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | 3 | 2021-07-27T13:11:36.000Z | 2021-08-10T22:54:55.000Z | procurement/migrations/0002_procurement_timestamp.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-04 07:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('procurement', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='procurement',
name='timestamp',
... | 20.473684 | 54 | 0.601542 | 40 | 389 | 5.775 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068345 | 0.285347 | 389 | 18 | 55 | 21.611111 | 0.76259 | 0.115681 | 0 | 0 | 1 | 0 | 0.125731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9870a4cd1c3935bbec2344ad41c4bbee229316da | 141 | py | Python | tests/data/Kind/Operations.py | aalireza/arep | 95f0ec6282c4f5d12462d2a64e82d6777f51bf06 | [
"BSD-3-Clause"
] | 1 | 2022-01-14T00:15:26.000Z | 2022-01-14T00:15:26.000Z | tests/data/Kind/Operations.py | aalireza/arep | 95f0ec6282c4f5d12462d2a64e82d6777f51bf06 | [
"BSD-3-Clause"
] | null | null | null | tests/data/Kind/Operations.py | aalireza/arep | 95f0ec6282c4f5d12462d2a64e82d6777f51bf06 | [
"BSD-3-Clause"
] | null | null | null | x = 1 + 2 * 3 - 3 ** 5 / 2
y = 3 ** 5 - 2
z = x / y
zz = x // y
z -= z
zz += zz
xx = -x
xx %= 10
if type(x) is int:
print(x and y)
| 8.294118 | 26 | 0.375887 | 34 | 141 | 1.558824 | 0.470588 | 0.075472 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 0.41844 | 141 | 16 | 27 | 8.8125 | 0.512195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
987adec2f23a3d4dba557d6fe6a5d969a3a2de22 | 8,555 | py | Python | qualitiy_tests/edge_id_based_diff_test.py | TranslatorIIPrototypes/robo-commons | a915d80b70f7e68a70f6a5f7ff6e732d2e02db06 | [
"MIT"
] | null | null | null | qualitiy_tests/edge_id_based_diff_test.py | TranslatorIIPrototypes/robo-commons | a915d80b70f7e68a70f6a5f7ff6e732d2e02db06 | [
"MIT"
] | 12 | 2020-05-07T16:40:15.000Z | 2020-06-16T13:23:13.000Z | qualitiy_tests/edge_id_based_diff_test.py | TranslatorIIPrototypes/robo-commons | a915d80b70f7e68a70f6a5f7ff6e732d2e02db06 | [
"MIT"
] | null | null | null | from neo4j import GraphDatabase
import argparse, sqlite3
"""
These test assumes that the graphs to compare are normalized.
This is important because edge id is computed using
`md5(source_id, target_id, predicate_id)`.
This test helps identify edge that exist in one of the databases being inspected and not in the ot... | 41.936275 | 2,461 | 0.448159 | 819 | 8,555 | 4.395604 | 0.233211 | 0.042222 | 0.033056 | 0.041667 | 0.230278 | 0.184722 | 0.106111 | 0.066667 | 0.033333 | 0.033333 | 0 | 0.020746 | 0.470368 | 8,555 | 203 | 2,462 | 42.142857 | 0.773781 | 0.003974 | 0 | 0.166667 | 0 | 0 | 0.240897 | 0 | 0 | 0 | 0 | 0.004926 | 0 | 1 | 0.045977 | false | 0.034483 | 0.011494 | 0.011494 | 0.091954 | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
987f53cb17e688786688b81e5b04034dab179173 | 455 | py | Python | bender_mc/utils.py | repole/bender-mc | 1b3dd3b8d2c66df50a6efe2ac0799c1e1535c102 | [
"MIT"
] | null | null | null | bender_mc/utils.py | repole/bender-mc | 1b3dd3b8d2c66df50a6efe2ac0799c1e1535c102 | [
"MIT"
] | null | null | null | bender_mc/utils.py | repole/bender-mc | 1b3dd3b8d2c66df50a6efe2ac0799c1e1535c102 | [
"MIT"
] | null | null | null | """
bender_mc.utils
~~~~~~~~~~~~~~~
Utility tools for bender-mc.
"""
# :copyright: (c) 2020 by Nicholas Repole.
# :license: MIT - See LICENSE for more details.
def deformat_title(formatted_title):
return formatted_title.replace(
"__COLON__", ":").replace(
"__DOT__", ".").replace(
... | 25.277778 | 47 | 0.567033 | 41 | 455 | 5.585366 | 0.707317 | 0.069869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.235165 | 455 | 17 | 48 | 26.764706 | 0.646552 | 0.327473 | 0 | 0 | 0 | 0 | 0.235088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
98840ee30f97b7526adcb11b2d52ef1476bb7331 | 7,436 | py | Python | src/github_release.py | jtownley/github_release | cab1cca9687f296fff37bc4cb9ca715774ef8639 | [
"Apache-2.0"
] | null | null | null | src/github_release.py | jtownley/github_release | cab1cca9687f296fff37bc4cb9ca715774ef8639 | [
"Apache-2.0"
] | null | null | null | src/github_release.py | jtownley/github_release | cab1cca9687f296fff37bc4cb9ca715774ef8639 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import requests
import os
import glob
import json
import argparse
class GitHubGateway(object):
def __init__(self, username, token):
self.token = token
self.username = username
self.session = requests.Session()
self.session.auth = (self.username, self.token)
... | 45.619632 | 215 | 0.606643 | 855 | 7,436 | 5.084211 | 0.207018 | 0.020704 | 0.039107 | 0.026455 | 0.182885 | 0.137796 | 0.080285 | 0.080285 | 0.064412 | 0.026685 | 0 | 0.002192 | 0.263717 | 7,436 | 162 | 216 | 45.901235 | 0.791781 | 0.00269 | 0 | 0.028986 | 0 | 0 | 0.181794 | 0.008901 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036232 | null | null | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9886da184bcc744e3d1fc1e3fa5e83c6528e6d79 | 557 | py | Python | conftest.py | practo/federation | e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e | [
"MIT"
] | null | null | null | conftest.py | practo/federation | e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e | [
"MIT"
] | null | null | null | conftest.py | practo/federation | e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e | [
"MIT"
] | null | null | null | import pytest
from config.app import create_app
from config.initializers.errors import RequestErrorHandling
from config.db import db as _db
@pytest.fixture()
def app():
app = create_app()
RequestErrorHandling(app)
# Router has to be imported at last as it in turns loads the application code
with app.... | 22.28 | 81 | 0.723519 | 78 | 557 | 5.025641 | 0.5 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199282 | 557 | 24 | 82 | 23.208333 | 0.878924 | 0.13465 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.529412 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
98877425bf965607bb426fca3076c8504fab7a5a | 1,725 | py | Python | src/pdc2/scripts/phyutility_wrapper.py | jlanga/smsk_selection | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 4 | 2021-07-18T05:20:20.000Z | 2022-01-03T10:22:33.000Z | src/pdc2/scripts/phyutility_wrapper.py | jlanga/smsk_selection | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 1 | 2017-08-21T07:26:13.000Z | 2018-11-08T13:59:48.000Z | src/pdc2/scripts/phyutility_wrapper.py | jlanga/smsk_orthofinder | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 2 | 2021-07-18T05:20:26.000Z | 2022-03-31T18:23:31.000Z | """
make sure that phyutility is in the path
"""
import sys,os
from seq import read_fasta_file
def phyutility(DIR,alignment,min_col_occup,seqtype,min_chr=10):
"""
remove columns with occupancy lower than MIN_COLUMN_OCCUPANCY
remove seqs shorter than MIN_CHR after filter columns
"""
if DIR[-1] != "/": DIR += "/"
... | 30.263158 | 72 | 0.682899 | 264 | 1,725 | 4.325758 | 0.363636 | 0.105079 | 0.067426 | 0.078809 | 0.151489 | 0.1331 | 0.089317 | 0.089317 | 0.089317 | 0.089317 | 0 | 0.007453 | 0.144348 | 1,725 | 56 | 73 | 30.803571 | 0.76626 | 0.018551 | 0 | 0.1 | 0 | 0 | 0.183794 | 0.013834 | 0 | 0 | 0 | 0 | 0.125 | 0 | null | null | 0 | 0.05 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
988c55d77c09905fcdbca515b00b781cee3a4bbf | 2,200 | py | Python | src/demo2.py | lorenzobini/3D-shape-retrieval-search-engine | d8cb5887457424f170580f9f961c5f574da0788f | [
"MIT"
] | 2 | 2021-04-07T00:37:32.000Z | 2021-07-30T09:12:56.000Z | src/demo2.py | lorenzobini/3D-shape-retrieval-search-engine | d8cb5887457424f170580f9f961c5f574da0788f | [
"MIT"
] | null | null | null | src/demo2.py | lorenzobini/3D-shape-retrieval-search-engine | d8cb5887457424f170580f9f961c5f574da0788f | [
"MIT"
] | null | null | null | import os
import numpy as np
import matplotlib.pyplot as plt
from shape import Shape
from visualize import visualize
from normalize import normalize_data, normalize_shape
from dataLoader import import_dataset, import_normalised_data
from featureExtraction import *
from featureMatching import *
from utils import pick_f... | 30.985915 | 110 | 0.696364 | 296 | 2,200 | 5.016892 | 0.398649 | 0.016835 | 0.012121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002735 | 0.169091 | 2,200 | 70 | 111 | 31.428571 | 0.809628 | 0.115 | 0 | 0.08 | 0 | 0 | 0.228351 | 0.054639 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0 | false | 0.02 | 0.2 | 0 | 0.2 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
98924730fa3f05cb4daf14bd3cd9a7ff6de51997 | 1,908 | py | Python | exceptiontools/exceptiontools.py | coal0/Utilities | 6b769dbb8945e80b51ea8b58bc77a7381488aa6d | [
"MIT"
] | 12 | 2018-07-03T21:53:10.000Z | 2021-12-31T09:52:06.000Z | exceptiontools/exceptiontools.py | RajvirSingh1313/Utilities | 6b769dbb8945e80b51ea8b58bc77a7381488aa6d | [
"MIT"
] | 2 | 2019-06-08T19:07:58.000Z | 2020-10-01T08:38:04.000Z | exceptiontools/exceptiontools.py | Coal0/Utilities | 6b769dbb8945e80b51ea8b58bc77a7381488aa6d | [
"MIT"
] | 11 | 2018-10-08T23:38:55.000Z | 2021-04-13T11:26:46.000Z | """Various functions to help deal with exceptions.
Released under the MIT license (https://opensource.org/licenses/MIT).
"""
def raises(callable, args=(), kwargs={}):
"""Check if `callable(*args, **kwargs)` raises an exception.
Returns `True` if an exception is raised, else `False`.
Arguments:
- call... | 28.909091 | 74 | 0.648323 | 221 | 1,908 | 5.542986 | 0.366516 | 0.04898 | 0.073469 | 0.02449 | 0.137143 | 0.058776 | 0.058776 | 0 | 0 | 0 | 0 | 0.000705 | 0.256813 | 1,908 | 65 | 75 | 29.353846 | 0.863188 | 0.624738 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.05 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9892e3ea48c6ccb504816b65f16706244cd21186 | 2,963 | py | Python | backend/tests/test_arrival_history.py | anujkumar93/metrics-mvp | c55f520026b5798e0178a501e1f65aa225cd58b8 | [
"MIT"
] | 33 | 2019-02-05T01:45:15.000Z | 2022-01-05T18:55:57.000Z | backend/tests/test_arrival_history.py | skredenmathias/metrics-mvp | b3bf75d4da067eb4e6afe69faa96a9d0e4f178ec | [
"MIT"
] | 502 | 2019-01-17T05:10:54.000Z | 2020-07-23T01:23:37.000Z | backend/tests/test_arrival_history.py | skredenmathias/metrics-mvp | b3bf75d4da067eb4e6afe69faa96a9d0e4f178ec | [
"MIT"
] | 41 | 2019-03-01T06:53:03.000Z | 2020-05-28T19:27:08.000Z | import backend_path
import unittest
import datetime
import numpy as np
import pandas as pd
from backend.models import arrival_history
class ArrivalHistoryTest(unittest.TestCase):
def test_get_data_frame(self):
d = datetime.date(2019,12,28)
start_time = 1577530800
end_time = 1577617200
... | 40.040541 | 99 | 0.595005 | 371 | 2,963 | 4.584906 | 0.269542 | 0.202822 | 0.119929 | 0.056437 | 0.332158 | 0.273957 | 0.17284 | 0.061141 | 0.061141 | 0.061141 | 0 | 0.152894 | 0.236247 | 2,963 | 73 | 100 | 40.589041 | 0.598763 | 0 | 0 | 0.033333 | 0 | 0 | 0.066824 | 0 | 0 | 0 | 0 | 0 | 0.383333 | 1 | 0.016667 | false | 0 | 0.1 | 0 | 0.133333 | 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 |
98979c5a5514473f82ff3de6a626972c493e8f54 | 668 | py | Python | stormdetection/main.py | sagarkrkv/Omega-Dem | 6e6ef272c2a63c338ed7928b624667f31e6c0689 | [
"Apache-2.0"
] | 1 | 2016-09-02T02:23:52.000Z | 2016-09-02T02:23:52.000Z | stormdetection/main.py | sagarkrkv/Omega-Dem | 6e6ef272c2a63c338ed7928b624667f31e6c0689 | [
"Apache-2.0"
] | null | null | null | stormdetection/main.py | sagarkrkv/Omega-Dem | 6e6ef272c2a63c338ed7928b624667f31e6c0689 | [
"Apache-2.0"
] | null | null | null | import simplekml
from flask import Flask, request,jsonify
from boto import connect_s3
import random
import json
app = Flask(__name__)
@app.route('/')
def root_path():
kml = simplekml.Kml()
#parse the incomming json element and pass them in place of coords below
# jsondata = json.load(urllib2.urlopen('url'))
... | 25.692308 | 99 | 0.706587 | 92 | 668 | 4.956522 | 0.695652 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.16018 | 668 | 26 | 100 | 25.692308 | 0.773619 | 0.254491 | 0 | 0 | 0 | 0 | 0.093117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
98997465f6833df7cc80a54bd4b42da04cd19e2f | 1,154 | py | Python | tools/vis/2d/objects/AABB.py | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | tools/vis/2d/objects/AABB.py | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | tools/vis/2d/objects/AABB.py | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | from visualization_msgs.msg import Marker
from visualization_msgs.msg import MarkerArray
from geometry_msgs.msg import Point
from geometry_msgs.msg import Quaternion
from geometry_msgs.msg import Vector3
from std_msgs.msg import ColorRGBA
import rospy
from matplotlib.patches import Rectangle
class AABB:
@staticmet... | 29.589744 | 73 | 0.64818 | 163 | 1,154 | 4.361963 | 0.343558 | 0.059072 | 0.109705 | 0.080169 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022247 | 0.220971 | 1,154 | 39 | 74 | 29.589744 | 0.768632 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.129032 | false | 0 | 0.290323 | 0.032258 | 0.516129 | 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 |
989d579aa0084c35f58e293eceb47a33d01e68ba | 2,227 | py | Python | src/liked2play/generator.py | mkurovski/liked2play | 82c8d0a70e5bb7a45bd6dba747d9c82b138e1c66 | [
"MIT"
] | 8 | 2021-12-22T14:33:54.000Z | 2022-01-29T00:56:45.000Z | src/liked2play/generator.py | mkurovski/liked2play | 82c8d0a70e5bb7a45bd6dba747d9c82b138e1c66 | [
"MIT"
] | null | null | null | src/liked2play/generator.py | mkurovski/liked2play | 82c8d0a70e5bb7a45bd6dba747d9c82b138e1c66 | [
"MIT"
] | null | null | null | """
Music features Enrichment and Preprocessing
"""
__author__ = "Marcel Kurovski"
__copyright__ = "Marcel Kurovski"
__license__ = "mit"
import logging
import os
import numpy as np
import pandas as pd
_logger = logging.getLogger(__name__)
unscaled_attributes = ["key", "loudness", "tempo"]
scaled_attributes = [
... | 30.506849 | 87 | 0.651998 | 270 | 2,227 | 5.177778 | 0.422222 | 0.042918 | 0.015021 | 0.025751 | 0.137339 | 0.074392 | 0.04721 | 0 | 0 | 0 | 0 | 0.00723 | 0.192636 | 2,227 | 72 | 88 | 30.930556 | 0.7703 | 0.066457 | 0 | 0 | 0 | 0 | 0.237911 | 0.044971 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.019231 | false | 0 | 0.076923 | 0 | 0.096154 | 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 |
98a405683be826c4e1be53190a8c39e2cf71ab98 | 2,174 | py | Python | src/random_string.py | leftbrainstuff/amazon-transcribe-comprehend-podcast | b402605dff63b95b62aad148c538f98626eaa9a3 | [
"MIT-0"
] | 122 | 2018-09-20T23:31:14.000Z | 2022-01-28T23:30:32.000Z | src/random_string.py | leftbrainstuff/amazon-transcribe-comprehend-podcast | b402605dff63b95b62aad148c538f98626eaa9a3 | [
"MIT-0"
] | 5 | 2018-12-20T20:34:42.000Z | 2021-08-31T02:13:32.000Z | src/random_string.py | leftbrainstuff/amazon-transcribe-comprehend-podcast | b402605dff63b95b62aad148c538f98626eaa9a3 | [
"MIT-0"
] | 49 | 2018-09-26T01:09:57.000Z | 2021-08-31T16:46:43.000Z | import boto3
import random
import string
import uuid
import httplib
import urlparse
import json
import base64
import hashlib
"""
If included in a Cloudformation build as a CustomResource, generate a random string of length
given by the 'length' parameter.
By default the character set used is upper and lowercase ascii ... | 28.986667 | 127 | 0.668813 | 244 | 2,174 | 5.913934 | 0.446721 | 0.033264 | 0.018018 | 0.023562 | 0.042966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009313 | 0.209752 | 2,174 | 74 | 128 | 29.378378 | 0.830617 | 0 | 0 | 0.041667 | 1 | 0 | 0.236264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.020833 | 0.1875 | 0 | 0.291667 | 0.041667 | 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 |
98a5863091aa0cc8dc2bee607eea2335dd52fdd4 | 7,069 | py | Python | omnicam/scripts/publisher.py | BalasubramanyamEvani/Rico-Theta-S-ROS-Node | 9c1cee80e7f7f36f87d4f397e0796bdb96cd073f | [
"MIT"
] | 1 | 2019-11-07T08:46:33.000Z | 2019-11-07T08:46:33.000Z | omnicam/scripts/publisher.py | BalasubramanyamEvani/Rico-Theta-S-ROS-Node | 9c1cee80e7f7f36f87d4f397e0796bdb96cd073f | [
"MIT"
] | null | null | null | omnicam/scripts/publisher.py | BalasubramanyamEvani/Rico-Theta-S-ROS-Node | 9c1cee80e7f7f36f87d4f397e0796bdb96cd073f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
@Author:Balasubramanyam Evani
Manipal University Jaipur
Node publishes the left and right dual fish eye images obtained from Rico Theta S camera and the rectified images using parameters
obtained from OcamCalib
'''
## Importing required libraries
import rospy
from sensor_msgs.msg import... | 35.70202 | 171 | 0.725845 | 1,066 | 7,069 | 4.574109 | 0.208255 | 0.042453 | 0.053322 | 0.036916 | 0.268253 | 0.16571 | 0.088597 | 0.034865 | 0.034865 | 0.034865 | 0 | 0.018487 | 0.158297 | 7,069 | 197 | 172 | 35.883249 | 0.801008 | 0.0928 | 0 | 0.094828 | 0 | 0 | 0.088157 | 0.019234 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051724 | null | null | 0.025862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
98abb7f80a82927a5ddb3e10597603934837e074 | 1,281 | py | Python | google_auth/models.py | burke-software/django-auth-gapps | 25400dba3d3d48ce02cea6b59e2d5a1162733069 | [
"BSD-3-Clause"
] | 6 | 2015-04-19T01:46:11.000Z | 2022-02-19T20:31:15.000Z | google_auth/models.py | burke-software/django-auth-gapps | 25400dba3d3d48ce02cea6b59e2d5a1162733069 | [
"BSD-3-Clause"
] | null | null | null | google_auth/models.py | burke-software/django-auth-gapps | 25400dba3d3d48ce02cea6b59e2d5a1162733069 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2012 Burke Software and Consulting LLC
# Author David M Burke <david@burkesoftware.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License... | 47.444444 | 127 | 0.748634 | 186 | 1,281 | 5.123656 | 0.629032 | 0.034627 | 0.040923 | 0.059811 | 0.086044 | 0.058762 | 0 | 0 | 0 | 0 | 0 | 0.018269 | 0.188134 | 1,281 | 26 | 128 | 49.269231 | 0.898077 | 0.635441 | 0 | 0 | 0 | 0 | 0.212528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
98acb084e4dbf5c8691f9eeb19eb20272cad206e | 1,876 | py | Python | python/src/util/types.py | Farbfetzen/Advent_of_Code | 246a7db8992bcff19fc0848cc6e5f556ab77cbfc | [
"MIT"
] | 4 | 2021-12-07T14:06:11.000Z | 2022-03-05T04:23:11.000Z | python/src/util/types.py | Farbfetzen/Advent_of_Code | 246a7db8992bcff19fc0848cc6e5f556ab77cbfc | [
"MIT"
] | 6 | 2021-11-23T20:50:18.000Z | 2022-03-06T13:42:21.000Z | python/src/util/types.py | Farbfetzen/Advent_of_Code | 246a7db8992bcff19fc0848cc6e5f556ab77cbfc | [
"MIT"
] | 5 | 2021-12-11T23:22:22.000Z | 2022-01-25T13:35:02.000Z | from dataclasses import dataclass, field
from typing import Any, NamedTuple
@dataclass
class Data:
input: str = ""
samples: list[str] = field(default_factory=lambda: [])
@dataclass
class Solution:
samples_part_1: list[int | str] = field(default_factory=lambda: [])
samples_part_2: list[int | str] =... | 32.912281 | 106 | 0.647122 | 252 | 1,876 | 4.654762 | 0.337302 | 0.034101 | 0.076726 | 0.085251 | 0.144928 | 0.071611 | 0.071611 | 0.071611 | 0 | 0 | 0 | 0.026171 | 0.226013 | 1,876 | 56 | 107 | 33.5 | 0.78168 | 0.179638 | 0 | 0.117647 | 0 | 0 | 0.04244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.058824 | 0 | 0.558824 | 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 |
98afec628a5b8afc946ed4d3fc91b434ee7f4dd9 | 2,675 | py | Python | preprocessing/csv_pcd.py | Batool-Salehi/FL-based-Sector-Selection | 256ff8a6be6649ee6ed05e7ea70955cc2468733e | [
"MIT"
] | null | null | null | preprocessing/csv_pcd.py | Batool-Salehi/FL-based-Sector-Selection | 256ff8a6be6649ee6ed05e7ea70955cc2468733e | [
"MIT"
] | null | null | null | preprocessing/csv_pcd.py | Batool-Salehi/FL-based-Sector-Selection | 256ff8a6be6649ee6ed05e7ea70955cc2468733e | [
"MIT"
] | null | null | null | # wriiten in python 3.7.6
# Input: path_directory line 32
# Run the bash script first to generate pcd files: ./pcd_bash.sh /home/batool/Desktop/infocom/bag_files
import bagpy
import os,glob
from bagpy import bagreader
import pandas as pd
import numpy as np
import csv
def show_all_files_in_directory(input_path,exten... | 41.796875 | 192 | 0.677757 | 374 | 2,675 | 4.590909 | 0.334225 | 0.027956 | 0.055329 | 0.044263 | 0.159581 | 0.06523 | 0 | 0 | 0 | 0 | 0 | 0.017825 | 0.161122 | 2,675 | 64 | 193 | 41.796875 | 0.747326 | 0.220187 | 0 | 0 | 1 | 0 | 0.178255 | 0.04993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.25 | 0.068182 | 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 |
98b0eb6bdf5baea1108a1ffea05d7acfbdcdd0b8 | 846 | py | Python | src/apps/inventories/migrations/0005_auto_20200816_2144.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | src/apps/inventories/migrations/0005_auto_20200816_2144.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | 14 | 2020-06-23T20:32:16.000Z | 2022-01-13T03:13:20.000Z | src/apps/inventories/migrations/0005_auto_20200816_2144.py | MartinCura/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-16 21:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inventories', '0004_auto_20200801_1826'),
]
operations = [
migrations.RemoveField(
model_name='... | 26.4375 | 142 | 0.593381 | 80 | 846 | 6.1625 | 0.5625 | 0.105477 | 0.056795 | 0.089249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053512 | 0.293144 | 846 | 31 | 143 | 27.290323 | 0.770903 | 0.053191 | 0 | 0.4 | 1 | 0 | 0.153942 | 0.028786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 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 |
98b99d53e73a50a5ac66a3911ded26a2b357aa5a | 15,594 | py | Python | bin/heatmap.py | nesi/pan_usage | 5e96a6767def39399573654578994b3aa54db729 | [
"MIT"
] | null | null | null | bin/heatmap.py | nesi/pan_usage | 5e96a6767def39399573654578994b3aa54db729 | [
"MIT"
] | null | null | null | bin/heatmap.py | nesi/pan_usage | 5e96a6767def39399573654578994b3aa54db729 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
import traceback
import cgi
import cgitb
import xml.sax
import math
import cStringIO
from cluster import config
import cluster.util.system_call as systemcall
cgitb.enable()
form = cgi.FieldStorage()
colormaps = { 'default': [ '#ffffff', '#ffe6e6', '#ffcdcd', '#ffb4b4', '#ff9b9b', '#ff8282'... | 38.408867 | 247 | 0.618443 | 2,027 | 15,594 | 4.631968 | 0.185989 | 0.036213 | 0.018106 | 0.012674 | 0.377356 | 0.28789 | 0.239749 | 0.205666 | 0.172436 | 0.124827 | 0 | 0.028747 | 0.208093 | 15,594 | 405 | 248 | 38.503704 | 0.731557 | 0.021162 | 0 | 0.235294 | 0 | 0.042017 | 0.370681 | 0.071789 | 0 | 0 | 0 | 0.002469 | 0 | 0 | null | null | 0.002801 | 0.02521 | null | null | 0.014006 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7f26786a01a383f82aab6f501ab19efeae1263f8 | 886 | py | Python | posts/serializers.py | sanaullahaq/zappit | 14ab548e51f95fec9d2569289f271217b782c347 | [
"MIT"
] | 2 | 2020-10-28T05:00:08.000Z | 2020-10-28T05:05:33.000Z | posts/serializers.py | sanaullahaq/zappit | 14ab548e51f95fec9d2569289f271217b782c347 | [
"MIT"
] | null | null | null | posts/serializers.py | sanaullahaq/zappit | 14ab548e51f95fec9d2569289f271217b782c347 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Post, Vote
# we use serializer to show/get data to/from api as our model and json format
class PostSerializer(serializers.ModelSerializer):
# here we are giving this fields readonly mode
poster = serializers.ReadOnlyField(source='poster.username')
... | 32.814815 | 87 | 0.702032 | 111 | 886 | 5.558559 | 0.513514 | 0.038898 | 0.097245 | 0.116694 | 0.071313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206546 | 886 | 26 | 88 | 34.076923 | 0.877667 | 0.272009 | 0 | 0.133333 | 0 | 0 | 0.098438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 0.733333 | 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 |
7f32a956d6b857a8582f857e90bbb3d17bb1c2c8 | 134,218 | py | Python | JAMF-API-Get_Data_From-JAMF_Desplay_in_Excel .py | MacJediWizard/JAMF-API-Get_Data_From-JAMF_Desplay_in_Excel | c9627af28703c98a977741ed50c79d50e2f7a409 | [
"MIT"
] | null | null | null | JAMF-API-Get_Data_From-JAMF_Desplay_in_Excel .py | MacJediWizard/JAMF-API-Get_Data_From-JAMF_Desplay_in_Excel | c9627af28703c98a977741ed50c79d50e2f7a409 | [
"MIT"
] | null | null | null | JAMF-API-Get_Data_From-JAMF_Desplay_in_Excel .py | MacJediWizard/JAMF-API-Get_Data_From-JAMF_Desplay_in_Excel | c9627af28703c98a977741ed50c79d50e2f7a409 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
##########################################################################################
# General Information
##########################################################################################
#
# Script created By William Grzybowski March 3, 2022
#
# Version 1.0 - Initial Creation of... | 33.604907 | 293 | 0.663547 | 12,458 | 134,218 | 6.97616 | 0.066624 | 0.051088 | 0.0178 | 0.010126 | 0.76656 | 0.728636 | 0.663038 | 0.616127 | 0.585233 | 0.552946 | 0 | 0.001998 | 0.168509 | 134,218 | 3,994 | 294 | 33.604907 | 0.776749 | 0.134229 | 0 | 0.532075 | 0 | 0.003774 | 0.230661 | 0.024972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006132 | false | 0.006604 | 0.008491 | 0 | 0.02217 | 0.075472 | 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 |
7f398e9a726a059ab3d9b9632aebfe0963392176 | 598 | py | Python | lib/capture_keys.py | wojciechstanley/AutonomousCarAI | 02cd7cc15fcf6ead4d36a154cf9576de2e5d9fa2 | [
"MIT"
] | 20 | 2017-08-26T14:12:17.000Z | 2020-06-15T16:08:25.000Z | lib/capture_keys.py | wojciechstanley/AutonomousCarAI | 02cd7cc15fcf6ead4d36a154cf9576de2e5d9fa2 | [
"MIT"
] | 13 | 2017-10-02T10:51:02.000Z | 2021-03-24T17:15:00.000Z | lib/capture_keys.py | wojciechstanley/AutonomousCarAI | 02cd7cc15fcf6ead4d36a154cf9576de2e5d9fa2 | [
"MIT"
] | 24 | 2017-08-26T16:39:56.000Z | 2019-04-29T02:56:54.000Z |
import lib.constants as const
def log_keys(win32api):
keys = []
for key in const.keyList:
if win32api.GetAsyncKeyState(ord(key)):
# print(key,end='-')
keys.append(key)
return keys
def get_keys(win32api):
keys=log_keys(win32api)
output=[0,0,0,0]
... | 19.290323 | 48 | 0.521739 | 79 | 598 | 3.911392 | 0.367089 | 0.097087 | 0.15534 | 0.220065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034667 | 0.37291 | 598 | 30 | 49 | 19.933333 | 0.789333 | 0.0301 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.272727 | 0.045455 | 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 |
7f3d9134143fc5b1d864da6b3386786371e94e5f | 1,379 | py | Python | Data-Structures/trees/tests/test_trees.py | AymanNaif/data-structures-and-algorithms | f68c8a2829362a4c9cf9084973b56464ca951ca5 | [
"MIT"
] | null | null | null | Data-Structures/trees/tests/test_trees.py | AymanNaif/data-structures-and-algorithms | f68c8a2829362a4c9cf9084973b56464ca951ca5 | [
"MIT"
] | 1 | 2021-06-13T16:51:53.000Z | 2021-06-13T16:51:53.000Z | Data-Structures/trees/tests/test_trees.py | AymanNaif/data-structures-and-algorithms | f68c8a2829362a4c9cf9084973b56464ca951ca5 | [
"MIT"
] | 1 | 2021-04-26T09:16:53.000Z | 2021-04-26T09:16:53.000Z | from trees import __version__
from trees.tree import BinaryTree, Node, BinarySearchTree
def test_empty_tree():
tree = BinarySearchTree()
actual = tree.root
expected = None
assert actual == expected
def test_tree_single_node():
tree = BinarySearchTree()
tree.add('A')
actual = tree.root.v... | 19.7 | 58 | 0.618564 | 181 | 1,379 | 4.580111 | 0.20442 | 0.15199 | 0.173703 | 0.195416 | 0.591074 | 0.420989 | 0.400483 | 0.357057 | 0.357057 | 0.357057 | 0 | 0.026769 | 0.241479 | 1,379 | 69 | 59 | 19.985507 | 0.765774 | 0 | 0 | 0.574074 | 0 | 0 | 0.010152 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 1 | 0.12963 | false | 0 | 0.037037 | 0 | 0.166667 | 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 |
7f3e9a9ea8a0aaaf47ae7885ce784b2792a21e81 | 976 | py | Python | lib/test/test_utils/TempFile.py | thormeier-fhnw-repos/ip619bb-i4ds02-audio-text-alignment | 382800891c8de35c541d726da78f108a5a86b210 | [
"MIT"
] | null | null | null | lib/test/test_utils/TempFile.py | thormeier-fhnw-repos/ip619bb-i4ds02-audio-text-alignment | 382800891c8de35c541d726da78f108a5a86b210 | [
"MIT"
] | null | null | null | lib/test/test_utils/TempFile.py | thormeier-fhnw-repos/ip619bb-i4ds02-audio-text-alignment | 382800891c8de35c541d726da78f108a5a86b210 | [
"MIT"
] | null | null | null | from tempfile import NamedTemporaryFile
import os
class TempFile:
"""
Temporary file for convenience in tests that include opening and reading files.
"""
def __init__(self, content: str) -> None:
"""
Initializes a temporary file
:param content: File content
"""
... | 22.697674 | 83 | 0.530738 | 111 | 976 | 4.585586 | 0.531532 | 0.039293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001613 | 0.364754 | 976 | 42 | 84 | 23.238095 | 0.819355 | 0.30123 | 0 | 0 | 0 | 0 | 0.01107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f3f81c102f7868b32d7f23bd255b38410b4efbb | 1,564 | py | Python | alf/examples/seedtd_conf.py | pd-perry/alf | a6e6f26334c4d02b9733fe11f281d7cad8e1d5ca | [
"Apache-2.0"
] | null | null | null | alf/examples/seedtd_conf.py | pd-perry/alf | a6e6f26334c4d02b9733fe11f281d7cad8e1d5ca | [
"Apache-2.0"
] | null | null | null | alf/examples/seedtd_conf.py | pd-perry/alf | a6e6f26334c4d02b9733fe11f281d7cad8e1d5ca | [
"Apache-2.0"
] | null | null | null | import alf
from alf.algorithms.actor_critic_algorithm import ActorCriticAlgorithm
from alf.algorithms.trac_algorithm import TracAlgorithm
from alf.algorithms.data_transformer import RewardScaling
from alf.environments import suite_simple
from alf.environments.bipolar_chains import BipolarChains
from alf.environments.s... | 30.666667 | 115 | 0.801151 | 205 | 1,564 | 5.84878 | 0.463415 | 0.046706 | 0.056714 | 0.043369 | 0.055046 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0.02248 | 0.118286 | 1,564 | 51 | 116 | 30.666667 | 0.846991 | 0.102302 | 0 | 0.081081 | 0 | 0 | 0.057184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.297297 | 0 | 0.297297 | 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 |
7f3fea7da3f61e984e0badd5eba3c5463e38e84e | 661 | py | Python | Code/ViloSky/ViloSkyApp/migrations/0002_auto_20210323_1149.py | andrewwu531/Student_Enquiry_AI_Chatbot | 27fa6901be2a0ba6282af2498aacdc0129a8b60a | [
"MIT"
] | null | null | null | Code/ViloSky/ViloSkyApp/migrations/0002_auto_20210323_1149.py | andrewwu531/Student_Enquiry_AI_Chatbot | 27fa6901be2a0ba6282af2498aacdc0129a8b60a | [
"MIT"
] | null | null | null | Code/ViloSky/ViloSkyApp/migrations/0002_auto_20210323_1149.py | andrewwu531/Student_Enquiry_AI_Chatbot | 27fa6901be2a0ba6282af2498aacdc0129a8b60a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-03-23 11:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ViloSkyApp', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='RadioButtonsAdminInput',
new_name='... | 28.73913 | 189 | 0.600605 | 60 | 661 | 6.516667 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044355 | 0.249622 | 661 | 22 | 190 | 30.045455 | 0.743952 | 0.068079 | 0 | 0.125 | 1 | 0 | 0.265472 | 0.070033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f410c10da58d83e0f6e580665bd060c0e61bb82 | 1,539 | py | Python | prat/apps/revertible/migrations/0001_initial.py | Ian-Gabaraev/django-prat | fa745beb23433236427a1ced57e188c8a15a7d92 | [
"MIT"
] | null | null | null | prat/apps/revertible/migrations/0001_initial.py | Ian-Gabaraev/django-prat | fa745beb23433236427a1ced57e188c8a15a7d92 | [
"MIT"
] | null | null | null | prat/apps/revertible/migrations/0001_initial.py | Ian-Gabaraev/django-prat | fa745beb23433236427a1ced57e188c8a15a7d92 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-02-27 18:12
from django.db import migrations, models
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SimpleModel',
fiel... | 34.2 | 114 | 0.563353 | 146 | 1,539 | 5.821918 | 0.458904 | 0.047059 | 0.088235 | 0.081176 | 0.398824 | 0.351765 | 0.351765 | 0.351765 | 0.351765 | 0.351765 | 0 | 0.024186 | 0.301494 | 1,539 | 44 | 115 | 34.977273 | 0.766512 | 0.02924 | 0 | 0.405405 | 1 | 0 | 0.08311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.189189 | 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 |
7f4297b5d8a5e1d496299789e6bc428bf072bf5e | 3,638 | py | Python | src2/eval_softCPK.py | paramita1024/demarcation | 8dc77351629534ceb0f05e11ea5b708ca1054d66 | [
"MIT"
] | null | null | null | src2/eval_softCPK.py | paramita1024/demarcation | 8dc77351629534ceb0f05e11ea5b708ca1054d66 | [
"MIT"
] | null | null | null | src2/eval_softCPK.py | paramita1024/demarcation | 8dc77351629534ceb0f05e11ea5b708ca1054d66 | [
"MIT"
] | null | null | null | import sys
from eval_slant_module import eval_slant_module
from data_preprocess import data_preprocess
from myutil import *
from slant_wtout_network import slant_wtout_network
from softRCPK import softRCPK
from softRCPK_wtout_network import softRCPK_wtout_network
class eval_softRCPK:
def __init__(self,file_prefix,fi... | 36.747475 | 189 | 0.694612 | 575 | 3,638 | 4.130435 | 0.212174 | 0.084211 | 0.076632 | 0.030316 | 0.219789 | 0.203789 | 0.130526 | 0.039579 | 0.039579 | 0.039579 | 0 | 0.027368 | 0.086036 | 3,638 | 98 | 190 | 37.122449 | 0.686917 | 0.153381 | 0 | 0.081081 | 0 | 0 | 0.121291 | 0.043365 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094595 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7f45ed85b652ae7fbb7c85b6725164ae955e457f | 1,350 | py | Python | tumor-stage/stage_counts.py | elifesciences-publications/genomic-features-survival | 8c7c62696f56a84b674369391c71ff0c223c9ffd | [
"MIT"
] | 15 | 2019-04-15T21:24:02.000Z | 2022-01-31T01:17:48.000Z | tumor-stage/stage_counts.py | elifesciences-publications/genomic-features-survival | 8c7c62696f56a84b674369391c71ff0c223c9ffd | [
"MIT"
] | null | null | null | tumor-stage/stage_counts.py | elifesciences-publications/genomic-features-survival | 8c7c62696f56a84b674369391c71ff0c223c9ffd | [
"MIT"
] | 5 | 2018-12-07T10:03:28.000Z | 2022-03-11T21:08:19.000Z | #!/usr/bin/env python
# encoding: utf-8
'''
stage_counts.py
Created by Joan Smith
on 2017-9-20
Count patients with staged cancer for each type
Copyright (c) 2018. All rights reserved.
'''
import argparse
import sys
import os
import glob
import pandas as pd
sys.path.append('../common/')
import utilities as util
imp... | 25.471698 | 91 | 0.754815 | 192 | 1,350 | 5.046875 | 0.505208 | 0.057792 | 0.049536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.133333 | 1,350 | 52 | 92 | 25.961538 | 0.817949 | 0.026667 | 0 | 0 | 0 | 0 | 0.111111 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.258065 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7f4b1f2318cd575bffc73629022a23916e103b1e | 1,446 | py | Python | sample.py | karafecho/icees-api | fc2b6865974075e42b88ccff96b3e9cc90da7596 | [
"MIT"
] | 1 | 2018-08-06T18:53:34.000Z | 2018-08-06T18:53:34.000Z | sample.py | karafecho/icees-api | fc2b6865974075e42b88ccff96b3e9cc90da7596 | [
"MIT"
] | 1 | 2021-03-31T21:45:33.000Z | 2021-03-31T21:45:33.000Z | sample.py | karafecho/icees-api | fc2b6865974075e42b88ccff96b3e9cc90da7596 | [
"MIT"
] | 1 | 2021-03-22T16:02:06.000Z | 2021-03-22T16:02:06.000Z | from features import features
import pandas as pd
import numpy as np
import sys
import argparse
def generate_data(table_name, years, n, fn):
df_all = None
for year in years:
df = pd.DataFrame({table_name[0].upper() + table_name[1:] + "Id":range(1,n+1)})
df["year"] = year
for f in fea... | 28.92 | 109 | 0.554633 | 199 | 1,446 | 3.884422 | 0.376884 | 0.03881 | 0.087969 | 0.033635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011168 | 0.318811 | 1,446 | 49 | 110 | 29.510204 | 0.773604 | 0 | 0 | 0.075 | 1 | 0 | 0.046335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.125 | 0 | 0.15 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f4c9ab72145787ce00c9219d152d682e7cc6569 | 3,485 | py | Python | SOLITONEMS/settings.py | mathemartins/solitonEMS | be593a1de735a2d60288e3c3ef3cf50d554ebfce | [
"Unlicense",
"MIT"
] | null | null | null | SOLITONEMS/settings.py | mathemartins/solitonEMS | be593a1de735a2d60288e3c3ef3cf50d554ebfce | [
"Unlicense",
"MIT"
] | null | null | null | SOLITONEMS/settings.py | mathemartins/solitonEMS | be593a1de735a2d60288e3c3ef3cf50d554ebfce | [
"Unlicense",
"MIT"
] | 1 | 2021-01-05T20:27:40.000Z | 2021-01-05T20:27:40.000Z | import os
from decouple import config, Csv
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = config('SECRET_KEY')
DEBUG = config('DEBUG', cast=bool)
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())
SOLITONEMS_APPS = [
'recruitment',
'employees',
'payroll',
'leave'... | 25.625 | 91 | 0.69297 | 367 | 3,485 | 6.370572 | 0.373297 | 0.088965 | 0.050898 | 0.042772 | 0.187767 | 0.152267 | 0.059025 | 0.034217 | 0.034217 | 0 | 0 | 0.00586 | 0.167575 | 3,485 | 135 | 92 | 25.814815 | 0.800069 | 0.095839 | 0 | 0 | 0 | 0 | 0.506369 | 0.34586 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06 | 0.02 | 0 | 0.02 | 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 |
7f4dc1e1126ca44592687ba055b1c12c004f912d | 350 | py | Python | DiDi_taxe/test.py | c235gsy/Sustech_Mathematical-Modeling | e2187b3d181185af4927255c50b4c08ba2a5fb3e | [
"MIT"
] | 1 | 2019-11-30T11:32:36.000Z | 2019-11-30T11:32:36.000Z | DiDi_taxe/test.py | c235gsy/Sustech_Mathematical-Modeling | e2187b3d181185af4927255c50b4c08ba2a5fb3e | [
"MIT"
] | null | null | null | DiDi_taxe/test.py | c235gsy/Sustech_Mathematical-Modeling | e2187b3d181185af4927255c50b4c08ba2a5fb3e | [
"MIT"
] | null | null | null | import pandas as pd
t1 = 5
t2 = 10
data = pd.DataFrame({"end_t": [0,1,6,0,7,11],
"start_t": [3,7,12,15,8,13]})
out = data.loc[((data["end_t"] > t1) & (t1 > data["start_t"])) |
((data["start_t"] < t2) & (t2 < data["end_t"])) |
((data["start_t"] >= t1) & (data... | 31.818182 | 70 | 0.445714 | 56 | 350 | 2.642857 | 0.464286 | 0.108108 | 0.162162 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 0.297143 | 350 | 11 | 71 | 31.818182 | 0.49187 | 0 | 0 | 0 | 0 | 0 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f527bba7a50326b632c2f95d9fe5f1817d3f7b0 | 1,232 | py | Python | dags/query.py | buckylee2019/sqlg-airflow-2.0 | 431b823d181af8c0557a8eed26062883bef49ebd | [
"Apache-2.0"
] | null | null | null | dags/query.py | buckylee2019/sqlg-airflow-2.0 | 431b823d181af8c0557a8eed26062883bef49ebd | [
"Apache-2.0"
] | null | null | null | dags/query.py | buckylee2019/sqlg-airflow-2.0 | 431b823d181af8c0557a8eed26062883bef49ebd | [
"Apache-2.0"
] | null | null | null | # query.py
import cx_Oracle
# Establish the database connection
# connection = cx_Oracle.connect("system", "oracle", "dbhost.example.com/orclpdb1")
connection = cx_Oracle.connect("system", "oracle", "172.24.0.9")
# Obtain a cursor
cursor = connection.cursor()
# Data for binding
managerId = 145
firstName = "Peter"
... | 30.8 | 95 | 0.655844 | 167 | 1,232 | 4.760479 | 0.48503 | 0.113208 | 0.045283 | 0.062893 | 0.093082 | 0.093082 | 0 | 0 | 0 | 0 | 0 | 0.016016 | 0.189123 | 1,232 | 40 | 96 | 30.8 | 0.77978 | 0.369318 | 0 | 0 | 0 | 0 | 0.084768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7f6440dec7eb5c16c2bd5d6e68bec8dd29bae691 | 2,732 | py | Python | rl_dnc/tasks/dnc_wrapper/repeat_copy_with_wrapper.py | Bra1nwash3d/msc_thesis | 3d7dbe15da6e7b7b0ccb3b97f7d15b946dbb4fc6 | [
"MIT"
] | 1 | 2020-03-24T08:24:50.000Z | 2020-03-24T08:24:50.000Z | rl_dnc/tasks/dnc_wrapper/repeat_copy_with_wrapper.py | Washeh/msc_thesis | 3d7dbe15da6e7b7b0ccb3b97f7d15b946dbb4fc6 | [
"MIT"
] | null | null | null | rl_dnc/tasks/dnc_wrapper/repeat_copy_with_wrapper.py | Washeh/msc_thesis | 3d7dbe15da6e7b7b0ccb3b97f7d15b946dbb4fc6 | [
"MIT"
] | null | null | null | # based on DeepMind's train.py
import tensorflow as tf
import repeat_copy
from rl_dnc.model.dnc_wrapper import DNCWrapper
FLAGS = tf.flags.FLAGS
# Task parameters
tf.flags.DEFINE_integer("batch_size", 16, "Batch size for training.")
tf.flags.DEFINE_integer("num_bits", 4, "Dimensionality of each vector to copy")
tf.... | 37.944444 | 102 | 0.629575 | 342 | 2,732 | 4.821637 | 0.356725 | 0.046695 | 0.078836 | 0.109157 | 0.19527 | 0.151607 | 0.105519 | 0.086113 | 0.086113 | 0.086113 | 0 | 0.012042 | 0.270498 | 2,732 | 72 | 103 | 37.944444 | 0.815354 | 0.077233 | 0 | 0.038462 | 0 | 0 | 0.250298 | 0.022284 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.019231 | false | 0.019231 | 0.057692 | 0 | 0.076923 | 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 |
7f6cf121feaaea85b5a802b126d2b55f899ba287 | 463 | py | Python | src/win_condition.py | ikashraf/ticktacktoe | 695dc4e533ce591eaad8b57f8de1cf91f298a9b0 | [
"MIT"
] | null | null | null | src/win_condition.py | ikashraf/ticktacktoe | 695dc4e533ce591eaad8b57f8de1cf91f298a9b0 | [
"MIT"
] | null | null | null | src/win_condition.py | ikashraf/ticktacktoe | 695dc4e533ce591eaad8b57f8de1cf91f298a9b0 | [
"MIT"
] | null | null | null | from itertools import combinations, permutations
# make it more efficient
def has_win_condition(player_set):
win_states = set(permutations([1,2,3])) | set(permutations([4,5,6])) \
| set(permutations([9,7,8])) | set(permutations([1,4,7])) \
| set(permutations([8,2,5])) | set(permutations([9,3,6])) \
... | 46.3 | 74 | 0.650108 | 68 | 463 | 4.338235 | 0.397059 | 0.40678 | 0.162712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063776 | 0.153348 | 463 | 10 | 75 | 46.3 | 0.688776 | 0.047516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
7f711e75a623d274ee29ab74bbb6fbd18e7a56c2 | 1,052 | py | Python | node_modules/gl/angle/src/commit_id.py | aaverty/editly | 71bccaf91f8d68609c80ba59425b79e3f94579ad | [
"MIT"
] | 28 | 2017-04-20T06:21:26.000Z | 2021-12-10T15:22:51.000Z | node_modules/gl/angle/src/commit_id.py | aaverty/editly | 71bccaf91f8d68609c80ba59425b79e3f94579ad | [
"MIT"
] | 3 | 2017-04-05T00:41:45.000Z | 2020-04-04T00:44:24.000Z | node_modules/gl/angle/src/commit_id.py | aaverty/editly | 71bccaf91f8d68609c80ba59425b79e3f94579ad | [
"MIT"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | import subprocess as sp
import sys
import os
# Usage: commit_id.py check <angle_dir> (checks if git is present)
# Usage: commit_id.py gen <angle_dir> <file_to_write> (generates commit id)
def grab_output(command, cwd):
return sp.Popen(command, stdout=sp.PIPE, shell=True, cwd=cwd).communicate()[0].strip()
operati... | 26.974359 | 90 | 0.684411 | 168 | 1,052 | 4.095238 | 0.422619 | 0.104651 | 0.052326 | 0.09157 | 0.12936 | 0.090116 | 0 | 0 | 0 | 0 | 0 | 0.010251 | 0.165399 | 1,052 | 38 | 91 | 27.684211 | 0.773349 | 0.131179 | 0 | 0 | 1 | 0 | 0.217344 | 0.024149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0.037037 | 0.185185 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f7f3549c04038fc1e6cd0aa90206481243bc8c1 | 2,925 | py | Python | tests/command_list_test.py | yahoo/sshmap | 3749c6ca76700064c5d3775e91cd134115aae5af | [
"Apache-2.0"
] | 6 | 2015-02-04T17:11:08.000Z | 2020-03-15T09:17:36.000Z | tests/command_list_test.py | yahoo/sshmap | 3749c6ca76700064c5d3775e91cd134115aae5af | [
"Apache-2.0"
] | null | null | null | tests/command_list_test.py | yahoo/sshmap | 3749c6ca76700064c5d3775e91cd134115aae5af | [
"Apache-2.0"
] | 6 | 2015-12-08T08:06:27.000Z | 2020-12-09T12:44:51.000Z | #!/usr/bin/env python3
# Copyright (c) 2010-2015, Yahoo Inc.
# Copyrights licensed under the Apache 2.0 License
# See the accompanying LICENSE.txt file for terms.
"""
Unit tests of sshmap
"""
__author__ = 'dhubbard'
import sshmap
import os
import unittest
class TestSshmapCLI(unittest.TestCase):
"""
sshmap com... | 33.62069 | 79 | 0.61265 | 370 | 2,925 | 4.740541 | 0.281081 | 0.071836 | 0.027366 | 0.037628 | 0.744014 | 0.712087 | 0.694983 | 0.654504 | 0.633409 | 0.583238 | 0 | 0.008858 | 0.266667 | 2,925 | 86 | 80 | 34.011628 | 0.808858 | 0.470769 | 0 | 0.315789 | 0 | 0 | 0.241216 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.078947 | 0 | 0.210526 | 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 |
7f7fecfe3103d4d1b6882df51efa84537e530071 | 1,182 | py | Python | train_traffic_app/migrations/0001_initial.py | guibargar/stt-api | 18e7a0c338a4b290e9735b546154ffb72167d777 | [
"MIT"
] | 1 | 2020-10-27T15:37:20.000Z | 2020-10-27T15:37:20.000Z | train_traffic_app/migrations/0001_initial.py | guibargar/stt-api | 18e7a0c338a4b290e9735b546154ffb72167d777 | [
"MIT"
] | null | null | null | train_traffic_app/migrations/0001_initial.py | guibargar/stt-api | 18e7a0c338a4b290e9735b546154ffb72167d777 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-24 18:44
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.... | 35.818182 | 156 | 0.620981 | 121 | 1,182 | 5.909091 | 0.619835 | 0.033566 | 0.039161 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023307 | 0.237733 | 1,182 | 32 | 157 | 36.9375 | 0.770255 | 0.054992 | 0 | 0 | 1 | 0 | 0.111311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f84fe97b1327b11363bf392bcb752482986bdf4 | 21,848 | py | Python | src/web/scripts/vjifc.py | NMRbox/OpenVnmrJ | 5a12433dfdcd6d54a89f62e199693e8d7c000da5 | [
"Apache-2.0"
] | 1 | 2019-09-17T21:07:37.000Z | 2019-09-17T21:07:37.000Z | src/web/scripts/vjifc.py | timburrow/openvnmrj-source | f5e65eb2db4bded3437701f0fa91abd41928579c | [
"Apache-2.0"
] | 1 | 2019-08-12T20:59:59.000Z | 2019-08-13T08:04:30.000Z | src/web/scripts/vjifc.py | timburrow/openvnmrj-source | f5e65eb2db4bded3437701f0fa91abd41928579c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# publish/subscribe interface to NMR Status Dictionary
#
# - limited issues subscriptions - option to automatically unsubscribe after
# a specified number of events
#
# - multiple subscribers automatically notified when an entry is written
#
# - Dictionary entries automatically removed when conne... | 40.837383 | 119 | 0.529156 | 2,556 | 21,848 | 4.460485 | 0.163146 | 0.039996 | 0.025349 | 0.015788 | 0.283659 | 0.192966 | 0.151127 | 0.123323 | 0.100342 | 0.083501 | 0 | 0.009018 | 0.340168 | 21,848 | 534 | 120 | 40.913858 | 0.78184 | 0.120972 | 0 | 0.264339 | 0 | 0 | 0.110299 | 0.004929 | 0 | 0 | 0 | 0.003745 | 0 | 0 | null | null | 0.004988 | 0.024938 | null | null | 0.009975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7f95bd5dd37e0c442b9b33503156a998035afeab | 2,532 | py | Python | api/server/swagger_server/code_templates/serve_kubernetes.TEMPLATE.py | krishnakumar27/mlx | dce67d58dffa24ca7a6a4d6b5fd8d4eb94e35215 | [
"Apache-2.0"
] | 98 | 2021-05-03T23:27:53.000Z | 2022-03-13T02:29:12.000Z | api/server/swagger_server/code_templates/serve_kubernetes.TEMPLATE.py | krishnakumar27/mlx | dce67d58dffa24ca7a6a4d6b5fd8d4eb94e35215 | [
"Apache-2.0"
] | 296 | 2021-05-03T22:44:26.000Z | 2022-03-31T11:50:16.000Z | api/server/swagger_server/code_templates/serve_kubernetes.TEMPLATE.py | krishnakumar27/mlx | dce67d58dffa24ca7a6a4d6b5fd8d4eb94e35215 | [
"Apache-2.0"
] | 38 | 2021-05-03T22:52:59.000Z | 2022-03-31T03:58:34.000Z | # Copyright 2021 The MLX Contributors
#
# SPDX-License-Identifier: Apache-2.0
from kfp import dsl
from kfp_tekton.compiler import TektonCompiler
from kfp_tekton import TektonClient
from os import path
from tempfile import gettempdir
############################################################
# Define... | 30.878049 | 81 | 0.561611 | 245 | 2,532 | 5.579592 | 0.342857 | 0.065838 | 0.049744 | 0.023409 | 0.162399 | 0.087783 | 0.045355 | 0 | 0 | 0 | 0 | 0.004471 | 0.204976 | 2,532 | 81 | 82 | 31.259259 | 0.674615 | 0.108215 | 0 | 0.204082 | 0 | 0 | 0.249322 | 0.054201 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
7f99518bc2487eb60a4809215328b72d9065bed5 | 1,729 | py | Python | para_registration.py | DaisukeMiyamoto/test_pythonparallel | e2eeb52af4084207d5d47a57a01475ac8b2d034c | [
"Apache-2.0"
] | null | null | null | para_registration.py | DaisukeMiyamoto/test_pythonparallel | e2eeb52af4084207d5d47a57a01475ac8b2d034c | [
"Apache-2.0"
] | null | null | null | para_registration.py | DaisukeMiyamoto/test_pythonparallel | e2eeb52af4084207d5d47a57a01475ac8b2d034c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding: UTF-8
from ipyparallel import Client
def singlejob(arg):
import subprocess
import os
filename = arg
filename_base, filename_ext = os.path.splitext(filename)
homedir = '/data/registration/Processed/'
sbfile_base = homedir + 'SB_bin/Reslice_WHS_0.6.1_Labels_fixed... | 25.426471 | 91 | 0.632157 | 215 | 1,729 | 4.92093 | 0.47907 | 0.026465 | 0.034026 | 0.020794 | 0.109641 | 0.041588 | 0 | 0 | 0 | 0 | 0 | 0.016692 | 0.23771 | 1,729 | 67 | 92 | 25.80597 | 0.786039 | 0.061885 | 0 | 0.047619 | 0 | 0 | 0.18047 | 0.10754 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7fa06fcefd8dc24fbdd1deab84a478c311229c0c | 2,403 | py | Python | bloodhound_multiproduct/tests/ticket/batch.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | null | null | null | bloodhound_multiproduct/tests/ticket/batch.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | null | null | null | bloodhound_multiproduct/tests/ticket/batch.py | HelionDevPlatform/bloodhound | 206b0d9898159fa8297ad1e407d38484fa378354 | [
"Apache-2.0"
] | null | null | null |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 35.865672 | 76 | 0.751144 | 309 | 2,403 | 5.695793 | 0.449838 | 0.045455 | 0.059091 | 0.048295 | 0.115909 | 0.115909 | 0.086364 | 0.048864 | 0.048864 | 0 | 0 | 0.00202 | 0.17603 | 2,403 | 66 | 77 | 36.409091 | 0.886869 | 0.352476 | 0 | 0.060606 | 0 | 0 | 0.020222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.30303 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7fa1ad9f4e967e6fd0b9f88c9de27e279b8439d0 | 2,301 | py | Python | dev/data/CC3M_downloader.py | jonathanfrawley/dalle-mini | f3670e020a916c0d592a7e18b5d6ec31bc10a244 | [
"Apache-2.0"
] | 21 | 2021-07-07T18:37:40.000Z | 2021-07-22T16:10:47.000Z | dev/data/CC3M_downloader.py | jonathanfrawley/dalle-mini | f3670e020a916c0d592a7e18b5d6ec31bc10a244 | [
"Apache-2.0"
] | null | null | null | dev/data/CC3M_downloader.py | jonathanfrawley/dalle-mini | f3670e020a916c0d592a7e18b5d6ec31bc10a244 | [
"Apache-2.0"
] | null | null | null | '''
This script was adapted from Luke Melas-Kyriazi's code. (https://twitter.com/lukemelas)
Few changes were made for the particular dataset. You're required to have the `.tsv` file downloaded in your directory.
Find them here- [https://github.com/google-research-datasets/conceptual-captions]
'''
import sys
import os
... | 37.112903 | 119 | 0.712299 | 339 | 2,301 | 4.761062 | 0.545723 | 0.018587 | 0.027261 | 0.020446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009399 | 0.167753 | 2,301 | 62 | 120 | 37.112903 | 0.83342 | 0.17688 | 0 | 0.043478 | 0 | 0.021739 | 0.140883 | 0.061669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.304348 | 0 | 0.326087 | 0.108696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7fa9ae9d12d33456dd07d76404f47121f77447a6 | 551 | py | Python | Application/GTEX/Visualizing/0ReplaceWithTissue.py | purebrawn/GEDIT | b409e3b2b699afa9fdd8264c7343fe588dd293e0 | [
"MIT"
] | null | null | null | Application/GTEX/Visualizing/0ReplaceWithTissue.py | purebrawn/GEDIT | b409e3b2b699afa9fdd8264c7343fe588dd293e0 | [
"MIT"
] | null | null | null | Application/GTEX/Visualizing/0ReplaceWithTissue.py | purebrawn/GEDIT | b409e3b2b699afa9fdd8264c7343fe588dd293e0 | [
"MIT"
] | null | null | null | def main():
ConvDict = {}
inMat = []
for line in open("GTEXSampleNames.tsv","r"):
inMat.append(line)
for line in inMat[1:]:
parts = line.strip().split("\t")
Dotted = ".".join(parts[0].split("-"))
ConvDict[Dotted] = parts[1]
inMat2 = []
for line in open("BlueCodePredictionsCollapsed.csv","r"):
i... | 22.04 | 58 | 0.591652 | 73 | 551 | 4.465753 | 0.383562 | 0.08589 | 0.110429 | 0.079755 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029213 | 0.192378 | 551 | 24 | 59 | 22.958333 | 0.703371 | 0 | 0 | 0 | 0 | 0 | 0.114338 | 0.058076 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7fb2d7f2ee510e548eb722eff74e4dc1edf3a11a | 2,264 | py | Python | ncclient/operations/third_party/h3c/rpc.py | NorthLandTeam/ncclient | ff6bba74c3304f0a5053087449f5a51e8eb13ed4 | [
"Apache-2.0"
] | 498 | 2015-10-21T18:43:23.000Z | 2022-03-29T17:27:59.000Z | ncclient/operations/third_party/h3c/rpc.py | NorthLandTeam/ncclient | ff6bba74c3304f0a5053087449f5a51e8eb13ed4 | [
"Apache-2.0"
] | 440 | 2015-09-07T23:43:01.000Z | 2022-03-17T11:43:16.000Z | ncclient/operations/third_party/h3c/rpc.py | NorthLandTeam/ncclient | ff6bba74c3304f0a5053087449f5a51e8eb13ed4 | [
"Apache-2.0"
] | 330 | 2015-09-10T16:53:50.000Z | 2022-03-31T12:24:53.000Z | # -*- coding: utf-8 -*-
# by yangxufeng.zhao
from ncclient.xml_ import *
from ncclient.operations import util
from ncclient.operations.rpc import RPC
class GetBulk(RPC):
"The *get-bulk* RPC."
def request(self, filter=None):
"""Retrieve running configuration and device state information.
*f... | 28.3 | 118 | 0.636926 | 284 | 2,264 | 4.978873 | 0.278169 | 0.029703 | 0.064356 | 0.084158 | 0.499293 | 0.462518 | 0.462518 | 0.462518 | 0.462518 | 0.38826 | 0 | 0.00059 | 0.250883 | 2,264 | 80 | 119 | 28.3 | 0.833137 | 0.293286 | 0 | 0.404762 | 0 | 0 | 0.055774 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.166667 | false | 0 | 0.071429 | 0 | 0.571429 | 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 |
7fb823c3ff24533e94a79b2f454e2d82ef1779ff | 7,668 | py | Python | venv/Lib/site-packages/appier/__init__.py | victor-freitas/TwilioSMS | d71b18a7e8765aa545dd785d119f3719e5eb1606 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/appier/__init__.py | victor-freitas/TwilioSMS | d71b18a7e8765aa545dd785d119f3719e5eb1606 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/appier/__init__.py | victor-freitas/TwilioSMS | d71b18a7e8765aa545dd785d119f3719e5eb1606 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Appier Framework
# Copyright (c) 2008-2019 Hive Solutions Lda.
#
# This file is part of Hive Appier Framework.
#
# Hive Appier Framework is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apache
# Found... | 48.226415 | 125 | 0.796296 | 1,065 | 7,668 | 5.507981 | 0.394366 | 0.071599 | 0.020457 | 0.013638 | 0.031367 | 0.011592 | 0.011592 | 0 | 0 | 0 | 0 | 0.004058 | 0.132238 | 7,668 | 158 | 126 | 48.531646 | 0.877517 | 0.097157 | 0 | 0 | 0 | 0 | 0.01682 | 0.003126 | 0 | 0 | 0 | 0 | 0.008065 | 1 | 0 | false | 0.008065 | 0.766129 | 0 | 0.766129 | 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 |
7fb9505183062c6560de7e9f24ce07865f07096c | 21,608 | py | Python | ismore/noninvasive/train_eeg_decoder.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | null | null | null | ismore/noninvasive/train_eeg_decoder.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | 12 | 2020-07-31T18:58:31.000Z | 2022-02-10T14:36:00.000Z | ismore/noninvasive/train_eeg_decoder.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | 4 | 2020-03-06T15:39:00.000Z | 2021-05-26T17:03:21.000Z | import tables
import pandas as pd
import numpy as np
from scipy.interpolate import interp1d
import os
import pickle
import copy
from ismore import brainamp_channel_lists
from ismore.noninvasive import eeg_decoding
#reload(eeg_decoding)
#from ismore.emg_decoding import LinearEMGDecoder
from ismore.noninvasive.eeg_feat... | 41.714286 | 200 | 0.67077 | 3,182 | 21,608 | 4.237272 | 0.153991 | 0.03204 | 0.03916 | 0.040792 | 0.577097 | 0.53675 | 0.463176 | 0.46147 | 0.416376 | 0.389676 | 0 | 0.090686 | 0.168688 | 21,608 | 517 | 201 | 41.794971 | 0.659912 | 0.626203 | 0 | 0.264706 | 0 | 0.005882 | 0.068076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005882 | 0.082353 | null | null | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f68b53a3670bbf66e01b7711fef45fe4c379aabc | 247 | py | Python | main.py | Lorenz0/NWWPythonWrapper | 21d786d2d2d62c178f45b2aace04d734ea6684b3 | [
"Apache-2.0"
] | null | null | null | main.py | Lorenz0/NWWPythonWrapper | 21d786d2d2d62c178f45b2aace04d734ea6684b3 | [
"Apache-2.0"
] | null | null | null | main.py | Lorenz0/NWWPythonWrapper | 21d786d2d2d62c178f45b2aace04d734ea6684b3 | [
"Apache-2.0"
] | null | null | null | import sys
from PyQt5.QtWidgets import QApplication
from MainWindows import MainWindow
# Main ouvrant simplement la fenetre principale
if __name__ == '__main__':
app = QApplication(sys.argv)
w = MainWindow()
w.show()
app.exec_()
| 20.583333 | 47 | 0.728745 | 30 | 247 | 5.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.190283 | 247 | 11 | 48 | 22.454545 | 0.85 | 0.182186 | 0 | 0 | 0 | 0 | 0.040201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f68d023300aaf31889f3e671c6c961da9ba10fd3 | 13,647 | py | Python | windows/elitedangerous_json_to_serial.py | bschymanski/arduino_elite_dangerous | f68d37a9257a33cdff9b30d30385bc5a76ecf55b | [
"MIT"
] | null | null | null | windows/elitedangerous_json_to_serial.py | bschymanski/arduino_elite_dangerous | f68d37a9257a33cdff9b30d30385bc5a76ecf55b | [
"MIT"
] | null | null | null | windows/elitedangerous_json_to_serial.py | bschymanski/arduino_elite_dangerous | f68d37a9257a33cdff9b30d30385bc5a76ecf55b | [
"MIT"
] | null | null | null | import json
import time
import serial
from pprint import pprint
import random
import ctypes
# this works only for bytes, so bigger number have to be convertet to individual bytes
# then the bytes can be analysed via theses classes
# https://wiki.python.org/moin/BitManipulation
# "Bit fields, e.g. for communication pro... | 53.728346 | 1,084 | 0.513153 | 1,432 | 13,647 | 4.625698 | 0.166201 | 0.03442 | 0.033816 | 0.062802 | 0.497736 | 0.473279 | 0.473279 | 0.473279 | 0.448521 | 0.436745 | 0 | 0.052674 | 0.362864 | 13,647 | 253 | 1,085 | 53.940711 | 0.709143 | 0.292152 | 0 | 0.30303 | 0 | 0 | 0.251935 | 0.015373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.157576 | 0.357576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f68d48c14dbf5d245aa1a1bbd97bbf47fce83a30 | 895 | py | Python | temann/tests/test_spacegroup.py | Luochenghuang/TEMANN | 88afc00f214ae91d60b3b41af2da322524dc0663 | [
"MIT"
] | 5 | 2018-02-28T01:33:42.000Z | 2018-03-08T23:05:15.000Z | temann/tests/test_spacegroup.py | Luochenghuang/TEMANN | 88afc00f214ae91d60b3b41af2da322524dc0663 | [
"MIT"
] | 8 | 2020-01-28T21:51:59.000Z | 2022-02-09T23:28:37.000Z | temann/tests/test_spacegroup.py | Luochenghuang/TEMANN | 88afc00f214ae91d60b3b41af2da322524dc0663 | [
"MIT"
] | null | null | null | from ..spacegroup import expand_spacegroup
import numpy as np
def test_expand_spacegroup():
"""test for expand_spacegroup function"""
# try non-integer input
a_float = 31.1
a_string = 'a'
a_list = [1, 2]
# try all non-integer inputs
try:
expand_spacegroup(a_float)
except Excepti... | 25.571429 | 61 | 0.64581 | 119 | 895 | 4.722689 | 0.436975 | 0.199288 | 0.101423 | 0.106762 | 0.377224 | 0.288256 | 0.288256 | 0.288256 | 0.288256 | 0.288256 | 0 | 0.015552 | 0.281564 | 895 | 34 | 62 | 26.323529 | 0.858476 | 0.153073 | 0 | 0.428571 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.035714 | false | 0.107143 | 0.071429 | 0 | 0.142857 | 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 |
f68d4d0187f4eccffc383fa33acdd51f5f313d5f | 950 | py | Python | tropomi/data_processing/copy_data_from_file_list.py | EricSaboya/chapter5-TROPOMI-CAMS | 6809c333e3c8ced5d03e832508a928ef5c3ba0da | [
"MIT"
] | null | null | null | tropomi/data_processing/copy_data_from_file_list.py | EricSaboya/chapter5-TROPOMI-CAMS | 6809c333e3c8ced5d03e832508a928ef5c3ba0da | [
"MIT"
] | null | null | null | tropomi/data_processing/copy_data_from_file_list.py | EricSaboya/chapter5-TROPOMI-CAMS | 6809c333e3c8ced5d03e832508a928ef5c3ba0da | [
"MIT"
] | null | null | null | #!/bin/sh
# *************************************************************************************************************
# Author: Eric Saboya, Dept. of Physics, Imperial College London
# Contact: ericsaboya54[at]gmail.com
# Created: 25 June 2021
#
# Python script to copy tropomi files from txt list to a dir
# ******... | 33.928571 | 119 | 0.572632 | 120 | 950 | 4.4 | 0.541667 | 0.039773 | 0.0625 | 0.107955 | 0.202652 | 0.159091 | 0.159091 | 0.159091 | 0 | 0 | 0 | 0.016588 | 0.111579 | 950 | 27 | 120 | 35.185185 | 0.609005 | 0.493684 | 0 | 0 | 0 | 0.1 | 0.405117 | 0.405117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f68f869d5447f180d583e455313ed104854a4dad | 2,885 | py | Python | datasets/cleaned/maxwell.py | dr-bigfatnoob/effort | 7855a6197538bbe6fd651646916b5353146e956e | [
"MIT"
] | 1 | 2021-11-22T09:44:05.000Z | 2021-11-22T09:44:05.000Z | datasets/cleaned/maxwell.py | dr-bigfatnoob/effort | 7855a6197538bbe6fd651646916b5353146e956e | [
"MIT"
] | 4 | 2016-09-13T17:30:07.000Z | 2016-10-19T05:29:22.000Z | datasets/cleaned/maxwell.py | dr-bigfatnoob/effort | 7855a6197538bbe6fd651646916b5353146e956e | [
"MIT"
] | null | null | null | from __future__ import print_function, division
import sys
import os
sys.path.append(os.path.abspath("."))
sys.dont_write_bytecode = True
from datasets.dataset import Dataset, Meta, read_pandas_dataframe
from datasets.cleaned import data_to_use
class Maxwell(Dataset):
def __init__(self):
Dataset.__init__(self,... | 52.454545 | 94 | 0.631889 | 451 | 2,885 | 3.902439 | 0.223947 | 0.122727 | 0.130682 | 0.225 | 0.549432 | 0.538636 | 0.5 | 0.5 | 0.5 | 0.5 | 0 | 0.05446 | 0.191681 | 2,885 | 54 | 95 | 53.425926 | 0.700257 | 0 | 0 | 0.065217 | 0 | 0 | 0.032582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.108696 | 0.065217 | 0.282609 | 0.043478 | 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 |
f69100fda2fb7c51eb5e6310b9f3c5f037d14a97 | 588 | py | Python | Advanced_python/day01/crack_test.py | wxz896446511/Manyu | 5974ba3a3f27fbaf53bf9f876150ff764a70ac46 | [
"Apache-2.0"
] | 4 | 2018-09-26T00:48:02.000Z | 2020-08-21T02:06:59.000Z | Advanced_python/day01/crack_test.py | wxz896446511/Manyu | 5974ba3a3f27fbaf53bf9f876150ff764a70ac46 | [
"Apache-2.0"
] | null | null | null | Advanced_python/day01/crack_test.py | wxz896446511/Manyu | 5974ba3a3f27fbaf53bf9f876150ff764a70ac46 | [
"Apache-2.0"
] | 1 | 2020-08-21T02:07:04.000Z | 2020-08-21T02:07:04.000Z | import crypt
import itertools
def main():
flag=0
salt='AB'
cryptPass='AB5I64J9ZNvp2'
#test=(''.join(x) for x in itertools.product("huwangW", repeat=7))
test=(''.join(x) for x in itertools.product("qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", repeat=7))
while flag==0:
word=next... | 26.727273 | 114 | 0.608844 | 64 | 588 | 5.46875 | 0.53125 | 0.028571 | 0.051429 | 0.068571 | 0.177143 | 0.177143 | 0.177143 | 0.177143 | 0 | 0 | 0 | 0.027149 | 0.248299 | 588 | 21 | 115 | 28 | 0.764706 | 0.110544 | 0 | 0 | 0 | 0 | 0.230326 | 0.099808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.176471 | 0.117647 | 0 | 0.176471 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f691039aeb2376c138a017246f13e59083d8c600 | 12,577 | py | Python | checkers/virush/checker.py | C4T-BuT-S4D/stay-home-ctf-2022 | 7084f53a69e3e25d62a1aaad8b7dfe1cd663a4ec | [
"WTFPL"
] | 4 | 2022-02-06T19:56:46.000Z | 2022-02-12T15:21:47.000Z | checkers/virush/checker.py | C4T-BuT-S4D/stay-home-ctf-2022 | 7084f53a69e3e25d62a1aaad8b7dfe1cd663a4ec | [
"WTFPL"
] | null | null | null | checkers/virush/checker.py | C4T-BuT-S4D/stay-home-ctf-2022 | 7084f53a69e3e25d62a1aaad8b7dfe1cd663a4ec | [
"WTFPL"
] | 2 | 2022-02-07T09:59:47.000Z | 2022-02-07T10:22:20.000Z | #!/usr/bin/env python3
import sys
import json
import typing
import asyncio
import hashlib
import traceback
import contextlib
import dataclasses
import checklib.status as checklib
import checklib.generators as generators
import websockets.exceptions
import openssl
import channel
import protocol
@dataclasses.dataclas... | 37.210059 | 140 | 0.62503 | 1,330 | 12,577 | 5.806015 | 0.145113 | 0.058016 | 0.078866 | 0.101399 | 0.537037 | 0.511008 | 0.466589 | 0.392126 | 0.34201 | 0.327506 | 0 | 0.010276 | 0.280433 | 12,577 | 337 | 141 | 37.320475 | 0.842983 | 0.003101 | 0 | 0.364312 | 0 | 0 | 0.072278 | 0.004308 | 0 | 0 | 0 | 0 | 0.003717 | 1 | 0.011152 | false | 0.066915 | 0.052045 | 0 | 0.230483 | 0.026022 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f69f12552e012efd0856881e6f984c3a3b37e500 | 385 | py | Python | shoppingcart/cart/urls.py | bsurajbh/shopping-cart | 04588d5fe7b4afffc831f82209ec2e9949bd4ba0 | [
"MIT"
] | null | null | null | shoppingcart/cart/urls.py | bsurajbh/shopping-cart | 04588d5fe7b4afffc831f82209ec2e9949bd4ba0 | [
"MIT"
] | null | null | null | shoppingcart/cart/urls.py | bsurajbh/shopping-cart | 04588d5fe7b4afffc831f82209ec2e9949bd4ba0 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'cart'
urlpatterns = [
path('add/<int:product_id>', views.add_cart, name='add_cart'),
path('delete/<int:product_id>', views.delete_cart_item, name='delete_cart'),
path('remove/<int:product_id>',
views.remove_cart_item, name='remove_cart_... | 29.615385 | 80 | 0.693506 | 55 | 385 | 4.581818 | 0.327273 | 0.119048 | 0.142857 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14026 | 385 | 12 | 81 | 32.083333 | 0.761329 | 0 | 0 | 0 | 0 | 0 | 0.303896 | 0.119481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
f6afba59060dff76406d1e5dacfdafcb435af68b | 24,976 | py | Python | MapUI.py | Alive12321/Map-PyQt5-RoutePlanning | 3977ab4eb49299c8041d3b59aab62473d3d6f083 | [
"MIT"
] | 1 | 2021-07-28T03:22:18.000Z | 2021-07-28T03:22:18.000Z | MapUI.py | Alive12321/Map-PyQt5-RoutePlanning | 3977ab4eb49299c8041d3b59aab62473d3d6f083 | [
"MIT"
] | null | null | null | MapUI.py | Alive12321/Map-PyQt5-RoutePlanning | 3977ab4eb49299c8041d3b59aab62473d3d6f083 | [
"MIT"
] | 1 | 2021-12-06T08:36:28.000Z | 2021-12-06T08:36:28.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
# Created by: PyQt5 UI code generator 5.9.2
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets,QtWebEngineWidgets
import io,sys,folium
from PyQt5.QtGui import *
from PyQt5.QtW... | 44.362345 | 111 | 0.604861 | 2,801 | 24,976 | 5.311674 | 0.18065 | 0.051754 | 0.035287 | 0.019357 | 0.387687 | 0.333983 | 0.258502 | 0.245127 | 0.235045 | 0.223417 | 0 | 0.032978 | 0.26061 | 24,976 | 563 | 112 | 44.362345 | 0.772676 | 0.026505 | 0 | 0.320965 | 1 | 0.003711 | 0.081439 | 0.007929 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068646 | false | 0 | 0.020408 | 0.001855 | 0.133581 | 0.044527 | 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 |
f6b60ef5d8b67ea1d38878a2f3edc9359a70706e | 726 | py | Python | __main__.py | getskua/skua | 4a99625991acd2b03156cff929367078cb08a109 | [
"BSD-3-Clause"
] | 2 | 2020-01-13T16:26:22.000Z | 2021-04-07T04:07:16.000Z | __main__.py | teymour-aldridge/skua | 4a99625991acd2b03156cff929367078cb08a109 | [
"BSD-3-Clause"
] | null | null | null | __main__.py | teymour-aldridge/skua | 4a99625991acd2b03156cff929367078cb08a109 | [
"BSD-3-Clause"
] | null | null | null | import os
from pathlib import Path
from .skua.pipelines import markdown_pipeline
from .skua.pipelines import Config
import click
@click.command()
@click.option('--source', default='./src', help="The directory with all the source files.")
@click.option('--destination', default='./build', help="The directory where all... | 45.375 | 109 | 0.757576 | 94 | 726 | 5.797872 | 0.393617 | 0.100917 | 0.088073 | 0.084404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092287 | 726 | 16 | 110 | 45.375 | 0.827011 | 0 | 0 | 0 | 0 | 0 | 0.332875 | 0.031637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f6baaa48eddae856672bcf547bed85f8d786626c | 743 | py | Python | Algorithms/Keyboard Row.py | KushRabadia/Leetcode | f6af5bf0b9ef8daf9870570b52012297128aa9e1 | [
"MIT"
] | null | null | null | Algorithms/Keyboard Row.py | KushRabadia/Leetcode | f6af5bf0b9ef8daf9870570b52012297128aa9e1 | [
"MIT"
] | null | null | null | Algorithms/Keyboard Row.py | KushRabadia/Leetcode | f6af5bf0b9ef8daf9870570b52012297128aa9e1 | [
"MIT"
] | null | null | null | class Solution(object):
def findWords(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
result = []
keyb = {'a': '2', 'b': '3', 'c': '3', 'd': '2', 'e': '1', 'f': '2', 'g': '2', 'h': '2', 'i': '1', 'j': '2', 'k': '2', 'l': '2', 'm': '3', 'n': '3', 'o': '1... | 32.304348 | 275 | 0.306864 | 104 | 743 | 2.192308 | 0.528846 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065315 | 0.402423 | 743 | 22 | 276 | 33.772727 | 0.448198 | 0.053836 | 0 | 0 | 0 | 0 | 0.077496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6bcfe7deb15f50bc95c83e8b753fc2a357d5cfb | 420 | py | Python | django/transactions/migrations/0005_auto_20200516_0202.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | 1 | 2020-01-01T15:54:45.000Z | 2020-01-01T15:54:45.000Z | django/transactions/migrations/0005_auto_20200516_0202.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | 13 | 2019-02-28T03:24:54.000Z | 2021-09-22T17:50:00.000Z | django/transactions/migrations/0005_auto_20200516_0202.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-16 02:02
from django.db import migrations
import core.model_fields
class Migration(migrations.Migration):
dependencies = [
("transactions", "0004_auto_20191201_0014"),
]
operations = [
migrations.AlterField(
model_name="transactionoutp... | 20 | 52 | 0.62619 | 44 | 420 | 5.840909 | 0.75 | 0.070039 | 0.116732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100977 | 0.269048 | 420 | 20 | 53 | 21 | 0.736156 | 0.107143 | 0 | 0 | 1 | 0 | 0.152815 | 0.061662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6ca75c6b69eddba7d424309e7bcec8be4dd14c5 | 3,720 | py | Python | scrapy_podcast_rss/exporters.py | igarizio/scrapy-podcast-rss | 9de335e09e28adb160fc3e57d80277eafa8aa6c1 | [
"MIT"
] | null | null | null | scrapy_podcast_rss/exporters.py | igarizio/scrapy-podcast-rss | 9de335e09e28adb160fc3e57d80277eafa8aa6c1 | [
"MIT"
] | null | null | null | scrapy_podcast_rss/exporters.py | igarizio/scrapy-podcast-rss | 9de335e09e28adb160fc3e57d80277eafa8aa6c1 | [
"MIT"
] | null | null | null | """Custom exporters that generate and save RSS feeds.
"""
import abc
from urllib.parse import urlparse
from feedgen.feed import FeedGenerator
from scrapy.exporters import BaseItemExporter
try:
import boto3
except ImportError:
boto3 = None
class PodcastBaseItemExporter(BaseItemExporter, metaclass=abc.ABCMeta... | 32.347826 | 120 | 0.637903 | 462 | 3,720 | 5.028139 | 0.376623 | 0.023246 | 0.027981 | 0.020663 | 0.089539 | 0.08093 | 0.08093 | 0.08093 | 0.03616 | 0 | 0 | 0.008416 | 0.265323 | 3,720 | 114 | 121 | 32.631579 | 0.841566 | 0.337903 | 0 | 0.036364 | 1 | 0.018182 | 0.100934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0.018182 | 0.127273 | 0 | 0.309091 | 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 |
f6cad2fddf872006a9abf65a968fb3dc19b8d2fb | 410 | py | Python | PythonLibraries/funcsigs/1.0.2/package.py | cashmerepipeline/CashmereRez | 13a73931d715ffac27c337abcd6df97b5c47534b | [
"MIT"
] | null | null | null | PythonLibraries/funcsigs/1.0.2/package.py | cashmerepipeline/CashmereRez | 13a73931d715ffac27c337abcd6df97b5c47534b | [
"MIT"
] | null | null | null | PythonLibraries/funcsigs/1.0.2/package.py | cashmerepipeline/CashmereRez | 13a73931d715ffac27c337abcd6df97b5c47534b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
name = u'funcsigs'
version = '1.0.2'
description = \
"""
funcsigsn library
"""
requires = [ ]
variants = []
def commands():
import os
funcsigs_libs_path = os.path.join(getenv("PYTHON_LIBS_PATH"), "funcsigs", "%s"%version)
# env.PATH.append(os.path.join(funcsi... | 17.083333 | 91 | 0.621951 | 52 | 410 | 4.75 | 0.557692 | 0.129555 | 0.194332 | 0.129555 | 0.283401 | 0.283401 | 0.283401 | 0.283401 | 0 | 0 | 0 | 0.012158 | 0.197561 | 410 | 23 | 92 | 17.826087 | 0.738602 | 0.190244 | 0 | 0 | 0 | 0 | 0.142373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6d2e736cd361476bd18f380237751a36f758b44 | 25,825 | py | Python | history/views.py | ccf/pytrader | 33018f0e41ed42a518362d1aa0d8f9a430dd445d | [
"MIT"
] | 2,110 | 2016-03-26T16:12:24.000Z | 2022-03-25T03:30:42.000Z | history/views.py | ccf/pytrader | 33018f0e41ed42a518362d1aa0d8f9a430dd445d | [
"MIT"
] | 151 | 2016-03-26T21:14:05.000Z | 2021-11-22T17:21:51.000Z | history/views.py | ccf/pytrader | 33018f0e41ed42a518362d1aa0d8f9a430dd445d | [
"MIT"
] | 521 | 2016-03-26T21:34:39.000Z | 2022-03-25T06:36:12.000Z | from django.contrib.admin.views.decorators import staff_member_required
from history.models import (
PredictionTest, Price, Trade, Balance, TradeRecommendation, get_time, PerformanceComp,
ClassifierTest)
from django.shortcuts import render_to_response
from django.utils import timezone
import datetime
from djang... | 37.211816 | 119 | 0.532972 | 2,838 | 25,825 | 4.630374 | 0.110641 | 0.034929 | 0.013698 | 0.016818 | 0.733582 | 0.695153 | 0.675215 | 0.665779 | 0.648581 | 0.640743 | 0 | 0.01187 | 0.318219 | 25,825 | 693 | 120 | 37.265512 | 0.734481 | 0.013475 | 0 | 0.689189 | 0 | 0 | 0.162889 | 0.005735 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025338 | false | 0.001689 | 0.015203 | 0 | 0.069257 | 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 |
f6d446586e2e79c387a0825a7480efc63d1de207 | 770 | py | Python | language/import_modules/main.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | 1 | 2020-12-25T18:21:18.000Z | 2020-12-25T18:21:18.000Z | language/import_modules/main.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | 1 | 2021-02-11T15:05:59.000Z | 2021-02-11T15:05:59.000Z | language/import_modules/main.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | null | null | null | import sys, os, importlib.util
try:
import current # imports package, i.e. runs current/__init__.py
except ImportError:
print("Can't import current module or package")
else:
print(sys.modules['current'])
# the only way to import module is to use importlib
# otherwise content of the current.py should be m... | 30.8 | 76 | 0.77013 | 117 | 770 | 4.888889 | 0.478632 | 0.087413 | 0.045455 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001481 | 0.123377 | 770 | 24 | 77 | 32.083333 | 0.845926 | 0.350649 | 0 | 0 | 0 | 0 | 0.125761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f6d6be2fb182094cafe4021508c3fd24e1c3e17e | 919 | py | Python | sound/second_level.py | ADataGMan/python-sibling-import | d5b7b0b44d7381809bb539ffdcb43503c95cf5f7 | [
"MIT"
] | 6 | 2019-11-12T17:23:37.000Z | 2022-03-29T02:56:32.000Z | sound/second_level.py | ADataGMan/python-sibling-import | d5b7b0b44d7381809bb539ffdcb43503c95cf5f7 | [
"MIT"
] | null | null | null | sound/second_level.py | ADataGMan/python-sibling-import | d5b7b0b44d7381809bb539ffdcb43503c95cf5f7 | [
"MIT"
] | 1 | 2020-11-03T02:20:33.000Z | 2020-11-03T02:20:33.000Z | # Check to see if this is the entry point of the program
# If so, import the OS and SYS modules, and append the working directory
# to the sys.path variable, which lists all directories files
# might be accessed from.
# os.getcwd() will get the Current Working Directory for your development,
# which looks something l... | 35.346154 | 81 | 0.780196 | 144 | 919 | 4.805556 | 0.555556 | 0.043353 | 0.040462 | 0.054913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002567 | 0.15234 | 919 | 26 | 82 | 35.346154 | 0.885751 | 0.531012 | 0 | 0 | 0 | 0 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f6dd3f4001b2e903a95fe1d35fd4871b325f47eb | 937 | py | Python | pythia/pyre/geometry/pml/parser/Block.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 1 | 2015-11-30T08:01:39.000Z | 2015-11-30T08:01:39.000Z | pythia/pyre/geometry/pml/parser/Block.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 27 | 2018-05-24T18:31:25.000Z | 2021-10-16T03:57:52.000Z | pythia/pyre/geometry/pml/parser/Block.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 7 | 2019-07-19T02:30:56.000Z | 2021-06-02T22:00:01.000Z | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~... | 22.853659 | 83 | 0.496265 | 87 | 937 | 5.172414 | 0.609195 | 0.013333 | 0.08 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036671 | 0.24333 | 937 | 40 | 84 | 23.425 | 0.598025 | 0.414088 | 0 | 0.153846 | 0 | 0.076923 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.615385 | 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 |
f6e5ce9ce9bc47824c2a0b95c66617cbefee05c0 | 3,136 | py | Python | fmcapi/api_objects/object_services/__init__.py | dadelowo367/fmcapi | cd6ac6d118383a06063ead563ca98c7994238715 | [
"BSD-3-Clause"
] | 57 | 2017-06-13T17:06:20.000Z | 2021-07-27T08:53:25.000Z | fmcapi/api_objects/object_services/__init__.py | dadelowo367/fmcapi | cd6ac6d118383a06063ead563ca98c7994238715 | [
"BSD-3-Clause"
] | 66 | 2017-11-09T16:02:45.000Z | 2021-08-04T20:52:41.000Z | fmcapi/api_objects/object_services/__init__.py | dadelowo367/fmcapi | cd6ac6d118383a06063ead563ca98c7994238715 | [
"BSD-3-Clause"
] | 56 | 2017-06-08T07:53:12.000Z | 2021-07-30T13:26:47.000Z | """Object Services Classes."""
import logging
from .anyprotocolportobjects import AnyProtocolPortObjects
from .applications import Applications
from .applicationcategories import ApplicationCategories
from .applicationfilters import ApplicationFilters
from .applicationproductivities import ApplicationProductivities
fr... | 29.866667 | 64 | 0.790179 | 255 | 3,136 | 9.682353 | 0.239216 | 0.011341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006699 | 0.143176 | 3,136 | 104 | 65 | 30.153846 | 0.91217 | 0.007653 | 0 | 0 | 0 | 0 | 0.217965 | 0.021893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.49 | 0 | 0.49 | 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 |
f6ee4b7735b1c6cda8cb87b3f83b69dba4e6e3bc | 671 | py | Python | mod_ci/cron.py | T1duS/sample-platform | 773dc849aa112ebba5e61f26f7920f877b2512dd | [
"ISC"
] | 1 | 2019-05-23T20:24:03.000Z | 2019-05-23T20:24:03.000Z | mod_ci/cron.py | T1duS/sample-platform | 773dc849aa112ebba5e61f26f7920f877b2512dd | [
"ISC"
] | 1 | 2018-05-26T18:31:02.000Z | 2018-05-27T06:36:59.000Z | mod_ci/cron.py | T1duS/sample-platform | 773dc849aa112ebba5e61f26f7920f877b2512dd | [
"ISC"
] | null | null | null | #!/usr/bin/python
import sys
from os import path
# Need to append server root path to ensure we can import the necessary files.
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
def cron():
from mod_ci.controllers import start_platform
from run import config, log
from database import cr... | 26.84 | 78 | 0.731744 | 96 | 671 | 4.96875 | 0.510417 | 0.081761 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166915 | 671 | 24 | 79 | 27.958333 | 0.853309 | 0.160954 | 0 | 0 | 0 | 0 | 0.173214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 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 |
f6f06c49832018b5c017ff460e3bd58f0880e825 | 378 | py | Python | university/migrations/0010_auto_20210831_1048.py | StudentiUniMi/backend | 7915de730b273ef36f1adca10b1c3cacff820faa | [
"MIT"
] | 5 | 2021-08-09T20:37:28.000Z | 2022-03-08T12:25:49.000Z | university/migrations/0010_auto_20210831_1048.py | StudentiUniMi/backend | 7915de730b273ef36f1adca10b1c3cacff820faa | [
"MIT"
] | 4 | 2021-08-14T12:36:44.000Z | 2021-12-12T01:25:08.000Z | university/migrations/0010_auto_20210831_1048.py | StudentiUniMi/backend | 7915de730b273ef36f1adca10b1c3cacff820faa | [
"MIT"
] | 2 | 2021-08-09T19:57:16.000Z | 2021-08-11T20:19:30.000Z | # Generated by Django 3.2.5 on 2021-08-31 10:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('university', '0009_auto_20210829_2150'),
]
operations = [
migrations.RenameField(
model_name='representative',
old_name='tit... | 19.894737 | 50 | 0.600529 | 40 | 378 | 5.5 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115672 | 0.291005 | 378 | 18 | 51 | 21 | 0.705224 | 0.119048 | 0 | 0 | 1 | 0 | 0.190332 | 0.069486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6f0e4ffc46bf6aa933fb4687b461c518356581d | 18,076 | py | Python | gcn/lib/databases/snpdb.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 11 | 2018-11-09T15:47:14.000Z | 2021-08-18T18:05:11.000Z | gcn/lib/databases/snpdb.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 5 | 2018-08-31T15:07:20.000Z | 2020-03-30T18:52:04.000Z | gcn/lib/databases/snpdb.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 1 | 2019-04-18T13:42:30.000Z | 2019-04-18T13:42:30.000Z | #
# COPYRIGHT (C) 2012-2013 TCS Ltd
#
"""
.. module:: snpdb
:platform: Unix, Windows, MacOSX
:synopsis: Class for accessing SNP information from an sqlite
database
.. moduleauthor:: Rajgopal Srinivasan (rajgopal.srinivasan@gmail.com); modified by changjin.hong@gmail.com
Class for accessing vari... | 31.491289 | 154 | 0.602124 | 2,379 | 18,076 | 4.482556 | 0.162253 | 0.020255 | 0.019692 | 0.012378 | 0.566673 | 0.513878 | 0.501407 | 0.476088 | 0.441392 | 0.388503 | 0 | 0.0141 | 0.285904 | 18,076 | 573 | 155 | 31.546248 | 0.812055 | 0.03347 | 0 | 0.404984 | 0 | 0.009346 | 0.153333 | 0 | 0 | 0 | 0 | 0.005236 | 0 | 0 | null | null | 0 | 0.018692 | null | null | 0.049844 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.