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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec8b6f80bc96cced1d927f6a24327bd17b6dab7b | 8,344 | py | Python | src/gocept/amqprun/testing.py | NativeInstruments/gocept.amqprun | 1f2d959f18617d46d0c3dc8512a910fe302ca384 | [
"ZPL-2.1"
] | 2 | 2020-01-29T09:36:50.000Z | 2020-02-25T15:07:58.000Z | src/gocept/amqprun/testing.py | NativeInstruments/gocept.amqprun | 1f2d959f18617d46d0c3dc8512a910fe302ca384 | [
"ZPL-2.1"
] | 14 | 2020-03-20T13:39:31.000Z | 2020-10-06T14:03:55.000Z | src/gocept/amqprun/testing.py | gocept/gocept.amqprun | 1f2d959f18617d46d0c3dc8512a910fe302ca384 | [
"ZPL-2.1"
] | null | null | null | import amqp
import datetime
import email.utils
import gocept.amqprun
import gocept.amqprun.interfaces
import gocept.amqprun.main
import gocept.amqprun.worker
import logging
import os
import pkg_resources
import plone.testing
import plone.testing.zca
import signal
import string
import subprocess
import sys
import tempfi... | 34.337449 | 78 | 0.614573 | 952 | 8,344 | 5.276261 | 0.254202 | 0.038224 | 0.025881 | 0.015927 | 0.184949 | 0.066494 | 0.042206 | 0.042206 | 0.042206 | 0.042206 | 0 | 0.003255 | 0.263663 | 8,344 | 242 | 79 | 34.479339 | 0.81429 | 0.061361 | 0 | 0.126316 | 0 | 0 | 0.135017 | 0.015771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.021053 | 0.115789 | 0 | 0.289474 | 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 | 0 | 0 | 1 | 0 |
ec918eada4dea8a6caff0286e38ae25cdcefa19d | 1,133 | py | Python | examples/timeseries/example_acf.py | Hadrien-Montanelli/learnpy | b9fedb903cfe8c2fff8d7706667f17c51fb3a34f | [
"MIT"
] | 1 | 2020-10-19T21:21:29.000Z | 2020-10-19T21:21:29.000Z | examples/timeseries/example_acf.py | Hadrien-Montanelli/learnpy | b9fedb903cfe8c2fff8d7706667f17c51fb3a34f | [
"MIT"
] | 21 | 2020-10-30T10:15:36.000Z | 2020-11-25T09:22:46.000Z | examples/timeseries/example_acf.py | Hadrien-Montanelli/learnpy | b9fedb903cfe8c2fff8d7706667f17c51fb3a34f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 2 16:17:42 2020
Copyright 2020 by Hadrien Montanelli.
"""
# %% Imports.
# Standard library imports:
import matplotlib.pyplot as plt
import numpy as np
from statsmodels.tsa.stattools import acf as acf2
# Learnpy imports:
from learnpy.misc import c... | 29.815789 | 67 | 0.735216 | 169 | 1,133 | 4.763314 | 0.384615 | 0.134161 | 0.149068 | 0.079503 | 0.632298 | 0.632298 | 0.576398 | 0.576398 | 0.576398 | 0.576398 | 0 | 0.027833 | 0.112092 | 1,133 | 38 | 68 | 29.815789 | 0.772366 | 0.259488 | 0 | 0.6 | 0 | 0 | 0.106926 | 0.082625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec91cc1a5c4a42ce8dd22e3076ca65aca87d1b09 | 289 | py | Python | docker/python/django/testapp/bar/views.py | felixbarny/apm-integration-testing | b0cef3414173aa3e5ec8100d1e2ec2b0d810f504 | [
"Apache-2.0"
] | 52 | 2018-06-14T02:51:10.000Z | 2022-02-08T14:18:52.000Z | docker/python/django/testapp/bar/views.py | felixbarny/apm-integration-testing | b0cef3414173aa3e5ec8100d1e2ec2b0d810f504 | [
"Apache-2.0"
] | 902 | 2018-05-25T15:42:22.000Z | 2022-03-31T16:12:35.000Z | docker/python/django/testapp/bar/views.py | felixbarny/apm-integration-testing | b0cef3414173aa3e5ec8100d1e2ec2b0d810f504 | [
"Apache-2.0"
] | 62 | 2018-05-25T12:42:58.000Z | 2022-02-23T09:05:49.000Z | from django.http import HttpResponse
import logging
import elasticapm
logger = logging.getLogger('mysite')
def show(request):
return HttpResponse(bar())
@elasticapm.capture_span()
def bar():
extra()
return "bar"
@elasticapm.capture_span()
def extra():
return "extra"
| 14.45 | 36 | 0.716263 | 34 | 289 | 6.029412 | 0.529412 | 0.126829 | 0.195122 | 0.234146 | 0.263415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16609 | 289 | 19 | 37 | 15.210526 | 0.850622 | 0 | 0 | 0.153846 | 0 | 0 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
ec93172931a6512e00485bff696dbae2c5038576 | 772 | py | Python | Python/problem014.py | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Python/problem014.py | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | Python/problem014.py | emergent/ProjectEuler | ec1c92cc47fde80efddeb0346d9b0fa511df1f00 | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python3
'''
Problem 14 - Project Euler
http://projecteuler.net/index.php?section=problems&id=014
'''
chains = {}
def getCollatzChainLength(n):
chain = []
extra = 0
while n != 1:
if n in chains:
extra = chains[n]
break
else:
chain.append(n)... | 23.393939 | 75 | 0.494819 | 99 | 772 | 3.757576 | 0.515152 | 0.053763 | 0.080645 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045175 | 0.369171 | 772 | 32 | 76 | 24.125 | 0.718686 | 0.150259 | 0 | 0.217391 | 0 | 0 | 0.012384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.086957 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec931bc4df07b3df0aaf9c0ed905fa654356c04b | 354 | py | Python | buttonStyle.py | rafael-rfzorzi/estiloWidgets | d9e47b9b570b6806ffb334878ee0dd466b391d10 | [
"Unlicense"
] | null | null | null | buttonStyle.py | rafael-rfzorzi/estiloWidgets | d9e47b9b570b6806ffb334878ee0dd466b391d10 | [
"Unlicense"
] | null | null | null | buttonStyle.py | rafael-rfzorzi/estiloWidgets | d9e47b9b570b6806ffb334878ee0dd466b391d10 | [
"Unlicense"
] | null | null | null | from tkinter import *
class ButtonGlac(Button):
def __init__(self, master=None):
super().__init__(master)
self.configure(
bd=1,
bg='#49708D',
fg= 'white',
font=('Aharoni','10','bold'),
activebackground = '#278ab9',
activeforeg... | 17.7 | 41 | 0.5 | 30 | 354 | 5.633333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0.364407 | 354 | 19 | 42 | 18.631579 | 0.697778 | 0 | 0 | 0 | 0 | 0 | 0.117479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec93f76feaf219cc796dc101bd2540c75272c895 | 1,558 | py | Python | codewars/7 kyu/growth-of-a-population.py | sirken/coding-practice | 9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab | [
"MIT"
] | null | null | null | codewars/7 kyu/growth-of-a-population.py | sirken/coding-practice | 9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab | [
"MIT"
] | null | null | null | codewars/7 kyu/growth-of-a-population.py | sirken/coding-practice | 9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab | [
"MIT"
] | null | null | null | from Test import Test, Test as test
'''
In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 120... | 38 | 293 | 0.71887 | 281 | 1,558 | 3.950178 | 0.391459 | 0.037838 | 0.021622 | 0.027027 | 0.246847 | 0.220721 | 0.088288 | 0.052252 | 0 | 0 | 0 | 0.145396 | 0.205392 | 1,558 | 41 | 294 | 38 | 0.751212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ec96d028c0ae17832cf014fcffe7d77910c0fb12 | 13,593 | py | Python | lib/rabbitdnssec.py | jderuiter/SURFdnssec | 5416441a516c689f113684e4e5cb76272c092f9b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | lib/rabbitdnssec.py | jderuiter/SURFdnssec | 5416441a516c689f113684e4e5cb76272c092f9b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2021-09-27T11:56:19.000Z | 2021-09-27T11:56:19.000Z | lib/rabbitdnssec.py | jderuiter/SURFdnssec | 5416441a516c689f113684e4e5cb76272c092f9b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2021-02-03T08:06:26.000Z | 2021-09-27T11:48:02.000Z | # rabbitdnssec.py -- DNSSEC management through a RabbitMQ cluster
#
# These routines can be used somewhat generally within a cluster of
# DNSSEC signers as we are using at SURFnet.
#
# From: Rick van Rein <rick@openfortress.nl>
import sys
import socket
import time
import os.path
import importlib
import ssl
import js... | 30.963554 | 93 | 0.703156 | 1,897 | 13,593 | 4.937269 | 0.231945 | 0.016229 | 0.011745 | 0.017937 | 0.20158 | 0.171151 | 0.126735 | 0.126735 | 0.117553 | 0.104847 | 0 | 0.005223 | 0.183109 | 13,593 | 438 | 94 | 31.034247 | 0.838256 | 0.439123 | 0 | 0.213636 | 0 | 0 | 0.082344 | 0.004137 | 0 | 0 | 0 | 0.002283 | 0.013636 | 1 | 0.140909 | false | 0.027273 | 0.063636 | 0.027273 | 0.286364 | 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 | 0 | 0 | 1 | 0 |
ec96d307d4599b24648fd1602488abc20982922e | 27,538 | py | Python | src/about/main.py | HubTou/about | 9d83cc0dfb95d1183dca36b7f8459a386f42e1be | [
"BSD-3-Clause"
] | null | null | null | src/about/main.py | HubTou/about | 9d83cc0dfb95d1183dca36b7f8459a386f42e1be | [
"BSD-3-Clause"
] | null | null | null | src/about/main.py | HubTou/about | 9d83cc0dfb95d1183dca36b7f8459a386f42e1be | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
""" about - show system information
License: 3-clause BSD (see https://opensource.org/licenses/BSD-3-Clause)
Author: Hubert Tournier
"""
import getopt
import getpass
import locale
import logging
import os
import platform
import re
import shutil
import socket
import string
import sys
import syscon... | 42.628483 | 107 | 0.541361 | 2,753 | 27,538 | 5.28587 | 0.143117 | 0.071124 | 0.096688 | 0.107202 | 0.348955 | 0.186091 | 0.038277 | 0.009621 | 0 | 0 | 0 | 0.007563 | 0.255756 | 27,538 | 645 | 108 | 42.694574 | 0.702464 | 0.035696 | 0 | 0.179439 | 0 | 0.005607 | 0.28654 | 0.157839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024299 | false | 0.014953 | 0.029907 | 0 | 0.061682 | 0.459813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ec98444bc1bf30c27d5ae65e4ae39de7cf4ac2a1 | 975 | py | Python | tutorials/basic/_4_ports_1.py | qedalab/spira | 32e4d2096e298b9fcc5952abd654312dc232a259 | [
"MIT"
] | 10 | 2018-07-13T09:46:21.000Z | 2021-06-22T13:34:50.000Z | tutorials/basic/_4_ports_1.py | qedalab/spira | 32e4d2096e298b9fcc5952abd654312dc232a259 | [
"MIT"
] | 8 | 2018-09-09T11:32:40.000Z | 2019-10-08T07:47:31.000Z | tutorials/basic/_4_ports_1.py | qedalab/spira | 32e4d2096e298b9fcc5952abd654312dc232a259 | [
"MIT"
] | 7 | 2019-01-17T18:50:17.000Z | 2022-01-13T20:27:52.000Z | import spira.all as spira
class Resistor(spira.PCell):
width = spira.NumberParameter(default=spira.RDD.R1.MIN_WIDTH, doc='Width of the shunt resistance.')
length = spira.NumberParameter(default=spira.RDD.R1.MIN_LENGTH, doc='Length of the shunt resistance.')
def validate_parameters(self):
if self... | 31.451613 | 125 | 0.665641 | 132 | 975 | 4.795455 | 0.469697 | 0.037915 | 0.085308 | 0.101106 | 0.208531 | 0.126382 | 0.126382 | 0 | 0 | 0 | 0 | 0.017926 | 0.198974 | 975 | 30 | 126 | 32.5 | 0.792574 | 0.061538 | 0 | 0 | 0 | 0 | 0.155873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec9c34f157ba2eac91b3d93431126478f7f42798 | 511 | py | Python | molmodmt/utils/selection.py | LMMV/MolModMT | 5725d6d5627b07edcbbd5e55318345a136b28c35 | [
"MIT"
] | null | null | null | molmodmt/utils/selection.py | LMMV/MolModMT | 5725d6d5627b07edcbbd5e55318345a136b28c35 | [
"MIT"
] | null | null | null | molmodmt/utils/selection.py | LMMV/MolModMT | 5725d6d5627b07edcbbd5e55318345a136b28c35 | [
"MIT"
] | null | null | null | def parse_selection(selection,syntaxis="mdtraj"):
from molmodmt.topology import ion_residues
if syntaxis=="mdtraj":
selection=selection.replace("dna","(resname DA DG DC DT DI)")
selection=selection.replace("rna","(resname A G C U I)")
selection=selection.replace("ion",'(resname '+' '.... | 36.5 | 115 | 0.639922 | 63 | 511 | 5.126984 | 0.52381 | 0.278638 | 0.309598 | 0.099071 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0 | 0 | 0 | 0.166341 | 511 | 13 | 116 | 39.307692 | 0.758216 | 0 | 0 | 0 | 0 | 0 | 0.194118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
eca028126d38ff6361e05ae287f82997405bb260 | 4,173 | py | Python | froide/foirequest/delivery.py | AleksiKnuutila/tietopyynto | 4c7438499002e521114daf07f561fd140a21dfbb | [
"MIT"
] | null | null | null | froide/foirequest/delivery.py | AleksiKnuutila/tietopyynto | 4c7438499002e521114daf07f561fd140a21dfbb | [
"MIT"
] | 2 | 2020-06-05T16:43:43.000Z | 2022-02-10T15:47:12.000Z | froide/foirequest/delivery.py | AleksiKnuutila/tietopyynto | 4c7438499002e521114daf07f561fd140a21dfbb | [
"MIT"
] | null | null | null | from collections import defaultdict, namedtuple
from datetime import datetime
import importlib
import logging
import re
import os
import pytz
def get_delivery_report(sender, recipient, timestamp):
from django.conf import settings
reporter_path = settings.FROIDE_CONFIG.get('delivery_reporter', None)
if no... | 33.926829 | 78 | 0.601006 | 522 | 4,173 | 4.614943 | 0.243295 | 0.054795 | 0.049813 | 0.024907 | 0.085513 | 0.066418 | 0 | 0 | 0 | 0 | 0 | 0.003398 | 0.294752 | 4,173 | 122 | 79 | 34.204918 | 0.815155 | 0.018692 | 0 | 0.10101 | 0 | 0 | 0.068671 | 0.014418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.010101 | 0.090909 | 0 | 0.343434 | 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 | 0 | 0 | 1 | 0 |
eca06b3dcded44dd146bab5dab9f8ce5a419a73c | 352 | py | Python | chapter3/simple_scankernel0.py | sfefilatyev/cuda_python_examples | 31925bc0e877ffb6162677413f0d155ecc79ad08 | [
"MIT"
] | 2 | 2020-11-08T10:01:56.000Z | 2022-03-08T06:21:02.000Z | chapter3/simple_scankernel0.py | sfefilatyev/cuda_python_examples | 31925bc0e877ffb6162677413f0d155ecc79ad08 | [
"MIT"
] | null | null | null | chapter3/simple_scankernel0.py | sfefilatyev/cuda_python_examples | 31925bc0e877ffb6162677413f0d155ecc79ad08 | [
"MIT"
] | null | null | null | # Basic example that sums a small list of numbers on the GPU.
import numpy as np
import pycuda.autoinit
from pycuda import gpuarray
from pycuda.scan import InclusiveScanKernel
seq = np.array([1, 2, 3, 4], dtype=np.int32)
seq_gpu = gpuarray.to_gpu(seq)
sum_gpu = InclusiveScanKernel(np.int32, "a+b")
print(sum_gpu(seq_gp... | 29.333333 | 61 | 0.761364 | 61 | 352 | 4.311475 | 0.590164 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.125 | 352 | 11 | 62 | 32 | 0.827922 | 0.167614 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eca18d4e3d6f7699e830daef606d6fa6213aa3b2 | 2,664 | py | Python | cogs/admin.py | Mr-Owllers/owll-v2 | 73ec36b8275166f405224ba0e27e37e7390c104a | [
"MIT"
] | 2 | 2021-12-20T06:25:42.000Z | 2022-01-12T17:08:32.000Z | cogs/admin.py | Mr-Owllers/owll-v2 | 73ec36b8275166f405224ba0e27e37e7390c104a | [
"MIT"
] | null | null | null | cogs/admin.py | Mr-Owllers/owll-v2 | 73ec36b8275166f405224ba0e27e37e7390c104a | [
"MIT"
] | null | null | null | import nextcord
from nextcord.ext import commands
class Admin(commands.Cog):
def __init__(self, client):
self.client = client
@commands.command(help= "delete messages in bulk", aliases=["purge", "c"])
@commands.has_permissions(manage_messages=True)
async def clear(self, ctx, amount = 5):
await ctx.cha... | 36.493151 | 103 | 0.646021 | 371 | 2,664 | 4.574124 | 0.229111 | 0.065999 | 0.070713 | 0.053624 | 0.523276 | 0.470242 | 0.449028 | 0.449028 | 0.328816 | 0.314673 | 0 | 0.001401 | 0.195946 | 2,664 | 73 | 104 | 36.493151 | 0.79085 | 0 | 0 | 0.4 | 0 | 0.083333 | 0.251407 | 0.109193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eca2ad1491618b91b100bae9f35aedb4453e20e3 | 7,862 | py | Python | server/src/dashboard/helpers.py | openml/openml.org | dadc4f79c159058776500b204977a1062b927d4c | [
"BSD-3-Clause"
] | 16 | 2018-10-17T19:35:11.000Z | 2022-03-31T23:37:00.000Z | server/src/dashboard/helpers.py | PortML/openml.org | b526fae6c0ba2df0ccebf60f1dd703368ed394ec | [
"BSD-3-Clause"
] | 192 | 2018-10-17T17:31:03.000Z | 2022-03-27T23:55:51.000Z | server/src/dashboard/helpers.py | PortML/openml.org | b526fae6c0ba2df0ccebf60f1dd703368ed394ec | [
"BSD-3-Clause"
] | 8 | 2019-04-15T11:47:32.000Z | 2021-12-15T13:23:54.000Z | import logging
import time
from contextlib import contextmanager
import numpy as np
import pandas as pd
import scipy.stats
from openml import datasets, runs
from sklearn.model_selection import train_test_split
logger = logging.getLogger("dashboard")
logger.setLevel(logging.DEBUG)
def get_run_df(run_id: int):
ru... | 33.313559 | 87 | 0.60608 | 1,001 | 7,862 | 4.58042 | 0.226773 | 0.054962 | 0.020938 | 0.013086 | 0.169466 | 0.146783 | 0.115812 | 0.08615 | 0.063032 | 0.056707 | 0 | 0.01507 | 0.265708 | 7,862 | 235 | 88 | 33.455319 | 0.779144 | 0.111549 | 0 | 0.107955 | 0 | 0 | 0.091723 | 0.006067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051136 | false | 0.005682 | 0.051136 | 0 | 0.142045 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
eca33565545aa314f2500c1fc721dccae39cc8d7 | 494 | py | Python | Speech/loss/SoftmaxLoss.py | sxontheway/BalanceFL | 43bb7539c932b7b6f7ad03f94a724452ae3855a3 | [
"MIT"
] | null | null | null | Speech/loss/SoftmaxLoss.py | sxontheway/BalanceFL | 43bb7539c932b7b6f7ad03f94a724452ae3855a3 | [
"MIT"
] | null | null | null | Speech/loss/SoftmaxLoss.py | sxontheway/BalanceFL | 43bb7539c932b7b6f7ad03f94a724452ae3855a3 | [
"MIT"
] | null | null | null | """Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
Portions of the source code are from the OLTR project which
notice below and in LICENSE in the root directory of
this source tree... | 22.454545 | 59 | 0.757085 | 78 | 494 | 4.782051 | 0.615385 | 0.080429 | 0.091153 | 0.096515 | 0.182306 | 0.182306 | 0.182306 | 0.182306 | 0 | 0 | 0 | 0.009901 | 0.182186 | 494 | 21 | 60 | 23.52381 | 0.913366 | 0.755061 | 0 | 0 | 0 | 0 | 0.185841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
eca386f51bbe9df459d3def8a91f74e99caeab92 | 28 | py | Python | test_data/src-mini-project/src/mini/example.py | ajeetraina/pycograph | a1bcf8e0f62a605a798e82373ec2279add83cf16 | [
"BSD-3-Clause"
] | 346 | 2016-02-22T20:21:10.000Z | 2022-01-27T20:55:53.000Z | Language Skills/Python/Unit 4/2-Taking a Vacation/Review of Functions/1-Before we begin.py | vpstudios/Codecademy-Exercise-Answers | ebd0ee8197a8001465636f52c69592ea6745aa0c | [
"MIT"
] | 55 | 2016-04-07T13:58:44.000Z | 2020-06-25T12:20:24.000Z | Language Skills/Python/Unit 4/2-Taking a Vacation/Review of Functions/1-Before we begin.py | vpstudios/Codecademy-Exercise-Answers | ebd0ee8197a8001465636f52c69592ea6745aa0c | [
"MIT"
] | 477 | 2016-02-21T06:17:02.000Z | 2021-12-22T10:08:01.000Z | def answer():
return 42
| 9.333333 | 13 | 0.607143 | 4 | 28 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.285714 | 28 | 2 | 14 | 14 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
eca4811c42e1ebee944b531840d43c283210f993 | 414 | py | Python | clinicInformation/serializers.py | MyMedicalAssistant/MyMedicalAssistant | e03758109167cef13efed7ee1d450dbd18a1fed7 | [
"MIT"
] | null | null | null | clinicInformation/serializers.py | MyMedicalAssistant/MyMedicalAssistant | e03758109167cef13efed7ee1d450dbd18a1fed7 | [
"MIT"
] | 1 | 2020-08-05T22:58:28.000Z | 2020-08-05T22:58:28.000Z | clinicInformation/serializers.py | MyMedicalAssistant/MyMedicalAssistant | e03758109167cef13efed7ee1d450dbd18a1fed7 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import DoctorClinic
class DoctorClinicSerializer(serializers.ModelSerializer):
class Meta:
model = DoctorClinic
fields = (
'id',
'user',
'doctor_name',
'specialty',
'clinic_name',
'clinic_street',
'clinic_city',
... | 19.714286 | 58 | 0.623188 | 37 | 414 | 6.72973 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275362 | 414 | 21 | 59 | 19.714286 | 0.83 | 0 | 0 | 0 | 0 | 0 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eca4f5aa27488a24c929f36854a3145b768fa867 | 3,266 | py | Python | benwaonline/auth/core.py | goosechooser/benwaonline | e2879412aa6c3c230d25cd60072445165517b6b6 | [
"MIT"
] | null | null | null | benwaonline/auth/core.py | goosechooser/benwaonline | e2879412aa6c3c230d25cd60072445165517b6b6 | [
"MIT"
] | 16 | 2017-09-13T10:21:40.000Z | 2020-06-01T04:32:22.000Z | benwaonline/auth/core.py | goosechooser/benwaonline | e2879412aa6c3c230d25cd60072445165517b6b6 | [
"MIT"
] | null | null | null | import os
import requests
from flask import current_app
from jose import jwt, exceptions
from benwaonline.cache import cache
from benwaonline.exceptions import BenwaOnlineAuthError
ALGORITHMS = ['RS256']
def verify_token(token):
unverified_header = jwt.get_unverified_header(token)
rsa_key = match_key_id(unve... | 27.91453 | 95 | 0.649418 | 393 | 3,266 | 5.223919 | 0.323155 | 0.034096 | 0.031174 | 0.029226 | 0.154895 | 0.108622 | 0.08378 | 0.051632 | 0 | 0 | 0 | 0.008918 | 0.244642 | 3,266 | 116 | 96 | 28.155172 | 0.823267 | 0.064299 | 0 | 0.139785 | 0 | 0 | 0.127063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107527 | false | 0 | 0.064516 | 0.010753 | 0.247312 | 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 | 0 | 0 | 1 | 0 |
eca5a1c5f1cda002d846fcbdcac9c31044bff804 | 8,235 | py | Python | src/test-decapod-genpdf.py | amitdo/decapod.genpdf | 021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76 | [
"Apache-2.0"
] | null | null | null | src/test-decapod-genpdf.py | amitdo/decapod.genpdf | 021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76 | [
"Apache-2.0"
] | null | null | null | src/test-decapod-genpdf.py | amitdo/decapod.genpdf | 021f6b6bcdfd692a4b312f9f2d4fb1bfd5d60d76 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import time
import getopt
import shlex, subprocess, tempfile
def main(sysargv):
testDes = [] # descriptions of the tests
testOut = [] # retur values of the tests
testExp = [] # expected return values of the tests
testCmd = [] # co... | 35.960699 | 92 | 0.571342 | 1,040 | 8,235 | 4.516346 | 0.149038 | 0.070258 | 0.057909 | 0.065148 | 0.772621 | 0.728337 | 0.662763 | 0.645731 | 0.641047 | 0.599745 | 0 | 0.025008 | 0.213358 | 8,235 | 228 | 93 | 36.118421 | 0.700062 | 0.160777 | 0 | 0.60989 | 0 | 0 | 0.292828 | 0.003194 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027473 | null | null | 0.126374 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eca5a506fa126645e7a9f317196aec70ebefa132 | 9,242 | py | Python | mulearn/kernel.py | vishalbelsare/mulearn | 9a794abe8788b17993cfd58a17ca44f5de6984cf | [
"Apache-2.0"
] | 2 | 2021-07-23T09:43:33.000Z | 2021-08-23T20:46:00.000Z | mulearn/kernel.py | vishalbelsare/mulearn | 9a794abe8788b17993cfd58a17ca44f5de6984cf | [
"Apache-2.0"
] | null | null | null | mulearn/kernel.py | vishalbelsare/mulearn | 9a794abe8788b17993cfd58a17ca44f5de6984cf | [
"Apache-2.0"
] | 2 | 2020-05-01T07:42:41.000Z | 2021-08-23T20:46:02.000Z | """Kernel implementation.
This module implements the kernel used in mulearn.
"""
import numpy as np
class Kernel:
"""Base kernel class."""
def __init__(self):
"""Create an instance of :class:`Kernel`."""
self.precomputed = False
self.kernel_computations = None
def compute(self,... | 32.090278 | 79 | 0.604631 | 1,158 | 9,242 | 4.645941 | 0.151123 | 0.020074 | 0.04684 | 0.054647 | 0.479182 | 0.446097 | 0.424164 | 0.39368 | 0.385502 | 0.371933 | 0 | 0.015002 | 0.285977 | 9,242 | 287 | 80 | 32.202091 | 0.800273 | 0.471868 | 0 | 0.201835 | 0 | 0 | 0.117883 | 0.034863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229358 | false | 0 | 0.009174 | 0 | 0.504587 | 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 | 1 | 0 | 0 | 2 |
eca6f5d03d7a65e001a70d9824f8e7cdc1ac16e2 | 2,057 | py | Python | inthemoment/config.py | MeighenBergerS/inthemoment | 6c2f27d952a80bd377cfa00fc4db8f3d1cdf0dad | [
"MIT"
] | null | null | null | inthemoment/config.py | MeighenBergerS/inthemoment | 6c2f27d952a80bd377cfa00fc4db8f3d1cdf0dad | [
"MIT"
] | null | null | null | inthemoment/config.py | MeighenBergerS/inthemoment | 6c2f27d952a80bd377cfa00fc4db8f3d1cdf0dad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Name: config.py
# Authors: Stephan Meighen-Berger
# Config file for the ITM package.
from typing import Dict, Any
import yaml
_baseconfig: Dict[str, Any]
_baseconfig = {
###########################################################################
# General inputs
################... | 22.11828 | 79 | 0.482256 | 195 | 2,057 | 4.979487 | 0.45641 | 0.041195 | 0.030896 | 0.055613 | 0.135942 | 0.092688 | 0 | 0 | 0 | 0 | 0 | 0.009427 | 0.329606 | 2,057 | 92 | 80 | 22.358696 | 0.694706 | 0.385027 | 0 | 0.137931 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.206897 | 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 |
eca718b2290753661c89ffe0f3b12919b0789cc0 | 3,430 | py | Python | scripts/commands/SynthSeg_predict.py | hvgazula/SynthSeg | cd597b080eb11bdd54e4e75b28b79b41b322c0c8 | [
"Apache-2.0"
] | 98 | 2020-03-03T20:54:34.000Z | 2022-03-28T17:40:30.000Z | scripts/commands/SynthSeg_predict.py | hvgazula/SynthSeg | cd597b080eb11bdd54e4e75b28b79b41b322c0c8 | [
"Apache-2.0"
] | 29 | 2020-07-02T10:03:48.000Z | 2022-03-31T16:48:24.000Z | scripts/commands/SynthSeg_predict.py | hvgazula/SynthSeg | cd597b080eb11bdd54e4e75b28b79b41b322c0c8 | [
"Apache-2.0"
] | 21 | 2020-05-18T14:27:20.000Z | 2022-03-31T08:27:43.000Z | """
If you use this code, please cite one of the SynthSeg papers:
https://github.com/BBillot/SynthSeg/blob/master/bibtex.bib
Copyright 2020 Benjamin Billot
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 Lice... | 42.345679 | 115 | 0.730904 | 498 | 3,430 | 4.943775 | 0.409639 | 0.019496 | 0.05524 | 0.025995 | 0.200244 | 0.18156 | 0.149878 | 0.149878 | 0.1316 | 0.113323 | 0 | 0.007529 | 0.148105 | 3,430 | 80 | 116 | 42.875 | 0.835044 | 0.277843 | 0 | 0.05 | 0 | 0 | 0.433796 | 0.07272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
eca7aaf626d3547ce8f5558fdf53e3a5737336a0 | 6,238 | py | Python | src/bitcoin/tx.py | trevormcguire/pybitcoin | 32ff859f4e51e5349fb70ca3c8a8782fd8cad25f | [
"MIT"
] | 1 | 2022-02-09T16:06:49.000Z | 2022-02-09T16:06:49.000Z | src/bitcoin/tx.py | trevormcguire/pybitcoin | 32ff859f4e51e5349fb70ca3c8a8782fd8cad25f | [
"MIT"
] | 2 | 2022-02-09T17:59:57.000Z | 2022-02-09T18:00:27.000Z | src/bitcoin/tx.py | trevormcguire/pybitcoin | 32ff859f4e51e5349fb70ca3c8a8782fd8cad25f | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import *
from .utils import encode_int, encode_varint, decode_int, decode_varint, ensure_stream, base58, hash256
from .script import Script
from io import BytesIO
from .keys import PublicKey
from .ecdsa import Signature, validate_signature
def get_tx_idx(wallet, prev_tx):... | 34.655556 | 103 | 0.534146 | 765 | 6,238 | 4.197386 | 0.223529 | 0.036437 | 0.015571 | 0.013703 | 0.08502 | 0.014326 | 0 | 0 | 0 | 0 | 0 | 0.012358 | 0.351395 | 6,238 | 179 | 104 | 34.849162 | 0.781265 | 0.131292 | 0 | 0.106061 | 0 | 0 | 0.074962 | 0.015483 | 0 | 0 | 0 | 0 | 0.007576 | 1 | 0.068182 | false | 0 | 0.05303 | 0.007576 | 0.219697 | 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 | 0 | 0 | 1 | 0 |
eca7bb7d5f66ac5cb221611f5b01d3bad9a853f9 | 637 | py | Python | src/cogs/utils/sendEmbed.py | kugiyasan/discordBot | 647fbcaa8686e99774eddeb57359730196a4f65f | [
"MIT"
] | 3 | 2020-07-05T21:37:07.000Z | 2021-09-21T11:11:45.000Z | src/cogs/utils/sendEmbed.py | kugiyasan/discordBot | 647fbcaa8686e99774eddeb57359730196a4f65f | [
"MIT"
] | null | null | null | src/cogs/utils/sendEmbed.py | kugiyasan/discordBot | 647fbcaa8686e99774eddeb57359730196a4f65f | [
"MIT"
] | null | null | null | from typing import Any
import discord
from discord.ext import commands
from ..mofupoints import incrementEmbedCounter
async def sendEmbed(
ctx: commands.Context, url: str, localImageFile: discord.File = None, **kwargs: Any
) -> None:
print(url)
if hasattr(ctx, "author"):
incrementEm... | 26.541667 | 88 | 0.681319 | 77 | 637 | 5.623377 | 0.532468 | 0.04157 | 0.055427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21978 | 637 | 23 | 89 | 27.695652 | 0.871227 | 0.059655 | 0 | 0 | 0 | 0 | 0.010453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecaa497a69908d5f08791b6cdfaef3362767f993 | 11,449 | py | Python | lib/ithor_env.py | XiaoLiSean/Cognitive-Map | 6b2019e5b3a46902b06c8d5d1e86b39425042de9 | [
"MIT"
] | null | null | null | lib/ithor_env.py | XiaoLiSean/Cognitive-Map | 6b2019e5b3a46902b06c8d5d1e86b39425042de9 | [
"MIT"
] | null | null | null | lib/ithor_env.py | XiaoLiSean/Cognitive-Map | 6b2019e5b3a46902b06c8d5d1e86b39425042de9 | [
"MIT"
] | 1 | 2021-11-04T06:25:31.000Z | 2021-11-04T06:25:31.000Z | # Module for iTHOR env set up and simple navigation
from ai2thor.controller import Controller
from termcolor import colored
from dijkstar import Graph, find_path
from lib.params import SIM_WINDOW_HEIGHT, SIM_WINDOW_WIDTH, VISBILITY_DISTANCE, FIELD_OF_VIEW
import matplotlib.pyplot as plt
import numpy as np
import time,... | 44.548638 | 153 | 0.633418 | 1,450 | 11,449 | 4.698621 | 0.177931 | 0.029062 | 0.022897 | 0.013357 | 0.349479 | 0.28064 | 0.199031 | 0.162777 | 0.079994 | 0.038309 | 0 | 0.017043 | 0.262032 | 11,449 | 256 | 154 | 44.722656 | 0.789324 | 0.075552 | 0 | 0.176768 | 0 | 0 | 0.077986 | 0.001988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.010101 | 0.035354 | 0 | 0.166667 | 0.025253 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ecaa97a3378e031c13049a820631bc60b15b2766 | 445 | py | Python | documento-tcc-backup/backup08(25:06:2016)/Cap5/src/map-pais.py | medeirosthiiago/glue-grade | 0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9 | [
"MIT"
] | 2 | 2016-10-04T12:47:44.000Z | 2016-11-16T18:41:30.000Z | documento-tcc-backup/backup09(04:07:2016)/Cap5/src/map-pais.py | medeirosthiago/glue-grade | 0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9 | [
"MIT"
] | null | null | null | documento-tcc-backup/backup09(04:07:2016)/Cap5/src/map-pais.py | medeirosthiago/glue-grade | 0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9 | [
"MIT"
] | null | null | null | tweets_by_country = tweets['country'].value_counts()
fig, ax = plt.subplots(figsize=(20,10))
ax.tick_params(axis='x', labelsize=15)
ax.tick_params(axis='y', labelsize=15)
ax.set_xlabel('Paises'.decode('utf-8'), fontsize=20)
ax.set_ylabel('Numero de tweets'.decode('utf-8') , fontsize=20)
ax.set_title('Top 5 Paises'.dec... | 40.454545 | 76 | 0.725843 | 74 | 445 | 4.22973 | 0.540541 | 0.047923 | 0.095847 | 0.172524 | 0.261981 | 0.261981 | 0.159744 | 0 | 0 | 0 | 0 | 0.045564 | 0.062921 | 445 | 10 | 77 | 44.5 | 0.705036 | 0 | 0 | 0 | 0 | 0 | 0.173034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
ecaae9b03468e6304f02df581086de6fc888491a | 152 | py | Python | accepted/486A.py | cbarnson/codeforces-python | 3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c | [
"Unlicense",
"MIT"
] | 1 | 2019-09-07T17:01:33.000Z | 2019-09-07T17:01:33.000Z | accepted/486A.py | cbarnson/codeforces-python | 3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c | [
"Unlicense",
"MIT"
] | null | null | null | accepted/486A.py | cbarnson/codeforces-python | 3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c | [
"Unlicense",
"MIT"
] | null | null | null | # 486A - Calculating Function
# http://codeforces.com/problemset/problem/486/A
n = int(input())
ans = ((n + 1) // 2) * (-1 if n & 1 else 1)
print(ans)
| 21.714286 | 48 | 0.618421 | 25 | 152 | 3.76 | 0.76 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088 | 0.177632 | 152 | 6 | 49 | 25.333333 | 0.664 | 0.486842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
ecabd3f4bdd9f064663b14463a5ce941ba9d7e6b | 20,935 | py | Python | abeja/notebook/api/client.py | abeja-inc/abeja-platform-sdk | 97cfc99b11ffc1fccb3f527435277bc89e18b8c3 | [
"Apache-2.0"
] | 2 | 2020-10-20T18:38:16.000Z | 2020-10-20T20:12:35.000Z | abeja/notebook/api/client.py | abeja-inc/abeja-platform-sdk | 97cfc99b11ffc1fccb3f527435277bc89e18b8c3 | [
"Apache-2.0"
] | 30 | 2020-04-07T01:15:47.000Z | 2020-11-18T03:25:19.000Z | abeja/notebook/api/client.py | abeja-inc/abeja-platform-sdk | 97cfc99b11ffc1fccb3f527435277bc89e18b8c3 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from abeja.common.api_client import BaseAPIClient
from abeja.notebook.types import InstanceType, ImageType, NotebookType
class APIClient(BaseAPIClient):
"""A Low-Level client for Notebook API
.. code-block:: python
from abeja.notebook import APIClient
api_client =... | 39.5 | 137 | 0.485933 | 1,758 | 20,935 | 5.569397 | 0.0876 | 0.092943 | 0.097232 | 0.066183 | 0.889797 | 0.878664 | 0.871515 | 0.865182 | 0.846696 | 0.831784 | 0 | 0.071597 | 0.412228 | 20,935 | 529 | 138 | 39.574669 | 0.724096 | 0.636207 | 0 | 0.72549 | 0 | 0 | 0.123508 | 0.093783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.029412 | 0 | 0.196078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ecac3170910e2522fe20eaaf7efb5d1875ecf0af | 12,033 | py | Python | tests/test_sendgrid_inbound.py | tiltec/django-anymail | 508a3a073f1b51c453bade2532627a72e204520b | [
"BSD-3-Clause"
] | null | null | null | tests/test_sendgrid_inbound.py | tiltec/django-anymail | 508a3a073f1b51c453bade2532627a72e204520b | [
"BSD-3-Clause"
] | null | null | null | tests/test_sendgrid_inbound.py | tiltec/django-anymail | 508a3a073f1b51c453bade2532627a72e204520b | [
"BSD-3-Clause"
] | null | null | null | import json
from io import BytesIO
from textwrap import dedent
from django.test import tag
from mock import ANY
from anymail.inbound import AnymailInboundMessage
from anymail.signals import AnymailInboundEvent
from anymail.webhooks.sendgrid import SendGridInboundWebhookView
from .utils import dedent_bytes, sample_im... | 49.72314 | 115 | 0.605668 | 1,350 | 12,033 | 5.32 | 0.207407 | 0.085631 | 0.070454 | 0.032164 | 0.511417 | 0.466583 | 0.402673 | 0.350599 | 0.3066 | 0.274436 | 0 | 0.044272 | 0.262279 | 12,033 | 241 | 116 | 49.929461 | 0.764335 | 0.045458 | 0 | 0.287805 | 0 | 0.04878 | 0.461431 | 0.123769 | 0 | 0 | 0 | 0 | 0.258537 | 1 | 0.019512 | false | 0.019512 | 0.04878 | 0 | 0.073171 | 0.009756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ecad91fbf1d2b45d2f19da435e1adb82e6ade7a6 | 233 | py | Python | scripts/randomizer.py | cmuell89/DS-A | a408252e1993423c510c3cbe49501acc6916e91f | [
"MIT"
] | null | null | null | scripts/randomizer.py | cmuell89/DS-A | a408252e1993423c510c3cbe49501acc6916e91f | [
"MIT"
] | null | null | null | scripts/randomizer.py | cmuell89/DS-A | a408252e1993423c510c3cbe49501acc6916e91f | [
"MIT"
] | null | null | null | # coding=utf-8
from random import shuffle
with open("../data/words.txt") as f:
words = f.read().splitlines()
shuffle(words)
with open("../data/random_words.txt", "w") as f:
for item in words:
f.write("%s\n" % item) | 21.181818 | 48 | 0.622318 | 38 | 233 | 3.789474 | 0.605263 | 0.111111 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.188841 | 233 | 11 | 49 | 21.181818 | 0.756614 | 0.051502 | 0 | 0 | 0 | 0 | 0.209091 | 0.109091 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecad9b0323eb30d3ba4bdf94306b9f59f9546d07 | 281 | py | Python | utils.py | jacenfox/pytorch-training-framework | 771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4 | [
"MIT"
] | null | null | null | utils.py | jacenfox/pytorch-training-framework | 771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4 | [
"MIT"
] | null | null | null | utils.py | jacenfox/pytorch-training-framework | 771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4 | [
"MIT"
] | null | null | null | import numpy as np
import math
def time_elapse_parser(time_elapsed):
# time_elapsed = time.time() - start_time
m_elapsed, s_elapsed = divmod(time_elapsed, 60)
h_elapsed, m_elapsed = divmod(m_elapsed, 60)
return '%d:%02d:%02d' % (h_elapsed, m_elapsed, s_elapsed)
| 25.545455 | 61 | 0.715302 | 44 | 281 | 4.25 | 0.431818 | 0.171123 | 0.160428 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.174377 | 281 | 10 | 62 | 28.1 | 0.771552 | 0.13879 | 0 | 0 | 0 | 0 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
ecaf99cf8d95777800b2e98c8ecd1054419889eb | 1,839 | py | Python | tests/Commands/test_SystemCommands.py | AndroidKitKat/TerminusBrowser | 18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e | [
"BSD-3-Clause"
] | null | null | null | tests/Commands/test_SystemCommands.py | AndroidKitKat/TerminusBrowser | 18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e | [
"BSD-3-Clause"
] | null | null | null | tests/Commands/test_SystemCommands.py | AndroidKitKat/TerminusBrowser | 18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e | [
"BSD-3-Clause"
] | null | null | null | from commandChanVim import urwidView
from Commands.SystemCommands import systemCommands
from Frames.reddit.indexFrame import RedditIndexFrame
from Frames.fchan.indexFrame import IndexFrame
from Frames.defaultFrame import DefaultFrame
from customeTypes import SITE
import pytest
@pytest.fixture
def view():
view = u... | 29.190476 | 83 | 0.693855 | 234 | 1,839 | 5.333333 | 0.269231 | 0.09375 | 0.081731 | 0.080128 | 0.391827 | 0.325321 | 0.325321 | 0.224359 | 0.126603 | 0.126603 | 0 | 0.010499 | 0.171289 | 1,839 | 62 | 84 | 29.66129 | 0.808399 | 0 | 0 | 0.12 | 0 | 0 | 0.156063 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.14 | 0 | 0.26 | 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 | 0 | 0 | 1 | 0 |
ecb02d026ee6cbb6ddb8ef5430a7f94d901364f7 | 5,312 | py | Python | ABCer.py | xl0418/ABCer | 50f8976f00c555c2face1f451a17142e33df7856 | [
"MIT"
] | 2 | 2020-03-25T17:07:59.000Z | 2020-04-01T12:03:45.000Z | ABCer.py | xl0418/ABCer | 50f8976f00c555c2face1f451a17142e33df7856 | [
"MIT"
] | null | null | null | ABCer.py | xl0418/ABCer | 50f8976f00c555c2face1f451a17142e33df7856 | [
"MIT"
] | null | null | null | #%%
import numpy as np
from itertools import repeat
from itertools import starmap
from scipy.stats import norm
class ABCer:
def __init__(self, iterations, particles, observations):
self.iterations = iterations
self.particles = particles
self.observations = observations
def initialize_... | 37.146853 | 132 | 0.609375 | 667 | 5,312 | 4.616192 | 0.229385 | 0.042871 | 0.049691 | 0.009743 | 0.239688 | 0.181877 | 0.175382 | 0.096785 | 0.061708 | 0.061708 | 0 | 0.034978 | 0.278803 | 5,312 | 142 | 133 | 37.408451 | 0.768729 | 0.03012 | 0 | 0.041237 | 0 | 0 | 0.02608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072165 | false | 0 | 0.051546 | 0 | 0.195876 | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ecb05a2674fc43bdf0105356c3e348abd419263c | 1,892 | py | Python | llvm_header/op_tester.py | mendlin/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-01-07T03:18:27.000Z | 2021-01-07T03:18:27.000Z | llvm_header/op_tester.py | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | null | null | null | llvm_header/op_tester.py | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-11-29T07:28:13.000Z | 2021-11-29T07:28:13.000Z | #!/usr/bin/python
# This file is used to test vertical operations
# e.g.
# llvm_add_2 is an invalid operation since llc/lli raise exceptions on SelectionDAG
import config
import os
failed = []
def change_makefile_source(sfrom, sto):
comm = "sed -i 's/SOURCE = {sfrom}/SOURCE = {sto}/' Makefile".format(
sfrom=sfrom,... | 31.016393 | 87 | 0.615222 | 301 | 1,892 | 3.700997 | 0.328904 | 0.086176 | 0.078995 | 0.043088 | 0.199282 | 0.190305 | 0.070018 | 0.070018 | 0.070018 | 0.070018 | 0 | 0.029851 | 0.150106 | 1,892 | 61 | 88 | 31.016393 | 0.662935 | 0.35148 | 0 | 0.064516 | 0 | 0 | 0.246711 | 0.057566 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ecb1f36fb203b8d051edf6d6cfdeae2ca3d1d0e9 | 1,405 | py | Python | seahub/share/urls.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | 2 | 2017-06-21T09:46:55.000Z | 2018-05-30T10:07:32.000Z | seahub/share/urls.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | null | null | null | seahub/share/urls.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | 1 | 2020-10-01T04:11:41.000Z | 2020-10-01T04:11:41.000Z | from django.conf.urls import patterns, url
from views import *
urlpatterns = patterns('',
url(r'^$', list_shared_repos, name='share_admin'),
url(r'^links/$', list_shared_links, name='list_shared_links'),
url(r'^folders/$', list_priv_shared_folders, name='list_priv_shared_folders'),
url(r'^add/$', shar... | 61.086957 | 110 | 0.740214 | 216 | 1,405 | 4.407407 | 0.157407 | 0.067227 | 0.058824 | 0.044118 | 0.289916 | 0.048319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090391 | 1,405 | 22 | 111 | 63.863636 | 0.744914 | 0 | 0 | 0 | 0 | 0 | 0.417082 | 0.258363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecb23062c35565af3a775e697dce227a3e8317a9 | 276 | py | Python | PyLaGriT/examples/create_exo.py | millerta/LaGriT-1 | 511ef22f3b7e839c7e0484604cd7f6a2278ae6b9 | [
"CNRI-Python"
] | 73 | 2017-02-09T17:54:28.000Z | 2022-03-09T22:22:32.000Z | PyLaGriT/examples/create_exo.py | millerta/LaGriT-1 | 511ef22f3b7e839c7e0484604cd7f6a2278ae6b9 | [
"CNRI-Python"
] | 166 | 2017-01-26T17:15:45.000Z | 2022-03-29T21:36:28.000Z | PyLaGriT/examples/create_exo.py | daniellivingston/LaGriT | decd0ce0e5dab068034ef382cabcd134562de832 | [
"Intel"
] | 63 | 2017-02-08T21:56:04.000Z | 2022-03-24T06:48:36.000Z | from pylagrit import PyLaGriT
l = PyLaGriT()
m = l.create()
m.createpts_xyz((3,3,3),(0.,0.,0.),(1.,1.,1.),rz_switch=[1,1,1],connect=True)
m.status ()
m.status (brief=True)
fs = m.create_boundary_facesets(base_name='faceset_bounds')
m.dump_exo('cube.exo',facesets=fs.values())
| 30.666667 | 77 | 0.702899 | 51 | 276 | 3.666667 | 0.54902 | 0.042781 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046693 | 0.068841 | 276 | 8 | 78 | 34.5 | 0.680934 | 0 | 0 | 0 | 0 | 0 | 0.07971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
ecb3cf2ee7d709c516ad3d6fdd036750e84f3da1 | 1,188 | py | Python | app/repository/page_repository.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 11 | 2015-04-23T21:57:56.000Z | 2019-04-28T12:48:58.000Z | app/repository/page_repository.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 1 | 2016-10-05T14:10:58.000Z | 2016-10-05T14:12:23.000Z | app/repository/page_repository.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 3 | 2016-10-05T14:00:42.000Z | 2019-01-16T14:33:43.000Z | from app import db
from app.models.group import Group
from app.models.page import Page, PageReadPermission
def get_read_permission_groups_by_page(page):
return db.session.query(Group) \
.join(PageReadPermission) \
.filter(PageReadPermission.page == page) \
.all()
def add_page_group_read_... | 28.285714 | 71 | 0.72138 | 150 | 1,188 | 5.513333 | 0.226667 | 0.108827 | 0.067715 | 0.166868 | 0.440145 | 0.251511 | 0.251511 | 0 | 0 | 0 | 0 | 0 | 0.169192 | 1,188 | 41 | 72 | 28.97561 | 0.837893 | 0 | 0 | 0.275862 | 0 | 0 | 0.008418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.103448 | 0.068966 | 0.37931 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ecb49bb21b35339cb73ab865c201f6495e6361cb | 29 | py | Python | taskwiki/__init__.py | PtitCaius/taskwiki | 8c4da3a744fd1aa22bfb0369658cecc925e77fd0 | [
"MIT"
] | 465 | 2015-03-27T09:42:18.000Z | 2020-07-18T20:35:19.000Z | taskwiki/__init__.py | PtitCaius/taskwiki | 8c4da3a744fd1aa22bfb0369658cecc925e77fd0 | [
"MIT"
] | 272 | 2015-01-10T20:38:02.000Z | 2020-07-16T12:55:15.000Z | taskwiki/__init__.py | PtitCaius/taskwiki | 8c4da3a744fd1aa22bfb0369658cecc925e77fd0 | [
"MIT"
] | 66 | 2015-03-21T16:33:39.000Z | 2020-07-12T09:20:29.000Z | # (c) 2014-2015, Tomas Babej
| 14.5 | 28 | 0.655172 | 5 | 29 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.172414 | 29 | 1 | 29 | 29 | 0.458333 | 0.896552 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ecb717ddf9643f637a0e89b5b2e731f30dc38ae8 | 107 | py | Python | str3.py | Kantheesh/Learning-Python | d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f | [
"MIT"
] | null | null | null | str3.py | Kantheesh/Learning-Python | d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f | [
"MIT"
] | null | null | null | str3.py | Kantheesh/Learning-Python | d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f | [
"MIT"
] | null | null | null | inp = "AjaY Kumar"
out = inp.swapcase()
print(out)
inp = "AjaY kumAR"
out = inp.title()
print(out) | 13.375 | 21 | 0.607477 | 16 | 107 | 4.0625 | 0.4375 | 0.276923 | 0.369231 | 0.461538 | 0.553846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224299 | 107 | 8 | 22 | 13.375 | 0.783133 | 0 | 0 | 0.333333 | 0 | 0 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 5 |
ecb94bd0a8608cae96300c0ab8bd777428b90695 | 3,388 | py | Python | plot_movie.py | diogoff/plasma-tomography | 8798351beaa9b069128fffd606587e74d30cb0e1 | [
"MIT"
] | 5 | 2019-02-08T18:34:45.000Z | 2020-05-30T17:42:14.000Z | plot_movie.py | diogoff/plasma-tomography | 8798351beaa9b069128fffd606587e74d30cb0e1 | [
"MIT"
] | null | null | null | plot_movie.py | diogoff/plasma-tomography | 8798351beaa9b069128fffd606587e74d30cb0e1 | [
"MIT"
] | 1 | 2018-07-18T12:50:03.000Z | 2018-07-18T12:50:03.000Z |
import os
import sys
import h5py
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as ani
from cmap import *
from tensorflow.keras.models import load_model
# ----------------------------------------------------------------------
if len(sys.argv) < 6:
print('Usage: %s pulse t0 t1 dt v... | 25.666667 | 90 | 0.527745 | 482 | 3,388 | 3.628631 | 0.313278 | 0.031447 | 0.027444 | 0.032018 | 0.177244 | 0.140652 | 0.105203 | 0.036592 | 0.036592 | 0 | 0 | 0.051957 | 0.147875 | 3,388 | 131 | 91 | 25.862595 | 0.553862 | 0.146399 | 0 | 0.022989 | 0 | 0 | 0.131113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.091954 | 0 | 0.103448 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ecb9fc3eb4af0c3744f4d570fe01f50eb2a46525 | 353 | py | Python | Python/encontra_impares.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/encontra_impares.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/encontra_impares.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | # Encontrando ímpares em uma lista
def encontra_impares(lista, lista_impares = None):
if lista_impares == None:
lista_impares = []
if len(lista) < 1:
return []
else:
if lista[0]%2 != 0:
lista_impares.extend([lista[0]])
encontra_impares(lista[1:], lista_impares) ... | 25.214286 | 58 | 0.597734 | 43 | 353 | 4.72093 | 0.395349 | 0.35468 | 0.197044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.294618 | 353 | 13 | 59 | 27.153846 | 0.791165 | 0.090652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
ecba0c87c633e44ca11824d2967de64d71f156ed | 2,940 | py | Python | main.py | William-Wang1988/gitblog | 5d064f69755992fa8e85fd53bc9a8d3589d97971 | [
"MIT"
] | null | null | null | main.py | William-Wang1988/gitblog | 5d064f69755992fa8e85fd53bc9a8d3589d97971 | [
"MIT"
] | 10 | 2020-08-31T08:17:26.000Z | 2020-09-21T03:39:12.000Z | main.py | William-Wang1988/gitblog | 5d064f69755992fa8e85fd53bc9a8d3589d97971 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from github import Github
from github.Issue import Issue
import argparse
MD_HEAD = """## Gitblog
My personal blog using issues and GitHub Action
"""
ME_GITHUB_NAME = "gatsby101"
ANCHOR_NUMBER = 5
TOP_ISSUES_LABELS = [
"Top",
]
def isMe(issue):
return issue.user.login == ME_GITHUB_NAM... | 25.128205 | 81 | 0.591156 | 408 | 2,940 | 4.044118 | 0.230392 | 0.049091 | 0.036364 | 0.041212 | 0.271515 | 0.197576 | 0.164848 | 0.115758 | 0.115758 | 0.115758 | 0 | 0.008072 | 0.283673 | 2,940 | 117 | 82 | 25.128205 | 0.775404 | 0.018707 | 0 | 0.156627 | 0 | 0 | 0.108221 | 0.026708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156627 | false | 0 | 0.036145 | 0.084337 | 0.289157 | 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 | 0 | 0 | 1 | 0 |
ecba4755ffe4747535ec4eeeb0e07ad5f74903d6 | 2,687 | py | Python | week-03/lab_03/lab_03_code.py | andrewn488/OMSBA-5067 | ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a | [
"MIT"
] | null | null | null | week-03/lab_03/lab_03_code.py | andrewn488/OMSBA-5067 | ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a | [
"MIT"
] | null | null | null | week-03/lab_03/lab_03_code.py | andrewn488/OMSBA-5067 | ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 15 22:15:28 2021
@author: ANalundasan
For: OMSBA 5067, Lab 3
"""
import numpy as np
import matplotlib.pyplot as plt
import math
#################### STEP 1 - KNN Classifier #################################
data = np.array([ [1, 1,1,1,1, 3],
... | 28.284211 | 79 | 0.426498 | 384 | 2,687 | 2.958333 | 0.291667 | 0.038732 | 0.029049 | 0.014085 | 0.024648 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139466 | 0.372907 | 2,687 | 95 | 80 | 28.284211 | 0.534718 | 0.333457 | 0 | 0.133333 | 0 | 0 | 0.030565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.066667 | 0 | 0.088889 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ecba8b7698e1a2bbb48d56ba91fd2aa14fe731f5 | 1,236 | py | Python | gge_proxy_manager/management/commands/clean_duplicates.py | mrcrgl/gge-storage | a8471624c1a865d4f7eeb00415bd4cd2a91ea310 | [
"MIT"
] | null | null | null | gge_proxy_manager/management/commands/clean_duplicates.py | mrcrgl/gge-storage | a8471624c1a865d4f7eeb00415bd4cd2a91ea310 | [
"MIT"
] | 1 | 2015-04-09T15:58:19.000Z | 2015-04-14T06:37:02.000Z | gge_proxy_manager/management/commands/clean_duplicates.py | mrcrgl/gge-storage | a8471624c1a865d4f7eeb00415bd4cd2a91ea310 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.core.management.base import BaseCommand, CommandError
from gge_proxy_manager.methods import clean_duplicate_alliances, clean_duplicate_castles, clean_duplicate_players
from gge_proxy_manager.models import Castle, Player, Alliance
from django.utils.timezone import now... | 37.454545 | 115 | 0.696602 | 154 | 1,236 | 5.38961 | 0.383117 | 0.151807 | 0.083133 | 0.083133 | 0.292771 | 0.136145 | 0.101205 | 0.101205 | 0.101205 | 0 | 0 | 0.001998 | 0.190129 | 1,236 | 33 | 115 | 37.454545 | 0.827173 | 0.04288 | 0 | 0 | 0 | 0 | 0.193903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
ecbab1ca9b545730a74f300e7a921cd892b9aec6 | 995 | py | Python | events/migrations/0001_initial.py | homosaur/stl-dsa | ccc32398ca5a7a849b7860e574a8a3f49b3bed75 | [
"MIT"
] | null | null | null | events/migrations/0001_initial.py | homosaur/stl-dsa | ccc32398ca5a7a849b7860e574a8a3f49b3bed75 | [
"MIT"
] | null | null | null | events/migrations/0001_initial.py | homosaur/stl-dsa | ccc32398ca5a7a849b7860e574a8a3f49b3bed75 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-03-02 10:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.AutoField(au... | 32.096774 | 114 | 0.540704 | 94 | 995 | 5.617021 | 0.62766 | 0.113636 | 0.136364 | 0.181818 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033626 | 0.312563 | 995 | 30 | 115 | 33.166667 | 0.738304 | 0.045226 | 0 | 0 | 1 | 0 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.217391 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ecbbc14b94ecde51bc73e82c975e7dbda34c951e | 78 | py | Python | myfirst2021/__init__.py | roan2008/myfirst2021 | e3a82225a8ff625729da572cee04e2942d45fb8f | [
"MIT"
] | null | null | null | myfirst2021/__init__.py | roan2008/myfirst2021 | e3a82225a8ff625729da572cee04e2942d45fb8f | [
"MIT"
] | null | null | null | myfirst2021/__init__.py | roan2008/myfirst2021 | e3a82225a8ff625729da572cee04e2942d45fb8f | [
"MIT"
] | null | null | null | # __init__.py
from myfirst2021.studentclass import Student,Specialstudent
| 19.5 | 60 | 0.820513 | 8 | 78 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.128205 | 78 | 3 | 61 | 26 | 0.823529 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
ecbc2b714802eef938dc23390f77656b110ad0d7 | 33,775 | py | Python | admin/tools/crawler_db/PS3-PHPtoMYSQL.py | gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3 | 58bf3ba08723d775e8b42e6dfa16ea5b79594d26 | [
"MIT"
] | null | null | null | admin/tools/crawler_db/PS3-PHPtoMYSQL.py | gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3 | 58bf3ba08723d775e8b42e6dfa16ea5b79594d26 | [
"MIT"
] | null | null | null | admin/tools/crawler_db/PS3-PHPtoMYSQL.py | gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3 | 58bf3ba08723d775e8b42e6dfa16ea5b79594d26 | [
"MIT"
] | null | null | null |
import os
import pathlib
import sqlite3
from bs4 import BeautifulSoup
import pymysql.cursors
from datetime import datetime
#faz a conexao com o banco de dados
conexao = pymysql.connect(host = 'localhost',
user = 'root',
password = '',
db... | 42.430905 | 169 | 0.533412 | 3,910 | 33,775 | 4.587212 | 0.048082 | 0.039474 | 0.033954 | 0.037188 | 0.922558 | 0.920551 | 0.918209 | 0.915756 | 0.915756 | 0.915756 | 0 | 0.089469 | 0.159112 | 33,775 | 795 | 170 | 42.484277 | 0.542058 | 0.005093 | 0 | 0.782895 | 0 | 0.245066 | 0.73919 | 0.521292 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.004934 | 0.009868 | 0 | 0.009868 | 0.241776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
ecbd55cadec6e2c9341f39459cbc392d8c76d835 | 792 | py | Python | hail/python/hailtop/auth/sql_config.py | sigmarkarl/hail | 11b7c22342a945c61b24c5f8babf4ab411d3d2f1 | [
"MIT"
] | 2 | 2020-12-15T21:20:24.000Z | 2020-12-21T19:46:26.000Z | hail/python/hailtop/auth/sql_config.py | Dania-Abuhijleh/hail | a187dc0867801ca1eee774588fe58604a133a0d9 | [
"MIT"
] | 2 | 2016-11-17T03:06:10.000Z | 2017-12-05T19:00:24.000Z | hail/python/hailtop/auth/sql_config.py | Dania-Abuhijleh/hail | a187dc0867801ca1eee774588fe58604a133a0d9 | [
"MIT"
] | 2 | 2020-07-28T18:55:19.000Z | 2020-10-19T16:43:03.000Z | import json
def create_secret_data_from_config(config, server_ca, client_cert, client_key):
assert all(config.get(x) is not None
for x in ('host', 'user', 'password', 'db', 'ssl-ca', 'ssl-cert',
'ssl-key', 'ssl-mode')), config.keys()
secret_data = dict()
secret_data... | 33 | 80 | 0.638889 | 114 | 792 | 4.289474 | 0.324561 | 0.163599 | 0.02863 | 0.04908 | 0.07771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160354 | 792 | 23 | 81 | 34.434783 | 0.735338 | 0 | 0 | 0 | 0 | 0 | 0.430556 | 0.260101 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0.095238 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ecbdfa159cc6c94130e99feee6fc9442f8f7112a | 4,440 | py | Python | nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 54 | 2020-03-04T17:37:17.000Z | 2022-02-22T13:16:10.000Z | nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 9 | 2020-08-26T13:17:54.000Z | 2021-11-09T09:02:00.000Z | nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 26 | 2020-03-18T17:09:34.000Z | 2021-11-22T16:23:14.000Z | # Copyright(c) 2019-2020 Intel Corporation All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of condition... | 40.363636 | 93 | 0.647973 | 516 | 4,440 | 5.531008 | 0.387597 | 0.021023 | 0.023826 | 0.024177 | 0.199019 | 0.107218 | 0.107218 | 0.107218 | 0.107218 | 0.107218 | 0 | 0.017985 | 0.273649 | 4,440 | 109 | 94 | 40.733945 | 0.866977 | 0.357658 | 0 | 0.163934 | 0 | 0 | 0.045712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.04918 | 0.032787 | 0.180328 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ecc0a2e456508d8dfa56614ecca79ec800ea879d | 3,363 | py | Python | server/permissions/users.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | 5 | 2018-11-28T11:33:25.000Z | 2022-03-27T12:50:02.000Z | server/permissions/users.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | 124 | 2018-10-07T21:31:02.000Z | 2019-03-26T11:51:00.000Z | server/permissions/users.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | null | null | null | from aiohttp.web_urldispatcher import View
from server.models import User, Bike, Reservation
from server.models.user import UserType
from server.permissions.permission import RoutePermissionError, Permission
from server.service.access.users import get_user
from server.service.verify_token import verify_token, TokenVer... | 36.956044 | 111 | 0.680345 | 412 | 3,363 | 5.451456 | 0.254854 | 0.100178 | 0.032057 | 0.042743 | 0.459038 | 0.426981 | 0.363313 | 0.319679 | 0.233304 | 0.105966 | 0 | 0 | 0.223907 | 3,363 | 90 | 112 | 37.366667 | 0.860536 | 0.11121 | 0 | 0.303571 | 0 | 0 | 0.179175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0.071429 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecc2dff05ab144dc405f1ac28e34af1c5e74ebd3 | 930 | py | Python | setup.py | kariminf/pytransliteration | a957a3fa549e674d20e94e30935e028994673067 | [
"Apache-2.0"
] | 10 | 2017-07-26T21:59:39.000Z | 2021-04-12T20:06:48.000Z | setup.py | kariminf/pytransliteration | a957a3fa549e674d20e94e30935e028994673067 | [
"Apache-2.0"
] | 2 | 2018-12-29T18:34:17.000Z | 2019-01-01T10:59:20.000Z | setup.py | kariminf/pytransliteration | a957a3fa549e674d20e94e30935e028994673067 | [
"Apache-2.0"
] | 4 | 2018-08-18T21:01:40.000Z | 2021-06-25T08:59:09.000Z | import os
from setuptools import setup
def readme():
try:
with open("README.md") as f:
return f.read()
except IOError:
return ""
setup(
name = "lang-trans",
version = "0.6.0",
author = "Abdelkrime Aries",
author_email = "kariminfo0@gmail.com",
description = ("Py... | 29.0625 | 65 | 0.615054 | 99 | 930 | 5.737374 | 0.717172 | 0.047535 | 0.088028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.247312 | 930 | 31 | 66 | 30 | 0.794286 | 0.063441 | 0 | 0 | 0 | 0 | 0.463751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.071429 | 0 | 0.178571 | 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 |
ecc3b237f1452c998b773c172662c9bd6ab6636e | 315 | py | Python | Two-pointer/Move elements in the array/Remove elements #27.py | Awesomeyaya/Leetcode-Two-pointer | 15cd0a73f5abc4d0d19d18c231750d31dc839dbe | [
"MIT"
] | null | null | null | Two-pointer/Move elements in the array/Remove elements #27.py | Awesomeyaya/Leetcode-Two-pointer | 15cd0a73f5abc4d0d19d18c231750d31dc839dbe | [
"MIT"
] | null | null | null | Two-pointer/Move elements in the array/Remove elements #27.py | Awesomeyaya/Leetcode-Two-pointer | 15cd0a73f5abc4d0d19d18c231750d31dc839dbe | [
"MIT"
] | 1 | 2018-10-29T17:33:52.000Z | 2018-10-29T17:33:52.000Z | def removeElement(self, nums, val):
"""
:type nums: List[int]
:type val: int
:rtype: int
"""
zero = 0
for n in range(len(nums)):
if nums[n] != val:
nums[zero] = nums[n]
zero = zero + 1
return zero
| 22.5 | 36 | 0.396825 | 35 | 315 | 3.571429 | 0.542857 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.485714 | 315 | 13 | 37 | 24.230769 | 0.759259 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecc4a0319007d502baab6c3f21559f2a55ba6379 | 199 | py | Python | session9Scripting/playground/datafile2Builder.py | campbellC/introToPython | 988f67adc3f687248308cb9b26481eb30cad687d | [
"MIT"
] | 1 | 2017-11-30T14:10:53.000Z | 2017-11-30T14:10:53.000Z | session9Scripting/playground/datafile2Builder.py | campbellC/introToPython | 988f67adc3f687248308cb9b26481eb30cad687d | [
"MIT"
] | null | null | null | session9Scripting/playground/datafile2Builder.py | campbellC/introToPython | 988f67adc3f687248308cb9b26481eb30cad687d | [
"MIT"
] | null | null | null | import random
random.seed()
with open('datafile2.dat','w') as f:
for i in range(10000):
for j in range(50):
f.write(str(random.randint(0,1000)) + ' ')
f.write('\n')
| 19.9 | 54 | 0.547739 | 31 | 199 | 3.516129 | 0.741935 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089655 | 0.271357 | 199 | 9 | 55 | 22.111111 | 0.662069 | 0 | 0 | 0 | 0 | 0 | 0.086294 | 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 |
ecc9cb90334c57c5634ed4d6c256de83cb378f5a | 1,914 | py | Python | www/csvtojs.py | denverpost/nouner | b37e6fd1215ce2587c450906bc5ca5328b6aa4d0 | [
"Unlicense"
] | null | null | null | www/csvtojs.py | denverpost/nouner | b37e6fd1215ce2587c450906bc5ca5328b6aa4d0 | [
"Unlicense"
] | 23 | 2015-09-25T18:17:27.000Z | 2018-02-09T22:31:13.000Z | www/csvtojs.py | denverpost/nounmatch | b37e6fd1215ce2587c450906bc5ca5328b6aa4d0 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# Turn a two-column CSV into a javascript object.
import os, sys, csv
import argparse
import doctest
import string
def escape(escapee):
""" Return a js-safe string.
>>> print escape('Escape "THIS"')
Escape \\"THIS\\"
"""
return string.replace(escapee, '"', '\\"')
... | 28.147059 | 94 | 0.547022 | 229 | 1,914 | 4.497817 | 0.454148 | 0.031068 | 0.043689 | 0.042718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005922 | 0.294148 | 1,914 | 67 | 95 | 28.567164 | 0.756477 | 0.077325 | 0 | 0.0625 | 0 | 0 | 0.096804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ecc9fbadf62756ff4d521776b745358bc90ffcbe | 183 | py | Python | setup.py | Chao8219/py_starter | 70fb3a2626899c0996a05ec7377ec8690dd216f1 | [
"MIT"
] | null | null | null | setup.py | Chao8219/py_starter | 70fb3a2626899c0996a05ec7377ec8690dd216f1 | [
"MIT"
] | null | null | null | setup.py | Chao8219/py_starter | 70fb3a2626899c0996a05ec7377ec8690dd216f1 | [
"MIT"
] | null | null | null | import distutils.core
distutils.core.setup(
name='py_starter',
version='1.0',
description='The very beginning of python code.',
author=AChao,
# to be continued.
) | 20.333333 | 53 | 0.672131 | 24 | 183 | 5.083333 | 0.916667 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.202186 | 183 | 9 | 54 | 20.333333 | 0.821918 | 0.087432 | 0 | 0 | 0 | 0 | 0.283133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ecca78355354d397e24c37e08841c5095a57bc0f | 3,231 | py | Python | tests/test_output.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | tests/test_output.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | tests/test_output.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | """Test module for MFE class output details."""
import pytest
import sklearn.tree
import pymfe._internal as _internal
from pymfe.mfe import MFE
from tests.utils import load_xy
GNAME = "mfe-output-details"
class TestOutput:
"""TestClass dedicated to test MFE output details."""
def test_output_lengths_1(self... | 28.59292 | 85 | 0.581863 | 424 | 3,231 | 4.268868 | 0.165094 | 0.066851 | 0.026519 | 0.035359 | 0.766851 | 0.748066 | 0.728177 | 0.728177 | 0.70884 | 0.693923 | 0 | 0.015306 | 0.272052 | 3,231 | 112 | 86 | 28.848214 | 0.754252 | 0.027546 | 0 | 0.666667 | 0 | 0 | 0.07314 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0.059524 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 5 |
ecce5739e9c5dd5c258cb92aff8a14712e75760c | 229 | py | Python | halalar/legal/views.py | jawaidss/halalar-web | abb5db6fa83aba7b7a280fcff1b880f36c0b4548 | [
"MIT"
] | 1 | 2015-11-09T22:09:43.000Z | 2015-11-09T22:09:43.000Z | halalar/legal/views.py | jawaidss/halalar-web | abb5db6fa83aba7b7a280fcff1b880f36c0b4548 | [
"MIT"
] | null | null | null | halalar/legal/views.py | jawaidss/halalar-web | abb5db6fa83aba7b7a280fcff1b880f36c0b4548 | [
"MIT"
] | null | null | null | from django.views.generic.base import TemplateView
class PrivacyPolicyView(TemplateView):
template_name = 'legal/privacy_policy.html'
class TermsOfServiceView(TemplateView):
template_name = 'legal/terms_of_service.html' | 32.714286 | 50 | 0.816594 | 26 | 229 | 7 | 0.730769 | 0.21978 | 0.263736 | 0.318681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100437 | 229 | 7 | 51 | 32.714286 | 0.883495 | 0 | 0 | 0 | 0 | 0 | 0.226087 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 6 |
ecce92ef0c81b0fe0ec5c41632dcfd5e4b125ddc | 436 | py | Python | SN/socialcircle/forms.py | samzek/social_circle | 071190bfb2b5b465fb669d8713698da9030be50f | [
"Apache-2.0"
] | 3 | 2015-06-03T09:48:28.000Z | 2015-06-25T16:54:32.000Z | SN/socialcircle/forms.py | samzek/social_circle | 071190bfb2b5b465fb669d8713698da9030be50f | [
"Apache-2.0"
] | null | null | null | SN/socialcircle/forms.py | samzek/social_circle | 071190bfb2b5b465fb669d8713698da9030be50f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.forms import ModelForm
from models import SCUser,Post
from django import forms
class modifyUser(ModelForm):
class Meta:
model = SCUser
fields = ['first_name','last_name','username','email','birth_date','password','address','user_bio','profi... | 22.947368 | 123 | 0.662844 | 53 | 436 | 5.358491 | 0.679245 | 0.070423 | 0.126761 | 0.161972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.192661 | 436 | 18 | 124 | 24.222222 | 0.803977 | 0.09633 | 0 | 0.181818 | 0 | 0 | 0.227621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 0.636364 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
eccee2d9721694209ab951d349b8a65cdea70532 | 22,944 | py | Python | pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IP-NW-DISCOVERY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IP-NW-DISCOVERY-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:02:10 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 206.702703 | 1,826 | 0.802868 | 2,671 | 22,944 | 6.895919 | 0.154624 | 0.032575 | 0.057006 | 0.006949 | 0.424616 | 0.294424 | 0.259569 | 0.235789 | 0.191324 | 0.178511 | 0 | 0.033993 | 0.098631 | 22,944 | 110 | 1,827 | 208.581818 | 0.856632 | 0.014993 | 0 | 0.039604 | 0 | 0.178218 | 0.515958 | 0.130893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09901 | 0 | 0.09901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eccf13ca0d1a710475435bedf4a8059c9f65f162 | 3,701 | py | Python | python/hsfs/core/feature_group_base.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | python/hsfs/core/feature_group_base.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | python/hsfs/core/feature_group_base.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Logical Clocks AB
#
# 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 ag... | 32.752212 | 91 | 0.636315 | 484 | 3,701 | 4.760331 | 0.303719 | 0.088542 | 0.041667 | 0.057292 | 0.391493 | 0.345486 | 0.311632 | 0.261719 | 0.215278 | 0.215278 | 0 | 0.003076 | 0.297217 | 3,701 | 112 | 92 | 33.044643 | 0.882737 | 0.61659 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.045455 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
eccfc8a373c8a059da4680e32c257444e5001a7b | 44,776 | py | Python | rasmus/vis/syntenyvis.py | Open-Technology/Computational-Biology | f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7 | [
"MIT"
] | 30 | 2015-05-08T19:21:15.000Z | 2022-03-11T21:30:33.000Z | rasmus/vis/syntenyvis.py | Open-Technology/Computational-Biology | f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7 | [
"MIT"
] | null | null | null | rasmus/vis/syntenyvis.py | Open-Technology/Computational-Biology | f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7 | [
"MIT"
] | 8 | 2015-05-08T02:02:33.000Z | 2021-06-10T17:51:03.000Z |
# python libs
import copy
# rasmus libs
from rasmus import stats
from rasmus import util
# rasmus bio libs
from compbio import fasta
from compbio import regionlib
import compbio.regionlib
from compbio.regionlib import iter_chrom
# graphics libs
from summon.core import *
from summon import shapes
import summon
# g... | 32.305916 | 91 | 0.466902 | 4,821 | 44,776 | 4.260319 | 0.111803 | 0.010906 | 0.006329 | 0.007449 | 0.27757 | 0.205414 | 0.149423 | 0.115147 | 0.073811 | 0.042943 | 0 | 0.024808 | 0.418438 | 44,776 | 1,385 | 92 | 32.329242 | 0.76394 | 0.035979 | 0 | 0.229773 | 0 | 0 | 0.028226 | 0.002289 | 0 | 0 | 0 | 0.000722 | 0 | 0 | null | null | 0 | 0.016181 | null | null | 0.033981 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ecd274b39828a2cbb60621e83b0c76718302d58c | 620 | py | Python | visual-option-chain/tasks.py | WillWcchan/Visual-Option-Chain-Graph | f9bfec4a262c2c3c3212e38113af4ad59517c52c | [
"MIT"
] | 1 | 2021-11-13T20:03:17.000Z | 2021-11-13T20:03:17.000Z | visual-option-chain/tasks.py | WillWcchan/Visual-Option-Chain-Graph | f9bfec4a262c2c3c3212e38113af4ad59517c52c | [
"MIT"
] | 5 | 2021-04-08T21:58:58.000Z | 2021-10-31T00:55:39.000Z | visual-option-chain/tasks.py | WillWcchan/Visual-Option-Chain-Graph | f9bfec4a262c2c3c3212e38113af4ad59517c52c | [
"MIT"
] | null | null | null | from celery import shared_task
from django.core.mail import send_mail
from datetime import datetime
from time import sleep
# Start the worker process and be on top of the visual-option-chain directory: celery -A visual-option-chain worker -l info -E
@shared_task
def send_email_task(subject, message, from_email, recip... | 26.956522 | 126 | 0.722581 | 89 | 620 | 4.865169 | 0.52809 | 0.069284 | 0.078522 | 0.101617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203226 | 620 | 22 | 127 | 28.181818 | 0.876518 | 0.2 | 0 | 0.111111 | 0 | 0 | 0.032389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
ecd428458267aa04e972ffb127dbe76ea7b0f91c | 315 | py | Python | linebot/__init__.py | WhereWeCanShare/linebot | ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7 | [
"BSD-3-Clause"
] | null | null | null | linebot/__init__.py | WhereWeCanShare/linebot | ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7 | [
"BSD-3-Clause"
] | null | null | null | linebot/__init__.py | WhereWeCanShare/linebot | ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7 | [
"BSD-3-Clause"
] | null | null | null | from flask import Flask, Blueprint
from .settings import Setting
from .routes import main
from .line2telegram.routes import l2tg
def create_app():
app = Flask(__name__)
app.config.from_object(Setting)
app.register_blueprint(main)
app.register_blueprint(l2tg, url_prefix='/l2tg')
return app
| 19.6875 | 52 | 0.749206 | 42 | 315 | 5.404762 | 0.47619 | 0.105727 | 0.176211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.168254 | 315 | 15 | 53 | 21 | 0.851145 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
ecd534abd7f8a9a4fecc3c6b9c2956ced9c8bbfb | 4,631 | py | Python | model/predict_from_file.py | elephantum/image-tools | 38d704a1ade32ed1f6ae8c652d257c15b7cc2740 | [
"MIT"
] | null | null | null | model/predict_from_file.py | elephantum/image-tools | 38d704a1ade32ed1f6ae8c652d257c15b7cc2740 | [
"MIT"
] | null | null | null | model/predict_from_file.py | elephantum/image-tools | 38d704a1ade32ed1f6ae8c652d257c15b7cc2740 | [
"MIT"
] | null | null | null | """
Given a csv or txt file and a Tensorflow 1.15 SavedModel file, run image classification on the urls
and write the predicted label and confidence back to the file
"""
import argparse
import os
from io import BytesIO
import requests
import pandas as pd
from csv import writer as csv_writer
from tqdm import tqdm
from m... | 37.346774 | 134 | 0.734183 | 723 | 4,631 | 4.605809 | 0.276625 | 0.018018 | 0.019219 | 0.010811 | 0.095496 | 0.088288 | 0.075075 | 0.037237 | 0.037237 | 0.037237 | 0 | 0.00386 | 0.160872 | 4,631 | 123 | 135 | 37.650407 | 0.853062 | 0.253077 | 0 | 0.048193 | 0 | 0 | 0.176007 | 0.006713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0.012048 | 0.120482 | 0 | 0.204819 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecd5add47e791d4dc866d0ec2a94e998ea16a8cb | 2,403 | py | Python | line_art/line_art.py | Ravenlocke/PythonArt | 30de6117f7639313344c9938087399acfc93ba80 | [
"MIT"
] | null | null | null | line_art/line_art.py | Ravenlocke/PythonArt | 30de6117f7639313344c9938087399acfc93ba80 | [
"MIT"
] | null | null | null | line_art/line_art.py | Ravenlocke/PythonArt | 30de6117f7639313344c9938087399acfc93ba80 | [
"MIT"
] | null | null | null | import click
import matplotlib.pyplot as plt
import numpy as np
from loguru import logger
from matplotlib.collections import LineCollection
number_to_degrees = {
k: (np.cos(np.pi * 2 / 10 * k), np.sin(np.pi * 2 / 10 * k))
for k in range(10)
}
@click.command()
@click.option(
"--seed", "-s", default=0, hel... | 26.119565 | 99 | 0.648772 | 331 | 2,403 | 4.598187 | 0.398792 | 0.043364 | 0.039422 | 0.009198 | 0.010512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016454 | 0.21598 | 2,403 | 91 | 100 | 26.406593 | 0.791401 | 0.001665 | 0 | 0.105263 | 0 | 0 | 0.239466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.065789 | 0 | 0.078947 | 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 | 0 | 0 | 1 | 0 |
ecd6a85eca2c9043b2128295fe6e487ccb69bc48 | 1,277 | py | Python | src/utils/reddit.py | mzone242/Loth-Bot | 830b3659c86f36e84c12e13796f74c607ff2868e | [
"MIT"
] | null | null | null | src/utils/reddit.py | mzone242/Loth-Bot | 830b3659c86f36e84c12e13796f74c607ff2868e | [
"MIT"
] | null | null | null | src/utils/reddit.py | mzone242/Loth-Bot | 830b3659c86f36e84c12e13796f74c607ff2868e | [
"MIT"
] | null | null | null | import datetime
import logging
logger = logging.getLogger("utils.reddit")
subreddit = None
over_threshold = []
def load_subreddit(_subreddit):
global subreddit
subreddit = _subreddit
return
def fetch_posts(_limit):
try:
logger.info(f"Fetching top {_limit} posts from {subreddit.display_name... | 28.377778 | 99 | 0.584182 | 151 | 1,277 | 4.827815 | 0.456954 | 0.071331 | 0.060357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019495 | 0.31715 | 1,277 | 44 | 100 | 29.022727 | 0.816514 | 0 | 0 | 0 | 0 | 0 | 0.1574 | 0.018794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.194444 | 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 | 0 | 0 | 1 | 0 |
ecd8a0ddb4c88f7b415905177b5939de99f001aa | 1,220 | py | Python | mfcc-features.py | gitikadaswani/Audio-Genre-Classification | 5702ed067d41982018a3e166dcdcd7b8e8cc6fa9 | [
"MIT"
] | 20 | 2017-12-09T02:41:46.000Z | 2020-08-29T06:26:57.000Z | mfcc-features.py | debeat/Audio-Genre-Classification | 5702ed067d41982018a3e166dcdcd7b8e8cc6fa9 | [
"MIT"
] | 2 | 2018-04-20T14:13:05.000Z | 2020-01-21T17:14:46.000Z | mfcc-features.py | debeat/Audio-Genre-Classification | 5702ed067d41982018a3e166dcdcd7b8e8cc6fa9 | [
"MIT"
] | 11 | 2018-05-17T07:32:51.000Z | 2021-11-11T23:51:36.000Z | #from scikits.talkbox.features import mfcc
import scipy.io.wavfile
import numpy as np
import sys
import os
import glob
from utils1 import GENRE_DIR, GENRE_LIST
from python_speech_features import mfcc
#from librosa.feature import mfcc
# Given a wavfile, computes mfcc and saves mfcc data
def create_ceps(wavfile):
sam... | 25.416667 | 66 | 0.741803 | 199 | 1,220 | 4.396985 | 0.422111 | 0.034286 | 0.044571 | 0.036571 | 0.052571 | 0.052571 | 0 | 0 | 0 | 0 | 0 | 0.002899 | 0.151639 | 1,220 | 48 | 67 | 25.416667 | 0.842512 | 0.196721 | 0 | 0 | 0 | 0 | 0.018735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.241379 | 0 | 0.344828 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ecdb7938bc7af5630df11db6dfd0808f1fab8b1e | 3,879 | py | Python | metadata4bats/metadata_wavefile_wurb.py | cloudedbats/cloudedbats_metadata | 85f286416a9552f69e4b857541e69cd7d3a063b1 | [
"MIT"
] | null | null | null | metadata4bats/metadata_wavefile_wurb.py | cloudedbats/cloudedbats_metadata | 85f286416a9552f69e4b857541e69cd7d3a063b1 | [
"MIT"
] | null | null | null | metadata4bats/metadata_wavefile_wurb.py | cloudedbats/cloudedbats_metadata | 85f286416a9552f69e4b857541e69cd7d3a063b1 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Project: http://cloudedbats.org
# Copyright (c) 2018 Arnold Andreasson
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
import re
import metadata4bats
class MetadataWavefileWurb(metadata4bats.MetadataWavefile):
""" """
def __init__(s... | 34.633929 | 98 | 0.531065 | 453 | 3,879 | 4.306843 | 0.348786 | 0.050231 | 0.08611 | 0.09226 | 0.137878 | 0.082522 | 0.063045 | 0.04818 | 0.04818 | 0.04818 | 0 | 0.048235 | 0.342614 | 3,879 | 111 | 99 | 34.945946 | 0.716863 | 0.193349 | 0 | 0.228571 | 0 | 0 | 0.113009 | 0.043035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0.057143 | 0.042857 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ecdc6ba10786df9e7a33a53fdc2a2e452c9d0c0f | 1,551 | py | Python | 2022/fix_user_varbinaries_T298565.py | wikimedia/operations-software-schema-changes | d5fc0442126c9e4280b90302f675889724b085db | [
"Apache-2.0"
] | 1 | 2022-03-25T06:59:37.000Z | 2022-03-25T06:59:37.000Z | 2022/fix_user_varbinaries_T298565.py | wikimedia/operations-software-schema-changes | d5fc0442126c9e4280b90302f675889724b085db | [
"Apache-2.0"
] | null | null | null | 2022/fix_user_varbinaries_T298565.py | wikimedia/operations-software-schema-changes | d5fc0442126c9e4280b90302f675889724b085db | [
"Apache-2.0"
] | null | null | null | from auto_schema.schema_change import SchemaChange
# Copy this file and make adjustments
# Set to None or 0 to skip downtiming
downtime_hours = 6
ticket = 'T298565'
fields = {
'user_newpass_time': 'BINARY(14) DEFAULT NULL',
'user_email_authenticated': 'BINARY(14) DEFAULT NULL',
'user_email_token': 'BINAR... | 31.653061 | 93 | 0.668601 | 225 | 1,551 | 4.48 | 0.448889 | 0.047619 | 0.059524 | 0.075397 | 0.108135 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0.024247 | 0.228885 | 1,551 | 48 | 94 | 32.3125 | 0.818562 | 0.277885 | 0 | 0 | 0 | 0 | 0.316216 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.03125 | 0.03125 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecde65669f4bedead3c07c5ea0c8b548eae55547 | 274 | py | Python | examples/tutorial/Hello World/hello_world_simple.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | examples/tutorial/Hello World/hello_world_simple.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | examples/tutorial/Hello World/hello_world_simple.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | import geosoft.gxpy as gxpy
# a GX context is required, and must be assigned to a variable that persists through the life of execution.
gxc = gxpy.gx.GXpy()
# gid is a property of the context that holds the user's Geosoft ID. Say hello.
print('Hello {}'.format(gxc.gid))
| 34.25 | 107 | 0.740876 | 49 | 274 | 4.142857 | 0.673469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175182 | 274 | 7 | 108 | 39.142857 | 0.89823 | 0.671533 | 0 | 0 | 0 | 0 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ecdebbbcc930fbd593a27cf375cbc5803f997b9d | 1,901 | py | Python | PAL/Cross/pupy/modules/load_package.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 2 | 2017-11-23T01:07:37.000Z | 2021-06-25T05:03:49.000Z | PAL/Cross/pupy/modules/load_package.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | null | null | null | PAL/Cross/pupy/modules/load_package.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 1 | 2018-05-22T02:28:43.000Z | 2018-05-22T02:28:43.000Z | # -*- coding: utf-8 -*-
from pupylib.PupyModule import *
import os
__class_name__="LoadPackageModule"
ROOT=os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
def package_completer(text, line, begidx, endidx):
try:
l=[]
for p in ["packages/all", "packages/linux/all/", "packages/windows... | 41.326087 | 151 | 0.603893 | 240 | 1,901 | 4.666667 | 0.475 | 0.021429 | 0.046429 | 0.042857 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004944 | 0.255129 | 1,901 | 45 | 152 | 42.244444 | 0.786017 | 0.011047 | 0 | 0.083333 | 0 | 0 | 0.230372 | 0.012607 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ecdee0d3de015065d94e2fa767a46043dd7614ac | 87,434 | py | Python | eucaconsole/views/instances.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | null | null | null | eucaconsole/views/instances.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | null | null | null | eucaconsole/views/instances.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2013-2016 Hewlett Packard Enterprise Development LP
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyrig... | 52.73462 | 122 | 0.636091 | 10,056 | 87,434 | 5.272474 | 0.069809 | 0.048548 | 0.026933 | 0.018861 | 0.593833 | 0.527348 | 0.46473 | 0.414579 | 0.349774 | 0.327141 | 0 | 0.00328 | 0.27471 | 87,434 | 1,657 | 123 | 52.766445 | 0.8328 | 0.040076 | 0 | 0.37594 | 0 | 0 | 0.09318 | 0.016681 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006835 | 0.021189 | 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 |
ecdfc10584ead3508610d287f02bad431a223015 | 1,069 | py | Python | controllers/messagelog.py | uezo/linebot-project-template | 294d40f5c50a3bbee346314107b60e98f4e07bf0 | [
"MIT"
] | 14 | 2019-08-05T22:54:59.000Z | 2021-12-21T00:29:22.000Z | controllers/messagelog.py | whitecat-22/linebot-project-template | 294d40f5c50a3bbee346314107b60e98f4e07bf0 | [
"MIT"
] | 1 | 2021-06-17T09:30:33.000Z | 2021-06-18T07:16:37.000Z | controllers/messagelog.py | whitecat-22/linebot-project-template | 294d40f5c50a3bbee346314107b60e98f4e07bf0 | [
"MIT"
] | 5 | 2019-09-03T06:51:44.000Z | 2021-06-17T09:40:42.000Z | from flask import (
Blueprint,
current_app,
request,
abort,
render_template
)
from minette.serializer import loads
# メインから読み込むBlueprintの定義
bp = Blueprint("messagelog", __name__)
# メッセージログのハンドラー
@bp.route("/messagelog", methods=["GET"])
def messagelog():
# BOTインスタンスの取得
bot = current_app.l... | 30.542857 | 76 | 0.651076 | 120 | 1,069 | 5.65 | 0.541667 | 0.039823 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00722 | 0.222638 | 1,069 | 34 | 77 | 31.441176 | 0.808664 | 0.108513 | 0 | 0 | 0 | 0 | 0.195354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.04 | 0.08 | 0 | 0.16 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecdfea2fc8814373ceb133d3329d18be6410b077 | 2,794 | py | Python | remove_proper_names/word_swaps.py | jsedoc/nn_chatbot | 7b4406687bad2efa14658cb5aa137065cd325073 | [
"MIT"
] | 2 | 2017-07-22T15:34:02.000Z | 2017-12-07T07:28:56.000Z | remove_proper_names/word_swaps.py | jsedoc/nn_chatbot | 7b4406687bad2efa14658cb5aa137065cd325073 | [
"MIT"
] | null | null | null | remove_proper_names/word_swaps.py | jsedoc/nn_chatbot | 7b4406687bad2efa14658cb5aa137065cd325073 | [
"MIT"
] | 3 | 2017-06-09T10:30:22.000Z | 2020-02-25T02:29:58.000Z | import glob
import os
# from nltk.tokenize import sent_e
import pickle
import nltk
import proper_names
import pdb
import itertools
import zlib
import pdb
import unicodedata
import pickle
from dateutil.parser import parse
def is_date(string):
try:
exceptions = ["sun", "sat"]
parse(string)
return string not in... | 27.126214 | 112 | 0.668576 | 422 | 2,794 | 4.229858 | 0.388626 | 0.030252 | 0.026891 | 0.017927 | 0.216247 | 0.193838 | 0.187115 | 0.187115 | 0.187115 | 0.187115 | 0 | 0.016129 | 0.223336 | 2,794 | 102 | 113 | 27.392157 | 0.806452 | 0.223336 | 0 | 0.214286 | 0 | 0 | 0.12943 | 0.093991 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042857 | 0.171429 | null | null | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ece0d4591ac1dbef0075df8821e6f6390b749839 | 5,015 | py | Python | model/MolecularVAE_TF.py | DexiongYung/molecular-vae | ca0e5a58abfc89e693d06331f93e5a23b948b683 | [
"MIT"
] | null | null | null | model/MolecularVAE_TF.py | DexiongYung/molecular-vae | ca0e5a58abfc89e693d06331f93e5a23b948b683 | [
"MIT"
] | null | null | null | model/MolecularVAE_TF.py | DexiongYung/molecular-vae | ca0e5a58abfc89e693d06331f93e5a23b948b683 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from utilities import DEVICE
def vae_loss(x_decoded_mean, x, z_mean, z_sd):
bce_loss = F.binary_cross_entropy(x_decoded_mean, x, reduction='sum')
kl_loss = -0.5 * torch.sum(1 + z_sd - z_mean.pow(2) - z_sd)
return bce_loss + kl_loss
class... | 38.875969 | 76 | 0.592223 | 734 | 5,015 | 3.768392 | 0.192098 | 0.060738 | 0.037961 | 0.014461 | 0.271511 | 0.15799 | 0.116052 | 0.057845 | 0.03543 | 0.03543 | 0 | 0.020011 | 0.292522 | 5,015 | 128 | 77 | 39.179688 | 0.759583 | 0.00658 | 0 | 0.048544 | 0 | 0 | 0.000605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058252 | false | 0 | 0.038835 | 0 | 0.15534 | 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 | 0 | 0 | 1 | 0 |
ece2b7f45bad32bc48fb693a6dbc789112e48513 | 2,391 | py | Python | gdmtl/datasets/sampler.py | binshengliu/gdmtl | fb8bfe0e87bbd6d8535cc8449012fb4119430d4c | [
"MIT"
] | null | null | null | gdmtl/datasets/sampler.py | binshengliu/gdmtl | fb8bfe0e87bbd6d8535cc8449012fb4119430d4c | [
"MIT"
] | null | null | null | gdmtl/datasets/sampler.py | binshengliu/gdmtl | fb8bfe0e87bbd6d8535cc8449012fb4119430d4c | [
"MIT"
] | 1 | 2022-02-26T00:49:03.000Z | 2022-02-26T00:49:03.000Z | from __future__ import annotations
from typing import Iterator, List
import numpy as np
from more_itertools import chunked
from torch.utils.data import Sampler
from .rank_dataset import TokenCountDataset
class DynamicBatchSampler(Sampler): # type:ignore
def __init__(
self,
dataset: TokenCountD... | 30.653846 | 88 | 0.608532 | 294 | 2,391 | 4.795918 | 0.319728 | 0.085816 | 0.049645 | 0.025532 | 0.324823 | 0.283688 | 0.22695 | 0.22695 | 0.22695 | 0.163121 | 0 | 0.002392 | 0.300711 | 2,391 | 77 | 89 | 31.051948 | 0.840909 | 0.148892 | 0 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.109091 | 0.072727 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ece4317db2ec23cd3da212a5f91799db6c4f4f28 | 732 | py | Python | winter/drf/input_serializer.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | 1 | 2020-03-28T14:54:28.000Z | 2020-03-28T14:54:28.000Z | winter/drf/input_serializer.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | null | null | null | winter/drf/input_serializer.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | null | null | null | from typing import Dict
from typing import Optional
from typing import Type
from dataclasses import dataclass
from rest_framework.serializers import Serializer
from ..core import ComponentMethod
from ..core import annotate
@dataclass
class InputSerializer:
class_: Type[Serializer]
kwargs: Dict
destinati... | 28.153846 | 98 | 0.81694 | 85 | 732 | 6.8 | 0.388235 | 0.103806 | 0.083045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122951 | 732 | 25 | 99 | 29.28 | 0.900312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.411765 | 0.058824 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ece4d8335a17b601ebf8628678662cbc5a6d273e | 4,417 | py | Python | scripts/showClusteringWithMatplotlib.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 10 | 2015-03-07T09:00:06.000Z | 2019-01-25T15:00:59.000Z | scripts/showClusteringWithMatplotlib.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 6 | 2015-01-08T11:17:14.000Z | 2018-10-08T15:17:32.000Z | scripts/showClusteringWithMatplotlib.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 11 | 2015-03-02T11:13:24.000Z | 2022-02-22T16:21:56.000Z |
# http://stackoverflow.com/questions/5147112/matplotlib-how-to-put-individual-tags-for-a-scatter-plot
# http://stackoverflow.com/questions/10374930/matplotlib-annotating-a-3d-scatter-plot
import sys
from pyproct.clustering.cluster import Cluster
import prody
import matplotlib.pyplot as plt
import numpy
import json
fr... | 46.989362 | 150 | 0.685307 | 560 | 4,417 | 5.233929 | 0.303571 | 0.021494 | 0.035824 | 0.045036 | 0.218014 | 0.12146 | 0.094166 | 0.071648 | 0.071648 | 0.071648 | 0 | 0.013312 | 0.166629 | 4,417 | 93 | 151 | 47.494624 | 0.782939 | 0.076523 | 0 | 0 | 0 | 0 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15942 | null | null | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ece5b98101c0b7084789fda8de5123934565565b | 15,973 | py | Python | tamarco/core/microservice.py | System73/tamarco | c85bec267d39057a4cd5f1c9854d5e2840cebb1e | [
"MIT"
] | 9 | 2019-09-06T10:57:36.000Z | 2019-10-14T07:24:02.000Z | tamarco/core/microservice.py | System73/tamarco | c85bec267d39057a4cd5f1c9854d5e2840cebb1e | [
"MIT"
] | 4 | 2020-04-06T15:52:40.000Z | 2021-06-02T00:27:33.000Z | tamarco/core/microservice.py | System73/tamarco | c85bec267d39057a4cd5f1c9854d5e2840cebb1e | [
"MIT"
] | 3 | 2019-09-06T10:52:05.000Z | 2019-10-10T07:45:26.000Z | import asyncio
import logging
import sys
import time
import uuid
from collections import OrderedDict
from collections.abc import Callable
from functools import partial
from threading import Thread
from typing import Coroutine, Union
from tamarco.core.dependency_resolver import CantSolveDependencies, resolve_dependency... | 38.121718 | 120 | 0.65617 | 1,984 | 15,973 | 5.139113 | 0.169355 | 0.026481 | 0.019223 | 0.018341 | 0.298254 | 0.251177 | 0.219106 | 0.203511 | 0.161044 | 0.153393 | 0 | 0.001856 | 0.257998 | 15,973 | 418 | 121 | 38.212919 | 0.858421 | 0.191824 | 0 | 0.274194 | 0 | 0 | 0.148099 | 0.010585 | 0 | 0 | 0 | 0 | 0.004032 | 1 | 0.056452 | false | 0 | 0.092742 | 0 | 0.262097 | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
ece6b2f23aba6f4dbaac2a541f07ef48b3ac7e3b | 4,990 | py | Python | napari/utils/colormaps/_tests/test_categorical_colormap.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 1,345 | 2019-03-03T21:14:14.000Z | 2022-03-31T19:46:39.000Z | napari/utils/colormaps/_tests/test_categorical_colormap.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 3,904 | 2019-03-02T01:30:24.000Z | 2022-03-31T20:17:27.000Z | napari/utils/colormaps/_tests/test_categorical_colormap.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 306 | 2019-03-29T17:09:10.000Z | 2022-03-30T09:54:11.000Z | import json
from itertools import cycle
import numpy as np
import pytest
from napari.utils.colormaps.categorical_colormap import CategoricalColormap
def test_default_categorical_colormap():
cmap = CategoricalColormap()
assert cmap.colormap == {}
color_cycle = cmap.fallback_color
np.testing.assert_a... | 33.716216 | 82 | 0.690982 | 695 | 4,990 | 4.717986 | 0.130935 | 0.025008 | 0.026532 | 0.020738 | 0.501067 | 0.374504 | 0.269594 | 0.191522 | 0.184203 | 0.128088 | 0 | 0.031411 | 0.183367 | 4,990 | 147 | 83 | 33.945578 | 0.773252 | 0.114228 | 0 | 0.156863 | 0 | 0 | 0.044485 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.078431 | false | 0 | 0.04902 | 0 | 0.127451 | 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 | 0 | 0 | 1 | 0 |
ece7523d74ceefe1e8b2b606e98dcc5885734d32 | 1,254 | py | Python | lezione4/ring_client.py | vollero/asdsw2021 | 28c8509681a986ee7c7fc3b0da782ce799a24195 | [
"CC0-1.0"
] | 1 | 2022-03-28T13:40:51.000Z | 2022-03-28T13:40:51.000Z | lezione4/ring_client.py | vollero/asdsw2021 | 28c8509681a986ee7c7fc3b0da782ce799a24195 | [
"CC0-1.0"
] | null | null | null | lezione4/ring_client.py | vollero/asdsw2021 | 28c8509681a986ee7c7fc3b0da782ce799a24195 | [
"CC0-1.0"
] | null | null | null | import socket
import logging
from sys import argv
import json
import re
def join(clientSocket, currNode, nextNode, oracleIP, oraclePORT):
message = '[JOIN] {}'.format(json.dumps(currNode))
logging.debug('JOIN MESSAGE: {}'.format(message))
clientSocket.sendto(message.encode(), (oracleIP, oraclePORT))
me... | 27.26087 | 96 | 0.69059 | 138 | 1,254 | 6.202899 | 0.449275 | 0.093458 | 0.098131 | 0.126168 | 0.170561 | 0.116822 | 0 | 0 | 0 | 0 | 0 | 0.008721 | 0.177033 | 1,254 | 45 | 97 | 27.866667 | 0.820736 | 0.019936 | 0 | 0.09375 | 0 | 0 | 0.097879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.09375 | 0.15625 | 0 | 0.28125 | 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 |
ecea0e953b8a3b5674749c92e29add6bece88812 | 1,833 | py | Python | resolwe/flow/finders.py | jkokosar/resolwe | c23db01494ef863fb2f8e130a59198cfd10bc7aa | [
"Apache-2.0"
] | null | null | null | resolwe/flow/finders.py | jkokosar/resolwe | c23db01494ef863fb2f8e130a59198cfd10bc7aa | [
"Apache-2.0"
] | null | null | null | resolwe/flow/finders.py | jkokosar/resolwe | c23db01494ef863fb2f8e130a59198cfd10bc7aa | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import os
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.module_loading import import_string
class BaseProcessesFinder(object):
"""
A ba... | 31.067797 | 111 | 0.729951 | 209 | 1,833 | 6.167464 | 0.358852 | 0.038014 | 0.037238 | 0.046548 | 0.252909 | 0.116369 | 0.116369 | 0.116369 | 0.116369 | 0.116369 | 0 | 0 | 0.19258 | 1,833 | 58 | 112 | 31.603448 | 0.870946 | 0.039825 | 0 | 0.162162 | 0 | 0 | 0.139655 | 0.012069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.216216 | 0.108108 | 0.702703 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
eceb4701691e5840fbba24688faf47e59f51470c | 65 | py | Python | graphite_feeder/handler/event/appliance/sound/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/appliance/sound/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/appliance/sound/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | from graphite_feeder.handler.event.appliance.sound import player
| 32.5 | 64 | 0.876923 | 9 | 65 | 6.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 65 | 1 | 65 | 65 | 0.918033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
ecedab6229e1c971886b23ad8d709733a48c40ca | 4,827 | py | Python | selectreverse/utils.py | idonethis/django-selectreverse | 13535028aaccb9e2a784dd798a188d88776a5dad | [
"BSD-2-Clause"
] | null | null | null | selectreverse/utils.py | idonethis/django-selectreverse | 13535028aaccb9e2a784dd798a188d88776a5dad | [
"BSD-2-Clause"
] | null | null | null | selectreverse/utils.py | idonethis/django-selectreverse | 13535028aaccb9e2a784dd798a188d88776a5dad | [
"BSD-2-Clause"
] | null | null | null | """
django-selectreverse
Custom manager to reduce sql queries for m2m and reverse fk relationships
"""
from django.db import models
from django.db.models.fields.related import ForeignRelatedObjectsDescriptor, ReverseManyRelatedObjectsDescriptor, ManyRelatedObjectsDescriptor
from django.core.exceptions import Impro... | 47.792079 | 144 | 0.64885 | 537 | 4,827 | 5.657356 | 0.255121 | 0.032587 | 0.017775 | 0.027979 | 0.376234 | 0.336076 | 0.234365 | 0.210665 | 0.189598 | 0.139566 | 0 | 0.001381 | 0.250052 | 4,827 | 100 | 145 | 48.27 | 0.837845 | 0.010151 | 0 | 0.256757 | 0 | 0 | 0.026261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | 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 |
ecef158be8b2811acbb68437f98daaadc77358fd | 521 | py | Python | api/migrations/0007_auto_20181214_0439.py | takezyou/django_api | e65137632314958804dbe55c1111976ce3cdffe5 | [
"MIT"
] | null | null | null | api/migrations/0007_auto_20181214_0439.py | takezyou/django_api | e65137632314958804dbe55c1111976ce3cdffe5 | [
"MIT"
] | 9 | 2019-08-06T02:02:54.000Z | 2021-09-08T00:41:31.000Z | api/migrations/0007_auto_20181214_0439.py | takezyou/django_api | e65137632314958804dbe55c1111976ce3cdffe5 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2018-12-14 04:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0006_auto_20181214_0019'),
]
operations = [
migrations.AlterField(
model_name='post',
name='created_at',
... | 21.708333 | 47 | 0.56238 | 51 | 521 | 5.607843 | 0.686275 | 0.13986 | 0.174825 | 0.202797 | 0.258741 | 0.258741 | 0 | 0 | 0 | 0 | 0 | 0.087819 | 0.322457 | 521 | 23 | 48 | 22.652174 | 0.72238 | 0.086372 | 0 | 0.470588 | 1 | 0 | 0.113924 | 0.048523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ecf1ce20b4fefaf58c8c7d08d20616ef3be895a2 | 375 | py | Python | src/utils/utils.py | andrelopez/cron-parser-cli | 35df5d5d8113dde99bee95f834c63248ce459194 | [
"MIT"
] | null | null | null | src/utils/utils.py | andrelopez/cron-parser-cli | 35df5d5d8113dde99bee95f834c63248ce459194 | [
"MIT"
] | null | null | null | src/utils/utils.py | andrelopez/cron-parser-cli | 35df5d5d8113dde99bee95f834c63248ce459194 | [
"MIT"
] | null | null | null | from columnar import columnar
def print_table(minute: str, hour: str, day: str, month: str, week: str, cmd: str) -> str:
table = [
['minute', minute],
['hour', hour],
['day of month', day],
['month', month],
['day of week', week],
['command', cmd]
]
table = ... | 25 | 90 | 0.541333 | 46 | 375 | 4.369565 | 0.413043 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296 | 375 | 15 | 91 | 25 | 0.761364 | 0 | 0 | 0 | 0 | 0 | 0.119681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ecf2e06543a14fb924a2fb9fd6fb42ef3f9435a6 | 547 | py | Python | client/terminal.py | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | client/terminal.py | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | client/terminal.py | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41:57.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys
from typing import TextIO
def is_capable(file: TextIO = sys.stderr) -> bool:
"""
Determine whether we are conne... | 27.35 | 65 | 0.689214 | 79 | 547 | 4.759494 | 0.696203 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21755 | 547 | 19 | 66 | 28.789474 | 0.878505 | 0.489945 | 0 | 0 | 0 | 0 | 0.065637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
ecf35ef4c074dccc46a80355a4787bf3619f13a3 | 778 | py | Python | tests/utils/test_download.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | tests/utils/test_download.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | tests/utils/test_download.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | from gather.utils import download
import hashlib
from helpers import get_datapath
def test_download(requests_mock):
beaco2n_data = get_datapath(filename="test_data.csv", network="beaco2n")
binary_data = beaco2n_data.read_bytes()
mock_url = "https://example.com/some_csv.txt"
requests_mock.get(
... | 19.948718 | 76 | 0.667095 | 97 | 778 | 5.103093 | 0.391753 | 0.09899 | 0.090909 | 0.115152 | 0.359596 | 0.270707 | 0.270707 | 0.141414 | 0 | 0 | 0 | 0.054237 | 0.241645 | 778 | 38 | 77 | 20.473684 | 0.784746 | 0 | 0 | 0.407407 | 0 | 0 | 0.107969 | 0.041131 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.148148 | 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 | 0 | 0 | 1 | 0 |
ecf408df66ed468cf11584dcfbbc451fc2a54142 | 917 | py | Python | LeNet/LeNet_pt.py | MuhammedAshraf2020/implementation-of-CNN-Models | 52be2b8d27c2340d30b6cab1883fffdb2f656343 | [
"MIT"
] | 2 | 2021-02-09T16:14:50.000Z | 2021-08-03T13:33:47.000Z | LeNet/LeNet_pt.py | MuhammedAshraf2020/implementation-of-CNN-Models | 52be2b8d27c2340d30b6cab1883fffdb2f656343 | [
"MIT"
] | null | null | null | LeNet/LeNet_pt.py | MuhammedAshraf2020/implementation-of-CNN-Models | 52be2b8d27c2340d30b6cab1883fffdb2f656343 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.optim as optim
# Create Model
class LeNet_pt(nn.Module):
def __init__(self):
super(LeNet_pt , self).__init__()
self.ConvModel = nn.Sequential(
nn.Conv2d(in_channels = 3 , out_channels = 6 , kernel_size = (5 , 5) , padding = (0 , 0) , stride = (1 , 1)),
... | 35.269231 | 118 | 0.586696 | 140 | 917 | 3.692857 | 0.321429 | 0.096712 | 0.058027 | 0.104449 | 0.381044 | 0.381044 | 0.381044 | 0.381044 | 0.381044 | 0.381044 | 0 | 0.075036 | 0.244275 | 917 | 25 | 119 | 36.68 | 0.670996 | 0.013086 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.318182 | 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 | 0 | 0 | 1 | 0 |
019e55ec1c50df9500d86cf12839f5b296083659 | 4,782 | py | Python | ELA_Training_Module_Final.py | Sawera557/PhotoChamp-Image-Forensic-Tool | e7550a97d33cdf58a66ea0efcc451178bfd88a8d | [
"MIT"
] | null | null | null | ELA_Training_Module_Final.py | Sawera557/PhotoChamp-Image-Forensic-Tool | e7550a97d33cdf58a66ea0efcc451178bfd88a8d | [
"MIT"
] | null | null | null | ELA_Training_Module_Final.py | Sawera557/PhotoChamp-Image-Forensic-Tool | e7550a97d33cdf58a66ea0efcc451178bfd88a8d | [
"MIT"
] | null | null | null | import itertools
import os
import random as random1
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from PIL import Image, ImageChops, ImageEnhance
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D
from keras.models import Sequential
from keras.optimizers import RMSpr... | 37.952381 | 123 | 0.645128 | 663 | 4,782 | 4.481146 | 0.351433 | 0.021542 | 0.024234 | 0.011444 | 0.080781 | 0.023561 | 0.023561 | 0.023561 | 0.023561 | 0 | 0 | 0.029098 | 0.216646 | 4,782 | 125 | 124 | 38.256 | 0.764015 | 0.045797 | 0 | 0 | 0 | 0 | 0.076067 | 0.00545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0 | 0.163043 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
019fe14b196eb5bbb4dfe787d8a050ae5287690f | 380 | py | Python | model/__init__.py | aupendu/zero-restore | 7d2f44eb008ef47042a3a5b0e0a2654731e22f53 | [
"MIT"
] | 13 | 2021-06-15T12:39:44.000Z | 2022-03-07T15:33:40.000Z | model/__init__.py | aupendu/zero-restore | 7d2f44eb008ef47042a3a5b0e0a2654731e22f53 | [
"MIT"
] | 4 | 2021-06-19T07:53:09.000Z | 2022-01-12T15:41:52.000Z | model/__init__.py | aupendu/zero-restore | 7d2f44eb008ef47042a3a5b0e0a2654731e22f53 | [
"MIT"
] | 4 | 2021-08-01T08:51:38.000Z | 2022-02-22T05:12:03.000Z | import os
import torch
import torch.nn as nn
from importlib import import_module
class Model(nn.Module):
def __init__(self, modelname):
super(Model, self).__init__()
print('Making model...')
module = import_module('model.' + modelname)
self.model = module.make_mode... | 22.352941 | 52 | 0.623684 | 47 | 380 | 4.808511 | 0.446809 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268421 | 380 | 16 | 53 | 23.75 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.055263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0.083333 | 0.75 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
01a154d7d3f987732b81523447ce1b96222a9132 | 3,140 | py | Python | natural/bank.py | Foxlik/natural | 0e8b15b200525ee147579b025a787646f7534890 | [
"MIT"
] | 21 | 2015-03-02T15:41:25.000Z | 2020-05-20T12:46:03.000Z | natural/bank.py | Foxlik/natural | 0e8b15b200525ee147579b025a787646f7534890 | [
"MIT"
] | 12 | 2015-10-29T18:02:00.000Z | 2021-11-10T21:49:40.000Z | natural/bank.py | Foxlik/natural | 0e8b15b200525ee147579b025a787646f7534890 | [
"MIT"
] | 8 | 2015-10-29T17:50:13.000Z | 2020-01-16T09:40:53.000Z | from natural.constant import _, IBAN_ALPHABET
from natural.constant import BBAN_RULES, BBAN_PATTERN, BBAN_MAP
import re
def bban_compact(number):
'''
Printable compacted Basic Bank Account Number. Removes all the padding
characters.
:param number: string
>>> bban_compact('1234.56.78.90')
'12... | 25.528455 | 78 | 0.606369 | 369 | 3,140 | 5.084011 | 0.327913 | 0.072495 | 0.036247 | 0.053305 | 0.28678 | 0.201493 | 0.172175 | 0.172175 | 0.127932 | 0.127932 | 0 | 0.08518 | 0.267197 | 3,140 | 122 | 79 | 25.737705 | 0.730117 | 0.424204 | 0 | 0.095238 | 0 | 0 | 0.100439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.071429 | 0.02381 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01a1648b4f717a6753e2c3b737bfc86f6abdbe33 | 1,011 | py | Python | synapyse/impl/learning/unsupervised_hebbian_learning.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 4 | 2015-09-19T11:02:56.000Z | 2019-03-27T11:42:12.000Z | synapyse/impl/learning/unsupervised_hebbian_learning.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | null | null | null | synapyse/impl/learning/unsupervised_hebbian_learning.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 1 | 2019-10-29T16:24:28.000Z | 2019-10-29T16:24:28.000Z | from synapyse.base.learning.unsupervised_learning import UnsupervisedLearning
__author__ = 'Douglas Eric Fonseca Rodrigues'
class UnsupervisedHebbianLearning(UnsupervisedLearning):
def __init__(self, neural_network, learning_rate):
"""
:type neural_network: synapyse.base.neural_network.NeuralNetw... | 40.44 | 94 | 0.720079 | 106 | 1,011 | 6.528302 | 0.377358 | 0.093931 | 0.073699 | 0.060694 | 0.095376 | 0.095376 | 0 | 0 | 0 | 0 | 0 | 0.001239 | 0.20178 | 1,011 | 25 | 95 | 40.44 | 0.856258 | 0.193867 | 0 | 0 | 0 | 0 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 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 |
01a16a425c553405c970ba2b0d169dec70571e71 | 805 | py | Python | WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py | sak9188/WinIO2 | 629a91633142cd78fd55422f9884b7f15f1d4e1d | [
"Apache-2.0"
] | 1 | 2022-03-20T23:19:24.000Z | 2022-03-20T23:19:24.000Z | WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py | sak9188/WinIO2 | 629a91633142cd78fd55422f9884b7f15f1d4e1d | [
"Apache-2.0"
] | null | null | null | WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py | sak9188/WinIO2 | 629a91633142cd78fd55422f9884b7f15f1d4e1d | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
from WinIO.Controls import ReuseWindow
from WinIO.Core import PyDelegateConverter as PyDel
from WinIO2.Core.FunctionTool import FunctionChain
class AcrylicWindowStyle(object):
Normal = 0
NoIcon = 1
Null = 2
class BlankWindow(ReuseWindow):
def __init__(self):
self.after_hidden = Functi... | 18.295455 | 61 | 0.737888 | 104 | 805 | 5.634615 | 0.403846 | 0.056314 | 0.071672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.161491 | 805 | 44 | 62 | 18.295455 | 0.860741 | 0.026087 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.096774 | 0.096774 | 0.612903 | 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 | 1 | 0 | 0 | 2 |
01a26e38bfd6477fceda79c2ab6901ad81a89ddd | 6,435 | py | Python | menu.py | ThinkDownstairs/coder | 7a42a9bac941039b96ccf2430e560cc60e2159df | [
"WTFPL"
] | 1 | 2018-03-20T06:01:17.000Z | 2018-03-20T06:01:17.000Z | menu.py | ThinkDownstairs/coder | 7a42a9bac941039b96ccf2430e560cc60e2159df | [
"WTFPL"
] | 19 | 2018-03-20T23:11:38.000Z | 2018-04-01T17:39:10.000Z | menu.py | ThinkDownstairs/coder | 7a42a9bac941039b96ccf2430e560cc60e2159df | [
"WTFPL"
] | null | null | null |
from collections import namedtuple
import state_manager
import background
import sound
import quit_
import howto
import locations
import pygame
import consts
class MenuEntry(object):
def __init__(self, name: str, typ) -> None:
super().__init__()
self._name = name
self._typ = typ
... | 39 | 156 | 0.591142 | 856 | 6,435 | 4.191589 | 0.160047 | 0.035674 | 0.062709 | 0.031773 | 0.323579 | 0.268952 | 0.179208 | 0.14019 | 0.114827 | 0.114827 | 0 | 0.025558 | 0.276457 | 6,435 | 164 | 157 | 39.237805 | 0.74506 | 0.010878 | 0 | 0.108696 | 0 | 0 | 0.011474 | 0.003615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.07971 | 0.021739 | 0.253623 | 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 | 0 | 0 | 1 | 0 |
01a2fc10e366d654cb931d27945bf9ef998b5a2a | 21,634 | py | Python | tor4/tensor.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | tor4/tensor.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | tor4/tensor.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | from typing import (
Any,
Callable,
List,
NamedTuple,
Optional,
Tuple,
Type,
Union,
overload,
)
import numpy as np
from scipy import special
Array = Union[np.ndarray]
Numeric = Union[int, float]
# Lists = Union[Numeric, List['Lists']]
Tuplist = Union[Tuple[int, ...], List[int]]
Dim... | 26.841191 | 122 | 0.623278 | 2,779 | 21,634 | 4.668586 | 0.080964 | 0.104517 | 0.025435 | 0.03006 | 0.626561 | 0.565207 | 0.527362 | 0.497996 | 0.471713 | 0.468938 | 0 | 0.004411 | 0.266386 | 21,634 | 805 | 123 | 26.874534 | 0.813055 | 0.014422 | 0 | 0.416988 | 0 | 0 | 0.037682 | 0.001642 | 0 | 0 | 0 | 0 | 0.009653 | 1 | 0.214286 | false | 0 | 0.005792 | 0.100386 | 0.420849 | 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 | 1 | 0 | 0 | 0 | 2 |
01a35af78a818794456f060908d249837cf70d44 | 5,576 | py | Python | cpepgen/chemical_linkages.py | hjuinj/cpepgen | 965f84148f783bd1d19aec4c9b86841a598d4a9b | [
"MIT"
] | null | null | null | cpepgen/chemical_linkages.py | hjuinj/cpepgen | 965f84148f783bd1d19aec4c9b86841a598d4a9b | [
"MIT"
] | null | null | null | cpepgen/chemical_linkages.py | hjuinj/cpepgen | 965f84148f783bd1d19aec4c9b86841a598d4a9b | [
"MIT"
] | null | null | null | """
This file contains several reactions for RDKIT
NOTES:
- Check what happens with ASP ASP ester bond formation? need more specifications to do that side targets?
- check_reaction_mols, also checking how many of the reaction sites are present in one molecule? - (more specific smart: make_aa_backbone_bond = [N... | 43.224806 | 230 | 0.695301 | 729 | 5,576 | 5.215364 | 0.245542 | 0.121515 | 0.047344 | 0.058916 | 0.430563 | 0.362704 | 0.308785 | 0.304314 | 0.287743 | 0.234087 | 0 | 0.017133 | 0.173063 | 5,576 | 128 | 231 | 43.5625 | 0.807417 | 0.222382 | 0 | 0.152778 | 0 | 0.027778 | 0.15715 | 0.037754 | 0 | 0 | 0 | 0.007813 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0.027778 | 0.305556 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
01a431b7bea5dccade1e08d80166cc10db69bf34 | 1,105 | py | Python | config.py | cclauss/MAX-Object-Detector | 4f38f7c1ba65cc39baa4a0f466618b91a65f46a1 | [
"Apache-2.0"
] | null | null | null | config.py | cclauss/MAX-Object-Detector | 4f38f7c1ba65cc39baa4a0f466618b91a65f46a1 | [
"Apache-2.0"
] | null | null | null | config.py | cclauss/MAX-Object-Detector | 4f38f7c1ba65cc39baa4a0f466618b91a65f46a1 | [
"Apache-2.0"
] | null | null | null | import os
# Flask settings
DEBUG=True
# Flask-restplus settings
RESTPLUS_MASK_SWAGGER=False
# Application settings
# API metadata
API_TITLE = 'Model Asset Exchange Server'
API_DESC = 'An API for serving models'
API_VERSION = '0.1'
# default model
# name of model to download
MODEL_NAME = 'ssd_mobilenet_v1_coco_2017... | 29.864865 | 97 | 0.744796 | 159 | 1,105 | 4.930818 | 0.566038 | 0.068878 | 0.061224 | 0.056122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021008 | 0.138462 | 1,105 | 36 | 98 | 30.694444 | 0.802521 | 0.284163 | 0 | 0 | 0 | 0 | 0.363636 | 0.116517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 | 0 | 0 | 1 | 0 |
01a49750a5f79f46de5800bcca67ff60a286ab7c | 921 | py | Python | check_pharmacist.py | 136s/check_pharmacist | 02f60355523b5c4890fd314d6d000bfe54226db8 | [
"CC0-1.0"
] | null | null | null | check_pharmacist.py | 136s/check_pharmacist | 02f60355523b5c4890fd314d6d000bfe54226db8 | [
"CC0-1.0"
] | null | null | null | check_pharmacist.py | 136s/check_pharmacist | 02f60355523b5c4890fd314d6d000bfe54226db8 | [
"CC0-1.0"
] | null | null | null | import time
import pandas as pd
from selenium import webdriver
SEARCH_URL = "https://licenseif.mhlw.go.jp/search_iyaku/top.jsp"
SLEEP_SEC = 3
IN_CSV_NAME = "./list.csv"
OUT_CSV_NAME = "./output.csv"
# 名前を投げると「登録年」の list が返ってくる
def get_years(name) :
driver.get(SEARCH_URL)
time.sleep(SLEEP_SEC)
search_box =... | 26.314286 | 81 | 0.689468 | 147 | 921 | 4.102041 | 0.537415 | 0.046434 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003896 | 0.163952 | 921 | 34 | 82 | 27.088235 | 0.779221 | 0.082519 | 0 | 0 | 0 | 0 | 0.142687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 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 | 0 | 0 | 1 | 0 |
01a82caa0086ae5bd27db7ac800143f2aa34c7d3 | 3,983 | py | Python | Lessons/source/search.py | daisukiyo/cs-1.3 | e23056c509f429d83cb8be94714205c78a76549f | [
"MIT"
] | null | null | null | Lessons/source/search.py | daisukiyo/cs-1.3 | e23056c509f429d83cb8be94714205c78a76549f | [
"MIT"
] | 2 | 2019-04-25T00:49:24.000Z | 2019-05-15T23:22:36.000Z | Lessons/source/search.py | daisukiyo/cs-1.3 | e23056c509f429d83cb8be94714205c78a76549f | [
"MIT"
] | null | null | null | #!python
def linear_search(array, item):
"""return the first index of item in array or None if item is not found"""
# implement linear_search_iterative and linear_search_recursive below, then
# change this to call your implementation to verify it passes all tests
# return linear_search_iterative(array,... | 37.575472 | 99 | 0.667085 | 549 | 3,983 | 4.765027 | 0.176685 | 0.068807 | 0.053517 | 0.06422 | 0.700688 | 0.625382 | 0.535933 | 0.482416 | 0.482416 | 0.390291 | 0 | 0.004517 | 0.277429 | 3,983 | 106 | 100 | 37.575472 | 0.904448 | 0.583731 | 0 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0 | 1 | 0.15 | false | 0 | 0 | 0 | 0.425 | 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 | 0 | 0 | 1 | 0 |