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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
400ff23eea96eef52d15f5da1e54e1282902b729 | 19,636 | py | Python | blesuite/cli/blesuite_cli.py | jreynders/BLESuite-1 | 1c3c15fc2d4e30c3f9c1a15e0268cae84685784b | [
"MIT"
] | 198 | 2016-08-04T05:45:38.000Z | 2022-02-17T08:30:58.000Z | blesuite/cli/blesuite_cli.py | jreynders/BLESuite-1 | 1c3c15fc2d4e30c3f9c1a15e0268cae84685784b | [
"MIT"
] | 13 | 2018-02-04T14:16:16.000Z | 2020-10-09T02:16:24.000Z | blesuite/cli/blesuite_cli.py | jreynders/BLESuite-1 | 1c3c15fc2d4e30c3f9c1a15e0268cae84685784b | [
"MIT"
] | 57 | 2016-08-08T04:24:04.000Z | 2022-01-24T08:43:02.000Z | import argparse
from blesuite.connection_manager import BLEConnectionManager
from blesuite_wrapper import ble_service_read, ble_service_read_async, ble_service_write, \
ble_handle_subscribe, ble_service_scan, ble_service_write_async, ble_run_smart_scan
from blesuite import utils
from blesuite.utils.print_helper imp... | 53.214092 | 120 | 0.503718 | 1,975 | 19,636 | 4.906329 | 0.174684 | 0.017028 | 0.021053 | 0.026316 | 0.471311 | 0.448813 | 0.44128 | 0.424458 | 0.41032 | 0.393808 | 0 | 0.023546 | 0.396568 | 19,636 | 368 | 121 | 53.358696 | 0.794244 | 0.01701 | 0 | 0.433099 | 0 | 0.014085 | 0.249304 | 0.013593 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028169 | null | null | 0.119718 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
401b6defb0e38c30695e938e632796a3907305dc | 3,788 | py | Python | tarnow/switch.py | steffenschroeder/tarnow | f7699bdb1d0f7f6d3e9e57a07cc85b5f1918c911 | [
"MIT"
] | null | null | null | tarnow/switch.py | steffenschroeder/tarnow | f7699bdb1d0f7f6d3e9e57a07cc85b5f1918c911 | [
"MIT"
] | 4 | 2015-06-04T12:46:42.000Z | 2021-03-23T09:11:31.000Z | tarnow/switch.py | steffenschroeder/tarnow | f7699bdb1d0f7f6d3e9e57a07cc85b5f1918c911 | [
"MIT"
] | null | null | null | import os
import fcntl
import subprocess
import sys
import syslog as log
from . import config
class Switch(object):
def __str__(self):
return "Name: '%s', NextSkip: '%s', AllSkip: '%s'" % (
self.name,
str(self.next_skip),
str(self.all_skip),
)
@classmethod... | 27.449275 | 83 | 0.566262 | 440 | 3,788 | 4.7 | 0.247727 | 0.061896 | 0.029014 | 0.015474 | 0.178917 | 0.12766 | 0.058027 | 0 | 0 | 0 | 0 | 0.002318 | 0.316526 | 3,788 | 137 | 84 | 27.649635 | 0.796447 | 0.025079 | 0 | 0.074074 | 0 | 0 | 0.063957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.055556 | 0.046296 | 0.351852 | 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 |
401d58e7c9c55756d5a3f952b284f72840c16c31 | 2,639 | py | Python | src/sensorsim/montages.py | adriengoeller/python-sensor-simulation | ecc4c008247aaf97e82bce345f452676b39f487b | [
"MIT"
] | null | null | null | src/sensorsim/montages.py | adriengoeller/python-sensor-simulation | ecc4c008247aaf97e82bce345f452676b39f487b | [
"MIT"
] | null | null | null | src/sensorsim/montages.py | adriengoeller/python-sensor-simulation | ecc4c008247aaf97e82bce345f452676b39f487b | [
"MIT"
] | null | null | null | """
This module provides some classical electronic circuits as functions and the sensor membrane
"""
from math import pi, asin
class Membrane:
"""
Sensor membrane : (formulas from wikipedia and Capteurs : Pressions, accélération et forces à pont de Wheastone, Jean Louis Rouvet - Giacintec)
S... | 27.778947 | 151 | 0.561197 | 396 | 2,639 | 3.626263 | 0.343434 | 0.041783 | 0.033426 | 0.022284 | 0.06546 | 0.06546 | 0.043175 | 0.043175 | 0 | 0 | 0 | 0.049417 | 0.317545 | 2,639 | 95 | 152 | 27.778947 | 0.747918 | 0.428571 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 0.027778 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
401fb28a0785f590ca880a3298b50576dc05a05d | 3,149 | py | Python | yogadl/tensorflow.py | aaron276h/YogaDL | 21fc93076abde8e5c03e4e12c56f0fcaae050bda | [
"Apache-2.0"
] | 74 | 2020-04-07T20:37:03.000Z | 2022-02-17T06:52:42.000Z | yogadl/tensorflow.py | aaron276h/YogaDL | 21fc93076abde8e5c03e4e12c56f0fcaae050bda | [
"Apache-2.0"
] | 10 | 2020-04-10T16:40:46.000Z | 2021-11-10T12:45:36.000Z | yogadl/tensorflow.py | aaron276h/YogaDL | 21fc93076abde8e5c03e4e12c56f0fcaae050bda | [
"Apache-2.0"
] | 6 | 2020-03-27T13:48:47.000Z | 2020-12-02T21:49:48.000Z | # Copyright 2020 Determined AI. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 39.3625 | 100 | 0.698317 | 441 | 3,149 | 4.829932 | 0.351474 | 0.038028 | 0.048826 | 0.046948 | 0.380751 | 0.357277 | 0.294836 | 0.252582 | 0.252582 | 0.252582 | 0 | 0.007525 | 0.198158 | 3,149 | 79 | 101 | 39.860759 | 0.83604 | 0.369006 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.02381 | 1 | 0.119048 | false | 0 | 0.095238 | 0 | 0.309524 | 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 |
40221c730b773017947d608f12781d45293947a9 | 8,324 | py | Python | tag2hierarchy/inference/training.py | cesarali/Tag2Hierarchy | 182bc948a1b4c497a991b12a29ff56023f98c05a | [
"MIT"
] | null | null | null | tag2hierarchy/inference/training.py | cesarali/Tag2Hierarchy | 182bc948a1b4c497a991b12a29ff56023f98c05a | [
"MIT"
] | 1 | 2017-06-13T13:08:12.000Z | 2017-06-13T13:08:12.000Z | tag2hierarchy/inference/training.py | cesarali/Tag2Hierarchy | 182bc948a1b4c497a991b12a29ff56023f98c05a | [
"MIT"
] | null | null | null | '''
Created on Mar 11, 2016
@author: cesar
'''
from tag2hierarchy.datatypes.hierarchies import Node
from tag2hierarchy.inference.tuplesStatistics import cooccuranceBlock,nodesInTuples
from tag2hierarchy.inference.tupleGenerator import generateNTuples
from tag2hierarchy.hierarchy.treeHandlers import nodeNames, setBran... | 39.827751 | 124 | 0.627102 | 816 | 8,324 | 6.397059 | 0.20098 | 0.039847 | 0.024138 | 0.011494 | 0.537356 | 0.537356 | 0.529885 | 0.529885 | 0.529885 | 0.529885 | 0 | 0.012327 | 0.298294 | 8,324 | 208 | 125 | 40.019231 | 0.881356 | 0.029193 | 0 | 0.515873 | 0 | 0 | 0.035059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031746 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
402226f59cbd484dbe01bb6fc1a1a095314d903d | 301 | py | Python | bindings/python/setup.py | wangjia3015/marisa-trie | da2924831c1e8f90dae7223cfe7a2bc1bd8b5132 | [
"BSD-2-Clause"
] | 388 | 2016-01-28T15:16:43.000Z | 2022-03-28T08:18:07.000Z | bindings/python/setup.py | wangjia3015/marisa-trie | da2924831c1e8f90dae7223cfe7a2bc1bd8b5132 | [
"BSD-2-Clause"
] | 38 | 2016-02-12T14:51:12.000Z | 2022-02-12T09:10:25.000Z | bindings/python/setup.py | wangjia3015/marisa-trie | da2924831c1e8f90dae7223cfe7a2bc1bd8b5132 | [
"BSD-2-Clause"
] | 79 | 2016-03-16T15:47:50.000Z | 2022-03-15T22:21:08.000Z | from distutils.core import setup, Extension
marisa_module = Extension("_marisa",
sources=["marisa-swig_wrap.cxx", "marisa-swig.cxx"],
libraries=["marisa"])
setup(name = "marisa",
ext_modules = [marisa_module],
py_modules = ["marisa"])
| 30.1 | 78 | 0.578073 | 30 | 301 | 5.6 | 0.566667 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 301 | 9 | 79 | 33.444444 | 0.781395 | 0 | 0 | 0 | 0 | 0 | 0.199336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
402a4c9ddce96b9d61a03cca3c7566e9663ce714 | 31,657 | py | Python | python3_codes/utils_scFAN.py | sperfu/scFAN | b5469b4968974e08e6d3aec1be69663916cd32f8 | [
"MIT"
] | 7 | 2020-01-15T20:13:29.000Z | 2021-07-13T14:50:06.000Z | python3_codes/utils_scFAN.py | uci-cbcl/scFAN | b1955c88c6ec97c447c254dc0ebdd33778e09099 | [
"MIT"
] | 3 | 2021-02-12T10:46:44.000Z | 2021-12-31T02:57:19.000Z | python3_codes/utils_scFAN.py | uci-cbcl/scFAN | b1955c88c6ec97c447c254dc0ebdd33778e09099 | [
"MIT"
] | 2 | 2020-01-30T00:49:20.000Z | 2022-01-14T04:18:59.000Z | import numpy as np
from pybedtools import BedTool, Interval
import pyfasta
import parmap
import copy
# Standard library imports
import os
import itertools
from data_iter_scFAN import DataIterator
import pybedtools
import pdb
import subprocess
t_flag = subprocess.getstatusoutput('mkdir tmp_scFAN')
pybedtools.set_tempdi... | 43.907074 | 195 | 0.656032 | 4,040 | 31,657 | 4.835396 | 0.09901 | 0.020783 | 0.021295 | 0.006655 | 0.550397 | 0.497364 | 0.453289 | 0.431431 | 0.386537 | 0.368416 | 0 | 0.016859 | 0.248665 | 31,657 | 720 | 196 | 43.968056 | 0.804457 | 0 | 0 | 0.342193 | 0 | 0 | 0.059188 | 0.021305 | 0 | 0 | 0 | 0 | 0.008306 | 0 | null | null | 0 | 0.061462 | null | null | 0.048173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
402ba489a55a1b859da54696bbac1d1b9600e4de | 804 | py | Python | U-GAT-IT/lib/loss/losses.py | gcinbis/deep-generative-models-spring20 | d377bd63d5e79539477cca47c71462e5cc12adfa | [
"MIT"
] | 18 | 2020-07-06T10:47:26.000Z | 2021-05-30T11:43:17.000Z | U-GAT-IT/lib/loss/losses.py | gcinbis/deep-generative-models-course-projects | d377bd63d5e79539477cca47c71462e5cc12adfa | [
"MIT"
] | 1 | 2022-03-12T00:39:12.000Z | 2022-03-12T00:39:12.000Z | U-GAT-IT/lib/loss/losses.py | gcinbis/deep-generative-models-spring20 | d377bd63d5e79539477cca47c71462e5cc12adfa | [
"MIT"
] | 2 | 2020-07-13T20:46:44.000Z | 2020-10-01T13:15:25.000Z | import torch
import torch.nn as nn
class LossWithValue(nn.Module):
def __init__(self, loss_fn):
super().__init__()
self.loss_fn = loss_fn
def forward(self, x, value):
target = torch.empty_like(x).fill_(value).type_as(x)
return self.loss_fn(x, target)
class MSEWithValue(nn.Mo... | 25.125 | 60 | 0.635572 | 109 | 804 | 4.33945 | 0.266055 | 0.10148 | 0.069767 | 0.095137 | 0.564482 | 0.524313 | 0.524313 | 0.524313 | 0.389006 | 0.389006 | 0 | 0 | 0.235075 | 804 | 32 | 61 | 25.125 | 0.769106 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0 | 0.608696 | 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 |
402be1cc76c21d1ea8ee86acb964f226eff14473 | 1,467 | py | Python | herd-code/herd-tools/herd-content-loader/setup.py | hoppinghol/herd | e51c056fcc43d9f146aa7de9036a5a1baf8718ac | [
"Apache-2.0"
] | null | null | null | herd-code/herd-tools/herd-content-loader/setup.py | hoppinghol/herd | e51c056fcc43d9f146aa7de9036a5a1baf8718ac | [
"Apache-2.0"
] | null | null | null | herd-code/herd-tools/herd-content-loader/setup.py | hoppinghol/herd | e51c056fcc43d9f146aa7de9036a5a1baf8718ac | [
"Apache-2.0"
] | null | null | null | """
Copyright 2015 herd contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 29.938776 | 115 | 0.699387 | 202 | 1,467 | 5.044554 | 0.559406 | 0.058881 | 0.052993 | 0.031403 | 0.16683 | 0.16683 | 0.16683 | 0.16683 | 0.102061 | 0.102061 | 0 | 0.024288 | 0.186094 | 1,467 | 48 | 116 | 30.5625 | 0.829146 | 0.468984 | 0 | 0 | 0 | 0 | 0.449231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 |
402ca108a9c3f098029d64faeab25fe9ff44caf8 | 2,763 | py | Python | Mesh/System/Entity/Function/Powered.py | ys-warble/Mesh | 115e7391d19ea09db3c627d8b8ed90b3e3bef9b5 | [
"MIT"
] | null | null | null | Mesh/System/Entity/Function/Powered.py | ys-warble/Mesh | 115e7391d19ea09db3c627d8b8ed90b3e3bef9b5 | [
"MIT"
] | 2 | 2019-02-25T00:10:15.000Z | 2019-03-22T20:13:32.000Z | Mesh/System/Entity/Function/Powered.py | ys-warble/Mesh | 115e7391d19ea09db3c627d8b8ed90b3e3bef9b5 | [
"MIT"
] | null | null | null | from enum import Enum
from Mesh.System.Entity.Channel.PowerWire import PowerWire
from Mesh.System.Entity.Function import BaseFunction, Function
from Mesh.System.Entity.Function.Tasked import TaskName, SystemTask
from Mesh.util.TypeList import TypeList
class PowerType(Enum):
ELECTRIC = 101
class Power:
def ... | 26.314286 | 94 | 0.642056 | 329 | 2,763 | 5.158055 | 0.206687 | 0.127283 | 0.038892 | 0.061285 | 0.256335 | 0.223335 | 0.223335 | 0.223335 | 0.189157 | 0.189157 | 0 | 0.005392 | 0.261672 | 2,763 | 104 | 95 | 26.567308 | 0.826471 | 0 | 0 | 0.342105 | 0 | 0 | 0.014477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.039474 | 0.065789 | 0.039474 | 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 |
4035236012b28c475e949ea7b823a940d73dbb36 | 3,643 | py | Python | tests/proto_dir/exonum_modules/main/exonum/key_value_sequence_pb2.py | aleksuss/exonum-python-client | 5e7ff330440cd2fe2c5b707a0cff46048b311ea2 | [
"Apache-2.0"
] | 5 | 2019-10-04T13:16:06.000Z | 2022-01-06T08:53:28.000Z | tests/proto_dir/exonum_modules/main/exonum/key_value_sequence_pb2.py | aleksuss/exonum-python-client | 5e7ff330440cd2fe2c5b707a0cff46048b311ea2 | [
"Apache-2.0"
] | 30 | 2019-11-28T07:06:36.000Z | 2022-02-11T02:59:05.000Z | tests/proto_dir/exonum_modules/main/exonum/key_value_sequence_pb2.py | aleksuss/exonum-python-client | 5e7ff330440cd2fe2c5b707a0cff46048b311ea2 | [
"Apache-2.0"
] | 11 | 2019-10-03T10:58:42.000Z | 2022-01-06T07:29:12.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: exonum/key_value_sequence.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_dat... | 31.136752 | 298 | 0.751578 | 437 | 3,643 | 5.97254 | 0.279176 | 0.033716 | 0.030651 | 0.033716 | 0.441379 | 0.407663 | 0.367816 | 0.367816 | 0.367816 | 0.367816 | 0 | 0.030663 | 0.122701 | 3,643 | 116 | 299 | 31.405172 | 0.785982 | 0.084271 | 0 | 0.532609 | 1 | 0.01087 | 0.201322 | 0.141226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 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 |
403b4c0ca30b0425b95c0e78162a774375e49f26 | 294 | py | Python | tests/dbconn/test_sqlserver.py | thewchan/muttlib | cc914e1acc3f281e69c78d5e475118663c051c08 | [
"Apache-2.0"
] | 22 | 2020-12-29T18:11:43.000Z | 2022-03-30T23:16:53.000Z | tests/dbconn/test_sqlserver.py | thewchan/muttlib | cc914e1acc3f281e69c78d5e475118663c051c08 | [
"Apache-2.0"
] | 3 | 2021-10-15T21:51:53.000Z | 2022-02-23T18:19:26.000Z | tests/dbconn/test_sqlserver.py | thewchan/muttlib | cc914e1acc3f281e69c78d5e475118663c051c08 | [
"Apache-2.0"
] | 1 | 2022-02-17T01:01:27.000Z | 2022-02-17T01:01:27.000Z | from muttlib.dbconn import SqlServerClient
def test_SqlServerClient():
try:
client = SqlServerClient(
host="host", password="password", port=5544, username="username",
)
except ValueError as e:
assert str(e) == 'Database argument is not optional!'
| 26.727273 | 77 | 0.64966 | 31 | 294 | 6.129032 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0181 | 0.248299 | 294 | 10 | 78 | 29.4 | 0.841629 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0.125 | 0.125 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4041c250345421f2e2e91353a02ccb454705e4c7 | 1,566 | py | Python | docs/source/examples/client-server-request.py | lslebodn/conu | dee6fd958471f77d1c0511b031ea136dfaf8a77a | [
"MIT"
] | 95 | 2018-05-19T14:35:08.000Z | 2022-01-08T23:31:40.000Z | docs/source/examples/client-server-request.py | lslebodn/conu | dee6fd958471f77d1c0511b031ea136dfaf8a77a | [
"MIT"
] | 179 | 2017-09-12T11:14:30.000Z | 2018-04-26T05:36:13.000Z | docs/source/examples/client-server-request.py | lslebodn/conu | dee6fd958471f77d1c0511b031ea136dfaf8a77a | [
"MIT"
] | 16 | 2018-05-09T14:15:32.000Z | 2021-08-02T21:11:33.000Z | # -*- coding: utf-8 -*-
#
# Copyright Contributors to the Conu project.
# SPDX-License-Identifier: MIT
#
import subprocess
import logging
import time
from conu import DockerBackend, DockerRunBuilder
environment = ["-e", "POSTGRESQL_USER=user",
"-e", "POSTGRESQL_PASSWORD=pass",
"-e", "P... | 29 | 90 | 0.667944 | 194 | 1,566 | 5.231959 | 0.489691 | 0.055172 | 0.021675 | 0.033498 | 0.116256 | 0.070936 | 0.070936 | 0.070936 | 0.070936 | 0 | 0 | 0.017799 | 0.210728 | 1,566 | 53 | 91 | 29.54717 | 0.803398 | 0.15645 | 0 | 0 | 0 | 0 | 0.172018 | 0.056575 | 0.032258 | 0 | 0 | 0 | 0.096774 | 1 | 0 | false | 0.129032 | 0.129032 | 0 | 0.129032 | 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 |
404214dba145417485f24ccdc2c7d9eb12ad54ac | 1,402 | py | Python | Course_Management/portal/migrations/0003_project_takesproject.py | RohanShrothrium/CourseManagement | fa7529cca2f02b937bad2ef4886582614d8bff3f | [
"Apache-2.0"
] | 1 | 2019-10-29T16:56:06.000Z | 2019-10-29T16:56:06.000Z | Course_Management/portal/migrations/0003_project_takesproject.py | RohanShrothrium/CourseManagement | fa7529cca2f02b937bad2ef4886582614d8bff3f | [
"Apache-2.0"
] | null | null | null | Course_Management/portal/migrations/0003_project_takesproject.py | RohanShrothrium/CourseManagement | fa7529cca2f02b937bad2ef4886582614d8bff3f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.5 on 2019-11-10 17:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('portal', '0002_classroom... | 37.891892 | 121 | 0.594864 | 137 | 1,402 | 5.963504 | 0.467153 | 0.039168 | 0.051408 | 0.080783 | 0.406365 | 0.406365 | 0.328029 | 0.328029 | 0.328029 | 0.328029 | 0 | 0.020408 | 0.266049 | 1,402 | 36 | 122 | 38.944444 | 0.773567 | 0.032097 | 0 | 0.333333 | 1 | 0 | 0.100369 | 0.01845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
4042e086fac1ecbb67b7495dabfbe854be94f730 | 1,123 | py | Python | coinbase/tests/http_mocking.py | EU-institution/coinbase_python | 1e0d5d162cb40c1094775ceb5c267a5bdedf0949 | [
"Unlicense",
"MIT"
] | 53 | 2015-01-05T08:42:17.000Z | 2022-03-01T20:52:41.000Z | coinbase/tests/http_mocking.py | EU-institution/coinbase_python | 1e0d5d162cb40c1094775ceb5c267a5bdedf0949 | [
"Unlicense",
"MIT"
] | 10 | 2015-01-08T04:09:25.000Z | 2021-10-08T21:43:17.000Z | coinbase/tests/http_mocking.py | mhluongo/coinbase_python | 2e29d4fa1c501495b41005bbcc770cb29fba6ad1 | [
"MIT",
"Unlicense"
] | 34 | 2016-09-18T23:18:44.000Z | 2022-02-19T17:31:05.000Z | import httpretty
import json
import unittest
def setUp_method_with_http_mocking(test_class):
original_setUp = test_class.setUp if hasattr(test_class, 'setUp') else None
def new_setUp(self):
httpretty.enable()
self.addCleanup(httpretty.disable)
if original_setUp:
original_... | 19.701754 | 79 | 0.693678 | 144 | 1,123 | 5.138889 | 0.361111 | 0.089189 | 0.060811 | 0.051351 | 0.07027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.216385 | 1,123 | 56 | 80 | 20.053571 | 0.838636 | 0 | 0 | 0 | 0 | 0 | 0.017809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.085714 | 0.085714 | 0.542857 | 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 |
404e150885f66723b414bff184cd425de6378c0a | 2,091 | py | Python | python/xiqu.py | reverland/scripts | c7ad9005b26adcd5df8726b3c3d86a7f4a19e513 | [
"MIT"
] | 13 | 2015-02-09T05:40:51.000Z | 2020-05-18T00:56:27.000Z | python/xiqu.py | reverland/scripts | c7ad9005b26adcd5df8726b3c3d86a7f4a19e513 | [
"MIT"
] | null | null | null | python/xiqu.py | reverland/scripts | c7ad9005b26adcd5df8726b3c3d86a7f4a19e513 | [
"MIT"
] | 5 | 2015-01-23T15:35:10.000Z | 2021-12-29T10:06:50.000Z | #! /bin/env python
# -*- coding: gbk -*-
"""Download xiqu"""
import urllib
import urllib2
import gevent
from gevent import monkey
import re
from urlparse import urlparse
from posixpath import basename
monkey.patch_all()
def worker(reg, url):
"""docstring for worker"""
res = urllib.urlopen(url)
reg3 = ... | 29.450704 | 86 | 0.575323 | 268 | 2,091 | 4.410448 | 0.410448 | 0.022843 | 0.040609 | 0.038071 | 0.054146 | 0.054146 | 0.054146 | 0.054146 | 0 | 0 | 0 | 0.029299 | 0.249163 | 2,091 | 70 | 87 | 29.871429 | 0.723567 | 0.251554 | 0 | 0 | 0 | 0 | 0.115541 | 0.028378 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
404f06590024a0e98bb8d0ea960144543b942a93 | 1,231 | py | Python | pypy/module/_rawffi/test/test_tracker.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/module/_rawffi/test/test_tracker.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/module/_rawffi/test/test_tracker.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z |
from pypy.conftest import gettestobjspace
from pypy.module._rawffi.tracker import Tracker
class AppTestTracker:
def setup_class(cls):
Tracker.DO_TRACING = True
space = gettestobjspace(usemodules=('_rawffi','struct'))
cls.space = space
def test_array(self):
import _rawffi
... | 32.394737 | 64 | 0.643379 | 146 | 1,231 | 5.013699 | 0.294521 | 0.110656 | 0.135246 | 0.245902 | 0.636612 | 0.571038 | 0.571038 | 0.571038 | 0.516393 | 0.203552 | 0 | 0.008621 | 0.246141 | 1,231 | 37 | 65 | 33.27027 | 0.780172 | 0 | 0 | 0.4 | 0 | 0 | 0.01546 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.366667 | 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 |
405af23f9cc29dce0e43af7bb24f0b3558fb20dc | 4,022 | py | Python | main/migrations/0005_auto_20181126_1117.py | czbiohub/crispycrunch | 78a640b376ea878d2994d3759849ec8398e4d3f2 | [
"MIT"
] | 4 | 2018-12-21T04:49:40.000Z | 2021-10-05T07:11:50.000Z | main/migrations/0005_auto_20181126_1117.py | czbiohub/crispycrunch | 78a640b376ea878d2994d3759849ec8398e4d3f2 | [
"MIT"
] | null | null | null | main/migrations/0005_auto_20181126_1117.py | czbiohub/crispycrunch | 78a640b376ea878d2994d3759849ec8398e4d3f2 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-11-26 19:17
import django.contrib.postgres.fields
import django.contrib.postgres.fields.jsonb
import django.core.validators
from django.db import migrations, models
import functools
import main.models
import utils.validators
class Migration(migrations.Migration):
dependencies... | 67.033333 | 424 | 0.712581 | 462 | 4,022 | 6.073593 | 0.294372 | 0.032074 | 0.064148 | 0.072345 | 0.528867 | 0.385246 | 0.369565 | 0.352815 | 0.292231 | 0.258731 | 0 | 0.02649 | 0.174043 | 4,022 | 59 | 425 | 68.169492 | 0.818182 | 0.011188 | 0 | 0.377358 | 1 | 0 | 0.340629 | 0.068176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.188679 | 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 |
405c33ca184f7b1a68e6c4af60fa88f8c034646c | 1,695 | py | Python | drip/api/broadcasts.py | willjohnson/drip-python | 13e2836b5acb7a822b0e1f9884e3249d37734cef | [
"MIT"
] | 5 | 2019-04-11T19:32:14.000Z | 2020-08-03T21:58:55.000Z | drip/api/broadcasts.py | willjohnson/drip-python | 13e2836b5acb7a822b0e1f9884e3249d37734cef | [
"MIT"
] | 7 | 2019-03-19T03:54:49.000Z | 2021-12-09T21:53:28.000Z | drip/api/broadcasts.py | willjohnson/drip-python | 13e2836b5acb7a822b0e1f9884e3249d37734cef | [
"MIT"
] | 1 | 2021-01-11T21:51:51.000Z | 2021-01-11T21:51:51.000Z | from typing import TYPE_CHECKING
from drip.utils import json_list, json_object
if TYPE_CHECKING:
from requests import Session
class Broadcasts:
session: 'Session'
@json_list('broadcasts')
def broadcasts(self, marshall=True, **params):
"""
broadcasts(page=0, per_page=100, status='al... | 32.596154 | 105 | 0.623009 | 198 | 1,695 | 5.252525 | 0.378788 | 0.052885 | 0.030769 | 0.055769 | 0.207692 | 0.207692 | 0.207692 | 0.207692 | 0.207692 | 0.207692 | 0 | 0.007276 | 0.270206 | 1,695 | 51 | 106 | 33.235294 | 0.833468 | 0.60177 | 0 | 0 | 0 | 0 | 0.128099 | 0.051653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
405fc0a64bd2a08ed23474494053caa8a0b6fbbd | 311 | py | Python | proxy.py | Raccoonwao/BookGrepper | 5223f773629f8c3aad9c8b86df3aeb805cc939a9 | [
"Unlicense"
] | null | null | null | proxy.py | Raccoonwao/BookGrepper | 5223f773629f8c3aad9c8b86df3aeb805cc939a9 | [
"Unlicense"
] | null | null | null | proxy.py | Raccoonwao/BookGrepper | 5223f773629f8c3aad9c8b86df3aeb805cc939a9 | [
"Unlicense"
] | null | null | null | class Proxy:
def __init__(self, host, port):
self.host=host
self.port=port
self.succeed=0
self.fail=0
def markSucceed(self):
self.succeed +=1
def markFail(self):
self.fail +=1
def __str__(self):
return f'http://{self.host}:{self.port}'
| 19.4375 | 48 | 0.55627 | 41 | 311 | 4.02439 | 0.414634 | 0.145455 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.311897 | 311 | 15 | 49 | 20.733333 | 0.752336 | 0 | 0 | 0 | 0 | 0 | 0.096463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.083333 | 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 |
40602a774887b957363bdd98d5dbc16b3c9a319a | 1,117 | py | Python | apps/schema.py | marsupialtail/quokka | 9dfffaf8499a27f121eb5007db5371934ab9fda5 | [
"Apache-2.0"
] | 4 | 2022-03-09T19:51:02.000Z | 2022-03-24T22:00:18.000Z | apps/schema.py | marsupialtail/quokka | 9dfffaf8499a27f121eb5007db5371934ab9fda5 | [
"Apache-2.0"
] | null | null | null | apps/schema.py | marsupialtail/quokka | 9dfffaf8499a27f121eb5007db5371934ab9fda5 | [
"Apache-2.0"
] | 1 | 2022-02-10T04:38:24.000Z | 2022-02-10T04:38:24.000Z | lineitem_scheme = ["l_orderkey","l_partkey","l_suppkey","l_linenumber","l_quantity","l_extendedprice",
"l_discount","l_tax","l_returnflag","l_linestatus","l_shipdate","l_commitdate","l_receiptdate","l_shipinstruct",
"l_shipmode","l_comment", "null"]
order_scheme = ["o_orderkey", "o_custkey","o_orderstatus","o_totalpri... | 85.923077 | 123 | 0.730528 | 163 | 1,117 | 4.564417 | 0.423313 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03402 | 1,117 | 13 | 124 | 85.923077 | 0.689527 | 0 | 0 | 0 | 0 | 0 | 0.609123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4065251b7e6601cbdb4a826ad5325db34dee3b4c | 1,040 | py | Python | tests/ts4/contracts/service.py | tonred/tonclick | 942c1012a1112616da0887437a93912e3dd537b9 | [
"Apache-2.0"
] | null | null | null | tests/ts4/contracts/service.py | tonred/tonclick | 942c1012a1112616da0887437a93912e3dd537b9 | [
"Apache-2.0"
] | null | null | null | tests/ts4/contracts/service.py | tonred/tonclick | 942c1012a1112616da0887437a93912e3dd537b9 | [
"Apache-2.0"
] | 2 | 2021-10-17T14:08:16.000Z | 2022-01-12T10:55:33.000Z | from tonos_ts4 import ts4
class Service(ts4.BaseContract):
def __init__(self, address: ts4.Address):
super().__init__('Service', {}, nickname='Service', address=address)
def get_subscription_plans(self) -> list[ts4.Address]:
return self.call_getter('getSubscriptionPlans', {'_answer_id': 0})
... | 30.588235 | 76 | 0.602885 | 107 | 1,040 | 5.542056 | 0.429907 | 0.067454 | 0.094435 | 0.134907 | 0.05059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015979 | 0.277885 | 1,040 | 33 | 77 | 31.515152 | 0.773635 | 0 | 0 | 0.076923 | 0 | 0 | 0.153846 | 0.043269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.038462 | 0.153846 | 0.423077 | 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 |
4073ae892cf743011bae401a26ea43702e91762a | 3,884 | py | Python | py/utils/string_utils.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 3 | 2022-01-06T16:52:52.000Z | 2022-03-07T11:30:47.000Z | py/utils/string_utils.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | null | null | null | py/utils/string_utils.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 1 | 2021-10-24T01:47:22.000Z | 2021-10-24T01:47:22.000Z | # Copyright 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This module provides utility functions for string processing."""
from collections import namedtuple
import logging
def DecodeUTF8(data):
"""Deco... | 24.738854 | 79 | 0.654995 | 523 | 3,884 | 4.8413 | 0.330784 | 0.018957 | 0.017378 | 0.021327 | 0.045024 | 0.045024 | 0.026856 | 0.026856 | 0 | 0 | 0 | 0.006977 | 0.225026 | 3,884 | 156 | 80 | 24.897436 | 0.834219 | 0.370237 | 0 | 0.21519 | 0 | 0 | 0.057021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0.063291 | 0.025316 | 0.012658 | 0.265823 | 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 |
407409e4522f64647e652489bc48973080062ce1 | 1,277 | py | Python | neurondm/neurondm/models/nerves.py | dbrnz/pyontutils | 439e7b572a0a8cbe6817b9a294745db8688da666 | [
"MIT"
] | 11 | 2017-05-12T08:50:03.000Z | 2022-01-22T20:23:25.000Z | neurondm/neurondm/models/nerves.py | dbrnz/pyontutils | 439e7b572a0a8cbe6817b9a294745db8688da666 | [
"MIT"
] | 81 | 2016-02-25T07:39:15.000Z | 2022-02-17T20:20:27.000Z | neurondm/neurondm/models/nerves.py | dbrnz/pyontutils | 439e7b572a0a8cbe6817b9a294745db8688da666 | [
"MIT"
] | 257 | 2017-07-18T19:32:22.000Z | 2022-02-03T17:26:18.000Z | from pyontutils import sheets
from pyontutils.sheets import Sheet
from pyontutils.namespaces import ilxtr
from neurondm.sheets import CutsV1, Row as RowBase
from neurondm.core import Config, NeuronEBM
from neurondm.phenotype_namespaces import Species
class NeuronNerves(NeuronEBM):
owlClass = ilxtr.NeuronNerves
... | 21.644068 | 96 | 0.685983 | 159 | 1,277 | 5.358491 | 0.471698 | 0.049296 | 0.023474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.216915 | 1,277 | 58 | 97 | 22.017241 | 0.847 | 0.009397 | 0 | 0.05 | 0 | 0 | 0.05384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0.075 | 0.675 | 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 |
4074a48023da8abe747732cd0445f7d0bf88d5c5 | 1,071 | py | Python | scraper/storage_spiders/banbuonmaytinhcom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/banbuonmaytinhcom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/banbuonmaytinhcom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@id='detail_pro']/h1[@id='text_name']",
'price' : "//div[@id='detail_pro']/p[@id='text_price']",
'category' : "//div[@id='ma... | 39.666667 | 188 | 0.637722 | 137 | 1,071 | 4.854015 | 0.540146 | 0.06015 | 0.075188 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002121 | 0.119514 | 1,071 | 26 | 189 | 41.192308 | 0.703075 | 0.112045 | 0 | 0 | 1 | 0.043478 | 0.5327 | 0.353376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
407bc3b9644f7d097891d12871f9507c7aeddcd8 | 318 | py | Python | bin/bin_MD/2PCF-mbins-30-MD40box.py | JohanComparat/nbody-npt-functions | a034db4e5a9b2f87dc42eeb6059c4dd280589e4a | [
"CC0-1.0"
] | 4 | 2017-11-07T02:15:46.000Z | 2022-03-03T01:35:53.000Z | bin/bin_MD/2PCF-mbins-30-MD40box.py | JohanComparat/nbody-npt-functions | a034db4e5a9b2f87dc42eeb6059c4dd280589e4a | [
"CC0-1.0"
] | null | null | null | bin/bin_MD/2PCF-mbins-30-MD40box.py | JohanComparat/nbody-npt-functions | a034db4e5a9b2f87dc42eeb6059c4dd280589e4a | [
"CC0-1.0"
] | 2 | 2020-08-12T14:26:38.000Z | 2021-09-14T06:08:58.000Z | from MultiDark import *
box = MultiDarkSimulation(Lbox=4000.0 * uu.Mpc, boxDir = "MD_4Gpc")
ll = n.array( glob.glob( "/data2/DATA/eBOSS/Multidark-lightcones/MD_4Gpc/snapshots/out_128*.fits" ) )
box.compute2PCF_MASS(ll, rmax=30, dr = 0.1, Nmax=1000000, vmin=n.log10(box.Melement)+2, dlogBin=0.05, name="rmax_30")
| 31.8 | 118 | 0.720126 | 52 | 318 | 4.307692 | 0.769231 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109155 | 0.106918 | 318 | 9 | 119 | 35.333333 | 0.679577 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
407ffa2aea24530f73f4f33213990cff7d61090b | 1,396 | py | Python | issfactortools/widgets/widget_main.py | NSLS-II-ISS/issfactortools | 5b9044d6d3ee38109b6798dd40dd2574ea8489e9 | [
"BSD-3-Clause"
] | null | null | null | issfactortools/widgets/widget_main.py | NSLS-II-ISS/issfactortools | 5b9044d6d3ee38109b6798dd40dd2574ea8489e9 | [
"BSD-3-Clause"
] | null | null | null | issfactortools/widgets/widget_main.py | NSLS-II-ISS/issfactortools | 5b9044d6d3ee38109b6798dd40dd2574ea8489e9 | [
"BSD-3-Clause"
] | null | null | null | import re
import sys
import numpy as np
import pkg_resources
import math
from PyQt5 import uic, QtGui, QtCore
from PyQt5.QtCore import QThread, QSettings
from issfactortools.widgets import widget_data_overview, widget_mcr_overview
ui_path = pkg_resources.resource_filename('issfactortools', 'ui/ui_main.ui')
class F... | 23.266667 | 78 | 0.731375 | 175 | 1,396 | 5.525714 | 0.422857 | 0.062048 | 0.074457 | 0.043433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004374 | 0.181232 | 1,396 | 59 | 79 | 23.661017 | 0.841645 | 0.02937 | 0 | 0.166667 | 0 | 0 | 0.04142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.305556 | 0 | 0.472222 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4080a400eaa59efe73a00bc5143ee8a6b409b6ce | 7,095 | py | Python | staff_manage_sdk/model/container/persistent_volume_claim_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | webshell_sdk/model/container/persistent_volume_claim_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | webshell_sdk/model/container/persistent_volume_claim_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: persistent_volume_claim.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | 47.61745 | 673 | 0.745877 | 900 | 7,095 | 5.64 | 0.18 | 0.058314 | 0.043538 | 0.097321 | 0.506304 | 0.495469 | 0.485619 | 0.466706 | 0.466706 | 0.466706 | 0 | 0.037663 | 0.124313 | 7,095 | 148 | 674 | 47.939189 | 0.779334 | 0.036505 | 0 | 0.507813 | 1 | 0.007813 | 0.232831 | 0.199004 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039063 | 0 | 0.039063 | 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 |
40850ea72485d37566faa01314308f3d39c57c82 | 3,531 | py | Python | main project.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | null | null | null | main project.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | null | null | null | main project.py | Kshitijkrishnadas/haribol | ca45e633baaabaad3bb923f5633340ccf88d996c | [
"bzip2-1.0.6"
] | null | null | null | import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='HareKrishna',database='electronic_shop')
cur=conn.cursor()
if conn.is_connected:
print(' ELECTRONIC SHOP SYSTEM')
print(' 1.Admin')
prin... | 44.696203 | 120 | 0.450297 | 360 | 3,531 | 4.411111 | 0.222222 | 0.088161 | 0.11461 | 0.060453 | 0.40995 | 0.25 | 0.175063 | 0.124685 | 0.124685 | 0.124685 | 0 | 0.013018 | 0.412631 | 3,531 | 78 | 121 | 45.269231 | 0.752652 | 0 | 0 | 0.25641 | 0 | 0 | 0.412065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038462 | 0.012821 | 0 | 0.012821 | 0.423077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4099b43553b2d7696a979a5326e9757c3ce89c2b | 27,948 | py | Python | google-cloud-sdk/lib/googlecloudsdk/third_party/apis/appengine/v1/appengine_v1_client.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/googlecloudsdk/third_party/apis/appengine/v1/appengine_v1_client.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/googlecloudsdk/third_party/apis/appengine/v1/appengine_v1_client.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z | """Generated client library for appengine version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.appengine.v1 import appengine_v1_messages as messages
class AppengineV1(base_api.BaseApiClient):
"""Generated clien... | 41.282127 | 605 | 0.693001 | 3,067 | 27,948 | 6.122269 | 0.109227 | 0.0556 | 0.042499 | 0.025723 | 0.642222 | 0.632742 | 0.605209 | 0.596528 | 0.572509 | 0.543537 | 0 | 0.003785 | 0.205882 | 27,948 | 676 | 606 | 41.343195 | 0.842255 | 0.31598 | 0 | 0.621176 | 1 | 0 | 0.211967 | 0.143388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065882 | false | 0 | 0.004706 | 0 | 0.162353 | 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 |
409ee4439c5e2beef5d84d0609d9d97498d8be26 | 3,831 | py | Python | python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_array_indexing.py | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_array_indexing.py | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_array_indexing.py | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CS231n Convolutional Neural Networks for Visual Recognition
http://cs231n.github.io/
Python Numpy Tutorial
http://cs231n.github.io/python-numpy-tutorial/
Numpy Reference
https://docs.scipy.org/doc/numpy/reference/
 ̄
python_numpy_tutorial-numpy_array_indexing.py
2019-... | 22.273256 | 114 | 0.567476 | 693 | 3,831 | 3.111111 | 0.233766 | 0.016698 | 0.018089 | 0.022263 | 0.317718 | 0.247217 | 0.175789 | 0.108534 | 0.108534 | 0.100186 | 0 | 0.106138 | 0.230227 | 3,831 | 172 | 115 | 22.273256 | 0.624619 | 0.662229 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0.615385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40a567b8546ff055f32c27faa0a6a26e1dcbe0b3 | 4,903 | py | Python | src/expositor/cli/host.py | secretuminc/expositor | b68b56433d312d86869be9581d45116be433ee06 | [
"MIT"
] | 1 | 2021-06-23T17:40:39.000Z | 2021-06-23T17:40:39.000Z | src/expositor/cli/host.py | secretuminc/expositor | b68b56433d312d86869be9581d45116be433ee06 | [
"MIT"
] | null | null | null | src/expositor/cli/host.py | secretuminc/expositor | b68b56433d312d86869be9581d45116be433ee06 | [
"MIT"
] | null | null | null | # Helper methods for printing `host` information to the terminal.
import quo
from expositor.helpers import get_ip
def host_print_pretty(host, history=False):
"""Show the host information in a user-friendly way and try to include
as much relevant information as possible."""
# General info
quo.echo(quo... | 39.861789 | 159 | 0.555782 | 634 | 4,903 | 4.271293 | 0.257098 | 0.054284 | 0.026588 | 0.02031 | 0.303914 | 0.264402 | 0.232275 | 0.210118 | 0.210118 | 0.151034 | 0 | 0.011583 | 0.260453 | 4,903 | 122 | 160 | 40.188525 | 0.735245 | 0 | 0 | 0.108434 | 0 | 0 | 0.213099 | 0.006354 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024096 | null | null | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40a83bead271906e1dddb7e6c46607d0656e67e4 | 1,879 | py | Python | discussion/migrations/0001_initial.py | zzeebbii/bwa-project | abf403a01806865101ad735c0b347f7d0ea02286 | [
"MIT"
] | null | null | null | discussion/migrations/0001_initial.py | zzeebbii/bwa-project | abf403a01806865101ad735c0b347f7d0ea02286 | [
"MIT"
] | null | null | null | discussion/migrations/0001_initial.py | zzeebbii/bwa-project | abf403a01806865101ad735c0b347f7d0ea02286 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-12-08 21:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.expressions
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setti... | 39.978723 | 130 | 0.618946 | 195 | 1,879 | 5.8 | 0.369231 | 0.056587 | 0.086649 | 0.077807 | 0.431477 | 0.431477 | 0.431477 | 0.400531 | 0.32626 | 0.32626 | 0 | 0.014957 | 0.252794 | 1,879 | 46 | 131 | 40.847826 | 0.790598 | 0.023949 | 0 | 0.333333 | 1 | 0 | 0.093341 | 0.012009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.205128 | 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 |
40abc5b6a6a68749fceab594232980973dc7f81a | 2,572 | py | Python | tests/cli/test_cookiecutter_invocation.py | insight-infrastructure/cookiecutter | 5e77a6f59786759cf1b469e7bd827b6d340a31c6 | [
"BSD-3-Clause"
] | 8 | 2020-06-15T18:49:24.000Z | 2021-04-15T10:34:24.000Z | tests/cli/test_cookiecutter_invocation.py | insight-infrastructure/cookiecutter | 5e77a6f59786759cf1b469e7bd827b6d340a31c6 | [
"BSD-3-Clause"
] | 19 | 2020-06-28T16:03:56.000Z | 2020-10-07T15:52:06.000Z | tests/cli/test_cookiecutter_invocation.py | insight-infrastructure/nukikata | 5e77a6f59786759cf1b469e7bd827b6d340a31c6 | [
"BSD-3-Clause"
] | null | null | null | """
test_cookiecutter_invocation.
Tests to make sure that cookiecutter can be called from the cli without
using the entry point set up for the package.
"""
import os
import subprocess
import sys
import shutil
import pytest
import cookiecutter.utils.paths
@pytest.fixture
def project_dir():
"""Return test proje... | 27.361702 | 80 | 0.650078 | 328 | 2,572 | 4.92378 | 0.268293 | 0.055728 | 0.040867 | 0.024149 | 0.696594 | 0.696594 | 0.696594 | 0.696594 | 0.696594 | 0.696594 | 0 | 0.003498 | 0.222006 | 2,572 | 93 | 81 | 27.655914 | 0.803598 | 0.156299 | 0 | 0.53125 | 0 | 0 | 0.176471 | 0.105976 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.15625 | 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 |
40ad4ec15e6fbc12daf4eaef1065dd1341f2b550 | 4,233 | py | Python | tests/cli_test.py | fchastanet/json-schema-for-humans | 0fe3e53ee1f49deb80a7231e6bbf38194bac4056 | [
"Apache-2.0"
] | null | null | null | tests/cli_test.py | fchastanet/json-schema-for-humans | 0fe3e53ee1f49deb80a7231e6bbf38194bac4056 | [
"Apache-2.0"
] | null | null | null | tests/cli_test.py | fchastanet/json-schema-for-humans | 0fe3e53ee1f49deb80a7231e6bbf38194bac4056 | [
"Apache-2.0"
] | null | null | null | import traceback
from pathlib import Path
from bs4 import BeautifulSoup
from click.testing import CliRunner, Result
from json_schema_for_humans.generate import main
from tests.test_utils import assert_css_and_js_copied, assert_css_and_js_not_copied, get_test_case_path
def assert_cli_runner_result(result: Result) ->... | 37.131579 | 121 | 0.690999 | 569 | 4,233 | 4.813708 | 0.182777 | 0.040891 | 0.03943 | 0.046002 | 0.725447 | 0.69624 | 0.655714 | 0.614458 | 0.614458 | 0.599489 | 0 | 0.002642 | 0.195133 | 4,233 | 113 | 122 | 37.460177 | 0.801291 | 0.11623 | 0 | 0.532468 | 1 | 0 | 0.099461 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.103896 | false | 0 | 0.077922 | 0 | 0.181818 | 0.038961 | 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 |
40ae4434d9caa9b0f830fad4da9894201bc0bf94 | 759 | py | Python | smatrix/mdx_c2e.py | ffreemt/similarity-matrix | f72d5c76083588aaa8faf5aefad1ac5aeae2f715 | [
"MIT"
] | null | null | null | smatrix/mdx_c2e.py | ffreemt/similarity-matrix | f72d5c76083588aaa8faf5aefad1ac5aeae2f715 | [
"MIT"
] | null | null | null | smatrix/mdx_c2e.py | ffreemt/similarity-matrix | f72d5c76083588aaa8faf5aefad1ac5aeae2f715 | [
"MIT"
] | null | null | null | """Load mdx_dict_c2e.
mdx_e2c = joblib.load("./mdx_dict_e2c.lzma")
mdx_c2e = joblib.load("./mdx_dict_e2c.lzma")
"""
from pathlib import Path
import joblib
c_dir = Path(__file__).parent
# lazy load in __init__.py like this?
# mdx_e2c = importlib.import_module("tinybee.mdx_e2c")
# mdx_e2c = mdx_e2c.mdx_e2c
# mdx_c2e ... | 21.685714 | 55 | 0.673254 | 120 | 759 | 3.9 | 0.391667 | 0.115385 | 0.08547 | 0.076923 | 0.337607 | 0.217949 | 0.115385 | 0 | 0 | 0 | 0 | 0.040453 | 0.185771 | 759 | 34 | 56 | 22.323529 | 0.716828 | 0.616601 | 0 | 0 | 0 | 0 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40b0a1dfb43202165653f8f95ad61ca6a8f8fe82 | 2,136 | py | Python | statsSend/teamCity/teamCityStatisticsSender.py | luigiberrettini/build-deploy-stats | 52a0bf5aeb8d2f8ef62e4e836eb0b9874dea500d | [
"MIT"
] | 2 | 2017-07-04T14:30:35.000Z | 2017-07-04T16:04:53.000Z | statsSend/teamCity/teamCityStatisticsSender.py | luigiberrettini/build-deploy-stats | 52a0bf5aeb8d2f8ef62e4e836eb0b9874dea500d | [
"MIT"
] | null | null | null | statsSend/teamCity/teamCityStatisticsSender.py | luigiberrettini/build-deploy-stats | 52a0bf5aeb8d2f8ef62e4e836eb0b9874dea500d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from dateutil import parser
from statsSend.session import Session
from statsSend.utils import print_exception
from statsSend.urlBuilder import UrlBuilder
from statsSend.teamCity.teamCityProject import TeamCityProject
class TeamCityStatisticsSender:
def __init__(self, settings, reporter):
... | 49.674419 | 141 | 0.644195 | 220 | 2,136 | 6.05 | 0.35 | 0.039068 | 0.040571 | 0.045079 | 0.328325 | 0.328325 | 0.328325 | 0.299023 | 0.299023 | 0.121713 | 0 | 0.000646 | 0.275281 | 2,136 | 43 | 142 | 49.674419 | 0.859173 | 0.009831 | 0 | 0.27027 | 0 | 0 | 0.093617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.054054 | 0.135135 | 0 | 0.189189 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40b0c4e78d51ede4c6c56104219b45506b3b6db9 | 3,354 | py | Python | pyoutline/outline/plugins/manager.py | mb0rt/OpenCue | 7cce111306ccfa6c94f12806c8668866f2ee70ad | [
"Apache-2.0"
] | 334 | 2019-01-23T13:48:08.000Z | 2019-06-10T06:58:49.000Z | pyoutline/outline/plugins/manager.py | mb0rt/OpenCue | 7cce111306ccfa6c94f12806c8668866f2ee70ad | [
"Apache-2.0"
] | 564 | 2019-06-11T15:31:48.000Z | 2022-03-31T19:53:03.000Z | pyoutline/outline/plugins/manager.py | mb0rt/OpenCue | 7cce111306ccfa6c94f12806c8668866f2ee70ad | [
"Apache-2.0"
] | 155 | 2019-06-13T11:42:00.000Z | 2022-03-16T18:31:24.000Z | # Copyright Contributors to the OpenCue Project
#
# 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... | 33.207921 | 86 | 0.628205 | 384 | 3,354 | 5.341146 | 0.367188 | 0.039005 | 0.023403 | 0.036568 | 0.233545 | 0.192101 | 0.156021 | 0.156021 | 0.07216 | 0.07216 | 0 | 0.002102 | 0.290698 | 3,354 | 100 | 87 | 33.54 | 0.860025 | 0.281157 | 0 | 0.355932 | 0 | 0 | 0.079541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.050847 | 0.220339 | 0 | 0.40678 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
40b104bc52db048368ada772fd1176a639ba9c5f | 2,904 | py | Python | SimpleApp/stylemanager.py | 0xMartin/SimpleApp-Pygame-framework | fa443c1a05d3cc87595f0c6e0e65ff4471fe9c85 | [
"MIT"
] | null | null | null | SimpleApp/stylemanager.py | 0xMartin/SimpleApp-Pygame-framework | fa443c1a05d3cc87595f0c6e0e65ff4471fe9c85 | [
"MIT"
] | null | null | null | SimpleApp/stylemanager.py | 0xMartin/SimpleApp-Pygame-framework | fa443c1a05d3cc87595f0c6e0e65ff4471fe9c85 | [
"MIT"
] | null | null | null | """
Simple library for multiple views game aplication with pygame
File: stylemanager.py
Date: 09.02.2022
Github: https://github.com/0xMartin
Email: martin.krcma1@gmail.com
Copyright (C) 2022 Martin Krcma
Permission is hereby granted, free of charge, to any person
obtaining a copy of this soft... | 32.266667 | 86 | 0.653926 | 377 | 2,904 | 4.984085 | 0.461538 | 0.046833 | 0.029271 | 0.025546 | 0.077701 | 0.077701 | 0.077701 | 0.077701 | 0.077701 | 0.077701 | 0 | 0.008061 | 0.27376 | 2,904 | 89 | 87 | 32.629213 | 0.882883 | 0.607438 | 0 | 0 | 0 | 0 | 0.006397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40bbcc1553740de9fc4ab32d3d33c1ddaa68199e | 1,277 | py | Python | Apps/polls/migrations/0006_auto_20210317_2334.py | shadowofgost/WebEngineering | 693af827e3458806cdace959262cf393d29f6504 | [
"Apache-2.0"
] | 1 | 2021-04-05T05:40:17.000Z | 2021-04-05T05:40:17.000Z | Apps/polls/migrations/0006_auto_20210317_2334.py | shadowofgost/WebEngineering | 693af827e3458806cdace959262cf393d29f6504 | [
"Apache-2.0"
] | null | null | null | Apps/polls/migrations/0006_auto_20210317_2334.py | shadowofgost/WebEngineering | 693af827e3458806cdace959262cf393d29f6504 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0 on 2021-03-17 23:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('polls', '0005_auto_20210317_2328'),
]
operations = [
migrations.RemoveField(
model_name='tcyequip... | 32.74359 | 171 | 0.610023 | 133 | 1,277 | 5.691729 | 0.458647 | 0.059445 | 0.083223 | 0.099075 | 0.248349 | 0.203435 | 0.10568 | 0 | 0 | 0 | 0 | 0.042735 | 0.267032 | 1,277 | 38 | 172 | 33.605263 | 0.766026 | 0.033673 | 0 | 0.375 | 1 | 0 | 0.159903 | 0.043019 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
40c1d01731694d77535d31e326ed30c20ab00ee8 | 15,262 | py | Python | cloudroast/database/pos_regr/users.py | MUSABALOYI/cloudroast | dcccce6b3af9d150cb667fc05bd051e97b5f6e2c | [
"Apache-2.0"
] | null | null | null | cloudroast/database/pos_regr/users.py | MUSABALOYI/cloudroast | dcccce6b3af9d150cb667fc05bd051e97b5f6e2c | [
"Apache-2.0"
] | null | null | null | cloudroast/database/pos_regr/users.py | MUSABALOYI/cloudroast | dcccce6b3af9d150cb667fc05bd051e97b5f6e2c | [
"Apache-2.0"
] | 1 | 2020-04-06T22:36:55.000Z | 2020-04-06T22:36:55.000Z | """
Copyright 2013 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 41.585831 | 78 | 0.559298 | 1,646 | 15,262 | 4.90887 | 0.125759 | 0.056807 | 0.064109 | 0.045545 | 0.697525 | 0.67797 | 0.63849 | 0.619059 | 0.577599 | 0.577599 | 0 | 0.010962 | 0.354475 | 15,262 | 367 | 79 | 41.585831 | 0.809176 | 0.032892 | 0 | 0.621908 | 0 | 0 | 0.115047 | 0.007549 | 0 | 0 | 0 | 0.002725 | 0.116608 | 0 | null | null | 0.038869 | 0.003534 | null | null | 0.003534 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40c479eb7e3ec83ec64fc9c7056050d5aff45ccf | 416 | py | Python | games/migrations/0009_gamesessionplayersignup_reported.py | mlutok/portal_backend | d463e4e146714c58daf530bc102608affd397205 | [
"Apache-2.0"
] | 1 | 2019-05-04T11:34:44.000Z | 2019-05-04T11:34:44.000Z | games/migrations/0009_gamesessionplayersignup_reported.py | mlutok/portal_backend | d463e4e146714c58daf530bc102608affd397205 | [
"Apache-2.0"
] | 18 | 2019-06-19T15:06:56.000Z | 2021-06-10T17:55:00.000Z | games/migrations/0009_gamesessionplayersignup_reported.py | mlutok/portal_backend | d463e4e146714c58daf530bc102608affd397205 | [
"Apache-2.0"
] | 6 | 2019-06-11T11:02:06.000Z | 2020-10-04T11:05:41.000Z | # Generated by Django 2.0.9 on 2018-12-02 17:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("games", "0008_auto_20181202_1524")]
operations = [
migrations.AddField(
model_name="gamesessionplayersignup",
name="reported",
... | 24.470588 | 81 | 0.653846 | 44 | 416 | 6.068182 | 0.795455 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097484 | 0.235577 | 416 | 16 | 82 | 26 | 0.742138 | 0.108173 | 0 | 0 | 1 | 0 | 0.181572 | 0.124661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40c4b314b82cc6ad701d1c76b9ec230d5028af03 | 7,662 | py | Python | tests/STDFRecordTest.py | bunbury86/STDF | b6321ef90266e0c779230022fa851a66c194737e | [
"MIT"
] | null | null | null | tests/STDFRecordTest.py | bunbury86/STDF | b6321ef90266e0c779230022fa851a66c194737e | [
"MIT"
] | null | null | null | tests/STDFRecordTest.py | bunbury86/STDF | b6321ef90266e0c779230022fa851a66c194737e | [
"MIT"
] | null | null | null | import pytest
import struct
import math
class STDFRecordTest:
def __init__(self , file, endian, debug = False):
self.file = file
self.endian = endian
self.debug = debug
if (endian == '>'):
self.byteorder = 'big'
elif (endian == '<'):
... | 37.930693 | 135 | 0.596842 | 937 | 7,662 | 4.601921 | 0.110993 | 0.205009 | 0.129406 | 0.101345 | 0.650742 | 0.608534 | 0.594388 | 0.508813 | 0.482143 | 0.451531 | 0 | 0.014745 | 0.30958 | 7,662 | 201 | 136 | 38.119403 | 0.800378 | 0.039154 | 0 | 0.441379 | 0 | 0 | 0.122545 | 0.006224 | 0 | 0 | 0.001107 | 0 | 0.289655 | 1 | 0.117241 | false | 0 | 0.02069 | 0 | 0.144828 | 0.096552 | 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 |
40c4f53fbbf17d23229fe528f106c87b9a4b0bcb | 342 | py | Python | python_skeleton_project/tools/hello_world.py | aagnone3/python-skeleton | 5f8f334ec36388ea51f4aed9074c8222d4c2b0b6 | [
"Apache-2.0"
] | 1 | 2020-04-01T05:17:44.000Z | 2020-04-01T05:17:44.000Z | python_skeleton_project/tools/hello_world.py | aagnone3/python-skeleton | 5f8f334ec36388ea51f4aed9074c8222d4c2b0b6 | [
"Apache-2.0"
] | 2 | 2018-11-23T02:32:09.000Z | 2021-12-20T14:36:53.000Z | python_skeleton_project/tools/hello_world.py | aagnone3/python-skeleton | 5f8f334ec36388ea51f4aed9074c8222d4c2b0b6 | [
"Apache-2.0"
] | 4 | 2019-03-21T17:15:51.000Z | 2021-07-22T13:59:36.000Z | import sys
from argparse import ArgumentParser
from python_skeleton_project import greet_world
def get_clargs():
parser = ArgumentParser()
parser.add_argument("-d", "--descriptor", help="Descriptor of world to greet.")
return parser.parse_args()
def main():
args = get_clargs()
sys.exit(greet_wo... | 21.375 | 83 | 0.730994 | 44 | 342 | 5.5 | 0.590909 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160819 | 342 | 15 | 84 | 22.8 | 0.843206 | 0 | 0 | 0 | 0 | 0 | 0.125731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40c578048ab3091b69f156652c07101bd9aec6a1 | 1,809 | py | Python | tutorial/shapes/text-metrics.py | sthagen/martinmcbride-generativepy | 0467f2c5d91c71f797304efcb763761fbd0f9162 | [
"MIT"
] | null | null | null | tutorial/shapes/text-metrics.py | sthagen/martinmcbride-generativepy | 0467f2c5d91c71f797304efcb763761fbd0f9162 | [
"MIT"
] | null | null | null | tutorial/shapes/text-metrics.py | sthagen/martinmcbride-generativepy | 0467f2c5d91c71f797304efcb763761fbd0f9162 | [
"MIT"
] | null | null | null | # Author: Martin McBride
# Created: 2022-01-04
# Copyright (C) 2022, Martin McBride
# License: MIT
from generativepy.drawing import make_image, setup
from generativepy.color import Color
from generativepy.geometry import Text, Rectangle
def draw(ctx, pixel_width, pixel_height, frame_no, frame_count):
setup(ctx,... | 42.069767 | 101 | 0.648425 | 283 | 1,809 | 4.014134 | 0.222615 | 0.017606 | 0.055458 | 0.086268 | 0.697183 | 0.650528 | 0.650528 | 0.650528 | 0.650528 | 0.650528 | 0 | 0.046284 | 0.152018 | 1,809 | 43 | 102 | 42.069767 | 0.694263 | 0.050304 | 0 | 0.5 | 0 | 0 | 0.079347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.142857 | 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 |
40c6ee0c7cd7dd52eda1b3032653c4ce05a49e2d | 1,901 | py | Python | src/openprocurement/tender/esco/procedure/models/lot_value.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 10 | 2020-02-18T01:56:21.000Z | 2022-03-28T00:32:57.000Z | src/openprocurement/tender/esco/procedure/models/lot_value.py | quintagroup/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 26 | 2018-07-16T09:30:44.000Z | 2021-02-02T17:51:30.000Z | src/openprocurement/tender/esco/procedure/models/lot_value.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 15 | 2019-08-08T10:50:47.000Z | 2022-02-05T14:13:36.000Z | from schematics.types.compound import ModelType
from schematics.types import StringType
from openprocurement.tender.core.procedure.context import get_tender
from openprocurement.tender.esco.procedure.models.value import ESCOValue, PatchESCOValue
from openprocurement.tender.openua.procedure.models.lot_value import (
... | 44.209302 | 118 | 0.669122 | 198 | 1,901 | 6.39899 | 0.353535 | 0.033149 | 0.059195 | 0.071034 | 0.213102 | 0.184688 | 0.101026 | 0.101026 | 0.101026 | 0 | 0 | 0.00068 | 0.226723 | 1,901 | 42 | 119 | 45.261905 | 0.861224 | 0.028932 | 0 | 0.176471 | 0 | 0 | 0.194685 | 0.045553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0.029412 | 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 |
40cacd6693f342a725954c7506ec24b52b76a7e3 | 511 | py | Python | HARMAN International Software Engineer 2019/dataDesignToStoreItems.py | sivolko/codeforce | 4b00c4c012780036e56d2f0e79adb2f5db7559df | [
"MIT"
] | null | null | null | HARMAN International Software Engineer 2019/dataDesignToStoreItems.py | sivolko/codeforce | 4b00c4c012780036e56d2f0e79adb2f5db7559df | [
"MIT"
] | null | null | null | HARMAN International Software Engineer 2019/dataDesignToStoreItems.py | sivolko/codeforce | 4b00c4c012780036e56d2f0e79adb2f5db7559df | [
"MIT"
] | null | null | null | class DataStructure(object):
def __init__(self):
self.name2id = {}
self.id2item = {}
def add_item(self, item_name, item_id, item):
self.name2id[item_name] = item_id
self.id2item[item_id] = item
def search_by_name(self, target_name):
target_id = self.name2id[target_n... | 28.388889 | 49 | 0.649706 | 68 | 511 | 4.529412 | 0.235294 | 0.142857 | 0.077922 | 0.090909 | 0.292208 | 0.292208 | 0.292208 | 0.292208 | 0.292208 | 0 | 0 | 0.018421 | 0.25636 | 511 | 17 | 50 | 30.058824 | 0.792105 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 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 |
40d04329095ca33d0fd25575157860aa9600c883 | 1,898 | py | Python | time/datetime_test.py | DaviNakamuraCardoso/Projeto-ATMCP | ac4bbde04294681091d916e83c20c27be67c623a | [
"MIT"
] | null | null | null | time/datetime_test.py | DaviNakamuraCardoso/Projeto-ATMCP | ac4bbde04294681091d916e83c20c27be67c623a | [
"MIT"
] | null | null | null | time/datetime_test.py | DaviNakamuraCardoso/Projeto-ATMCP | ac4bbde04294681091d916e83c20c27be67c623a | [
"MIT"
] | null | null | null | import datetime
import time
print(datetime.datetime.now())
dt = datetime.datetime(2019, 10, 21, 16, 29, 0)
print(dt)
print(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second)
print(datetime.datetime.fromtimestamp(1_000_000_000))
print(datetime.datetime.fromtimestamp(time.time()))
today = datetime.datetime.now()
... | 36.5 | 115 | 0.747629 | 305 | 1,898 | 4.560656 | 0.340984 | 0.149533 | 0.075485 | 0.014378 | 0.053199 | 0.035945 | 0.035945 | 0.035945 | 0 | 0 | 0 | 0.076145 | 0.114331 | 1,898 | 51 | 116 | 37.215686 | 0.751338 | 0.251317 | 0 | 0 | 0 | 0 | 0.059659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.631579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40d5cf7f2c1049441b336fc61b96302ce689972f | 815 | py | Python | api/main.py | fpaupier/rnnoise | 90b1997902a4136de21d87a96cb5c721e44d9e19 | [
"BSD-3-Clause"
] | null | null | null | api/main.py | fpaupier/rnnoise | 90b1997902a4136de21d87a96cb5c721e44d9e19 | [
"BSD-3-Clause"
] | 2 | 2021-10-20T20:58:39.000Z | 2021-12-29T16:59:51.000Z | api/main.py | fpaupier/rnnoise | 90b1997902a4136de21d87a96cb5c721e44d9e19 | [
"BSD-3-Clause"
] | 1 | 2021-10-21T12:30:47.000Z | 2021-10-21T12:30:47.000Z | from pathlib import Path
from fastapi import FastAPI, File, UploadFile
from fastapi.responses import HTMLResponse
app = FastAPI()
local_path = '../backend/examples'
@app.post("/media/")
async def upload_file(file: UploadFile = File(...)):
# Upload the file - make it available for the denoiser
content: byte... | 22.638889 | 67 | 0.666258 | 106 | 815 | 5.09434 | 0.537736 | 0.040741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184049 | 815 | 35 | 68 | 23.285714 | 0.81203 | 0.106748 | 0 | 0 | 0 | 0 | 0.259669 | 0.040055 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.208333 | 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 |
40d6ba472f2275518d19b017e5d25b26780e22db | 2,129 | py | Python | ros/src/twist_controller/twist_controller.py | liangyd/CarND-Capstone | 842e8de1d200b1c9b23e2b269f2b71e8b4974aea | [
"MIT"
] | null | null | null | ros/src/twist_controller/twist_controller.py | liangyd/CarND-Capstone | 842e8de1d200b1c9b23e2b269f2b71e8b4974aea | [
"MIT"
] | null | null | null | ros/src/twist_controller/twist_controller.py | liangyd/CarND-Capstone | 842e8de1d200b1c9b23e2b269f2b71e8b4974aea | [
"MIT"
] | null | null | null | from pid import PID
from yaw_controller import YawController
from lowpass import LowPassFilter
import rospy
GAS_DENSITY = 2.858
ONE_MPH = 0.44704
class Controller(object):
def __init__(self, vehicle_mass, fuel_capacity, brake_deadband, decel_limit, accel_limit, wheel_radius, wheel_base, steer_ratio, max_lat_acc... | 31.776119 | 165 | 0.637388 | 284 | 2,129 | 4.496479 | 0.309859 | 0.054816 | 0.035239 | 0.029757 | 0.037588 | 0.037588 | 0 | 0 | 0 | 0 | 0 | 0.026455 | 0.289807 | 2,129 | 67 | 166 | 31.776119 | 0.818122 | 0.049319 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.042553 | false | 0.042553 | 0.085106 | 0 | 0.191489 | 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 |
40daa932866f00d9c1c3fc6ae62949d4f5ece9ab | 6,097 | py | Python | ros/src/waypoint_updater/waypoint_updater.py | vinaykashya/Twingo | 1d562270676168153aadc9b4b35c1a26760e5f1f | [
"MIT"
] | null | null | null | ros/src/waypoint_updater/waypoint_updater.py | vinaykashya/Twingo | 1d562270676168153aadc9b4b35c1a26760e5f1f | [
"MIT"
] | null | null | null | ros/src/waypoint_updater/waypoint_updater.py | vinaykashya/Twingo | 1d562270676168153aadc9b4b35c1a26760e5f1f | [
"MIT"
] | 5 | 2018-03-01T14:26:46.000Z | 2018-03-16T14:39:28.000Z | #!/usr/bin/env python
import rospy
import math
import tf
from geometry_msgs.msg import PoseStamped, TwistStamped
from styx_msgs.msg import Lane, Waypoint
from std_msgs.msg import Int32, Float32
from copy import deepcopy
LOOKAHEAD_WPS = 200
MAX_DECEL = 4.0
NORM_DECEL = 1.0
STOP_BU... | 38.10625 | 158 | 0.66869 | 823 | 6,097 | 4.72904 | 0.1774 | 0.090442 | 0.090442 | 0.045221 | 0.312693 | 0.247945 | 0.224049 | 0.201953 | 0.201953 | 0.201953 | 0 | 0.012921 | 0.225685 | 6,097 | 159 | 159 | 38.345912 | 0.811481 | 0.054125 | 0 | 0.173913 | 0 | 0 | 0.030214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06087 | 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 |
40de75ab272bcaafb8d522d528f6ec404d728fcf | 328 | py | Python | app/search.py | wgmueller1/unicorn | 68a265982635873cf77ac3226f4da52c3f58344c | [
"MIT"
] | null | null | null | app/search.py | wgmueller1/unicorn | 68a265982635873cf77ac3226f4da52c3f58344c | [
"MIT"
] | null | null | null | app/search.py | wgmueller1/unicorn | 68a265982635873cf77ac3226f4da52c3f58344c | [
"MIT"
] | null | null | null | import urllib2
import json
import simplejson
import nltk
from nltk import word_tokenize
from nltk.tokenize import RegexpTokenizer
import requests
def run(term=""):
url=''+term
r=requests.get(url)
data=r.json()
titles=[]
for hit in data['hits']['hits']:
titles.append(hit['_source']['title'])
return json.dumps... | 18.222222 | 41 | 0.737805 | 48 | 328 | 5 | 0.5625 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.125 | 328 | 18 | 42 | 18.222222 | 0.832753 | 0 | 0 | 0 | 0 | 0 | 0.06079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
40df50f7296c711723919ad7774a8fdd3d4f7a8f | 682 | py | Python | Homework #1 (Variables)/FavSong.py | SucharitaDhar/PirplePythonCourse | f8bf15a35fcc5480fe1370aab1530e0033141f51 | [
"Unlicense"
] | null | null | null | Homework #1 (Variables)/FavSong.py | SucharitaDhar/PirplePythonCourse | f8bf15a35fcc5480fe1370aab1530e0033141f51 | [
"Unlicense"
] | null | null | null | Homework #1 (Variables)/FavSong.py | SucharitaDhar/PirplePythonCourse | f8bf15a35fcc5480fe1370aab1530e0033141f51 | [
"Unlicense"
] | null | null | null | #My favorite song described
#Genre, Artists and Album
Genre = "Bollywood Romance"
Composer = "Amit Trivedi"
Lyricist = "Amitabh Bhattacharya"
Singer_male = "Arijit Singh"
Singer_female = "Nikhita Gandhi"
Album = "Kedarnath"
#YearReleased
YearReleased = 2018
#Duration
DurationInSeconds = 351
print("My favorit... | 21.3125 | 108 | 0.718475 | 85 | 682 | 5.717647 | 0.517647 | 0.061728 | 0.057613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012302 | 0.165689 | 682 | 31 | 109 | 22 | 0.841828 | 0.102639 | 0 | 0 | 0 | 0 | 0.449587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40e403b1159f0990df0d660b8734e0b28c883bce | 1,746 | py | Python | test/test_cli.py | narthur/taskratchet-cli | 83ad0e73bd70b6fad65607dbe7ea3ae103722fd5 | [
"MIT"
] | null | null | null | test/test_cli.py | narthur/taskratchet-cli | 83ad0e73bd70b6fad65607dbe7ea3ae103722fd5 | [
"MIT"
] | null | null | null | test/test_cli.py | narthur/taskratchet-cli | 83ad0e73bd70b6fad65607dbe7ea3ae103722fd5 | [
"MIT"
] | null | null | null | import unittest
from test.test_case import TestCase
from tr_cli.cli import Cli
class TestCli(TestCase):
_cli = None
def setUp(self) -> None:
super().setUp()
self._mock_yaml.load.return_value = {'auth': {
'user_id': 'user_id',
'token': 'token'
}}
self.... | 25.304348 | 71 | 0.63803 | 209 | 1,746 | 4.956938 | 0.272727 | 0.069498 | 0.074324 | 0.096525 | 0.419884 | 0.323359 | 0.162162 | 0.07722 | 0 | 0 | 0 | 0 | 0.23425 | 1,746 | 68 | 72 | 25.676471 | 0.774869 | 0 | 0 | 0.090909 | 0 | 0 | 0.115693 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.227273 | false | 0 | 0.068182 | 0.022727 | 0.363636 | 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 |
40ebe5d1d0fea56e22cd062c7698c35c7b61db31 | 445 | py | Python | enterprise_manage/apps/score_center/serializers.py | x315904752/enterprise_manage | ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1 | [
"MIT"
] | null | null | null | enterprise_manage/apps/score_center/serializers.py | x315904752/enterprise_manage | ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1 | [
"MIT"
] | 2 | 2020-06-06T01:09:13.000Z | 2021-06-10T22:26:59.000Z | enterprise_manage/apps/score_center/serializers.py | x315904752/enterprise_manage | ac679d8e7221080dadfdbe6d8ac6ece0b19ed1f1 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from enterprise_manage.apps.score_center.models import *
class ScoreResultSerializer(serializers.ModelSerializer):
user_photo = serializers.CharField(source='user_photo.url')
class Meta:
model = UserProfile
fields = ['name', 'user_photo']
class ScoreP... | 23.421053 | 63 | 0.721348 | 44 | 445 | 7.159091 | 0.613636 | 0.085714 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188764 | 445 | 18 | 64 | 24.722222 | 0.872576 | 0 | 0 | 0.181818 | 0 | 0 | 0.076404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.636364 | 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 |
40f77061b2ad02054f9eb6e9a7e09b99c817063f | 1,756 | py | Python | reproduction/text_classification/train_lstm.py | KuNyaa/fastNLP | 22f9b87c54a4eebec7352c7ff772cd24685c7186 | [
"Apache-2.0"
] | 1 | 2019-10-05T06:02:44.000Z | 2019-10-05T06:02:44.000Z | reproduction/text_classification/train_lstm.py | awesomemachinelearning/fastNLP | 945b30bb6174751130744231aa26119bf9bb2601 | [
"Apache-2.0"
] | 1 | 2019-12-09T06:34:44.000Z | 2019-12-09T06:34:44.000Z | reproduction/text_classification/train_lstm.py | awesomemachinelearning/fastNLP | 945b30bb6174751130744231aa26119bf9bb2601 | [
"Apache-2.0"
] | null | null | null | # 首先需要加入以下的路径到环境变量,因为当前只对内部测试开放,所以需要手动申明一下路径
import os
os.environ['FASTNLP_BASE_URL'] = 'http://10.141.222.118:8888/file/download/'
os.environ['FASTNLP_CACHE_DIR'] = '/remote-home/hyan01/fastnlp_caches'
from fastNLP.io.data_loader import IMDBLoader
from fastNLP.embeddings import StaticEmbedding
from model.lstm import ... | 29.762712 | 135 | 0.747153 | 237 | 1,756 | 5.341772 | 0.443038 | 0.034755 | 0.025276 | 0.042654 | 0.064771 | 0.064771 | 0.064771 | 0 | 0 | 0 | 0 | 0.025607 | 0.132688 | 1,756 | 59 | 136 | 29.762712 | 0.805647 | 0.084282 | 0 | 0 | 0 | 0 | 0.134831 | 0.021223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.2 | 0 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40f93f40324e7e852988c89fa38ec5e8b93d1e11 | 14,442 | py | Python | mapclientplugins/pelvislandmarkshjcpredictionstep/hjcpredictionviewerwidget.py | tsalemink/pelvislandmarkshjcpredictionstep | 8c26e42a07320cef379d70a9ac5fad1c04c29c44 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/pelvislandmarkshjcpredictionstep/hjcpredictionviewerwidget.py | tsalemink/pelvislandmarkshjcpredictionstep | 8c26e42a07320cef379d70a9ac5fad1c04c29c44 | [
"Apache-2.0"
] | 1 | 2020-01-28T23:25:48.000Z | 2020-01-28T23:25:48.000Z | mapclientplugins/pelvislandmarkshjcpredictionstep/hjcpredictionviewerwidget.py | tsalemink/pelvislandmarkshjcpredictionstep | 8c26e42a07320cef379d70a9ac5fad1c04c29c44 | [
"Apache-2.0"
] | 1 | 2021-06-03T20:39:27.000Z | 2021-06-03T20:39:27.000Z | '''
MAP Client, a program to generate detailed musculoskeletal models for OpenSim.
Copyright (C) 2012 University of Auckland
This file is part of MAP Client. (http://launchpad.net/mapclient)
MAP Client is free software: you can redistribute it and/or modify
it under the terms of the GNU Genera... | 43.110448 | 127 | 0.64534 | 1,401 | 14,442 | 6.468951 | 0.249108 | 0.04568 | 0.043142 | 0.020302 | 0.29979 | 0.261723 | 0.189893 | 0.177756 | 0.139137 | 0.139137 | 0 | 0.004526 | 0.250312 | 14,442 | 334 | 128 | 43.239521 | 0.832548 | 0.146863 | 0 | 0.233184 | 1 | 0 | 0.055332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121076 | false | 0 | 0.035874 | 0.008969 | 0.192825 | 0.058296 | 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 |
40fa3e8faf236cf11c391bbbffb1a673d67006ef | 2,541 | py | Python | autolens/interferometer/model/result.py | Jammy2211/PyAutoLens | 728100a3bf13f89f35030724aa08593ab44e65eb | [
"MIT"
] | 114 | 2018-03-05T07:31:47.000Z | 2022-03-08T06:40:52.000Z | autolens/interferometer/model/result.py | Jammy2211/PyAutoLens | 728100a3bf13f89f35030724aa08593ab44e65eb | [
"MIT"
] | 143 | 2018-01-31T09:57:13.000Z | 2022-03-16T09:41:05.000Z | autolens/interferometer/model/result.py | Jammy2211/PyAutoLens | 728100a3bf13f89f35030724aa08593ab44e65eb | [
"MIT"
] | 33 | 2018-01-31T12:15:57.000Z | 2022-01-08T18:31:02.000Z | import numpy as np
import autoarray as aa
import autogalaxy as ag
from autolens.lens.model.result import ResultDataset
class ResultInterferometer(ResultDataset):
@property
def max_log_likelihood_fit(self):
return self.analysis.fit_interferometer_for_instance(instance=self.instance)
... | 31.37037 | 89 | 0.675325 | 287 | 2,541 | 5.623693 | 0.240418 | 0.105328 | 0.069393 | 0.082404 | 0.433086 | 0.292441 | 0.210037 | 0.115242 | 0.115242 | 0.065675 | 0 | 0.000536 | 0.266037 | 2,541 | 80 | 90 | 31.7625 | 0.864879 | 0.125541 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.088889 | 0.088889 | 0.511111 | 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 |
40fb5fec2b146e146a23785f222c9aee8be6c225 | 228 | py | Python | Ogrenciler/Eren/tekmiciftmii.py | ProEgitim/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | 1 | 2021-04-18T17:35:22.000Z | 2021-04-18T17:35:22.000Z | Ogrenciler/Eren/tekmiciftmii.py | waroi/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | null | null | null | Ogrenciler/Eren/tekmiciftmii.py | waroi/Python-Dersleri-BEM | b25e9fdb1fa3026925a46b2fcbcba348726b775c | [
"MIT"
] | 2 | 2021-04-18T18:22:26.000Z | 2021-04-24T17:16:19.000Z | #kullanıcıdan alınan bir sayının tek mi ya da çift mi olduğunu bulan kodu yazınız
sayi = int(input("Bir Sayı Giriniz : "))
if sayi%2==0:
print(" Sayısı Çift Sayıdır. ",sayi)
else:
print(" Sayısı Tek Sayıdır. ",sayi ) | 28.5 | 81 | 0.684211 | 35 | 228 | 4.457143 | 0.714286 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.201754 | 228 | 8 | 82 | 28.5 | 0.846154 | 0.350877 | 0 | 0 | 0 | 0 | 0.418919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc047fd858075996b3945324de7414bb2c62dcbd | 715 | py | Python | lang/py/pylib/code/xmlrpclib/xmlrpclib_types_nested.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/xmlrpclib/xmlrpclib_types_nested.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/xmlrpclib/xmlrpclib_types_nested.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""
#end_pymotw_header
import xmlrpclib
import datetime
import pprint
server = xmlrpclib.ServerProxy('http://localhost:9000')
data = { 'boolean':True,
'integer': 1,
'floating-point number': 2.5,... | 18.815789 | 55 | 0.58042 | 87 | 715 | 4.735632 | 0.701149 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025547 | 0.233566 | 715 | 37 | 56 | 19.324324 | 0.726277 | 0.14965 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc09e31490cc94606b01c53b7cb11dab4c2f38ce | 1,012 | py | Python | payment/migrations/0001_initial.py | Nezale/Cloud_Warehouse_Project | 505dd073862b9f2e49ae76eea255dc7a38175f79 | [
"MIT"
] | 2 | 2018-12-05T00:17:35.000Z | 2018-12-05T00:17:41.000Z | payment/migrations/0001_initial.py | Nezale/Cloud_Warehouse_Project | 505dd073862b9f2e49ae76eea255dc7a38175f79 | [
"MIT"
] | 12 | 2019-01-14T22:57:23.000Z | 2022-03-11T23:38:37.000Z | payment/migrations/0001_initial.py | Nezale/Cloud_Warehouse_Project | 505dd073862b9f2e49ae76eea255dc7a38175f79 | [
"MIT"
] | 3 | 2019-01-24T11:32:09.000Z | 2019-08-26T11:30:31.000Z | # Generated by Django 2.1.4 on 2019-01-23 15:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('payment_method', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 34.896552 | 133 | 0.621542 | 102 | 1,012 | 6.029412 | 0.607843 | 0.039024 | 0.087805 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034211 | 0.249012 | 1,012 | 28 | 134 | 36.142857 | 0.775 | 0.044466 | 0 | 0 | 1 | 0 | 0.15544 | 0.029016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.285714 | 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 |
dc09e6cfa5eebe2a970cd143544704b3431139f3 | 958 | py | Python | test/test_exporter.py | MattCzyr/EvacSim | d2fd191e8fb93d210b031794c274c54ebe3a1fe4 | [
"MIT"
] | 1 | 2019-11-03T16:58:28.000Z | 2019-11-03T16:58:28.000Z | test/test_exporter.py | MattCzyr/EvacuationPlanner | d2fd191e8fb93d210b031794c274c54ebe3a1fe4 | [
"MIT"
] | 12 | 2021-03-23T04:02:04.000Z | 2021-04-30T22:55:54.000Z | test/test_exporter.py | MattCzyr/EvacuationPlanner | d2fd191e8fb93d210b031794c274c54ebe3a1fe4 | [
"MIT"
] | null | null | null | import unittest
import os
import evacsim.node
import evacsim.edge
import evacsim.disaster
import evacsim.exporter
class TestExporter(unittest.TestCase):
"""Tests functionality in the exporter module. There isn't much to be tested here, so it simply tests
that a KML file with the proper name is created when ... | 43.545455 | 172 | 0.68476 | 129 | 958 | 5.046512 | 0.51938 | 0.079877 | 0.036866 | 0.061444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075738 | 0.186848 | 958 | 21 | 173 | 45.619048 | 0.759949 | 0.22547 | 0 | 0 | 0 | 0 | 0.099448 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.375 | 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 |
dc16f83963911bc447f884b6e6f1c378e114241a | 1,401 | py | Python | scripts/setEnv.py | elastest/elastest-toolbox | bd06c8f0a9d8e2f9707cef8cae2f69d28dabea25 | [
"Apache-2.0"
] | 2 | 2017-11-23T06:27:52.000Z | 2021-05-25T20:23:13.000Z | scripts/setEnv.py | elastest/elastest-toolbox | bd06c8f0a9d8e2f9707cef8cae2f69d28dabea25 | [
"Apache-2.0"
] | 2 | 2017-09-26T11:54:46.000Z | 2019-10-03T13:13:54.000Z | scripts/setEnv.py | elastest/elastest-toolbox | bd06c8f0a9d8e2f9707cef8cae2f69d28dabea25 | [
"Apache-2.0"
] | 3 | 2017-10-02T14:52:14.000Z | 2019-10-24T07:40:28.000Z | #!/usr/bin/python3 -u
import fileinput
def appendLine(path, line):
with open(path, "a") as f:
f.write(line + "\n")
def searchAndReplace(path, pattern, value):
for line in fileinput.input(path, inplace = True):
print line.replace(pattern, value),
def setServerAddress(address):
etm_dir = '../etm'
env_var... | 29.1875 | 81 | 0.734475 | 207 | 1,401 | 4.695652 | 0.31401 | 0.080247 | 0.061728 | 0.061728 | 0.557613 | 0.476337 | 0.476337 | 0.352881 | 0.352881 | 0.352881 | 0 | 0.003381 | 0.155603 | 1,401 | 47 | 82 | 29.808511 | 0.818259 | 0.014276 | 0 | 0.378378 | 0 | 0 | 0.180566 | 0.04496 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc1913c6f71442d6709d98f48c85928f97229b15 | 2,984 | py | Python | src/key.py | mabels/kleisimo | 1c68217d01093ec233f81c148ad916f45510d182 | [
"Apache-2.0"
] | 1 | 2022-03-14T10:15:40.000Z | 2022-03-14T10:15:40.000Z | src/key.py | mabels/kleisimo | 1c68217d01093ec233f81c148ad916f45510d182 | [
"Apache-2.0"
] | 3 | 2021-11-10T07:34:40.000Z | 2022-03-08T23:38:27.000Z | src/key.py | mabels/kleisimo | 1c68217d01093ec233f81c148ad916f45510d182 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
import uuid
import os
import re
import base58
from typing import Optional
from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305
from cryptography.hazmat.primitives import hashes
@dataclass
class SymetricKeyProps:
alg: str
id: Optional[str] = None
nonce:... | 30.141414 | 97 | 0.639075 | 370 | 2,984 | 4.994595 | 0.232432 | 0.073052 | 0.032468 | 0.032468 | 0.134199 | 0.099567 | 0.099567 | 0.099567 | 0.099567 | 0.044372 | 0 | 0.021105 | 0.253686 | 2,984 | 98 | 98 | 30.44898 | 0.808711 | 0.071716 | 0 | 0.12 | 0 | 0 | 0.028975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.106667 | 0.04 | 0.573333 | 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 |
904b25718ea69983c9d2be29db5ea854f989010e | 19,052 | py | Python | tests/test_client.py | StorjOld/dataserv-client | a1a0052184875bd8f033b7928b2d717ae811b2bb | [
"MIT"
] | 2 | 2016-05-19T16:09:04.000Z | 2016-05-19T16:09:06.000Z | tests/test_client.py | StorjOld/dataserv-client | a1a0052184875bd8f033b7928b2d717ae811b2bb | [
"MIT"
] | null | null | null | tests/test_client.py | StorjOld/dataserv-client | a1a0052184875bd8f033b7928b2d717ae811b2bb | [
"MIT"
] | 4 | 2017-01-04T02:43:29.000Z | 2020-05-17T19:09:54.000Z | from dataserv_client import common
import os
import tempfile
import unittest
import datetime
import json
import psutil
from future.moves.urllib.request import urlopen
from dataserv_client import cli
from dataserv_client import api
from btctxstore import BtcTxStore
from dataserv_client import exceptions
url = "http://... | 33.660777 | 80 | 0.571961 | 1,963 | 19,052 | 5.383087 | 0.106979 | 0.052995 | 0.073247 | 0.086306 | 0.784518 | 0.717706 | 0.693385 | 0.64815 | 0.61181 | 0.580581 | 0 | 0.019611 | 0.309469 | 19,052 | 565 | 81 | 33.720354 | 0.783597 | 0.031545 | 0 | 0.669623 | 0 | 0 | 0.081524 | 0.002497 | 0 | 0 | 0 | 0 | 0.135255 | 1 | 0.150776 | false | 0 | 0.026608 | 0 | 0.201774 | 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 |
904b84647c9fa43dae43fbac8e606a75e427e93c | 10,770 | py | Python | scripts/busybox-ping-test/create_test_cases.py | yanguozhu/alcor | c02e1db3ebe09d1c3d9c26ba1bb76423afbffca2 | [
"MIT"
] | null | null | null | scripts/busybox-ping-test/create_test_cases.py | yanguozhu/alcor | c02e1db3ebe09d1c3d9c26ba1bb76423afbffca2 | [
"MIT"
] | null | null | null | scripts/busybox-ping-test/create_test_cases.py | yanguozhu/alcor | c02e1db3ebe09d1c3d9c26ba1bb76423afbffca2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# MIT License
# Copyright(c) 2020 Futurewei Cloud
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | 47.030568 | 1,002 | 0.720706 | 1,567 | 10,770 | 4.674537 | 0.188258 | 0.029625 | 0.01843 | 0.022935 | 0.413925 | 0.345802 | 0.323686 | 0.278089 | 0.278089 | 0.278089 | 0 | 0.007781 | 0.152739 | 10,770 | 228 | 1,003 | 47.236842 | 0.794959 | 0.236955 | 0 | 0.353742 | 0 | 0 | 0.274721 | 0.022546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.006803 | 0 | 0.088435 | 0.170068 | 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 |
904ba8eccbda391a00dbef97b00866cf27e8e36e | 1,209 | py | Python | wikilabels/utilities/task_inserts.py | aryan040501/wikilabels | ea110da2b969cc978a0f288c4da6250dc9d67e72 | [
"MIT"
] | 15 | 2015-07-16T17:56:43.000Z | 2018-08-20T14:59:16.000Z | wikilabels/utilities/task_inserts.py | aryan040501/wikilabels | ea110da2b969cc978a0f288c4da6250dc9d67e72 | [
"MIT"
] | 122 | 2015-06-10T15:58:11.000Z | 2018-08-16T14:56:23.000Z | wikilabels/utilities/task_inserts.py | aryan040501/wikilabels | ea110da2b969cc978a0f288c4da6250dc9d67e72 | [
"MIT"
] | 27 | 2015-07-15T22:12:35.000Z | 2018-08-06T23:10:28.000Z | """
Inserts a set of tasks into a campaign
Usage:
load_tasks -h | --help
load_tasks <campaign-id> [--config=<path>]
Arguments:
<campaign-id> The campaign that the tasks should be associated with
Options:
-h --help Prints this documentation
--config=<path> Path to a config directory to us... | 21.981818 | 72 | 0.664185 | 166 | 1,209 | 4.728916 | 0.451807 | 0.101911 | 0.057325 | 0.048408 | 0.050955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227461 | 1,209 | 54 | 73 | 22.388889 | 0.840471 | 0.367246 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.32 | 0 | 0.44 | 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 |
90530ac7399661d663eb0780c3041143253710c2 | 6,713 | py | Python | src/pycropml/render_fortran.py | sielenk-yara/PyCrop2ML | dfcab79061fa71d4343120573b50b6232812999e | [
"MIT"
] | null | null | null | src/pycropml/render_fortran.py | sielenk-yara/PyCrop2ML | dfcab79061fa71d4343120573b50b6232812999e | [
"MIT"
] | null | null | null | src/pycropml/render_fortran.py | sielenk-yara/PyCrop2ML | dfcab79061fa71d4343120573b50b6232812999e | [
"MIT"
] | null | null | null | """Add License, Header.
Use pkglts
Problems:
- name of a model unit?
"""
from __future__ import print_function
from __future__ import absolute_import
from path import Path
from pycropml.formater_f90 import formater
import six
import os
from pycropml.composition import model_parser
class Model2Package(object):
... | 39.721893 | 129 | 0.496648 | 734 | 6,713 | 4.405995 | 0.245232 | 0.006803 | 0.009276 | 0.006184 | 0.117502 | 0.077613 | 0.025974 | 0.015461 | 0 | 0 | 0 | 0.008264 | 0.369135 | 6,713 | 168 | 130 | 39.958333 | 0.755372 | 0.067332 | 0 | 0.045455 | 0 | 0 | 0.149028 | 0.004336 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.045455 | false | 0 | 0.060606 | 0 | 0.174242 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9057697d1064019dc81e89d6c49a53b4a8291a0d | 386 | py | Python | streamprox/__init__.py | ibmcb/StreamProx | 7e74b7138c4f9aea773d5ead7a48b7c9e503feca | [
"MIT"
] | 1 | 2017-06-10T20:14:48.000Z | 2017-06-10T20:14:48.000Z | streamprox/__init__.py | hinesmr/StreamProx | deeb07befb3127310ee1ccd9148ee84db6b168a7 | [
"MIT"
] | null | null | null | streamprox/__init__.py | hinesmr/StreamProx | deeb07befb3127310ee1ccd9148ee84db6b168a7 | [
"MIT"
] | null | null | null | ################################################################
# Copyright 2012 Sheffler
################################################################
try:
import pkg_resources
version = pkg_resources.require("StreamProx")[0].version
except:
## i.e. no setuptools or no package installed ...
versio... | 24.125 | 64 | 0.468912 | 31 | 386 | 5.741935 | 0.741935 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014881 | 0.129534 | 386 | 15 | 65 | 25.733333 | 0.514881 | 0.181347 | 0 | 0 | 0 | 0 | 0.081522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
905a0647cc61d2706c5e23b36f746e5874225c16 | 1,604 | py | Python | norns/enemy/migrations/0007_auto_20180522_2102.py | the-norns/norns | 8856626fb6937452c123e4629a5888a49a82c349 | [
"MIT"
] | null | null | null | norns/enemy/migrations/0007_auto_20180522_2102.py | the-norns/norns | 8856626fb6937452c123e4629a5888a49a82c349 | [
"MIT"
] | 62 | 2018-05-19T22:18:01.000Z | 2018-05-26T00:13:21.000Z | norns/enemy/migrations/0007_auto_20180522_2102.py | the-norns/norns | 8856626fb6937452c123e4629a5888a49a82c349 | [
"MIT"
] | 3 | 2018-05-19T18:54:28.000Z | 2018-05-21T02:14:47.000Z | # Generated by Django 2.0.5 on 2018-05-22 21:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('room', '0006_room_grid_size'),
('enemy', '0006_auto_20180522_1953'),
]
operations = [
migrations.Cr... | 34.12766 | 128 | 0.587905 | 170 | 1,604 | 5.417647 | 0.4 | 0.052117 | 0.076004 | 0.119435 | 0.439739 | 0.439739 | 0.279045 | 0.279045 | 0.279045 | 0.279045 | 0 | 0.032815 | 0.278055 | 1,604 | 46 | 129 | 34.869565 | 0.762522 | 0.028055 | 0 | 0.375 | 1 | 0 | 0.117534 | 0.014772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.125 | 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 |
905bb86ee8702bccbec9cc4b4546e2dbe38564f4 | 3,539 | py | Python | jsoncsv/dumptool.py | loftwah/jsoncsv | eec6a1e38d3d7430268c1a7962b200ffcb2b15ae | [
"Apache-2.0"
] | 74 | 2016-07-28T01:47:22.000Z | 2022-03-09T02:49:37.000Z | jsoncsv/dumptool.py | loftwah/jsoncsv | eec6a1e38d3d7430268c1a7962b200ffcb2b15ae | [
"Apache-2.0"
] | 31 | 2017-07-11T09:24:48.000Z | 2021-07-30T03:59:54.000Z | jsoncsv/dumptool.py | loftwah/jsoncsv | eec6a1e38d3d7430268c1a7962b200ffcb2b15ae | [
"Apache-2.0"
] | 20 | 2016-10-30T10:58:38.000Z | 2022-01-11T02:11:00.000Z | # coding=utf-8
# author@alingse
# 2015.10.09
import json
import unicodecsv as csv
import xlwt
class Dump(object):
def __init__(self, fin, fout, **kwargs):
self.fin = fin
self.fout = fout
self.initialize(**kwargs)
def initialize(self, **kwargs):
pass
def prepare(self):
... | 23.751678 | 71 | 0.567674 | 427 | 3,539 | 4.576112 | 0.217799 | 0.032242 | 0.040942 | 0.047083 | 0.179632 | 0.089048 | 0.051177 | 0 | 0 | 0 | 0 | 0.00875 | 0.321842 | 3,539 | 148 | 72 | 23.912162 | 0.805417 | 0.022323 | 0 | 0.300971 | 0 | 0 | 0.016218 | 0 | 0 | 0 | 0 | 0.006757 | 0 | 1 | 0.203884 | false | 0.029126 | 0.029126 | 0 | 0.31068 | 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 |
905fba1e97ed2cc13e9e6abb7cb754f1154f2ab0 | 429 | py | Python | hard-gists/814599/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/814599/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/814599/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z |
from MySQLdb.cursors import SSDictCursor
def iterate_query(query, connection, arraysize=1):
c = connection.cursor(cursorclass=SSDictCursor)
c.execute(query)
while True:
nextrows = c.fetchmany(arraysize)
if not nextrows:
break
for row in nextrows:
yield row
... | 22.578947 | 51 | 0.666667 | 53 | 429 | 5.320755 | 0.622642 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.258741 | 429 | 18 | 52 | 23.833333 | 0.874214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90614ca87429518f3792a79add34939091863d19 | 3,383 | py | Python | algorithms/lifo.py | danielr18/ProcessSchedulingDisciplines | 468df5c57c666316793689356ad5645bf204ea9e | [
"MIT"
] | null | null | null | algorithms/lifo.py | danielr18/ProcessSchedulingDisciplines | 468df5c57c666316793689356ad5645bf204ea9e | [
"MIT"
] | null | null | null | algorithms/lifo.py | danielr18/ProcessSchedulingDisciplines | 468df5c57c666316793689356ad5645bf204ea9e | [
"MIT"
] | null | null | null | import unittest
from bisect import bisect_right
from time import time
from namedlist import namedlist
Process = namedlist('Process', ['name', 'ti', 't', ('tf', None), ('T', None), ('E', None), ('I', None)])
def find_le(a, x, lo, hi):
# Find rightmost value less than or equal to x
i = bisect_right(a, x, lo, ... | 28.91453 | 104 | 0.534141 | 399 | 3,383 | 4.491228 | 0.210526 | 0.137835 | 0.188616 | 0.063616 | 0.285714 | 0.229911 | 0 | 0 | 0 | 0 | 0 | 0.046194 | 0.328111 | 3,383 | 116 | 105 | 29.163793 | 0.742191 | 0.013006 | 0 | 0.166667 | 0 | 0 | 0.015883 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.083333 | false | 0 | 0.047619 | 0 | 0.214286 | 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 |
9062484143d1ade3b70953a265b2792198b34efe | 3,363 | py | Python | credential_test.py | jmuema/password-locker | ba1653e801ca99821a23264b006b19fa00a3b518 | [
"Unlicense"
] | null | null | null | credential_test.py | jmuema/password-locker | ba1653e801ca99821a23264b006b19fa00a3b518 | [
"Unlicense"
] | null | null | null | credential_test.py | jmuema/password-locker | ba1653e801ca99821a23264b006b19fa00a3b518 | [
"Unlicense"
] | null | null | null | import unittest # Importing the unittest module
from credential import Credential # Importing the credential class
class TestCredential(unittest.TestCase):
'''
Test class that defines test cases for the credential class behaviours.
Args:
unittest.TestCase: TestCase class that helps in creating te... | 34.670103 | 104 | 0.680048 | 372 | 3,363 | 5.959677 | 0.241935 | 0.087957 | 0.07668 | 0.081191 | 0.423996 | 0.360397 | 0.343257 | 0.267028 | 0.22553 | 0.22553 | 0 | 0.005832 | 0.235207 | 3,363 | 96 | 105 | 35.03125 | 0.856143 | 0.28427 | 0 | 0.365854 | 0 | 0 | 0.07963 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.219512 | false | 0.04878 | 0.04878 | 0 | 0.292683 | 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 |
90678f8cd4ef1334cb0eec6685fec68c686510a6 | 2,309 | py | Python | schema.py | MaoRodriguesJ/neo4j-schema-extract-code | 785abe825c3df2197dfe116062a858cea146afc1 | [
"MIT"
] | null | null | null | schema.py | MaoRodriguesJ/neo4j-schema-extract-code | 785abe825c3df2197dfe116062a858cea146afc1 | [
"MIT"
] | null | null | null | schema.py | MaoRodriguesJ/neo4j-schema-extract-code | 785abe825c3df2197dfe116062a858cea146afc1 | [
"MIT"
] | null | null | null | from collator import Collator
from database import Database
from driver import Driver
from extractor import Extractor
from parser import Parser
from pathlib import Path
import sys, os, json
class Schema():
# Schema get the input from the Collator and the Extractor to feed the Parser
# and generate a list of re... | 31.630137 | 90 | 0.627544 | 272 | 2,309 | 5.147059 | 0.316176 | 0.074286 | 0.021429 | 0.072857 | 0.152857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009297 | 0.254656 | 2,309 | 72 | 91 | 32.069444 | 0.804184 | 0.055002 | 0 | 0 | 0 | 0 | 0.111978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.057692 | 0.134615 | 0 | 0.230769 | 0.211538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9068110b871ef78d44b76a99ad3e628595b08ece | 394 | py | Python | tools/tools.py | zhengyangb/NLU2019 | 690ad35e8028d6547ca1d5f71641fb02c377369c | [
"BSD-3-Clause"
] | null | null | null | tools/tools.py | zhengyangb/NLU2019 | 690ad35e8028d6547ca1d5f71641fb02c377369c | [
"BSD-3-Clause"
] | null | null | null | tools/tools.py | zhengyangb/NLU2019 | 690ad35e8028d6547ca1d5f71641fb02c377369c | [
"BSD-3-Clause"
] | null | null | null | import datetime as dt
import logging
import time
import os
def date_hash():
return dt.datetime.now().strftime('%y%m%d%H%M') + str(hash(time.time()))[:4]
def print_log(fname, content):
logging.basicConfig(filename=os.path.join(fname + '.log'), level=logging.ERROR)
logger = logging.getLogger('model')
... | 23.176471 | 83 | 0.69797 | 57 | 394 | 4.789474 | 0.596491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.14467 | 394 | 16 | 84 | 24.625 | 0.807122 | 0 | 0 | 0 | 0 | 0 | 0.048223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.083333 | 0.583333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
90683122bb84cde79e92c24929d9dbb7c996d0bc | 1,378 | py | Python | datastructures/dynamicarray/DynamicArray.py | venkatacrc/Algorithms | 0c64280f3bc2b5c0563eebf162c448ce0ca646a5 | [
"MIT"
] | null | null | null | datastructures/dynamicarray/DynamicArray.py | venkatacrc/Algorithms | 0c64280f3bc2b5c0563eebf162c448ce0ca646a5 | [
"MIT"
] | null | null | null | datastructures/dynamicarray/DynamicArray.py | venkatacrc/Algorithms | 0c64280f3bc2b5c0563eebf162c448ce0ca646a5 | [
"MIT"
] | null | null | null | class DynamicArray(object):
def __init__(self, capacity=0):
self.capacity = capacity
if not capacity:
self.arr = None
self.len = 0
else:
self.len = 0
self.arr = []
def size(self):
return self.len
def isEmpty(self):
return self.len == 0
def get(self, index):
if ... | 20.567164 | 63 | 0.576197 | 206 | 1,378 | 3.796117 | 0.218447 | 0.116368 | 0.040921 | 0.053708 | 0.205882 | 0.184143 | 0.138107 | 0.138107 | 0.138107 | 0.138107 | 0 | 0.015353 | 0.291001 | 1,378 | 66 | 64 | 20.878788 | 0.785056 | 0 | 0 | 0.14 | 0 | 0 | 0.066134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
906c97ada7fe717c3af6eaf4e4cefedc965b6847 | 656 | py | Python | src/masonite/notification/drivers/MailDriver.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 35 | 2018-01-08T01:20:16.000Z | 2018-02-06T02:37:14.000Z | src/masonite/notification/drivers/MailDriver.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 55 | 2018-01-03T02:42:03.000Z | 2018-02-06T13:35:54.000Z | src/masonite/notification/drivers/MailDriver.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 4 | 2018-01-08T13:13:14.000Z | 2018-01-12T19:35:32.000Z | """Mail notification driver."""
from .BaseDriver import BaseDriver
class MailDriver(BaseDriver):
def __init__(self, application):
self.application = application
self.options = {}
def set_options(self, options):
self.options = options
return self
def send(self, notifiable... | 29.818182 | 70 | 0.653963 | 68 | 656 | 6.176471 | 0.441176 | 0.107143 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237805 | 656 | 21 | 71 | 31.238095 | 0.84 | 0.074695 | 0 | 0 | 0 | 0 | 0.020134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 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 |
906d09b2a60eb2d250ddf25a873d42e2ebffcc51 | 574 | py | Python | comments/utils.py | ggetzie/nnr | a8b1b1d771027edee2c19062f39fa982cfd024b0 | [
"MIT"
] | null | null | null | comments/utils.py | ggetzie/nnr | a8b1b1d771027edee2c19062f39fa982cfd024b0 | [
"MIT"
] | 5 | 2020-07-28T12:41:50.000Z | 2022-01-21T23:27:15.000Z | comments/utils.py | ggetzie/nnr | a8b1b1d771027edee2c19062f39fa982cfd024b0 | [
"MIT"
] | null | null | null | import random
import string
from django.contrib.auth import get_user_model
from comments.models import Comment
from recipes.models import Recipe
User = get_user_model()
def random_comment(recipe):
length = random.randint(50, 1000)
text = "".join([random.choice(string.printable) for _ in range(length)])
... | 27.333333 | 76 | 0.637631 | 68 | 574 | 5.235294 | 0.544118 | 0.039326 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016787 | 0.273519 | 574 | 20 | 77 | 28.7 | 0.83693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
907237bb3504458848bde6e197d2f932929b157f | 333 | py | Python | Manager/PageInstace.py | yasserfaraazkhan/Python_selenium_StackOverflow | e7a9d0a686b745e65034797ce65bd0de8168385f | [
"MIT"
] | null | null | null | Manager/PageInstace.py | yasserfaraazkhan/Python_selenium_StackOverflow | e7a9d0a686b745e65034797ce65bd0de8168385f | [
"MIT"
] | null | null | null | Manager/PageInstace.py | yasserfaraazkhan/Python_selenium_StackOverflow | e7a9d0a686b745e65034797ce65bd0de8168385f | [
"MIT"
] | null | null | null | from WebPages.HomePage import *
from configuration.BaseClass import *
class ClassInstance(BaseClass):
home_page = None
payment_page = None
flipkart_page = None
def get_home_page(self):
if self.home_page == None:
self.home_page = HomePageFunctions(self.getDriver())
return se... | 25.615385 | 64 | 0.696697 | 40 | 333 | 5.6 | 0.5 | 0.178571 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228228 | 333 | 12 | 65 | 27.75 | 0.871595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
90754a50d0d8cab5cb7eb6fc7575d0895b23c771 | 2,632 | py | Python | rxbp/observers/connectableobserver.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 24 | 2018-11-22T21:04:49.000Z | 2021-11-08T11:18:09.000Z | rxbp/observers/connectableobserver.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2019-02-06T15:58:46.000Z | 2019-02-12T20:31:50.000Z | rxbp/observers/connectableobserver.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2021-01-26T12:41:37.000Z | 2021-01-26T12:41:37.000Z | from dataclasses import dataclass
from rxbp.acknowledgement.acksubject import AckSubject
from rxbp.acknowledgement.continueack import ContinueAck, continue_ack
from rxbp.acknowledgement.operators.map import _map
from rxbp.acknowledgement.operators.mergeall import _merge_all
from rxbp.acknowledgement.single import Sing... | 34.181818 | 117 | 0.637158 | 290 | 2,632 | 5.544828 | 0.203448 | 0.044776 | 0.089552 | 0.020522 | 0.395522 | 0.357587 | 0.357587 | 0.357587 | 0.328358 | 0.328358 | 0 | 0 | 0.285334 | 2,632 | 76 | 118 | 34.631579 | 0.854864 | 0.120821 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.137931 | false | 0 | 0.172414 | 0 | 0.465517 | 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 |
9075913c57da3bde86f3690c408c332989174bff | 496 | py | Python | faker/providers/company/ro_RO/__init__.py | jeffwright13/faker | 9192d5143d5f1b832cc0f44b3f7ee89ca28c975a | [
"MIT"
] | 3 | 2019-03-06T03:02:25.000Z | 2021-11-26T07:30:43.000Z | faker/providers/company/ro_RO/__init__.py | Haytam222/faker | 9929afc9c9fd4bd75f2ad4b7eb9c132e67e66ce8 | [
"MIT"
] | 2 | 2021-05-12T06:25:57.000Z | 2022-03-01T04:16:03.000Z | faker/providers/company/ro_RO/__init__.py | Haytam222/faker | 9929afc9c9fd4bd75f2ad4b7eb9c132e67e66ce8 | [
"MIT"
] | 2 | 2021-09-22T12:47:59.000Z | 2021-12-10T08:18:23.000Z | from .. import Provider as CompanyProvider
class Provider(CompanyProvider):
formats = (
'{{last_name}} {{company_suffix}}',
'{{last_name}} {{last_name}} {{company_suffix}}',
'{{last_name}}',
)
company_suffixes = (
'SRL', 'SA', 'SCA', 'SNC', 'SCS', 'AFJ', 'ASF', 'CON', 'CR... | 26.105263 | 76 | 0.544355 | 53 | 496 | 4.90566 | 0.660377 | 0.123077 | 0.173077 | 0.161538 | 0.223077 | 0.223077 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.237903 | 496 | 18 | 77 | 27.555556 | 0.679894 | 0 | 0 | 0 | 0 | 0 | 0.294355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.076923 | 0.461538 | 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 |
907a7e8216a42b1ff660664b5693ec6f75daa871 | 4,920 | py | Python | Profile/views.py | RAPTOR-XR/Meety-Version_2.0 | c93e108995c8ffd687b2475c8fd9f9d93dbafcfb | [
"MIT"
] | null | null | null | Profile/views.py | RAPTOR-XR/Meety-Version_2.0 | c93e108995c8ffd687b2475c8fd9f9d93dbafcfb | [
"MIT"
] | null | null | null | Profile/views.py | RAPTOR-XR/Meety-Version_2.0 | c93e108995c8ffd687b2475c8fd9f9d93dbafcfb | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from Profile.forms import SignupForm, ChangePasswordForm, EditProfileForm
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.contrib.auth import update_session_auth_hash
from Profile.models ... | 30 | 90 | 0.75752 | 629 | 4,920 | 5.771065 | 0.187599 | 0.027548 | 0.041322 | 0.049587 | 0.489532 | 0.377961 | 0.307989 | 0.271625 | 0.271625 | 0.271625 | 0 | 0.004618 | 0.119715 | 4,920 | 164 | 91 | 30 | 0.833526 | 0 | 0 | 0.427481 | 0 | 0 | 0.0823 | 0.009348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053435 | false | 0.091603 | 0.099237 | 0.007634 | 0.236641 | 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 |
907d77c5621de728c428431322b165b35ea81ad7 | 3,371 | py | Python | src/fidesops/schemas/policy.py | eastandwestwind/fidesops | 93e2881c0fdc30075b7cc22024965d18cec0bdea | [
"Apache-2.0"
] | null | null | null | src/fidesops/schemas/policy.py | eastandwestwind/fidesops | 93e2881c0fdc30075b7cc22024965d18cec0bdea | [
"Apache-2.0"
] | null | null | null | src/fidesops/schemas/policy.py | eastandwestwind/fidesops | 93e2881c0fdc30075b7cc22024965d18cec0bdea | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List, Optional, Union
from fidesops.schemas.shared_schemas import FidesOpsKey
from fidesops.models.policy import (
ActionType,
DataCategory,
)
from fidesops.schemas.api import BulkResponse, BulkUpdateFailed
from fidesops.schemas.base_class import BaseSchema
from fidesops.schemas.maskin... | 29.060345 | 101 | 0.753782 | 382 | 3,371 | 6.604712 | 0.308901 | 0.028537 | 0.037654 | 0.016647 | 0.391994 | 0.33809 | 0.310345 | 0.196195 | 0.161316 | 0.161316 | 0 | 0 | 0.176209 | 3,371 | 115 | 102 | 29.313043 | 0.908534 | 0.384159 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.14 | 0 | 0.9 | 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 |
907f0a6773e5dc92e4ce3a0c5c1b24e345787a9f | 1,389 | py | Python | satori.core/satori/core/management/commands/start.py | Cloud11665/satori-git | ea1855a920c98b480423bf247bce6e5626985c4a | [
"MIT"
] | 4 | 2021-01-05T01:35:36.000Z | 2021-12-13T00:05:14.000Z | satori.core/satori/core/management/commands/start.py | Cloud11665/satori-git | ea1855a920c98b480423bf247bce6e5626985c4a | [
"MIT"
] | 2 | 2020-06-06T01:12:07.000Z | 2020-06-06T01:16:01.000Z | satori.core/satori/core/management/commands/start.py | Cloud11665/satori-git | ea1855a920c98b480423bf247bce6e5626985c4a | [
"MIT"
] | 2 | 2021-01-05T01:33:30.000Z | 2021-03-06T13:48:21.000Z | # vim:ts=4:sts=4:sw=4:expandtab
from django.conf import settings
from django.core.management.base import NoArgsCommand
from optparse import make_option
import os
from setproctitle import setproctitle
from signal import signal, SIGINT, SIGHUP, SIGTERM
import signal as signal_module
import sys... | 28.346939 | 96 | 0.634269 | 153 | 1,389 | 5.640523 | 0.496732 | 0.05562 | 0.053302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00496 | 0.274298 | 1,389 | 48 | 97 | 28.9375 | 0.85119 | 0.034557 | 0 | 0.064516 | 0 | 0 | 0.077844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.290323 | 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 |
908890aa7171c389181c93463b7d03ccecf99899 | 7,849 | py | Python | venv/lib/python2.7/site-packages/passlib/ifc.py | MissCatLady/AlarmEZ | 3942f0b9bb1f7eafb009b3a93df00320c7f74218 | [
"MIT"
] | 1 | 2021-08-23T14:57:31.000Z | 2021-08-23T14:57:31.000Z | venv/lib/python2.7/site-packages/passlib/ifc.py | MissCatLady/AlarmEZ | 3942f0b9bb1f7eafb009b3a93df00320c7f74218 | [
"MIT"
] | 309 | 2016-10-27T23:47:06.000Z | 2017-04-02T04:40:21.000Z | venv/lib/python2.7/site-packages/passlib/ifc.py | MissCatLady/AlarmEZ | 3942f0b9bb1f7eafb009b3a93df00320c7f74218 | [
"MIT"
] | 1 | 2020-01-09T04:53:32.000Z | 2020-01-09T04:53:32.000Z | """passlib.ifc - abstract interfaces used by Passlib"""
#=============================================================================
# imports
#=============================================================================
# core
import logging; log = logging.getLogger(__name__)
import sys
# site
# pkg
# local
__all__... | 40.458763 | 95 | 0.480953 | 672 | 7,849 | 5.525298 | 0.409226 | 0.014813 | 0.037705 | 0.028279 | 0.162941 | 0.155669 | 0.130622 | 0.086184 | 0.086184 | 0.086184 | 0 | 0.002178 | 0.18117 | 7,849 | 193 | 96 | 40.668394 | 0.575541 | 0.731303 | 0 | 0.333333 | 0 | 0 | 0.216808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0.066667 | 0.066667 | 0.022222 | 0.355556 | 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 |
9093b4e2566f7f724c3a08fcaeb8afeb99071827 | 4,683 | py | Python | server/data/city_timezones.py | MikeSmvl/travelingstrategy | 3d38c64f00bafdf2ca1079d14f9b618bce8307b0 | [
"MIT"
] | null | null | null | server/data/city_timezones.py | MikeSmvl/travelingstrategy | 3d38c64f00bafdf2ca1079d14f9b618bce8307b0 | [
"MIT"
] | 2 | 2021-05-08T23:09:17.000Z | 2021-09-02T11:27:08.000Z | server/data/city_timezones.py | MikeSmvl/travelingstrategy | 3d38c64f00bafdf2ca1079d14f9b618bce8307b0 | [
"MIT"
] | 2 | 2020-10-14T01:18:32.000Z | 2020-11-09T16:54:16.000Z | import json
import datetime
import pytz
import math
from bs4 import BeautifulSoup
from helper_class.chrome_driver import create_driver, quit_driver
import urllib.request, json,urllib.parse
import contextlib
import traceback
from lib.database import Database
from helper_class.flags import Flags
from helper_class.logger ... | 41.078947 | 154 | 0.62887 | 557 | 4,683 | 5.068223 | 0.280072 | 0.050655 | 0.019129 | 0.029756 | 0.273468 | 0.247963 | 0.231668 | 0.187744 | 0.187744 | 0.187744 | 0 | 0.015777 | 0.255605 | 4,683 | 114 | 155 | 41.078947 | 0.794033 | 0.105274 | 0 | 0.086957 | 0 | 0.032609 | 0.215893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | 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 |
90976901ca42ec9327dff8a2ac08a351ba2f8377 | 3,545 | py | Python | database/csv_to_sqlite.py | drexelwireless/iot-sensor-framework | 22feca5246d1cb725522d53096a2979c2dc8ed1b | [
"CNRI-Python"
] | 6 | 2019-06-20T18:19:18.000Z | 2020-05-17T04:35:11.000Z | database/csv_to_sqlite.py | drexelwireless/iot-sensor-framework | 22feca5246d1cb725522d53096a2979c2dc8ed1b | [
"CNRI-Python"
] | null | null | null | database/csv_to_sqlite.py | drexelwireless/iot-sensor-framework | 22feca5246d1cb725522d53096a2979c2dc8ed1b | [
"CNRI-Python"
] | 5 | 2019-12-16T15:52:47.000Z | 2021-09-17T16:09:27.000Z | import sys
import getopt
import csv
import os
import base64
from mycrypto import MyCrypto
from database import Database
from database_sqlite import SqliteDatabase
import time
# OPTIONS
def usage(flask_host, db_path, key_path_prefix, password, csvpath):
print('%s [<options>]' % sys.argv[0])
print('where <opti... | 29.057377 | 96 | 0.614669 | 476 | 3,545 | 4.457983 | 0.304622 | 0.025448 | 0.055137 | 0.035344 | 0.145146 | 0.126296 | 0.126296 | 0.113101 | 0.085768 | 0.04524 | 0 | 0.021881 | 0.265162 | 3,545 | 121 | 97 | 29.297521 | 0.792706 | 0.144147 | 0 | 0.05 | 0 | 0.0125 | 0.160862 | 0.007297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.15 | 0.1125 | 0 | 0.25 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9099a1b81eeb98274fb68ff3e0585357020262ae | 862 | py | Python | release/stubs.min/Autodesk/Revit/UI/__init___parts/TableViewUIUtils.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Autodesk/Revit/UI/__init___parts/TableViewUIUtils.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Autodesk/Revit/UI/__init___parts/TableViewUIUtils.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class TableViewUIUtils(object):
""" This utility class contains members that involve the Revit UI and operate on schedule views or MEP electrical panel schedules. """
@staticmethod
def TestCellAndPromptToEditTypeParameter(tableView,sectionType,row,column):
"""
TestCellAndPromptToEditTypeParameter(tableView:... | 26.121212 | 136 | 0.723898 | 99 | 862 | 6.262626 | 0.626263 | 0.024194 | 0.032258 | 0.054839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214617 | 862 | 32 | 137 | 26.9375 | 0.915805 | 0.694896 | 0 | 0 | 0 | 0 | 0.1875 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 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 |
909fac927c2137ce8747275735b5a302c517fd24 | 582 | py | Python | Day 23 - Intermediate - The Turtle Crossing Capstone Project/scoreboard.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | Day 23 - Intermediate - The Turtle Crossing Capstone Project/scoreboard.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | Day 23 - Intermediate - The Turtle Crossing Capstone Project/scoreboard.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | from turtle import Turtle
FONT = ("Courier", 20, "bold")
class Scoreboard(Turtle):
def __init__(self) -> None:
super().__init__()
self.hideturtle()
self.penup()
self.goto(-230, 265)
self.level = 0
self.update_score()
def update_score(self):
self.clear(... | 23.28 | 69 | 0.575601 | 73 | 582 | 4.410959 | 0.438356 | 0.083851 | 0.093168 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028504 | 0.276632 | 582 | 25 | 70 | 23.28 | 0.736342 | 0 | 0 | 0.105263 | 0 | 0 | 0.087479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90a508cf94ba885fcffb956b8ea47169313d5e16 | 803 | py | Python | Mundo 3/ex087.py | adonaifariasdev/cursoemvideo-python3 | 1fd35e45b24c52013fa3bc98e723971db8e6b7d1 | [
"MIT"
] | null | null | null | Mundo 3/ex087.py | adonaifariasdev/cursoemvideo-python3 | 1fd35e45b24c52013fa3bc98e723971db8e6b7d1 | [
"MIT"
] | null | null | null | Mundo 3/ex087.py | adonaifariasdev/cursoemvideo-python3 | 1fd35e45b24c52013fa3bc98e723971db8e6b7d1 | [
"MIT"
] | null | null | null | # Aprimore o desafio anterior, mostrando no final:
# A) A soma de todos os valores pares digitados.
# B) A soma dos valores da terceira coluna.
# C) O maior valor da segunda linha.
matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
somaPar = 0
somaCol = 0
for l in range(0, 3):
for c in range(0, 3):
matriz[l][c] = i... | 30.884615 | 71 | 0.581569 | 141 | 803 | 3.312057 | 0.347518 | 0.034261 | 0.044968 | 0.051392 | 0.428266 | 0.428266 | 0.152034 | 0.019272 | 0 | 0 | 0 | 0.045528 | 0.234122 | 803 | 25 | 72 | 32.12 | 0.713821 | 0.214197 | 0 | 0.333333 | 0 | 0 | 0.319422 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.388889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
90a8feec75fa8b831be4458a88c167175ba9e791 | 5,695 | py | Python | apps/netconfig/manager.py | eocho1105/developer-badge-2018-apps | dfc4cb8fd95c15328ff28684fdfc7057002430f8 | [
"Apache-2.0"
] | 9 | 2018-12-25T06:57:39.000Z | 2019-09-29T00:29:16.000Z | apps/netconfig/manager.py | eocho1105/developer-badge-2018-apps | dfc4cb8fd95c15328ff28684fdfc7057002430f8 | [
"Apache-2.0"
] | 1 | 2019-04-11T07:23:04.000Z | 2019-04-11T08:05:29.000Z | apps/netconfig/manager.py | eocho1105/developer-badge-2018-apps | dfc4cb8fd95c15328ff28684fdfc7057002430f8 | [
"Apache-2.0"
] | 9 | 2018-12-25T06:57:41.000Z | 2019-09-29T00:29:20.000Z | import machine
import network
import time
import ugfx
import util
from home.launcher import ButtonGroup, Button, Display
class ConfigManager(Display):
def __init__(self, parent=None):
self.parent = parent
super().__init__()
def reload(self):
if self.parent:
self.parent... | 30.61828 | 113 | 0.581914 | 731 | 5,695 | 4.357045 | 0.21751 | 0.026688 | 0.033909 | 0.028257 | 0.221036 | 0.191209 | 0.132496 | 0.102041 | 0.044898 | 0.044898 | 0 | 0.02182 | 0.291835 | 5,695 | 185 | 114 | 30.783784 | 0.767915 | 0.001756 | 0 | 0.221477 | 0 | 0 | 0.046454 | 0 | 0 | 0 | 0.001408 | 0 | 0 | 1 | 0.127517 | false | 0.053691 | 0.040268 | 0 | 0.221477 | 0.006711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90aab92c1f990f1bf8a76881ea4041d11b95e741 | 738 | py | Python | apps/webmarks/bookmarks/migrations/00012_remove_uuid_null.py | EricMuller/mynote-backend | 69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7 | [
"MIT"
] | 1 | 2017-04-26T10:24:21.000Z | 2017-04-26T10:24:21.000Z | apps/webmarks/bookmarks/migrations/00012_remove_uuid_null.py | EricMuller/mynotes-backend | 69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7 | [
"MIT"
] | 5 | 2020-06-05T18:16:39.000Z | 2022-01-13T00:45:49.000Z | apps/webmarks/bookmarks/migrations/00012_remove_uuid_null.py | EricMuller/webmarks-rest-api | 69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-30 12:03
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('webmarks_bookmarks', '0011_populate_uuid_values'),
]
operations = [
... | 24.6 | 67 | 0.596206 | 74 | 738 | 5.783784 | 0.621622 | 0.093458 | 0.116822 | 0.135514 | 0.266355 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042308 | 0.295393 | 738 | 29 | 68 | 25.448276 | 0.780769 | 0.089431 | 0 | 0.380952 | 1 | 0 | 0.109118 | 0.037369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
90af27c4e76f6a5a752687ec862ab29694dbaf0d | 19,491 | py | Python | wisdem/drivetrainse/generator.py | johnjasa/WISDEM | a4571e71cb5b9869c81790f8abb1bb7fba8fdb02 | [
"Apache-2.0"
] | 81 | 2015-01-19T18:17:31.000Z | 2022-03-17T07:14:43.000Z | wisdem/drivetrainse/generator.py | johnjasa/WISDEM | a4571e71cb5b9869c81790f8abb1bb7fba8fdb02 | [
"Apache-2.0"
] | 159 | 2015-02-05T01:54:52.000Z | 2022-03-30T22:44:39.000Z | wisdem/drivetrainse/generator.py | johnjasa/WISDEM | a4571e71cb5b9869c81790f8abb1bb7fba8fdb02 | [
"Apache-2.0"
] | 70 | 2015-01-02T15:22:39.000Z | 2022-02-11T00:33:07.000Z | """generator.py
Created by Latha Sethuraman, Katherine Dykes.
Copyright (c) NREL. All rights reserved.
Electromagnetic design based on conventional magnetic circuit laws
Structural design based on McDonald's thesis """
import numpy as np
import openmdao.api as om
import wisdem.drivetrainse.generator_models as gm
# ... | 36.363806 | 118 | 0.571135 | 2,973 | 19,491 | 3.520686 | 0.123781 | 0.02121 | 0.060189 | 0.160504 | 0.491831 | 0.426388 | 0.355594 | 0.32206 | 0.249355 | 0.170918 | 0 | 0.035404 | 0.239187 | 19,491 | 535 | 119 | 36.431776 | 0.670443 | 0.384536 | 0 | 0.072464 | 0 | 0 | 0.139629 | 0.003854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05314 | false | 0 | 0.014493 | 0 | 0.091787 | 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 |
90b84d7b7173649e06e6638b726893ffbb965eda | 3,305 | py | Python | test_seg_patch.py | Aryan98/lcprediction | 768744906379fa7e4cc5f496195cd8476f236906 | [
"MIT"
] | null | null | null | test_seg_patch.py | Aryan98/lcprediction | 768744906379fa7e4cc5f496195cd8476f236906 | [
"MIT"
] | null | null | null | test_seg_patch.py | Aryan98/lcprediction | 768744906379fa7e4cc5f496195cd8476f236906 | [
"MIT"
] | null | null | null | import string
import sys
import lasagne as nn
import numpy as np
import theano
import buffering
import pathfinder
import utils
from configuration import config, set_configuration
from utils_plots import plot_slice_3d_3
import utils_lung
import logger
theano.config.warn_float64 = 'raise'
if len(sys.argv) < 2:
sys.... | 33.05 | 118 | 0.733132 | 494 | 3,305 | 4.637652 | 0.295547 | 0.018333 | 0.019642 | 0.018333 | 0.02357 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00921 | 0.14584 | 3,305 | 99 | 119 | 33.383838 | 0.802338 | 0.019667 | 0 | 0 | 0 | 0 | 0.089054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.173333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90b9135efe40fb1211769eead4dae5ab0ea2b104 | 2,548 | py | Python | tests/test_inheritance_routers.py | kmlee78/django-ninja | ae543f2d43ff4fbc0aa22713942be77d25e1bca3 | [
"MIT"
] | 2,809 | 2020-06-21T08:48:40.000Z | 2022-03-30T16:42:11.000Z | tests/test_inheritance_routers.py | kmlee78/django-ninja | ae543f2d43ff4fbc0aa22713942be77d25e1bca3 | [
"MIT"
] | 311 | 2020-06-22T07:59:27.000Z | 2022-03-31T18:01:23.000Z | tests/test_inheritance_routers.py | kmlee78/django-ninja | ae543f2d43ff4fbc0aa22713942be77d25e1bca3 | [
"MIT"
] | 178 | 2020-07-08T00:40:43.000Z | 2022-03-29T02:05:20.000Z | import pytest
from ninja import NinjaAPI, Router
from ninja.testing import TestClient
api = NinjaAPI()
@api.get("/endpoint")
# view->api
def global_op(request):
return "global"
first_router = Router()
@first_router.get("/endpoint_1")
# view->router, router->api
def router_op1(request):
return "first 1"
... | 24.737864 | 74 | 0.685243 | 344 | 2,548 | 4.869186 | 0.18314 | 0.071642 | 0.06806 | 0.044776 | 0.303284 | 0.231642 | 0.192239 | 0.078806 | 0 | 0 | 0 | 0.036934 | 0.149922 | 2,548 | 102 | 75 | 24.980392 | 0.73638 | 0.101648 | 0 | 0 | 0 | 0 | 0.247368 | 0.092544 | 0 | 0 | 0 | 0 | 0.086207 | 1 | 0.155172 | false | 0 | 0.051724 | 0.12069 | 0.327586 | 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 |
90bc50113387f7cf351c60861dc9f8e59dbbfd0b | 996 | py | Python | example.py | mmlab-aueb/did-self-svci | 3a625afc4368224bede000663976e40442bfb317 | [
"MIT"
] | null | null | null | example.py | mmlab-aueb/did-self-svci | 3a625afc4368224bede000663976e40442bfb317 | [
"MIT"
] | null | null | null | example.py | mmlab-aueb/did-self-svci | 3a625afc4368224bede000663976e40442bfb317 | [
"MIT"
] | null | null | null | import json
from didself import registry
from jwcrypto import jwk
from didselfsvci import svci
# DID creation
# Generate DID and initial secret key
did_key = jwk.JWK.generate(kty='OKP', crv='Ed25519')
# Initialize registry
registry = registry.DIDSelfRegistry(did_key)
# Generate the DID document
did_key_dict = did_key.... | 29.294118 | 81 | 0.710843 | 134 | 996 | 5.059701 | 0.395522 | 0.061947 | 0.058997 | 0.038348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013221 | 0.164659 | 996 | 33 | 82 | 30.181818 | 0.801683 | 0.094378 | 0 | 0 | 1 | 0 | 0.090301 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90c360f1f9de7372f63bd4be872c6b44a814289d | 1,019 | py | Python | versionfield/forms.py | willseward/django-versionfield3 | 4ae365fb42f38a02c77d317cba3fef22806f2b24 | [
"Unlicense"
] | null | null | null | versionfield/forms.py | willseward/django-versionfield3 | 4ae365fb42f38a02c77d317cba3fef22806f2b24 | [
"Unlicense"
] | null | null | null | versionfield/forms.py | willseward/django-versionfield3 | 4ae365fb42f38a02c77d317cba3fef22806f2b24 | [
"Unlicense"
] | null | null | null | from builtins import str
from django import forms
from django.forms.widgets import TextInput
from .version import Version
from .constants import DEFAULT_NUMBER_BITS
from .utils import convert_version_int_to_string
class VersionField(forms.IntegerField):
widget = TextInput
def __init__(self, number_bits=DEFA... | 30.878788 | 96 | 0.675172 | 128 | 1,019 | 5.140625 | 0.367188 | 0.136778 | 0.12766 | 0.057751 | 0.075988 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001259 | 0.220805 | 1,019 | 32 | 97 | 31.84375 | 0.827456 | 0.054956 | 0 | 0 | 0 | 0 | 0.026624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.761905 | 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 |
90c4d01531ea1ecdea423f285b40da7e3e9bac51 | 1,799 | py | Python | model_server.py | samsniderheld/Pose_Auto_Encoder | f744774ca74c015fe199a42f33088c437cecc2fe | [
"MIT"
] | null | null | null | model_server.py | samsniderheld/Pose_Auto_Encoder | f744774ca74c015fe199a42f33088c437cecc2fe | [
"MIT"
] | null | null | null | model_server.py | samsniderheld/Pose_Auto_Encoder | f744774ca74c015fe199a42f33088c437cecc2fe | [
"MIT"
] | null | null | null | from flask import Flask, current_app, request, send_file, Response
import json
import io
import base64
import numpy as np
import tensorflow as tf
from PIL import Image
import cv2
from scipy.spatial import distance
import scipy.misc
from keras.preprocessing import image
from Model.bone_variational_auto_encoder import cr... | 26.850746 | 92 | 0.742635 | 268 | 1,799 | 4.656716 | 0.36194 | 0.096955 | 0.072115 | 0.036859 | 0.221955 | 0.1875 | 0.1875 | 0.1875 | 0.126603 | 0 | 0 | 0.035924 | 0.148972 | 1,799 | 67 | 93 | 26.850746 | 0.779229 | 0.183991 | 0 | 0 | 0 | 0 | 0.065619 | 0.026658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.342105 | 0 | 0.421053 | 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 |
90caba5121367a1340c3775edf920c9488258bc1 | 3,195 | py | Python | redash/settings.py | slachiewicz/redash | 84d95272f31885be00fbeef0cdbf6ddae6037f5d | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-06-27T07:40:51.000Z | 2019-06-27T07:40:51.000Z | redash/settings.py | slachiewicz/redash | 84d95272f31885be00fbeef0cdbf6ddae6037f5d | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-03-20T05:38:23.000Z | 2021-03-20T05:38:23.000Z | redash/settings.py | slachiewicz/redash | 84d95272f31885be00fbeef0cdbf6ddae6037f5d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import json
import os
import urlparse
def parse_db_url(url):
url_parts = urlparse.urlparse(url)
connection = {'threadlocals': True}
if url_parts.hostname and not url_parts.path:
connection['name'] = url_parts.hostname
else:
connection['name'] = url_parts.path[1:]
connection['h... | 35.898876 | 121 | 0.749609 | 446 | 3,195 | 5.078475 | 0.320628 | 0.087417 | 0.116556 | 0.174834 | 0.191611 | 0.085651 | 0.032671 | 0 | 0 | 0 | 0 | 0.015675 | 0.12144 | 3,195 | 88 | 122 | 36.306818 | 0.791236 | 0.119562 | 0 | 0 | 0 | 0 | 0.303138 | 0.196862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.035714 | 0.053571 | 0.017857 | 0.196429 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.