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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10569332e899bd88d4c5dad6015c51ae5c99fb99 | 1,375 | py | Python | jigna/vue_template.py | David-Baddeley/jigna | 00192450515099d8abc74866ffe1e4f743fe2279 | [
"BSD-3-Clause"
] | 17 | 2015-02-19T15:35:09.000Z | 2021-06-21T09:50:00.000Z | jigna/vue_template.py | David-Baddeley/jigna | 00192450515099d8abc74866ffe1e4f743fe2279 | [
"BSD-3-Clause"
] | 41 | 2015-02-12T13:15:01.000Z | 2019-07-22T21:06:23.000Z | jigna/vue_template.py | David-Baddeley/jigna | 00192450515099d8abc74866ffe1e4f743fe2279 | [
"BSD-3-Clause"
] | 14 | 2015-02-26T06:19:27.000Z | 2020-11-03T07:10:11.000Z | #
# Enthought product code
#
# (C) Copyright 2013-2016 Enthought, Inc., Austin, TX
# All right reserved.
#
from textwrap import dedent
# Local imports
from .template import Template
class VueTemplate(Template):
"""A template for vue.js templates. Note that this assumes that the
ViewModel is attached to the... | 28.061224 | 85 | 0.495273 | 133 | 1,375 | 5.075188 | 0.616541 | 0.048889 | 0.041481 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009627 | 0.395636 | 1,375 | 48 | 86 | 28.645833 | 0.802647 | 0.179636 | 0 | 0.064516 | 0 | 0 | 0.844625 | 0.142728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0.032258 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10569c504a264f066d93454b4b3e6fa846821239 | 1,137 | py | Python | nopassword/backends/email.py | TabsterApp/django-nopassword | a681254c2fade8374f17fbcadff45851469e6551 | [
"MIT"
] | 103 | 2015-01-11T11:50:38.000Z | 2022-02-16T06:21:23.000Z | nopassword/backends/email.py | TabsterApp/django-nopassword | a681254c2fade8374f17fbcadff45851469e6551 | [
"MIT"
] | 34 | 2015-01-19T07:04:05.000Z | 2019-11-26T09:51:22.000Z | nopassword/backends/email.py | TabsterApp/django-nopassword | a681254c2fade8374f17fbcadff45851469e6551 | [
"MIT"
] | 31 | 2015-04-30T16:25:42.000Z | 2021-09-22T02:48:30.000Z | # -*- coding: utf-8 -*-
from django.core.mail import EmailMultiAlternatives
from django.template.exceptions import TemplateDoesNotExist
from django.template.loader import render_to_string
from nopassword.backends.base import NoPasswordBackend
class EmailBackend(NoPasswordBackend):
template_name = 'registration/l... | 36.677419 | 90 | 0.729112 | 130 | 1,137 | 6.123077 | 0.392308 | 0.090452 | 0.070352 | 0.109296 | 0.163317 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001082 | 0.187335 | 1,137 | 30 | 91 | 37.9 | 0.86039 | 0.055409 | 0 | 0 | 0 | 0 | 0.089636 | 0.081232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.142857 | 0.190476 | 0 | 0.47619 | 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 |
106421f6e921cb9acecea89abfebc9c3d0ec686f | 495 | py | Python | test_server.py | wirenboard/sensor-tools-scada-client | b16f3032d012dc04e902c8e528d31f3ed06273e0 | [
"MIT"
] | null | null | null | test_server.py | wirenboard/sensor-tools-scada-client | b16f3032d012dc04e902c8e528d31f3ed06273e0 | [
"MIT"
] | null | null | null | test_server.py | wirenboard/sensor-tools-scada-client | b16f3032d012dc04e902c8e528d31f3ed06273e0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import socket
TCP_IP = '127.0.0.1'
TCP_PORT = 7116
BUFFER_SIZE = 20 # Normally 1024, but we want fast response
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((TCP_IP, TCP_PORT))
s.listen(1)
conn, addr = s.accept()
print '... | 19.8 | 60 | 0.686869 | 82 | 495 | 4.036585 | 0.646341 | 0.108761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045783 | 0.161616 | 495 | 24 | 61 | 20.625 | 0.751807 | 0.133333 | 0 | 0 | 0 | 0 | 0.115023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1068f961a9b5056bb89330c91fc456cdb1a42f35 | 432 | py | Python | rebel/exceptions.py | hugollm/rebel | 52ff51d17730cfc80f5f64b56b8b8d07f10dde8c | [
"MIT"
] | 8 | 2016-09-27T17:31:29.000Z | 2020-08-26T12:33:44.000Z | rebel/exceptions.py | hugollm/rebel | 52ff51d17730cfc80f5f64b56b8b8d07f10dde8c | [
"MIT"
] | 2 | 2017-02-02T18:18:43.000Z | 2017-02-07T18:40:04.000Z | rebel/exceptions.py | hugollm/rebel | 52ff51d17730cfc80f5f64b56b8b8d07f10dde8c | [
"MIT"
] | 3 | 2016-09-23T23:23:04.000Z | 2021-10-08T11:27:28.000Z | class NotInsideTransaction(Exception):
def __init__(self):
message = 'Trying to perform an operation that needs to be inside transaction'
super(NotInsideTransaction, self).__init__(message)
class MixedPositionalAndNamedArguments(Exception):
def __init__(self):
message = 'Cannot mix p... | 33.230769 | 86 | 0.747685 | 43 | 432 | 7.139535 | 0.627907 | 0.078176 | 0.104235 | 0.130293 | 0.175896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18287 | 432 | 12 | 87 | 36 | 0.869688 | 0 | 0 | 0.25 | 0 | 0 | 0.268519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
106beb9e8b8e773f4e9179a58ecd8079f06c389d | 1,950 | py | Python | KronigPenneyModel/mainKP.py | Bellomia/pyDrude | cd2d6980008ddbe247f1aa50dc238e0d7cf0904f | [
"MIT"
] | null | null | null | KronigPenneyModel/mainKP.py | Bellomia/pyDrude | cd2d6980008ddbe247f1aa50dc238e0d7cf0904f | [
"MIT"
] | null | null | null | KronigPenneyModel/mainKP.py | Bellomia/pyDrude | cd2d6980008ddbe247f1aa50dc238e0d7cf0904f | [
"MIT"
] | null | null | null | import pylab
import numpy
from math import sqrt, factorial, sin, cos, pi
## Retrieving physical parameters: ##
particleDensity = int(input('Please insert the particle density N/L: '))
cutoff = float(input('Please insert the desired energy cut-off [in units of Fermi energy]: '))
V0 = float(input('Please insert the des... | 27.857143 | 96 | 0.630256 | 253 | 1,950 | 4.849802 | 0.41502 | 0.00652 | 0.041565 | 0.0489 | 0.153219 | 0.07498 | 0 | 0 | 0 | 0 | 0 | 0.020111 | 0.260513 | 1,950 | 70 | 97 | 27.857143 | 0.830791 | 0.266154 | 0 | 0 | 0 | 0 | 0.152702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.275862 | 0.103448 | 0.37931 | 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 | 1 | 0 | 0 | 0 | 1 |
1072b3e1246d0d0112c7fe1dc0e2aa1a88854df0 | 56,065 | py | Python | relstorage/storage.py | affinitic/relstorage | 7b67cbd8156687e425077cdaf80d085d83fc9257 | [
"ZPL-2.1"
] | null | null | null | relstorage/storage.py | affinitic/relstorage | 7b67cbd8156687e425077cdaf80d085d83fc9257 | [
"ZPL-2.1"
] | null | null | null | relstorage/storage.py | affinitic/relstorage | 7b67cbd8156687e425077cdaf80d085d83fc9257 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2008 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 35.062539 | 81 | 0.584554 | 6,383 | 56,065 | 4.9248 | 0.120946 | 0.010657 | 0.014888 | 0.012025 | 0.338922 | 0.278352 | 0.220105 | 0.196628 | 0.177064 | 0.164689 | 0 | 0.005433 | 0.34007 | 56,065 | 1,598 | 82 | 35.084481 | 0.844185 | 0.128619 | 0 | 0.447273 | 0 | 0 | 0.03023 | 0.001027 | 0 | 0 | 0 | 0.000626 | 0.010909 | 0 | null | null | 0.003636 | 0.024545 | 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 |
1075a1b8107943d58b8b4c51bc893838aad656b5 | 2,122 | py | Python | guestroom/models.py | YuriyCherniy/just-blog | ea9810a8e4db77f109d211bb45c04fb79d0f1e5c | [
"MIT"
] | 3 | 2022-01-15T18:23:34.000Z | 2022-01-15T20:32:52.000Z | guestroom/models.py | YuriyCherniy/just-blog | ea9810a8e4db77f109d211bb45c04fb79d0f1e5c | [
"MIT"
] | null | null | null | guestroom/models.py | YuriyCherniy/just-blog | ea9810a8e4db77f109d211bb45c04fb79d0f1e5c | [
"MIT"
] | 1 | 2022-01-19T11:31:52.000Z | 2022-01-19T11:31:52.000Z | from django.db import models
from django.urls import reverse
from django.utils.safestring import mark_safe
class GuestPost(models.Model):
'''
Do not remove or replace "help_text" variable content.
This blog uses hidden reCAPTCHA by Google, so you must tell
your users explicitly about using this featur... | 32.151515 | 107 | 0.695099 | 267 | 2,122 | 5.348315 | 0.460674 | 0.061625 | 0.064426 | 0.072829 | 0.306723 | 0.278711 | 0.193277 | 0.193277 | 0.193277 | 0.127451 | 0 | 0.008299 | 0.204995 | 2,122 | 65 | 108 | 32.646154 | 0.838174 | 0.1164 | 0 | 0.238095 | 0 | 0.047619 | 0.121179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.095238 | 0.690476 | 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 |
107f608ec1fc0333002c61e0420c054f4818277d | 1,699 | py | Python | app.py | Cawies/poverty-dashboard | 1b5f9fc72ec787a582c092cb0d92a593d8e91365 | [
"MIT"
] | null | null | null | app.py | Cawies/poverty-dashboard | 1b5f9fc72ec787a582c092cb0d92a593d8e91365 | [
"MIT"
] | null | null | null | app.py | Cawies/poverty-dashboard | 1b5f9fc72ec787a582c092cb0d92a593d8e91365 | [
"MIT"
] | null | null | null | # External libraries
import numpy as np
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import json
import dash_table
# Internal modules
from processing.data_management import load_excel, load_geojson
import processing.preprocessors as pp
f... | 24.271429 | 86 | 0.715715 | 219 | 1,699 | 5.388128 | 0.383562 | 0.081356 | 0.101695 | 0.09661 | 0.216949 | 0.167797 | 0 | 0 | 0 | 0 | 0 | 0.00567 | 0.169511 | 1,699 | 70 | 87 | 24.271429 | 0.830617 | 0.107122 | 0 | 0 | 0 | 0 | 0.127237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.307692 | 0 | 0.512821 | 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 |
10833fb3cc4a4819ea9674d673e8b6c68687b0c3 | 2,051 | py | Python | recycle bin/transfer_learning_I.py | adinissim-160495/bci4als | 99443fd944f7fce6cdb7c1b22fb75f6b3fec654b | [
"MIT"
] | 2 | 2020-11-10T21:35:21.000Z | 2020-12-25T15:12:26.000Z | recycle bin/transfer_learning_I.py | adinissim-160495/bci4als | 99443fd944f7fce6cdb7c1b22fb75f6b3fec654b | [
"MIT"
] | 3 | 2020-12-25T14:50:44.000Z | 2021-03-16T14:08:34.000Z | recycle bin/transfer_learning_I.py | adinissim-160495/bci4als | 99443fd944f7fce6cdb7c1b22fb75f6b3fec654b | [
"MIT"
] | 2 | 2021-01-20T09:22:00.000Z | 2021-04-10T09:46:54.000Z | from get_CNN_data import get_CNN_data
import numpy as np
from keras.applications import resnet_v2
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras import optimizers
import matplotlib.pyplot as plt
from sklearn.neighbors import KNeighborsClassifier
from sklearn.tree import Decision... | 28.887324 | 78 | 0.712335 | 285 | 2,051 | 4.887719 | 0.347368 | 0.04738 | 0.040201 | 0.022972 | 0.078966 | 0.078966 | 0.041637 | 0.041637 | 0 | 0 | 0 | 0.029976 | 0.186738 | 2,051 | 70 | 79 | 29.3 | 0.805156 | 0.221843 | 0 | 0 | 0 | 0 | 0.040635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.472222 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
108646ef8b1c63a679b848822b463f2831613c82 | 1,668 | py | Python | store/migrations/0003_auto_20191224_1553.py | VitaliyKononovich/bookstore | f7381f15678eebb5c5198b91d173c2d095d40f67 | [
"MIT"
] | null | null | null | store/migrations/0003_auto_20191224_1553.py | VitaliyKononovich/bookstore | f7381f15678eebb5c5198b91d173c2d095d40f67 | [
"MIT"
] | null | null | null | store/migrations/0003_auto_20191224_1553.py | VitaliyKononovich/bookstore | f7381f15678eebb5c5198b91d173c2d095d40f67 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-12-24 12:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 37.066667 | 130 | 0.603118 | 178 | 1,668 | 5.5 | 0.398876 | 0.040858 | 0.057201 | 0.089888 | 0.427988 | 0.427988 | 0.364658 | 0.364658 | 0.364658 | 0.364658 | 0 | 0.030179 | 0.264988 | 1,668 | 44 | 131 | 37.909091 | 0.768352 | 0.026978 | 0 | 0.368421 | 1 | 0 | 0.085133 | 0.014189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
108c849f9cfb7f459d58a5c5f455d2c2018d214e | 2,779 | py | Python | watchdog_kj_kultura/organizations/resources.py | watchdogpolska/watchdog-kj-kultura | ea1a5c52ef2a174c012cc08eff5fdd7aa3b911b0 | [
"MIT"
] | null | null | null | watchdog_kj_kultura/organizations/resources.py | watchdogpolska/watchdog-kj-kultura | ea1a5c52ef2a174c012cc08eff5fdd7aa3b911b0 | [
"MIT"
] | 138 | 2016-12-10T19:18:18.000Z | 2019-06-10T19:32:40.000Z | watchdog_kj_kultura/organizations/resources.py | watchdogpolska/watchdog-kj-kultura | ea1a5c52ef2a174c012cc08eff5fdd7aa3b911b0 | [
"MIT"
] | null | null | null | import logging
from functools import lru_cache
from import_export import fields, resources
from ..teryt.models import JednostkaAdministracyjna
from .models import MetaCategory, Organization
logger = logging.getLogger(__name__)
class MetaField(fields.Field):
def save(self, obj, data):
if not self.reado... | 29.88172 | 92 | 0.628643 | 323 | 2,779 | 5.256966 | 0.266254 | 0.035336 | 0.030624 | 0.01649 | 0.190813 | 0.161366 | 0.161366 | 0.117786 | 0.041225 | 0 | 0 | 0.003349 | 0.247931 | 2,779 | 92 | 93 | 30.206522 | 0.809091 | 0 | 0 | 0.268657 | 0 | 0 | 0.048579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0 | 0.074627 | 0.044776 | 0.537313 | 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 |
10a31ec06284055e63a505083fc55e248ca8c504 | 1,059 | py | Python | tests/test_get_value_digital.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 31 | 2018-07-16T15:03:14.000Z | 2022-03-10T08:36:09.000Z | tests/test_get_value_digital.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 216 | 2018-07-18T20:00:34.000Z | 2021-10-05T17:40:47.000Z | tests/test_get_value_digital.py | makaimann/fault | 8c805415f398e64971d18fbd3014bc0b59fb38b8 | [
"BSD-3-Clause"
] | 10 | 2019-02-17T00:56:58.000Z | 2021-11-05T13:31:37.000Z | from pathlib import Path
import fault
import magma as m
from .common import pytest_sim_params
def pytest_generate_tests(metafunc):
pytest_sim_params(metafunc, 'system-verilog', 'verilator')
class MyAdder(m.Circuit):
io = m.IO(a=m.In(m.UInt[4]),
b=m.Out(m.UInt[4]))
io.b @= io.a + 1
def t... | 22.531915 | 62 | 0.608121 | 147 | 1,059 | 4.265306 | 0.482993 | 0.028708 | 0.047847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010296 | 0.266289 | 1,059 | 46 | 63 | 23.021739 | 0.796654 | 0.055713 | 0 | 0 | 1 | 0 | 0.070352 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.09375 | false | 0 | 0.125 | 0.03125 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10a9ccb827e9718ed7d1a53a5d868ba53c57fefc | 22,331 | py | Python | generator/article_rpc.py | david-salac/itblog.github.io | 2f8be9f7ab058ae196bc46d0cde4d75d936c7e86 | [
"MIT"
] | 1 | 2020-11-23T09:36:25.000Z | 2020-11-23T09:36:25.000Z | generator/article_rpc.py | david-salac/itblog.github.io | 2f8be9f7ab058ae196bc46d0cde4d75d936c7e86 | [
"MIT"
] | null | null | null | generator/article_rpc.py | david-salac/itblog.github.io | 2f8be9f7ab058ae196bc46d0cde4d75d936c7e86 | [
"MIT"
] | null | null | null | # More about some useful concepts in Python language
import datetime
import crinita as cr
lead = """One of the common challenges when dealing with data is how to send the dataset from one place to another and how to store data effectively. These problems are interconnected, as they both require serialization of da... | 54.333333 | 791 | 0.688057 | 3,036 | 22,331 | 5.018116 | 0.233531 | 0.013784 | 0.005907 | 0.008533 | 0.208664 | 0.173482 | 0.146111 | 0.123269 | 0.115261 | 0.115261 | 0 | 0.007405 | 0.225964 | 22,331 | 410 | 792 | 54.465854 | 0.873995 | 0.002732 | 0 | 0.271293 | 0 | 0.100946 | 0.973508 | 0.111091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003155 | 0.100946 | 0 | 0.11041 | 0.025237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10ad4fbf618cb42a3a86554dd7b70a8275ea3f52 | 948 | py | Python | ex-7 shift reduce/shift_reduce.py | ComputerScientist-01/Compiler-Design-1 | cc009eaad98cac777893bbbb1fc3b93cc7b4e29a | [
"MIT"
] | null | null | null | ex-7 shift reduce/shift_reduce.py | ComputerScientist-01/Compiler-Design-1 | cc009eaad98cac777893bbbb1fc3b93cc7b4e29a | [
"MIT"
] | 1 | 2022-01-09T15:18:51.000Z | 2022-01-09T15:18:51.000Z | ex-7 shift reduce/shift_reduce.py | ComputerScientist-01/Compiler-Design-1 | cc009eaad98cac777893bbbb1fc3b93cc7b4e29a | [
"MIT"
] | null | null | null | gram = {
"E":["2E2","3E3","4"]
}
starting_terminal = "E"
inp = "2324232$"
"""
# example 2
gram = {
"S":["S+S","S*S","i"]
}
starting_terminal = "S"
inp = "i+i*i"
"""
stack = "$"
print(f'{"Stack": <15}'+"|"+f'{"Input Buffer": <15}'+"|" + 'Parsing Action')
print(f'{"-":-<50}')
while True:
action = Tr... | 23.7 | 90 | 0.526371 | 134 | 948 | 3.664179 | 0.276119 | 0.260692 | 0.112016 | 0.132383 | 0.248473 | 0.219959 | 0.219959 | 0.142566 | 0.142566 | 0 | 0 | 0.053316 | 0.188819 | 948 | 40 | 91 | 23.7 | 0.585176 | 0 | 0 | 0.137931 | 0 | 0 | 0.288156 | 0.037851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10afee87d7b641f1c543f7e9eb89c6cbe8801cc6 | 212 | py | Python | sumofdigits.py | Sarath-MA/Python_Programs | f2ad8ff2ec301af83174d7b6d8306518668add5a | [
"MIT"
] | null | null | null | sumofdigits.py | Sarath-MA/Python_Programs | f2ad8ff2ec301af83174d7b6d8306518668add5a | [
"MIT"
] | null | null | null | sumofdigits.py | Sarath-MA/Python_Programs | f2ad8ff2ec301af83174d7b6d8306518668add5a | [
"MIT"
] | null | null | null | #program to create sum of digits
num = int(input("Enter a number "))
copy = num
sum = 0
while num > 0:
r = num % 10
sum = sum + r
num //= 10
print("Sum of digits")
print("The sum of digits are",sum)
| 17.666667 | 35 | 0.603774 | 38 | 212 | 3.368421 | 0.526316 | 0.117188 | 0.257813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.264151 | 212 | 11 | 36 | 19.272727 | 0.782051 | 0.146226 | 0 | 0 | 0 | 0 | 0.273743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
10b0d9e94a198d805211c0efcca0a0edd735a157 | 7,546 | py | Python | src/contentratings/interfaces.py | NextThought/nti.contentratings | d6c5cb082085c03edfdc87d27d4bdd22f336d68f | [
"ZPL-2.1"
] | null | null | null | src/contentratings/interfaces.py | NextThought/nti.contentratings | d6c5cb082085c03edfdc87d27d4bdd22f336d68f | [
"ZPL-2.1"
] | null | null | null | src/contentratings/interfaces.py | NextThought/nti.contentratings | d6c5cb082085c03edfdc87d27d4bdd22f336d68f | [
"ZPL-2.1"
] | null | null | null | from zope.interface import Interface, Attribute, directlyProvides
from zope.interface.interfaces import IInterface
from zope.annotation.interfaces import IAnnotatable
from zope.componentvocabulary.vocabulary import InterfacesVocabulary
from zope.schema import Float
from zope.schema import Int
from zope.schema import AS... | 33.537778 | 80 | 0.67665 | 920 | 7,546 | 5.503261 | 0.252174 | 0.014221 | 0.028244 | 0.019751 | 0.21272 | 0.192574 | 0.185463 | 0.185463 | 0.157022 | 0.13016 | 0 | 0.000881 | 0.247548 | 7,546 | 224 | 81 | 33.6875 | 0.890807 | 0.278558 | 0 | 0.139344 | 0 | 0 | 0.289616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040984 | false | 0 | 0.090164 | 0 | 0.52459 | 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 |
529d9e5f9d9f2adae65e2c18968f902374b21a6b | 639 | py | Python | get_user_data_via_reddit.py | BrianBrennglass/Deviency-Score | 9e3223ea954114797cdd1bd834afdae700729a00 | [
"MIT"
] | null | null | null | get_user_data_via_reddit.py | BrianBrennglass/Deviency-Score | 9e3223ea954114797cdd1bd834afdae700729a00 | [
"MIT"
] | null | null | null | get_user_data_via_reddit.py | BrianBrennglass/Deviency-Score | 9e3223ea954114797cdd1bd834afdae700729a00 | [
"MIT"
] | null | null | null | import praw
reddit = praw.Reddit(
client_id="RyhoH9FE3QNpXIe5stCQ7A",
client_secret="YHm3cIWF90PbPykHZEdyYYa4_LgOrQ",
user_agent="appTester123"
)
def getUserData(user):
users_engagements_object = reddit.redditor(user).new(limit=100)
user_engagements_extracted = {'subreddit': [], 'user': [], '18+_engagem... | 33.631579 | 81 | 0.788732 | 69 | 639 | 7 | 0.463768 | 0.15528 | 0.248447 | 0.136646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.092332 | 639 | 18 | 82 | 35.5 | 0.798276 | 0.025039 | 0 | 0 | 0 | 0 | 0.190016 | 0.083736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
529db97cead276574e16145754d2fc4e4741d8ba | 1,705 | py | Python | STIT/postprocessing/SwimmingRose.py | pierrick-giffard/STAMM-Sea_Turtle_Active_Movement_Model | dcd94c8968cd8e7a4daa56ae566707ace19885fa | [
"MIT"
] | 1 | 2022-02-14T09:27:46.000Z | 2022-02-14T09:27:46.000Z | STIT/postprocessing/SwimmingRose.py | pierrick-giffard/STAMM-Sea_Turtle_Active_Movement_Model | dcd94c8968cd8e7a4daa56ae566707ace19885fa | [
"MIT"
] | null | null | null | STIT/postprocessing/SwimmingRose.py | pierrick-giffard/STAMM-Sea_Turtle_Active_Movement_Model | dcd94c8968cd8e7a4daa56ae566707ace19885fa | [
"MIT"
] | 1 | 2020-07-29T13:50:46.000Z | 2020-07-29T13:50:46.000Z | # -*- coding: utf-8 -*-
"""
Plot swimming velocity roses.
USE: python SwimmingRose.py output.nc
"""
# =============================================================================
# IMPORTS
# =============================================================================
import numpy as np
from netCDF4 import Dataset
im... | 29.912281 | 79 | 0.366569 | 153 | 1,705 | 4.019608 | 0.496732 | 0.053659 | 0.039024 | 0.042276 | 0.097561 | 0.097561 | 0.097561 | 0.097561 | 0.097561 | 0.097561 | 0 | 0.02381 | 0.088563 | 1,705 | 56 | 80 | 30.446429 | 0.371943 | 0.602933 | 0 | 0.105263 | 0 | 0 | 0.095827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
529dbe535ac121da60a38f794a361f62a0bdd682 | 1,449 | py | Python | imageProcessing/renamefiles.py | adikeinan/MicroPasts-Scripts | fd10f9882852e79bf19c39a8f8b23f99f9bd8684 | [
"Apache-2.0"
] | null | null | null | imageProcessing/renamefiles.py | adikeinan/MicroPasts-Scripts | fd10f9882852e79bf19c39a8f8b23f99f9bd8684 | [
"Apache-2.0"
] | null | null | null | imageProcessing/renamefiles.py | adikeinan/MicroPasts-Scripts | fd10f9882852e79bf19c39a8f8b23f99f9bd8684 | [
"Apache-2.0"
] | null | null | null | """
Usage: python script.py search_string replace_string dir
Eg. python batchreplace.py galleries productions /Sites/cjc/application/modules/productions/
And it will search recursively in dir
and replace search_string in contents
and in filenames.
Case-sensitive
"""
from sys import argv
import os
def multi_replace(... | 29.571429 | 92 | 0.652174 | 189 | 1,449 | 4.915344 | 0.412698 | 0.069968 | 0.038751 | 0.036598 | 0.109795 | 0.055974 | 0 | 0 | 0 | 0 | 0 | 0.002854 | 0.274672 | 1,449 | 48 | 93 | 30.1875 | 0.881066 | 0.013112 | 0 | 0 | 0 | 0 | 0.079794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
529f077872c424f92a20744249623f51c2d08fc3 | 1,205 | py | Python | gehomesdk/erd/values/oven/const.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | gehomesdk/erd/values/oven/const.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | gehomesdk/erd/values/oven/const.py | warrenrees/gehome | 6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8 | [
"MIT"
] | null | null | null | STATE_OVEN_BAKE = "Bake"
STATE_OVEN_BAKE_TWO_TEMP = "Bake (Two Temp.)"
STATE_OVEN_BAKED_GOODS = "Baked Goods"
STATE_OVEN_BROIL_HIGH = "Broil (High)"
STATE_OVEN_BROIL_LOW = "Broil (Low)"
STATE_OVEN_CONV_BAKE = "Convection Bake"
STATE_OVEN_CONV_BAKE_TWO_TEMP = "Convection Bake (Two Temp.)"
STATE_OVEN_CONV_BROIL_CRISP = "... | 38.870968 | 63 | 0.804149 | 183 | 1,205 | 4.803279 | 0.196721 | 0.307167 | 0.118316 | 0.054608 | 0.102389 | 0.056883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102075 | 1,205 | 30 | 64 | 40.166667 | 0.812384 | 0 | 0 | 0 | 0 | 0 | 0.325311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52a1ab852741f589165efc3189bfdb1a07314c93 | 19,394 | py | Python | clancy_database/spreadsheet/csv2db.py | arthurian/visualizing_russian_tools | 65fd37839dc0650bb25d1f98904da5b79ae1a754 | [
"BSD-3-Clause"
] | null | null | null | clancy_database/spreadsheet/csv2db.py | arthurian/visualizing_russian_tools | 65fd37839dc0650bb25d1f98904da5b79ae1a754 | [
"BSD-3-Clause"
] | null | null | null | clancy_database/spreadsheet/csv2db.py | arthurian/visualizing_russian_tools | 65fd37839dc0650bb25d1f98904da5b79ae1a754 | [
"BSD-3-Clause"
] | null | null | null | import csv
import sqlite3
import os.path
import sys
import time
import logging
import unicodedata
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
CSV_FIELD_NAMES = ['UniqueId', 'Russian', 'SecondRussian', 'POS', 'POS_Subtype', 'Animacy', 'Level', 'English', 'Rank', 'Count', 'Chapter', 'AdjAdvProp', 'Collocatio... | 43.68018 | 4,419 | 0.618645 | 2,165 | 19,394 | 5.340416 | 0.212009 | 0.015568 | 0.029407 | 0.009081 | 0.202906 | 0.16978 | 0.13553 | 0.114427 | 0.111226 | 0.107075 | 0 | 0.006332 | 0.218212 | 19,394 | 443 | 4,420 | 43.778781 | 0.756167 | 0.055481 | 0 | 0.233146 | 0 | 0.005618 | 0.314703 | 0.007116 | 0 | 0 | 0 | 0.002257 | 0 | 1 | 0.042135 | false | 0 | 0.022472 | 0 | 0.101124 | 0.005618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52a2236ba4a8bec42b6c8082392c74b3435f855b | 2,176 | py | Python | surfstat/python/need_not_convert/SurfStatReadSurf.py | rudimeier/BrainStat | a5ef474ffd70300ecf5fa464fff4a41e71f4b7a1 | [
"BSD-3-Clause"
] | null | null | null | surfstat/python/need_not_convert/SurfStatReadSurf.py | rudimeier/BrainStat | a5ef474ffd70300ecf5fa464fff4a41e71f4b7a1 | [
"BSD-3-Clause"
] | null | null | null | surfstat/python/need_not_convert/SurfStatReadSurf.py | rudimeier/BrainStat | a5ef474ffd70300ecf5fa464fff4a41e71f4b7a1 | [
"BSD-3-Clause"
] | null | null | null | """
python version of SurfStatReadSurf
"""
# Author: RRC
# License: BSD 3 clause
import numpy as np
@deprecated("BrainSpace dependency")
def py_SurfStatReadSurf(filenames, ab='a', numfields=2, dirname, maxmem=64):
"""Reads coordinates and triangles from an array of .obj or FreeSurfer files.
Parameters
... | 38.175439 | 81 | 0.661765 | 328 | 2,176 | 4.371951 | 0.435976 | 0.006974 | 0.011158 | 0.006974 | 0.132497 | 0.020921 | 0 | 0 | 0 | 0 | 0 | 0.016383 | 0.27068 | 2,176 | 56 | 82 | 38.857143 | 0.887209 | 0.015165 | 0 | 0 | 0 | 0 | 0.334906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
52a3bd2317f03fde77bf20fb984d2c80cb032ef4 | 303 | py | Python | datadog_checks_dev/datadog_checks/dev/tooling/commands/env_commands/__init__.py | volksman/integrations-core | 34405662b09bf4a8c32feaed16a4745c7e1f24c0 | [
"BSD-3-Clause"
] | null | null | null | datadog_checks_dev/datadog_checks/dev/tooling/commands/env_commands/__init__.py | volksman/integrations-core | 34405662b09bf4a8c32feaed16a4745c7e1f24c0 | [
"BSD-3-Clause"
] | null | null | null | datadog_checks_dev/datadog_checks/dev/tooling/commands/env_commands/__init__.py | volksman/integrations-core | 34405662b09bf4a8c32feaed16a4745c7e1f24c0 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from .check import check_run
from .ls import ls
from .prune import prune
from .start import start
from .stop import stop
ALL_COMMANDS = (
check_run,
ls,
prune,
start,
stop,
)
| 17.823529 | 59 | 0.69637 | 46 | 303 | 4.521739 | 0.543478 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021368 | 0.227723 | 303 | 16 | 60 | 18.9375 | 0.867521 | 0.330033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
52a50fd346f5091e32e923e23dfc9fbabbad041e | 1,349 | py | Python | setup.py | mitiku1/ML_PY | b287f0ab0ef3244283d5f7a99d4167ce4aee2804 | [
"MIT"
] | 1 | 2019-07-26T06:55:21.000Z | 2019-07-26T06:55:21.000Z | setup.py | mitiku1/ML_PY | b287f0ab0ef3244283d5f7a99d4167ce4aee2804 | [
"MIT"
] | null | null | null | setup.py | mitiku1/ML_PY | b287f0ab0ef3244283d5f7a99d4167ce4aee2804 | [
"MIT"
] | null | null | null | from setuptools import setup,find_packages
from codecs import open
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here,'README.rst'),encoding="utf-8") as f:
long_desc = f.read()
setup(
name = "ml_py",
version = "0.0.003",
description="Python packge which contains ... | 35.5 | 89 | 0.630838 | 162 | 1,349 | 5.141975 | 0.574074 | 0.028812 | 0.180072 | 0.12485 | 0.090036 | 0.090036 | 0 | 0 | 0 | 0 | 0 | 0.019755 | 0.212009 | 1,349 | 38 | 90 | 35.5 | 0.763876 | 0.00593 | 0 | 0 | 0 | 0 | 0.504478 | 0.020896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52a5cdb30830a2cddf3e55ab0095a56d0f632163 | 1,838 | py | Python | scripts/batch_estimate_merge.py | mortonjt/q2-batch | f7974532acc197510e66396eb4b91e465130b766 | [
"BSD-3-Clause"
] | 1 | 2021-09-23T01:09:35.000Z | 2021-09-23T01:09:35.000Z | scripts/batch_estimate_merge.py | mortonjt/q2-batch | f7974532acc197510e66396eb4b91e465130b766 | [
"BSD-3-Clause"
] | 10 | 2021-02-07T03:29:34.000Z | 2021-05-26T04:41:36.000Z | scripts/batch_estimate_merge.py | mortonjt/q2-batch | f7974532acc197510e66396eb4b91e465130b766 | [
"BSD-3-Clause"
] | 2 | 2021-05-26T04:44:38.000Z | 2021-09-23T01:09:36.000Z | import qiime2
import argparse
from dask_jobqueue import SLURMCluster
from dask.distributed import Client
import dask
import dask.dataframe as dd
import dask.array as da
from biom import load_table
import pandas as pd
import numpy as np
import xarray as xr
import arviz as az
from q2_batch._batch import _batch_func, merg... | 36.76 | 85 | 0.688792 | 245 | 1,838 | 4.995918 | 0.444898 | 0.029412 | 0.055556 | 0.034314 | 0.094771 | 0.094771 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.192601 | 1,838 | 49 | 86 | 37.510204 | 0.819407 | 0.026659 | 0 | 0.133333 | 0 | 0 | 0.175713 | 0.025741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
52a850b1e8fb3dd14aa2f7f9f42da98a3b476712 | 8,464 | py | Python | data/training/code/data_processor.py | cake-lab/transient_deep_learning | 87c6717e4026801623cf0327e78ad57f51cb1461 | [
"Apache-2.0"
] | 11 | 2019-12-12T17:34:04.000Z | 2022-03-03T11:21:13.000Z | data/training/code/data_processor.py | cake-lab/transient_deep_learning | 87c6717e4026801623cf0327e78ad57f51cb1461 | [
"Apache-2.0"
] | null | null | null | data/training/code/data_processor.py | cake-lab/transient_deep_learning | 87c6717e4026801623cf0327e78ad57f51cb1461 | [
"Apache-2.0"
] | null | null | null | import googleapiclient.discovery
import googleapiclient
from datetime import datetime
import os
import sqlite3
import csv
PROJECTNAME = "shijian-18"
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = '/Users/ozymandias/Desktop/cloudComputing/shijian-18-key.json'
COMPUTE = googleapiclient.discovery.build('compute', 'v1')
... | 38.126126 | 135 | 0.533554 | 1,009 | 8,464 | 4.351834 | 0.184341 | 0.040993 | 0.050102 | 0.049419 | 0.534502 | 0.470052 | 0.454338 | 0.40082 | 0.356411 | 0.319517 | 0 | 0.029367 | 0.303993 | 8,464 | 222 | 136 | 38.126126 | 0.716007 | 0.045369 | 0 | 0.398936 | 0 | 0 | 0.175332 | 0.077181 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031915 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52a8a0bb088b7a3b67e4c45d77dfac6cf76b3a0c | 1,238 | py | Python | breidablik/interpolate/test_rew.py | ellawang44/Breidablik | 667e66f77f7e4126aa6fc7ad3c1b18e54839ab88 | [
"MIT"
] | 2 | 2019-06-03T03:45:21.000Z | 2020-11-03T07:09:50.000Z | breidablik/interpolate/test_rew.py | ellawang44/Breidablik | 667e66f77f7e4126aa6fc7ad3c1b18e54839ab88 | [
"MIT"
] | 1 | 2021-02-02T15:54:00.000Z | 2022-01-27T02:17:05.000Z | breidablik/interpolate/test_rew.py | ellawang44/Breidablik | 667e66f77f7e4126aa6fc7ad3c1b18e54839ab88 | [
"MIT"
] | null | null | null | from breidablik.interpolate.rew import Rew
import numpy as np
import pytest
import warnings
try:
Rew()
flag = False
except:
flag = True
# skip these tests if the trained models are not present
pytestmark = pytest.mark.skipif(flag, reason = 'No trained Rew model')
class Test_find_abund:
@classmethod
... | 32.578947 | 87 | 0.649435 | 185 | 1,238 | 4.151351 | 0.389189 | 0.175781 | 0.135417 | 0.173177 | 0.315104 | 0.315104 | 0.278646 | 0.278646 | 0.278646 | 0.278646 | 0 | 0.069075 | 0.239903 | 1,238 | 37 | 88 | 33.459459 | 0.747078 | 0.043619 | 0 | 0 | 0 | 0 | 0.021997 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.3 | 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 |
52b7d50ad1b53a919e646d52328be78c98cc987e | 596 | py | Python | armulator/armv6/opcodes/arm_instruction_set/arm_media_instructions/arm_packing_unpacking_saturation_and_reversal/revsh_a1.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/opcodes/arm_instruction_set/arm_media_instructions/arm_packing_unpacking_saturation_and_reversal/revsh_a1.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/opcodes/arm_instruction_set/arm_media_instructions/arm_packing_unpacking_saturation_and_reversal/revsh_a1.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from armulator.armv6.opcodes.abstract_opcodes.revsh import Revsh
from armulator.armv6.opcodes.opcode import Opcode
class RevshA1(Revsh, Opcode):
def __init__(self, instruction, m, d):
Opcode.__init__(self, instruction)
Revsh.__init__(self, m, d)
def is_pc_changing_opcode(self):
return... | 28.380952 | 65 | 0.630872 | 77 | 596 | 4.662338 | 0.493506 | 0.066852 | 0.100279 | 0.139276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.255034 | 596 | 20 | 66 | 29.8 | 0.772523 | 0 | 0 | 0 | 0 | 0 | 0.025168 | 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 |
52bcb86fc247b4f762cb06cac8e3e395170fbab0 | 8,054 | py | Python | userlib/analysislib/paco_analysis/spinor/roi_atoms.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | userlib/analysislib/paco_analysis/spinor/roi_atoms.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | userlib/analysislib/paco_analysis/spinor/roi_atoms.py | specialforcea/labscript_suite | a4ad5255207cced671990fff94647b1625aa0049 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import division
from lyse import *
from pylab import *
import os
from analysislib.common.fit_gaussian_2d import fit_2d
from analysislib.spinor.aliases import *
from time import time
# from matplotlib.patches import Ellipse, Path, PathPatch
import pandas as pd
# Parameters
do_fit = True
display_OD = Tru... | 39.674877 | 132 | 0.580209 | 1,170 | 8,054 | 3.776068 | 0.242735 | 0.025351 | 0.019919 | 0.009054 | 0.170892 | 0.108194 | 0.060435 | 0.053191 | 0.04459 | 0.036215 | 0 | 0.032542 | 0.29414 | 8,054 | 202 | 133 | 39.871287 | 0.744591 | 0.198783 | 0 | 0.098039 | 0 | 0 | 0.112307 | 0.003432 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065359 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52c494327eadf9cd82c52eb3a5f1d619c1ef0db6 | 9,499 | py | Python | mod_arty_crosshair/mod_arty_crosshair101.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | mod_arty_crosshair/mod_arty_crosshair101.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | mod_arty_crosshair/mod_arty_crosshair101.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import re
import os
import json
import codecs
import urllib2
import urllib
import threading
from AvatarInputHandler import control_modes
import BigWorld
import BigWorld
from constants import AUTH_REALM
from gui.Scaleform.daapi.view.lobby.hangar import Hangar
class Config(objec... | 40.080169 | 182 | 0.580061 | 1,146 | 9,499 | 4.63438 | 0.217277 | 0.008661 | 0.032009 | 0.023724 | 0.296178 | 0.239126 | 0.151949 | 0.151949 | 0.142911 | 0.142911 | 0 | 0.007583 | 0.278135 | 9,499 | 236 | 183 | 40.25 | 0.766953 | 0.034214 | 0 | 0.217172 | 0 | 0 | 0.145353 | 0.016599 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010101 | 0.070707 | null | null | 0.050505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
52c804e5a4cb10c4d10a2d948291f48e129c6704 | 5,242 | py | Python | application/blueprints/users.py | WCI-Computer-Science/WCI-CYOA | 98993f0ecd4ee6e6a10bc6d50110c2124165fc19 | [
"MIT"
] | 2 | 2021-07-24T14:22:45.000Z | 2021-08-18T22:14:05.000Z | application/blueprints/users.py | WCI-Computer-Science/WCI-CYOA | 98993f0ecd4ee6e6a10bc6d50110c2124165fc19 | [
"MIT"
] | null | null | null | application/blueprints/users.py | WCI-Computer-Science/WCI-CYOA | 98993f0ecd4ee6e6a10bc6d50110c2124165fc19 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, flash, current_app, request, redirect, session, abort
from application.models.database import get_db
import hashlib, os
from secrets import token_urlsafe
bp = Blueprint("users", __name__, url_prefix="/users")
def get_team(key):
db = get_db()
with db.cursor() as cu... | 33.388535 | 109 | 0.597291 | 657 | 5,242 | 4.701674 | 0.196347 | 0.08158 | 0.110715 | 0.031725 | 0.49304 | 0.380058 | 0.31596 | 0.304306 | 0.273228 | 0.246682 | 0 | 0.013706 | 0.248378 | 5,242 | 156 | 110 | 33.602564 | 0.770305 | 0 | 0 | 0.461538 | 0 | 0.006993 | 0.230256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.181818 | 0.027972 | 0.006993 | 0.272727 | 0.013986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
52ce262480d88fa7aa9537a2de44b23b063b6768 | 10,262 | py | Python | pgtools/screenmanager.py | Jefferson5286/PgTools | f86f901bdb8da1863dd610ad6ac5d9d8b09cd247 | [
"MIT"
] | null | null | null | pgtools/screenmanager.py | Jefferson5286/PgTools | f86f901bdb8da1863dd610ad6ac5d9d8b09cd247 | [
"MIT"
] | null | null | null | pgtools/screenmanager.py | Jefferson5286/PgTools | f86f901bdb8da1863dd610ad6ac5d9d8b09cd247 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
import pygame
'''
This is the module that will do whatever it takes to create your screens, it is required that
you have pygame installed to work correctly.
All your screens must be a class that inherits Screen().
The ScreenManager class must be called o... | 35.386207 | 111 | 0.601345 | 1,304 | 10,262 | 4.596626 | 0.182515 | 0.022022 | 0.017518 | 0.019853 | 0.305973 | 0.234735 | 0.205205 | 0.157824 | 0.157824 | 0.151485 | 0 | 0.01016 | 0.328591 | 10,262 | 289 | 112 | 35.508651 | 0.8582 | 0.447476 | 0 | 0.307692 | 0 | 0 | 0.029986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201923 | false | 0 | 0.019231 | 0 | 0.259615 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52d22ebd4ffcb247ef2150f2d134eab7f3a2a56c | 371 | py | Python | tests/_testsite/urls.py | y2kbadbug/django-machina | 1eafe7088f2a23fa13262f15d5a2e133d4748c7c | [
"BSD-3-Clause"
] | null | null | null | tests/_testsite/urls.py | y2kbadbug/django-machina | 1eafe7088f2a23fa13262f15d5a2e133d4748c7c | [
"BSD-3-Clause"
] | null | null | null | tests/_testsite/urls.py | y2kbadbug/django-machina | 1eafe7088f2a23fa13262f15d5a2e133d4748c7c | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from machina import urls as machina_urls
admin.autodiscover()
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'', include(machina_... | 23.1875 | 67 | 0.778976 | 49 | 371 | 5.816327 | 0.326531 | 0.140351 | 0.098246 | 0.126316 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123989 | 371 | 15 | 68 | 24.733333 | 0.876923 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
52dcd7795623935e5d89ec94d0888401996d5ead | 419 | py | Python | examples/kitchen_sink/test.py | pzl/py_unitstyle | 90844e286459b546ecc85ebfe3e026cfeb9ca316 | [
"MIT"
] | 2 | 2016-08-29T15:51:19.000Z | 2018-01-24T13:46:26.000Z | examples/kitchen_sink/test.py | pzl/py_unitstyle | 90844e286459b546ecc85ebfe3e026cfeb9ca316 | [
"MIT"
] | 1 | 2018-01-24T13:46:17.000Z | 2018-01-24T13:46:17.000Z | examples/kitchen_sink/test.py | pzl/py_unitstyle | 90844e286459b546ecc85ebfe3e026cfeb9ca316 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys #to get argument
import unittest
import unitstyle
#collect all of our test scripts as a test suite
my_tests = unittest.TestLoader().discover("tests/")
# get command-line output format if provided
try:
output_format = sys.argv[1]
except IndexError:
#nothing provided
output_format ... | 20.95 | 56 | 0.775656 | 62 | 419 | 5.16129 | 0.629032 | 0.15 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002762 | 0.136038 | 419 | 19 | 57 | 22.052632 | 0.881215 | 0.417661 | 0 | 0 | 0 | 0 | 0.02521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
52e1070eeb7baffe4a4df378259d511cba8100ba | 5,180 | py | Python | fileshare/models.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | fileshare/models.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | fileshare/models.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from django.core.validators import RegexValidator
from django.forms import ModelForm
from django.contrib.auth.models import User
ALPHANUMERIC = RegexValidator(r'^[0-9a-zA-Z. _-]*$',
'Use only alphanumeric characters or `. _-`.')
clas... | 35.238095 | 79 | 0.650193 | 681 | 5,180 | 4.891336 | 0.321586 | 0.024017 | 0.027619 | 0.031222 | 0.418793 | 0.418793 | 0.383068 | 0.383068 | 0.362654 | 0.362654 | 0 | 0.00263 | 0.26583 | 5,180 | 146 | 80 | 35.479452 | 0.873258 | 0.478958 | 0 | 0.383333 | 0 | 0 | 0.054553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0 | 0.066667 | 0.033333 | 0.683333 | 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 |
52ef3c4e3546e1564862612fc677ba97b459866b | 759 | py | Python | django_full_stack/dojo_reads/apps/books/migrations/0002_auto_20191231_1129.py | gfhuertac/coding_dojo_python | 4d17bb63fb2b9669216a0f60326d4a4b9055af7e | [
"MIT"
] | null | null | null | django_full_stack/dojo_reads/apps/books/migrations/0002_auto_20191231_1129.py | gfhuertac/coding_dojo_python | 4d17bb63fb2b9669216a0f60326d4a4b9055af7e | [
"MIT"
] | 6 | 2020-06-06T01:50:21.000Z | 2022-02-10T11:33:02.000Z | django_full_stack/dojo_reads/apps/books/migrations/0002_auto_20191231_1129.py | gfhuertac/coding_dojo_python | 4d17bb63fb2b9669216a0f60326d4a4b9055af7e | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-12-31 11:29
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('books', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='review',
... | 25.3 | 133 | 0.577075 | 78 | 759 | 5.487179 | 0.576923 | 0.056075 | 0.065421 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035917 | 0.30303 | 759 | 29 | 134 | 26.172414 | 0.773157 | 0.056653 | 0 | 0.217391 | 1 | 0 | 0.102241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52f44ace66b26723afcada64303da999bbb177ac | 903 | py | Python | storytracker/__init__.py | pastpages/storytracker | b50b040a178b44fa7e94198cc277fd71eec0ca07 | [
"MIT"
] | 24 | 2015-01-29T05:16:27.000Z | 2021-04-22T16:42:05.000Z | storytracker/__init__.py | pastpages/storytracker | b50b040a178b44fa7e94198cc277fd71eec0ca07 | [
"MIT"
] | 2 | 2015-02-23T04:56:02.000Z | 2017-06-08T09:56:00.000Z | storytracker/__init__.py | pastpages/storytracker | b50b040a178b44fa7e94198cc277fd71eec0ca07 | [
"MIT"
] | 7 | 2015-02-25T07:23:07.000Z | 2019-10-05T15:55:33.000Z | from .archive import archive
from .analysis import ArchivedURL
from .analysis import ArchivedURLSet
from .analysis import Hyperlink
from .analysis import Image
from .exceptions import ArchiveFileNameError
from .files import create_archive_filename
from .files import open_archive_directory
from .files import open_archiv... | 27.363636 | 55 | 0.788483 | 103 | 903 | 6.563107 | 0.23301 | 0.071006 | 0.106509 | 0.056213 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146179 | 903 | 32 | 56 | 28.21875 | 0.876783 | 0 | 0 | 0 | 0 | 0 | 0.252492 | 0.156146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 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 |
52f6aa5db693a000b2a29b8c91a74f787374460b | 899 | py | Python | Python_Basico/sring_manage.py | vhngroup/Backend_with_Python_and_Django | 8505b5e6b9a7530906e7be12c1ce2036e8d2f512 | [
"MIT"
] | null | null | null | Python_Basico/sring_manage.py | vhngroup/Backend_with_Python_and_Django | 8505b5e6b9a7530906e7be12c1ce2036e8d2f512 | [
"MIT"
] | null | null | null | Python_Basico/sring_manage.py | vhngroup/Backend_with_Python_and_Django | 8505b5e6b9a7530906e7be12c1ce2036e8d2f512 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Como asignar o cambiar el contenido de una variable string"""
r='hola'
m= 'l' + r[1:]
print("El contenido de M es {} y cambio de R que es {}".format(m, r))
"""Como recorrer un string y conocer su longitud."""
my_string = 'platzi'
my_string [len(my_string)-1] # Se debe restar un valor, para... | 31 | 89 | 0.677419 | 137 | 899 | 4.423358 | 0.547445 | 0.039604 | 0.042904 | 0.066007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009358 | 0.167964 | 899 | 29 | 90 | 31 | 0.800802 | 0.363737 | 0 | 0 | 0 | 0 | 0.39821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52f72d8c248e8e23dd7db5956634501cc2ddd590 | 392 | py | Python | publications/migrations/0016_auto_20180828_1843.py | gormshackelford/metadataset | ab8a1c0c70a508da37b3a64906ba85c69dd74b6b | [
"MIT"
] | 2 | 2019-12-18T12:00:02.000Z | 2020-03-11T01:15:45.000Z | publications/migrations/0016_auto_20180828_1843.py | gormshackelford/metadataset | ab8a1c0c70a508da37b3a64906ba85c69dd74b6b | [
"MIT"
] | 2 | 2020-06-06T00:01:13.000Z | 2021-06-10T22:09:30.000Z | publications/migrations/0016_auto_20180828_1843.py | gormshackelford/metadataset | ab8a1c0c70a508da37b3a64906ba85c69dd74b6b | [
"MIT"
] | 1 | 2020-01-07T12:28:43.000Z | 2020-01-07T12:28:43.000Z | # Generated by Django 2.0 on 2018-08-28 18:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('publications', '0015_auto_20180828_1842'),
]
operations = [
migrations.RenameField(
model_name='experimentpopulation',
old_nam... | 20.631579 | 52 | 0.617347 | 39 | 392 | 6.025641 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0.280612 | 392 | 18 | 53 | 21.777778 | 0.72695 | 0.109694 | 0 | 0 | 1 | 0 | 0.227666 | 0.066282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52fbafb66b787a9ca52ff2dcf6f67b268a43c207 | 1,210 | py | Python | solution6.py | conburke83/pands-problem-set | 78fca950a070f783a34037d560b3c61abb243498 | [
"Apache-2.0"
] | null | null | null | solution6.py | conburke83/pands-problem-set | 78fca950a070f783a34037d560b3c61abb243498 | [
"Apache-2.0"
] | null | null | null | solution6.py | conburke83/pands-problem-set | 78fca950a070f783a34037d560b3c61abb243498 | [
"Apache-2.0"
] | null | null | null | #CB 17/03/2019
#GMIT Data Analytics Programming & Scripting Module 2019
#Problem Sets
#Problem Set 6
#Reference https://teamtreehouse.com/community/trying-to-take-out-every-other-item-in-a-list
#Creating a variable 'sentence' which asks the user to input a sentence, and then stores the input as a string.
sentence = s... | 57.619048 | 196 | 0.752893 | 199 | 1,210 | 4.577889 | 0.452261 | 0.039517 | 0.039517 | 0.04281 | 0.182217 | 0.147091 | 0.147091 | 0 | 0 | 0 | 0 | 0.015 | 0.173554 | 1,210 | 21 | 197 | 57.619048 | 0.896 | 0.818182 | 0 | 0 | 0 | 0 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52ffafbf0297cbf616caf24f3f13ff7159033d21 | 5,164 | py | Python | python/ray/serve/pipeline/tests/test_generate.py | jjyyxx/ray | 1cedb1b6e4647b6ac6749efd4f63759b7427c3fe | [
"Apache-2.0"
] | null | null | null | python/ray/serve/pipeline/tests/test_generate.py | jjyyxx/ray | 1cedb1b6e4647b6ac6749efd4f63759b7427c3fe | [
"Apache-2.0"
] | null | null | null | python/ray/serve/pipeline/tests/test_generate.py | jjyyxx/ray | 1cedb1b6e4647b6ac6749efd4f63759b7427c3fe | [
"Apache-2.0"
] | null | null | null | import pytest
import ray
from ray import serve
from ray.experimental.dag import InputNode
from ray.serve.pipeline.generate import (
transform_ray_dag_to_serve_dag,
extract_deployments_from_serve_dag,
)
from ray.serve.pipeline.tests.test_modules import Model, Combine
def _validate_consistent_output(
deplo... | 33.532468 | 86 | 0.732572 | 701 | 5,164 | 5.0699 | 0.196862 | 0.042206 | 0.040518 | 0.029544 | 0.637029 | 0.573438 | 0.519415 | 0.498593 | 0.498593 | 0.498593 | 0 | 0.012944 | 0.177188 | 5,164 | 153 | 87 | 33.751634 | 0.823488 | 0.19849 | 0 | 0.412371 | 1 | 0 | 0.053373 | 0 | 0 | 0 | 0 | 0.006536 | 0.092784 | 1 | 0.103093 | false | 0.041237 | 0.072165 | 0 | 0.175258 | 0.041237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e00369924ebdccb184a0ff1716e8dbe707c03d4 | 24,192 | py | Python | billforward/models/receipt.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 2 | 2016-11-23T17:32:37.000Z | 2022-02-24T05:13:20.000Z | billforward/models/receipt.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | null | null | null | billforward/models/receipt.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 1 | 2016-12-30T20:02:48.000Z | 2016-12-30T20:02:48.000Z | # coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
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... | 27.584949 | 552 | 0.580977 | 2,793 | 24,192 | 4.808808 | 0.097744 | 0.05182 | 0.112278 | 0.040205 | 0.59936 | 0.461321 | 0.350756 | 0.234532 | 0.169757 | 0.145633 | 0 | 0.001636 | 0.317832 | 24,192 | 876 | 553 | 27.616438 | 0.812216 | 0.372189 | 0 | 0.28882 | 1 | 0 | 0.126565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.198758 | false | 0 | 0.009317 | 0 | 0.31677 | 0.003106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e011d3458ad1d58ec146d2649207316bdeeac41 | 1,398 | py | Python | Agents/MultiNodeAgent/multinode/write_json.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 73 | 2017-07-11T21:46:41.000Z | 2022-03-11T03:35:25.000Z | Agents/MultiNodeAgent/multinode/write_json.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 19 | 2017-10-10T22:06:15.000Z | 2022-03-28T21:03:33.000Z | Agents/MultiNodeAgent/multinode/write_json.py | Entek-Technical-Services/BEMOSS3.5 | 581a205b4129530474a5ceee93cb36ef62992d4c | [
"BSD-3-Clause"
] | 36 | 2017-06-24T00:17:03.000Z | 2022-03-31T13:58:36.000Z | import json
multinode_data = {
'known_nodes':[
{
'name':'Node1',
'address':'tcp://192.168.10.77:9000',
'server_key':'server1.key',
'server_secret_key':'server1.key_secret', #only needed for this_node
'client_secret_key':'client1.key_secret' #o... | 34.95 | 83 | 0.550072 | 164 | 1,398 | 4.439024 | 0.280488 | 0.098901 | 0.142857 | 0.208791 | 0.538462 | 0.538462 | 0.428571 | 0.387363 | 0.247253 | 0.247253 | 0 | 0.076053 | 0.304006 | 1,398 | 39 | 84 | 35.846154 | 0.672148 | 0.143062 | 0 | 0 | 0 | 0 | 0.478553 | 0.08074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 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 |
5e02ebddf25152104e043dd6cb61ed182855ee63 | 4,511 | py | Python | nctools/dxfreader.py | rsmith-nl/nctools | a2549fbbcb0793fd4750dfbf259dc8c0743839db | [
"BSD-2-Clause"
] | 3 | 2017-04-01T09:33:14.000Z | 2020-12-05T01:22:14.000Z | nctools/dxfreader.py | rsmith-nl/nctools | a2549fbbcb0793fd4750dfbf259dc8c0743839db | [
"BSD-2-Clause"
] | null | null | null | nctools/dxfreader.py | rsmith-nl/nctools | a2549fbbcb0793fd4750dfbf259dc8c0743839db | [
"BSD-2-Clause"
] | 5 | 2018-02-07T07:28:28.000Z | 2020-12-05T01:22:18.000Z | # vim:fileencoding=utf-8:ft=python
# file: dxfreader.py
#
# Copyright © 2015 R.F. Smith <rsmith@xs4all.nl>. All rights reserved.
# Created: 2015-04-16 11:57:29 +0200
# Last modified: 2017-06-04 16:05:49 +0200
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided t... | 32.453237 | 78 | 0.666149 | 677 | 4,511 | 4.440177 | 0.355982 | 0.01996 | 0.013972 | 0.018629 | 0.191949 | 0.166001 | 0.145709 | 0.145709 | 0.105123 | 0.105123 | 0 | 0.021283 | 0.239636 | 4,511 | 138 | 79 | 32.688406 | 0.854811 | 0.644425 | 0 | 0 | 0 | 0 | 0.02649 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 1 | 0.212121 | false | 0 | 0.030303 | 0 | 0.484848 | 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 |
5e047357745463d184656d2d87a0c7230ad12737 | 3,918 | py | Python | novaproxy/nova/image/sync/drivers/filesystem.py | BruceChiZhang/tricircle | 8796babed2ebdd6398aa78076bcc69fcaf25b2e3 | [
"Apache-2.0"
] | null | null | null | novaproxy/nova/image/sync/drivers/filesystem.py | BruceChiZhang/tricircle | 8796babed2ebdd6398aa78076bcc69fcaf25b2e3 | [
"Apache-2.0"
] | null | null | null | novaproxy/nova/image/sync/drivers/filesystem.py | BruceChiZhang/tricircle | 8796babed2ebdd6398aa78076bcc69fcaf25b2e3 | [
"Apache-2.0"
] | null | null | null | import logging
import sys
from oslo.config import cfg
import pxssh
import pexpect
from nova.i18n import _
from nova.image import exception
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
sync_opt = [
cfg.IntOpt('scp_copy_timeout', default=3600,
help=_('when snapshot, max wait (second)time for ... | 36.616822 | 78 | 0.530373 | 453 | 3,918 | 4.313466 | 0.249448 | 0.094166 | 0.085977 | 0.032753 | 0.315251 | 0.192938 | 0.192938 | 0.10696 | 0.10696 | 0.073695 | 0 | 0.003982 | 0.359112 | 3,918 | 106 | 79 | 36.962264 | 0.774194 | 0 | 0 | 0.152941 | 0 | 0 | 0.171771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0.070588 | 0.082353 | 0 | 0.152941 | 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 |
5e049c930f4e3e0d89f07c86f3a98ac73d4e3d34 | 507 | py | Python | smrpy/to_nps.py | ELVIS-Project/cbsmr-patterfinder | 4221ec36dc4dbe2eca460eea20dd1a64929293b1 | [
"MIT"
] | 2 | 2019-12-11T17:06:40.000Z | 2021-03-13T05:51:02.000Z | smrpy/to_nps.py | ELVIS-Project/cbsmr-patterfinder | 4221ec36dc4dbe2eca460eea20dd1a64929293b1 | [
"MIT"
] | 42 | 2019-04-16T13:25:30.000Z | 2020-11-23T12:54:29.000Z | smrpy/to_nps.py | ELVIS-Project/cbsmr-patterfinder | 4221ec36dc4dbe2eca460eea20dd1a64929293b1 | [
"MIT"
] | null | null | null | """
python3 to_nps <piece>
Output:
(0,42)
(0,46)
(1,42)
...
(842,58)
"""
import sys
import os
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir))
import music21
from indexers import NotePointSet
from piece import Note
def main():
with open(sys.argv[1], "rb") as f:
sd = f... | 16.354839 | 84 | 0.637081 | 79 | 507 | 3.911392 | 0.594937 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054187 | 0.199211 | 507 | 30 | 85 | 16.9 | 0.706897 | 0.128205 | 0 | 0 | 0 | 0 | 0.023041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5e0cb42689385d7791bda6cabe00d470d2b0175a | 750 | py | Python | Function.py | Zazmuz/cordinate-jumper | 2a9eb32fb13188eb22a8457654212bd9e1c1633a | [
"MIT"
] | null | null | null | Function.py | Zazmuz/cordinate-jumper | 2a9eb32fb13188eb22a8457654212bd9e1c1633a | [
"MIT"
] | null | null | null | Function.py | Zazmuz/cordinate-jumper | 2a9eb32fb13188eb22a8457654212bd9e1c1633a | [
"MIT"
] | null | null | null | class Function():
def __init__(self, func):
self.function = func
self.color = (50, 50, 155)
class LinearFunction(Function):
def __init__(self, k, m): # y = kx + m
self.color = (50, 50, 155)
self.k = k
self.m = m
def function(self, x):
return x ... | 25 | 44 | 0.517333 | 96 | 750 | 3.864583 | 0.28125 | 0.121294 | 0.121294 | 0.153639 | 0.12938 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.368 | 750 | 29 | 45 | 25.862069 | 0.732068 | 0.013333 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0.043478 | 0.434783 | 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 |
5e0ec86b9caf4bc289ce229dc0625f02b89e08b4 | 3,361 | py | Python | appointment/api/tests/test_api.py | andreclimaco/desafio_iclinic | d7aeff23144ea678148fece774a124d200474b86 | [
"BSD-3-Clause"
] | null | null | null | appointment/api/tests/test_api.py | andreclimaco/desafio_iclinic | d7aeff23144ea678148fece774a124d200474b86 | [
"BSD-3-Clause"
] | null | null | null | appointment/api/tests/test_api.py | andreclimaco/desafio_iclinic | d7aeff23144ea678148fece774a124d200474b86 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import status
from rest_framework.test import APITestCase
from core_model.models import Patient, Physician, Appointment
from api.views import AppointmentsViewSet
from datetime import timedelta
def create_item(client):
patient = Patient.objects.create(first_name='Orane', last_name='Brousse')
... | 40.493976 | 97 | 0.718834 | 428 | 3,361 | 5.439252 | 0.205607 | 0.056701 | 0.069158 | 0.051546 | 0.464347 | 0.376718 | 0.376718 | 0.337629 | 0.303265 | 0.227663 | 0 | 0.018741 | 0.158584 | 3,361 | 83 | 98 | 40.493976 | 0.804455 | 0 | 0 | 0.174603 | 0 | 0 | 0.072278 | 0.039262 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.206349 | false | 0 | 0.079365 | 0 | 0.380952 | 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 |
5e17962b55c0bc250f6630de68e888ad5f24c92b | 270 | py | Python | models/loss.py | Tabrizian/learning-to-quantize | 545ef7075ff01cbb218600878943554954cef53f | [
"Apache-2.0"
] | 16 | 2020-10-16T16:21:50.000Z | 2021-12-15T06:45:12.000Z | models/loss.py | Tabrizian/learning-to-quantize | 545ef7075ff01cbb218600878943554954cef53f | [
"Apache-2.0"
] | null | null | null | models/loss.py | Tabrizian/learning-to-quantize | 545ef7075ff01cbb218600878943554954cef53f | [
"Apache-2.0"
] | 4 | 2020-10-27T12:32:28.000Z | 2021-04-25T04:43:45.000Z | import torch.nn.functional as F
def nll_loss(model, data, reduction='mean', weights=1):
data, target = data[0].cuda(), data[1].cuda()
model.zero_grad()
output = model(data)
loss = F.nll_loss(output, target, reduction=reduction)*weights
return loss
| 27 | 66 | 0.681481 | 40 | 270 | 4.525 | 0.55 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0.174074 | 270 | 9 | 67 | 30 | 0.798206 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
5e24d689530a01041d702aa838959adef55b3675 | 1,315 | py | Python | examples/concerts/policy.py | osswangxining/conversationinsights-dialogue | 07490b6307667b0d0ddc2c4fb8aa4f8d7b853df9 | [
"Apache-2.0"
] | 8 | 2017-10-10T02:18:09.000Z | 2019-12-16T15:14:13.000Z | examples/concerts/policy.py | osswangxining/conversationinsights-dialogue | 07490b6307667b0d0ddc2c4fb8aa4f8d7b853df9 | [
"Apache-2.0"
] | null | null | null | examples/concerts/policy.py | osswangxining/conversationinsights-dialogue | 07490b6307667b0d0ddc2c4fb8aa4f8d7b853df9 | [
"Apache-2.0"
] | 2 | 2018-06-26T02:03:41.000Z | 2018-08-06T10:54:46.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
from conversationinsights.policies.keras_policy import KerasPolicy
logger = logging.getLogger(__name__)
class ConcertPolicy(KerasPolicy):
def _buil... | 35.540541 | 78 | 0.694297 | 157 | 1,315 | 5.484076 | 0.509554 | 0.058072 | 0.087108 | 0.046458 | 0.088269 | 0.088269 | 0.088269 | 0.088269 | 0 | 0 | 0 | 0.00199 | 0.235741 | 1,315 | 36 | 79 | 36.527778 | 0.854726 | 0.156654 | 0 | 0 | 0 | 0 | 0.039595 | 0.022099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.478261 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5e34668af1dbb33ca7c89a2bcfa16c19ac7eecaf | 2,471 | py | Python | Login_sys/RequestNewPassword.py | 1King-coder/LoginSistemWithMySQL | ae6bff18171ef3e5f8115324e7fc7d1ccb62a733 | [
"MIT"
] | 5 | 2021-04-16T11:44:58.000Z | 2021-11-17T10:46:22.000Z | Login_sys/RequestNewPassword.py | 1King-coder/LoginSistemWithMySQL | ae6bff18171ef3e5f8115324e7fc7d1ccb62a733 | [
"MIT"
] | null | null | null | Login_sys/RequestNewPassword.py | 1King-coder/LoginSistemWithMySQL | ae6bff18171ef3e5f8115324e7fc7d1ccb62a733 | [
"MIT"
] | null | null | null | from .SendEmail import SendEmail
from .Data_base.Data_base import Usuarios
from PyQt5.QtWidgets import QMainWindow, QApplication
from .Verifications_and_Responses.Verifications import Verifications
from .Verifications_and_Responses.Responses import Responses
from .RequestConfirmationCode import Request_Confirmation_Cod... | 36.880597 | 74 | 0.633347 | 276 | 2,471 | 5.48913 | 0.358696 | 0.059406 | 0.060726 | 0.038284 | 0.071287 | 0.071287 | 0 | 0 | 0 | 0 | 0 | 0.002804 | 0.27843 | 2,471 | 66 | 75 | 37.439394 | 0.846326 | 0.058276 | 0 | 0.116279 | 0 | 0 | 0.074253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.093023 | 0.209302 | 0.023256 | 0.395349 | 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 |
5e3c6e1b32daecae46fa7021658a8381221cdb68 | 946 | py | Python | hola/hola/controllers/hello.py | mohseenrm/pylons | 3a21c5399832a1d47f12646598c4d82d4c15da9c | [
"MIT"
] | null | null | null | hola/hola/controllers/hello.py | mohseenrm/pylons | 3a21c5399832a1d47f12646598c4d82d4c15da9c | [
"MIT"
] | null | null | null | hola/hola/controllers/hello.py | mohseenrm/pylons | 3a21c5399832a1d47f12646598c4d82d4c15da9c | [
"MIT"
] | null | null | null | import logging
from pylons import app_globals, request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect
from hola.lib.base import BaseController, render
import hola.lib.helpers as h
log = logging.getLogger(__name__)
class HelloController(BaseController):
def index... | 27.028571 | 82 | 0.663848 | 119 | 946 | 5.151261 | 0.554622 | 0.04894 | 0.06199 | 0.075041 | 0.11093 | 0.11093 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.247357 | 946 | 34 | 83 | 27.823529 | 0.855337 | 0.078224 | 0 | 0.090909 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.227273 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eaadd7a5b88a20cb166404eb86d3f13774f3a9b3 | 2,399 | py | Python | perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py | pierre-emmanuelJ/PerfKitBenchmarker | 3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69 | [
"Apache-2.0"
] | null | null | null | perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py | pierre-emmanuelJ/PerfKitBenchmarker | 3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69 | [
"Apache-2.0"
] | null | null | null | perfkitbenchmarker/linux_benchmarks/cluster_boot_benchmark.py | pierre-emmanuelJ/PerfKitBenchmarker | 3ef6acfd54d4e3d1f074ef40b3fc5b3a3f855f69 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 27.574713 | 76 | 0.727386 | 339 | 2,399 | 5.032448 | 0.430678 | 0.03517 | 0.025791 | 0.029894 | 0.036342 | 0.036342 | 0.036342 | 0 | 0 | 0 | 0 | 0.004145 | 0.195498 | 2,399 | 86 | 77 | 27.895349 | 0.879793 | 0.469779 | 0 | 0.052632 | 0 | 0 | 0.220395 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0.052632 | 0.078947 | 0.026316 | 0.342105 | 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 |
eac695aa26b98aec990628d73c382f8812acbc1f | 2,398 | py | Python | group06/EA.py | Luisets/HeuristicOp | ce54badfee8a218c68cf47a3f5478d61908dc9e8 | [
"MIT"
] | null | null | null | group06/EA.py | Luisets/HeuristicOp | ce54badfee8a218c68cf47a3f5478d61908dc9e8 | [
"MIT"
] | null | null | null | group06/EA.py | Luisets/HeuristicOp | ce54badfee8a218c68cf47a3f5478d61908dc9e8 | [
"MIT"
] | null | null | null | from .Population import Population as Population
from .Genome import Genome as Genome
from .operadores.CurrentToRand import CurrentToRand as Mutation
from .operadores.Arithmetic import Arithmetic as Crossover
from .operadores.Uniform import Uniform as Selection
from .operadores.Elitist import Elitist as Replacement
imp... | 35.264706 | 74 | 0.608424 | 256 | 2,398 | 5.636719 | 0.28125 | 0.043659 | 0.060984 | 0.029106 | 0.09009 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0.005441 | 0.310259 | 2,398 | 67 | 75 | 35.791045 | 0.866989 | 0.013344 | 0 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.196721 | 0.114754 | 0 | 0.245902 | 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 |
eac6bd2d598430598d2afc6cc0d8f2718950c69a | 376 | py | Python | colors.py | mtibbett67/pymodules | 9a7dcd16fb2107029edaabde766c1dbdb769713c | [
"MIT"
] | null | null | null | colors.py | mtibbett67/pymodules | 9a7dcd16fb2107029edaabde766c1dbdb769713c | [
"MIT"
] | null | null | null | colors.py | mtibbett67/pymodules | 9a7dcd16fb2107029edaabde766c1dbdb769713c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
This is a temp script
'''
# Console colors
W = '\033[0m' # white (normal)
R = '\033[31m' # red
G = '\033[32m' # green
O = '\033[33m' # orange
B = '\033[34m' # blue
P = '\033[35m' # purple
C = '\033[36m' # cyan
GR = '\033[37m' # gray
print G + "hello" + W
prin... | 17.904762 | 31 | 0.537234 | 63 | 376 | 3.206349 | 0.666667 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 0.242021 | 376 | 20 | 32 | 18.8 | 0.568421 | 0.295213 | 0 | 0 | 0 | 0 | 0.417778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eac773ef4af805912b70b775db59e5b94e6bded2 | 9,041 | py | Python | mkt/zadmin/management/commands/collapse_versions.py | spasovski/zamboni | c7f4714029e3b2dc918ddfc2103f8e051193c14d | [
"BSD-3-Clause"
] | 1 | 2017-07-14T19:22:39.000Z | 2017-07-14T19:22:39.000Z | mkt/zadmin/management/commands/collapse_versions.py | imclab/olympia | 35bc9c484e384bafab520ca8b5d5b0f8da5b62c0 | [
"BSD-3-Clause"
] | 6 | 2021-02-02T23:08:48.000Z | 2021-09-08T02:47:17.000Z | mkt/zadmin/management/commands/collapse_versions.py | imclab/olympia | 35bc9c484e384bafab520ca8b5d5b0f8da5b62c0 | [
"BSD-3-Clause"
] | 1 | 2021-03-13T00:33:12.000Z | 2021-03-13T00:33:12.000Z | import json
from django.core.management.base import BaseCommand
from django.db import connection, transaction
import amo
from addons.models import Webapp
from files.models import File
from versions.models import Version
class Command(BaseCommand):
help = 'Collapse versions for hosted apps'
def handle(self,... | 43.466346 | 81 | 0.501161 | 922 | 9,041 | 4.736443 | 0.203905 | 0.073277 | 0.035722 | 0.023815 | 0.226013 | 0.146325 | 0.103504 | 0.086558 | 0.072361 | 0.072361 | 0 | 0.003618 | 0.419091 | 9,041 | 207 | 82 | 43.676329 | 0.827875 | 0.102533 | 0 | 0.175676 | 0 | 0 | 0.245675 | 0.008898 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047297 | null | null | 0.101351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eacdf8810f2377975c6b03007d02d652ac3ee63c | 2,358 | py | Python | lock_tokens/utils.py | BrendaH/django-lock-tokens | 2bb54a394dd3e0b778666be1b854decf156da836 | [
"MIT"
] | null | null | null | lock_tokens/utils.py | BrendaH/django-lock-tokens | 2bb54a394dd3e0b778666be1b854decf156da836 | [
"MIT"
] | null | null | null | lock_tokens/utils.py | BrendaH/django-lock-tokens | 2bb54a394dd3e0b778666be1b854decf156da836 | [
"MIT"
] | null | null | null | import datetime
import sys
import threading
from types import MethodType
from django.db import models
from django.utils import timezone
from lock_tokens.settings import TIMEOUT
LESS_THAN_PYTHON3 = sys.version_info[0] < 3
def get_oldest_valid_tokens_datetime():
return timezone.now() - datetime.timedelta(seconds... | 26.2 | 91 | 0.640797 | 276 | 2,358 | 5.181159 | 0.365942 | 0.048951 | 0.023077 | 0.041958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.26972 | 2,358 | 89 | 92 | 26.494382 | 0.826945 | 0.031807 | 0 | 0.0625 | 0 | 0 | 0.009645 | 0.009645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203125 | false | 0 | 0.125 | 0.015625 | 0.46875 | 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 |
ead76e1722dd0337ef0498e4774d0160f5e734c7 | 520 | py | Python | crawler.py | merveealpay/python-website-crawler | af3cc14eeb7240d563acbe5a16773a3bbf905dd1 | [
"MIT"
] | 3 | 2021-05-30T10:23:34.000Z | 2021-05-30T13:17:49.000Z | crawler.py | merveealpay/python-website-crawler | af3cc14eeb7240d563acbe5a16773a3bbf905dd1 | [
"MIT"
] | null | null | null | crawler.py | merveealpay/python-website-crawler | af3cc14eeb7240d563acbe5a16773a3bbf905dd1 | [
"MIT"
] | null | null | null | import requests
def request(url):
try:
#requests.request("GET")
return requests.get("http://" + url)
except requests.exceptions.HTTPError:
pass
target_url = "google.com"
with open("subdomain-wordlist.txt", "r") as wordlist:
for line in wordlist:
stripped_line = line.strip... | 26 | 62 | 0.611538 | 61 | 520 | 5.04918 | 0.540984 | 0.090909 | 0.116883 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251923 | 520 | 19 | 63 | 27.368421 | 0.791774 | 0.126923 | 0 | 0 | 0 | 0 | 0.216814 | 0.110619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.076923 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eaf01b1bd5cb38a605e8d1a9c0373d067ac6d602 | 326 | py | Python | grades/migrations/0003_auto_20171209_0904.py | tyrantqiao/StudentManage | c387fbe6a4dff33a53080f6a4ebfa0fc71239d6f | [
"Apache-2.0"
] | null | null | null | grades/migrations/0003_auto_20171209_0904.py | tyrantqiao/StudentManage | c387fbe6a4dff33a53080f6a4ebfa0fc71239d6f | [
"Apache-2.0"
] | null | null | null | grades/migrations/0003_auto_20171209_0904.py | tyrantqiao/StudentManage | c387fbe6a4dff33a53080f6a4ebfa0fc71239d6f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0 on 2017-12-09 01:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('grades', '0002_auto_20171209_0901'),
]
operations = [
migrations.RenameModel(
old_name='Grdes',
new_name='Grades',
),
... | 18.111111 | 46 | 0.592025 | 35 | 326 | 5.371429 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131004 | 0.297546 | 326 | 17 | 47 | 19.176471 | 0.689956 | 0.131902 | 0 | 0 | 1 | 0 | 0.142349 | 0.081851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eaf7bcf84472ff417945265055a130ae1865692a | 4,626 | py | Python | tools/soap/soapdenovo2_map.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | 1 | 2021-02-05T13:19:58.000Z | 2021-02-05T13:19:58.000Z | tools/soap/soapdenovo2_map.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | tools/soap/soapdenovo2_map.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | """
soapdenovo2_map.py
A wrapper script for SOAPdenovo2 map module
Copyright Peter Li - GigaScience and BGI-HK
"""
import optparse, os, shutil, subprocess, sys, tempfile
def stop_err(msg):
sys.stderr.write(msg)
sys.exit()
def cleanup_before_exit(tmp_dir):
if tmp_dir and os.path.exists(tmp_dir):
... | 35.860465 | 166 | 0.657804 | 627 | 4,626 | 4.641148 | 0.291866 | 0.034021 | 0.056701 | 0.031615 | 0.201375 | 0.120275 | 0.08866 | 0.08866 | 0.057045 | 0.057045 | 0 | 0.007481 | 0.219844 | 4,626 | 128 | 167 | 36.140625 | 0.798836 | 0.132728 | 0 | 0.08046 | 0 | 0.011494 | 0.158587 | 0.04951 | 0 | 0 | 0 | 0.007813 | 0 | 0 | null | null | 0.011494 | 0.011494 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eaff40be242c39ccd6263a00b96637d3c4c308ca | 321 | py | Python | yc_secret/__version__.py | akrustam/yc_secret | 055e5844445c16feadb8836ea6917c03656f7b13 | [
"Apache-2.0"
] | null | null | null | yc_secret/__version__.py | akrustam/yc_secret | 055e5844445c16feadb8836ea6917c03656f7b13 | [
"Apache-2.0"
] | null | null | null | yc_secret/__version__.py | akrustam/yc_secret | 055e5844445c16feadb8836ea6917c03656f7b13 | [
"Apache-2.0"
] | null | null | null | __title__ = 'yc-secret'
__description__ = 'Library for interaction with the Yandex Cloud Lockbox service'
__version__ = '0.1.2'
__author__ = 'Aksyanov Rustam'
__author_email__ = 'rustam@akrustam.com'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2022 Aksyanov Rustam'
__url__ = 'https://yc-secret.readthedocs.io'... | 35.666667 | 81 | 0.772586 | 40 | 321 | 5.375 | 0.775 | 0.074419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03169 | 0.115265 | 321 | 8 | 82 | 40.125 | 0.725352 | 0 | 0 | 0 | 0 | 0 | 0.563863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eafff01b1ecf64ca1938fceeecce540cdd70f6bb | 6,288 | py | Python | code/run.py | kavniekerk/andrew-inglis | 91d1d1e1a4b891351be975d61221dec83bb46f08 | [
"MIT"
] | 1 | 2016-04-25T16:57:47.000Z | 2016-04-25T16:57:47.000Z | code/run.py | andrew-inglis/cern-atlas-mmOptical | 91d1d1e1a4b891351be975d61221dec83bb46f08 | [
"MIT"
] | null | null | null | code/run.py | andrew-inglis/cern-atlas-mmOptical | 91d1d1e1a4b891351be975d61221dec83bb46f08 | [
"MIT"
] | null | null | null | #
# run.py - the base code that is run
#
#
# some hardcoded locations for things
#
import os
from sys import argv
from math import copysign
import matplotlib.pyplot as plt
import pickle
import numpy
# Hard coded directories. Please change these accordingly.
imageJjarName = '/Users/ainglis/Applications/ImageJ-platI... | 25.983471 | 153 | 0.67605 | 740 | 6,288 | 5.733784 | 0.324324 | 0.017676 | 0.008485 | 0.015555 | 0.220363 | 0.142823 | 0.109357 | 0.088145 | 0.08626 | 0.047608 | 0 | 0.02902 | 0.199905 | 6,288 | 241 | 154 | 26.091286 | 0.814351 | 0.168416 | 0 | 0.153846 | 0 | 0 | 0.099923 | 0.046103 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.053846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d80212e5b2b037294759d9eb03002a958701d576 | 3,601 | py | Python | commands/feature_matrix_construction/main/copyClinInfo.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 3 | 2016-02-22T21:29:23.000Z | 2020-09-19T07:38:21.000Z | commands/feature_matrix_construction/main/copyClinInfo.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 1 | 2015-01-16T02:33:59.000Z | 2015-01-16T02:33:59.000Z | commands/feature_matrix_construction/main/copyClinInfo.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 2 | 2015-12-27T08:40:12.000Z | 2021-03-01T06:30:23.000Z | # -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
import sys
import tsvIO
# -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
NA_VALUE = -999999
# -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
def dupClinInfo(dataD):
... | 34.295238 | 115 | 0.439878 | 330 | 3,601 | 4.763636 | 0.348485 | 0.062341 | 0.030534 | 0.048346 | 0.253181 | 0.226463 | 0.226463 | 0.226463 | 0.226463 | 0.226463 | 0 | 0.015886 | 0.33574 | 3,601 | 104 | 116 | 34.625 | 0.641304 | 0.184393 | 0 | 0.380952 | 0 | 0 | 0.180566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031746 | null | null | 0.269841 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d809f0ba74c9c925174b52a605f03ac8415e53b6 | 790 | py | Python | setup.py | Frojdholm/pysqlar | 57829ffde9492913cb351833b6ba675cf48a9ed0 | [
"MIT"
] | 2 | 2021-04-14T06:33:13.000Z | 2021-07-05T13:28:52.000Z | setup.py | Frojdholm/pysqlar | 57829ffde9492913cb351833b6ba675cf48a9ed0 | [
"MIT"
] | null | null | null | setup.py | Frojdholm/pysqlar | 57829ffde9492913cb351833b6ba675cf48a9ed0 | [
"MIT"
] | 1 | 2021-04-14T06:23:47.000Z | 2021-04-14T06:23:47.000Z | from setuptools import setup, find_packages
setup(
name='pysqlar',
version='0.1.2',
description='Pure Python library for working with SQLite Archives.',
long_description="""# pysqlar
Module for working with [SQLite Archive files](https://www.sqlite.org/sqlar.html)
with an API mimicking the zipfile mo... | 29.259259 | 83 | 0.697468 | 97 | 790 | 5.597938 | 0.690722 | 0.044199 | 0.051565 | 0.073665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.179747 | 790 | 26 | 84 | 30.384615 | 0.828704 | 0 | 0 | 0 | 0 | 0.045455 | 0.574684 | 0.032911 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 |
d80dc3db52aff15838763b4dfc4812414b66bbf8 | 9,748 | py | Python | examples/python/papi_prefetch_toggle.py | IanCass/api-kickstart | 83709cb400c29168bc0287f921ee6285c29afbfe | [
"Apache-2.0"
] | 56 | 2017-06-22T19:12:58.000Z | 2022-01-12T07:12:44.000Z | examples/python/papi_prefetch_toggle.py | IanCass/api-kickstart | 83709cb400c29168bc0287f921ee6285c29afbfe | [
"Apache-2.0"
] | 10 | 2017-08-23T06:30:07.000Z | 2019-04-18T16:24:03.000Z | examples/python/papi_prefetch_toggle.py | IanCass/api-kickstart | 83709cb400c29168bc0287f921ee6285c29afbfe | [
"Apache-2.0"
] | 62 | 2017-06-18T14:34:25.000Z | 2021-09-28T20:17:40.000Z | #! /usr/bin/env python
""" Copyright 2015 Akamai Technologies, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unle... | 36.509363 | 119 | 0.700554 | 1,278 | 9,748 | 5.258998 | 0.270736 | 0.030948 | 0.042553 | 0.024996 | 0.20488 | 0.154888 | 0.120369 | 0.100729 | 0.072757 | 0.068145 | 0 | 0.004285 | 0.186089 | 9,748 | 266 | 120 | 36.646617 | 0.842828 | 0.021543 | 0 | 0.157576 | 0 | 0.006061 | 0.31063 | 0.030315 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042424 | null | null | 0.139394 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d80ed81213eb93369cf2479a586aeed0bb757bd3 | 1,576 | py | Python | books/learnScrapy/bing/bing/spiders/codewars.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | books/learnScrapy/bing/bing/spiders/codewars.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | books/learnScrapy/bing/bing/spiders/codewars.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
""" testing login using scrapy
1. start_reqeust do the init fetch, get the form data back
2. parse_login then fill the user and pass field in the form,
by doing this, url change to dashboard, nor sign_in
3. parse the dashboard page
Note that, run from command line and pass the user and pass... | 32.163265 | 80 | 0.660533 | 193 | 1,576 | 5.326425 | 0.523316 | 0.038911 | 0.019455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003359 | 0.244289 | 1,576 | 49 | 81 | 32.163265 | 0.859782 | 0.314721 | 0 | 0 | 0 | 0 | 0.143947 | 0.036225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.038462 | 0.230769 | 0 | 0.576923 | 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 |
d80f99cad4558dd8f8cc5650a23121e20729fc69 | 1,093 | py | Python | solutions/018/018.py | jwmcgettigan/project-euler-solutions | f06b6551e713619d5fd1359ee2f96fcff61c425b | [
"FTL"
] | 1 | 2020-08-21T00:30:17.000Z | 2020-08-21T00:30:17.000Z | solutions/018/018.py | jwmcgettigan/project-euler-solutions | f06b6551e713619d5fd1359ee2f96fcff61c425b | [
"FTL"
] | 2 | 2020-09-18T00:40:01.000Z | 2020-09-21T04:13:05.000Z | solutions/018/018.py | jwmcgettigan/project-euler-solutions | f06b6551e713619d5fd1359ee2f96fcff61c425b | [
"FTL"
] | null | null | null | """
Project Euler - Problem Solution 018
Copyright (c) Justin McGettigan. All rights reserved.
https://github.com/jwmcgettigan/project-euler-solutions
"""
triangle = '''
75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47... | 26.658537 | 74 | 0.688015 | 231 | 1,093 | 3.151515 | 0.506494 | 0.065934 | 0.041209 | 0.043956 | 0.090659 | 0.090659 | 0.090659 | 0 | 0 | 0 | 0 | 0.290846 | 0.21043 | 1,093 | 41 | 75 | 26.658537 | 0.552723 | 0.133577 | 0 | 0 | 0 | 0 | 0.393617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0 | 0.064516 | 0.193548 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
d819873f4c89bce289f23e58d694d5606ca581bb | 892 | py | Python | test/hello_world_server.py | UM-LoCoLab/NeuroLocoMiddleware | 0dfedeed8d6d8a41518b357b33ee92324b5029c3 | [
"MIT"
] | null | null | null | test/hello_world_server.py | UM-LoCoLab/NeuroLocoMiddleware | 0dfedeed8d6d8a41518b357b33ee92324b5029c3 | [
"MIT"
] | null | null | null | test/hello_world_server.py | UM-LoCoLab/NeuroLocoMiddleware | 0dfedeed8d6d8a41518b357b33ee92324b5029c3 | [
"MIT"
] | null | null | null | #
# Hello World server in Python
# Binds REP socket to tcp://*:5555
# Expects b"Hello" from client, replies with b"World"
#
import time
import zmq
context = zmq.Context()
socket = context.socket(zmq.PULL)
socket.bind("tcp://*:5555")
socket2 = context.socket(zmq.PUSH)
socket2.connect("tcp://localhost:5556")
# w... | 21.756098 | 55 | 0.618834 | 121 | 892 | 4.561983 | 0.454545 | 0.054348 | 0.057971 | 0.057971 | 0.384058 | 0.384058 | 0.304348 | 0.304348 | 0.17029 | 0.17029 | 0 | 0.032934 | 0.251121 | 892 | 41 | 56 | 21.756098 | 0.793413 | 0.464126 | 0 | 0 | 0 | 0 | 0.140044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d8212b8d18d7990fea31d4c1736ff494e9e7f51c | 16,284 | py | Python | Contents/scripts/sisidebar/append_polygon.py | ShikouYamaue/SI-Side-Bar | dbeed77b99a11917067320492a2a6cc5d368d05c | [
"MIT"
] | 47 | 2017-11-13T13:49:43.000Z | 2021-04-10T06:03:53.000Z | Contents/scripts/sisidebar/append_polygon.py | ShikouYamaue/SI-Side-Bar | dbeed77b99a11917067320492a2a6cc5d368d05c | [
"MIT"
] | 9 | 2017-11-14T05:12:55.000Z | 2021-05-12T07:06:33.000Z | Contents/scripts/sisidebar/append_polygon.py | ShikouYamaue/SI-Side-Bar | dbeed77b99a11917067320492a2a6cc5d368d05c | [
"MIT"
] | 11 | 2017-11-14T05:03:41.000Z | 2021-05-13T23:17:01.000Z | # -*- coding: utf-8 -*-
from maya import cmds
from . import common
from . import lang
from . import qt
import maya.api.OpenMaya as om
import traceback
import json
import os
import imp
import copy
import math
try:
imp.find_module('PySide2')
from PySide2.QtWidgets import *
from PySide2.QtGui import *
from... | 41.329949 | 137 | 0.593036 | 2,069 | 16,284 | 4.448043 | 0.153697 | 0.022058 | 0.031077 | 0.02999 | 0.429751 | 0.337173 | 0.295664 | 0.243616 | 0.195697 | 0.187222 | 0 | 0.010835 | 0.291513 | 16,284 | 394 | 138 | 41.329949 | 0.786773 | 0.096598 | 0 | 0.207237 | 0 | 0 | 0.031143 | 0.00239 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055921 | null | null | 0.023026 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d82c116eced0264f270c08571fc5b75e9ae7709f | 574 | py | Python | third_party/universal-ctags/ctags/Units/parser-python.r/strings.d/input.py | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | 4 | 2017-02-07T20:04:31.000Z | 2022-01-30T14:04:45.000Z | third_party/universal-ctags/ctags/Units/parser-python.r/strings.d/input.py | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | 1 | 2018-01-07T19:14:53.000Z | 2018-01-07T19:14:53.000Z | third_party/universal-ctags/ctags/Units/parser-python.r/strings.d/input.py | f110/wing | 31b259f723b57a6481252a4b8b717fcee6b01ff4 | [
"MIT"
] | 1 | 2021-04-26T09:00:06.000Z | 2021-04-26T09:00:06.000Z |
VAR01 = ""
VAR02 = "hello"
VAR03 = ''
VAR04 = 'hi'
VAR05 = "\""
VAR06 = '\''
VAR07 = "'''"
VAR08 = '"""'
VAR21 = r""
VAR22 = u"hello"
VAR23 = R''
VAR24 = U'hi'
VAR25 = b"\""
VAR26 = B'\''
VAR27 = br"'''"
VAR28 = Br'"""'
VAR29 = bR"hello"
VAR30 = BR"hello"
# Python >= 3.3
VAR31 = rb"hello"
VAR32 = rB"hello"
VAR33 = Rb... | 15.105263 | 73 | 0.592334 | 84 | 574 | 4.047619 | 0.678571 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14597 | 0.200348 | 574 | 37 | 74 | 15.513514 | 0.594771 | 0.172474 | 0 | 0 | 0 | 0 | 0.174468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d8357e754b0079f559100dbe348d77e2a64a30e5 | 4,853 | py | Python | hockeyapp/version.py | maxthoursie/hockeyapp | c5188a710fbacfafbddf41c2e99c89de9494f857 | [
"Unlicense"
] | null | null | null | hockeyapp/version.py | maxthoursie/hockeyapp | c5188a710fbacfafbddf41c2e99c89de9494f857 | [
"Unlicense"
] | null | null | null | hockeyapp/version.py | maxthoursie/hockeyapp | c5188a710fbacfafbddf41c2e99c89de9494f857 | [
"Unlicense"
] | null | null | null | """
Implements objects for calling Version APIs
"""
__author__ = 'Don Thorp'
__email__ = 'don@donthorp.net'
__since__ = '2012-03-23'
import sys
from . import api
try:
import poster
except ImportError:
print "You need to install poster.\n use: sudo pip install poster\n"
sys.exit(1)
class AppVersions(ap... | 23.220096 | 123 | 0.585205 | 588 | 4,853 | 4.593537 | 0.19898 | 0.033321 | 0.024435 | 0.0311 | 0.3806 | 0.345057 | 0.331729 | 0.323584 | 0.283599 | 0.257682 | 0 | 0.006944 | 0.317536 | 4,853 | 208 | 124 | 23.331731 | 0.808575 | 0 | 0 | 0.291262 | 0 | 0 | 0.072455 | 0.007183 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038835 | null | null | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d838555eab5ce8254b861a8c359a0ab5df891ed5 | 1,965 | py | Python | app/models.py | kof21411/flask-linkdb | 6f841dc66d56a5d542631b6c14ca106c46e4351b | [
"Apache-2.0"
] | 1 | 2021-07-22T07:56:30.000Z | 2021-07-22T07:56:30.000Z | app/models.py | kof21411/flask-linkdb | 6f841dc66d56a5d542631b6c14ca106c46e4351b | [
"Apache-2.0"
] | null | null | null | app/models.py | kof21411/flask-linkdb | 6f841dc66d56a5d542631b6c14ca106c46e4351b | [
"Apache-2.0"
] | null | null | null | import datetime
from sqlalchemy import Text
from app import db
class Category(db.Model):
__table_args__ = {"extend_existing": True}
__tablename__ = 'category'
def to_json(self):
item = self.__dict__
if "_sa_instance_state" in item:
del item["_sa_instance_state"]
retu... | 29.328358 | 68 | 0.658524 | 262 | 1,965 | 4.667939 | 0.236641 | 0.124285 | 0.147179 | 0.139002 | 0.768602 | 0.717089 | 0.567457 | 0.567457 | 0.50695 | 0.50695 | 0 | 0.009772 | 0.21883 | 1,965 | 66 | 69 | 29.772727 | 0.786971 | 0 | 0 | 0.557692 | 0 | 0 | 0.103817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.711538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d83c85f461e25c4762975c366e304cdd2ce18941 | 437 | py | Python | haoStock_deb/root/haoStock/verifydate.py | abner-ma/haoStock | 8973f587cd3251afb0db81b68781e659307e4efc | [
"Apache-2.0"
] | null | null | null | haoStock_deb/root/haoStock/verifydate.py | abner-ma/haoStock | 8973f587cd3251afb0db81b68781e659307e4efc | [
"Apache-2.0"
] | null | null | null | haoStock_deb/root/haoStock/verifydate.py | abner-ma/haoStock | 8973f587cd3251afb0db81b68781e659307e4efc | [
"Apache-2.0"
] | 1 | 2018-01-17T14:53:05.000Z | 2018-01-17T14:53:05.000Z | #!/usr/bin/python
#-*-coding:UTF-8-*-
import datetime
import urllib2
today_str = datetime.datetime.now().strftime('%Y%m%d')
strStockCode = 'sz399001'
#strStockCode = 'sh000001'
url = 'http://qt.gtimg.cn/q='+strStockCode
req = urllib2.Request(url)
resp = urllib2.urlopen(req)
response = resp.read()
stockdate_str = res... | 19.863636 | 54 | 0.700229 | 63 | 437 | 4.777778 | 0.634921 | 0.119601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058673 | 0.102975 | 437 | 21 | 55 | 20.809524 | 0.709184 | 0.135011 | 0 | 0 | 0 | 0 | 0.101333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc306d57458ca5a5931a319bebf0c7e9ff663e27 | 20,010 | py | Python | python/randall/alife_randall_checkout/randallai/AI/pavlov.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | 3 | 2015-11-24T17:06:58.000Z | 2018-05-01T14:03:57.000Z | python/randall/alife_randall_checkout/randallai/AI/pavlov.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | python/randall/alife_randall_checkout/randallai/AI/pavlov.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
'''
Copyright (c) 2011 Joseph Lewis <joehms22@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your opt... | 31.964856 | 149 | 0.565567 | 2,509 | 20,010 | 4.401754 | 0.214029 | 0.011409 | 0.00996 | 0.008693 | 0.267023 | 0.23343 | 0.214234 | 0.202463 | 0.19033 | 0.182724 | 0 | 0.00743 | 0.361019 | 20,010 | 626 | 150 | 31.964856 | 0.856327 | 0.111394 | 0 | 0.436214 | 0 | 0 | 0.041307 | 0.002436 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00823 | 0.012346 | null | null | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc315dd42607746d20cdbc145b4fc19c4ba6e78c | 759 | py | Python | budget-rnn/src/data_preparation/ford/audio_processing.py | tejaskannan/ml-models | ad5acad2c0ce75773062ffcdff088a6fbe5ffc17 | [
"Apache-2.0"
] | 1 | 2021-06-28T15:40:41.000Z | 2021-06-28T15:40:41.000Z | budget-rnn/src/data_preparation/ford/audio_processing.py | tejaskannan/ml-models | ad5acad2c0ce75773062ffcdff088a6fbe5ffc17 | [
"Apache-2.0"
] | 5 | 2021-03-04T19:42:15.000Z | 2022-02-10T05:46:15.000Z | budget-rnn/src/data_preparation/ford/audio_processing.py | tejaskannan/budget-rnn | ad5acad2c0ce75773062ffcdff088a6fbe5ffc17 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from scipy.signal import hamming
from typing import List
def amplify_signal(signal: np.ndarray, emphasis: float):
return np.append(signal[0], signal[1:] - emphasis * signal[:-1])
def frame_signal(signal: np.ndarray, window_size: int, stride: int) -> np.ndarray:
frames: List[np.ndarray] = ... | 25.3 | 82 | 0.666667 | 112 | 759 | 4.446429 | 0.401786 | 0.108434 | 0.056225 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013115 | 0.196311 | 759 | 29 | 83 | 26.172414 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 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 |
dc47c4e489a45046e672342b3fd73708588e9ede | 3,644 | py | Python | flsim/utils/async_trainer/async_staleness_weights.py | karthikprasad/FLSim | 3c62fe83de2f06feffb9ed65ce9f71803bbd6027 | [
"Apache-2.0"
] | null | null | null | flsim/utils/async_trainer/async_staleness_weights.py | karthikprasad/FLSim | 3c62fe83de2f06feffb9ed65ce9f71803bbd6027 | [
"Apache-2.0"
] | null | null | null | flsim/utils/async_trainer/async_staleness_weights.py | karthikprasad/FLSim | 3c62fe83de2f06feffb9ed65ce9f71803bbd6027 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import annotations
import abc
from dataclasses import dataclass
from flsim.utils.config_utils... | 28.248062 | 92 | 0.667673 | 377 | 3,644 | 6.151194 | 0.281167 | 0.036223 | 0.023717 | 0.047434 | 0.313497 | 0.301854 | 0.275119 | 0.260888 | 0.260888 | 0.241483 | 0 | 0.007299 | 0.248079 | 3,644 | 128 | 93 | 28.46875 | 0.839051 | 0.133919 | 0 | 0.516854 | 0 | 0 | 0.034549 | 0 | 0 | 0 | 0 | 0.007813 | 0.022472 | 1 | 0.146067 | false | 0.05618 | 0.067416 | 0.011236 | 0.460674 | 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 |
dc49332d5e4aac82daeded3be8d09a59fed43f86 | 16,211 | py | Python | gpu/ipc/common/generate_vulkan_types.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | gpu/ipc/common/generate_vulkan_types.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | gpu/ipc/common/generate_vulkan_types.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import filecmp
import optparse
import os.path
import platform
import re
import subprocess
import sys
_VULKAN_HEADER_FILE = "third_part... | 26.35935 | 80 | 0.669484 | 2,183 | 16,211 | 4.727897 | 0.136051 | 0.036818 | 0.040306 | 0.028486 | 0.526887 | 0.43426 | 0.381649 | 0.292414 | 0.262862 | 0.24174 | 0 | 0.009043 | 0.195053 | 16,211 | 614 | 81 | 26.40228 | 0.781899 | 0.04244 | 0 | 0.307902 | 0 | 0 | 0.136249 | 0.033682 | 0 | 0 | 0 | 0 | 0.038147 | 0 | null | null | 0.00545 | 0.019074 | null | null | 0.008174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc4946b0d80470d7026a6eb2c331a793586cc090 | 411 | py | Python | python/p2.py | ghaering/five-problems | e0eeb6fa0fead5483ec53b12b8dc9d24b5976a4d | [
"MIT"
] | null | null | null | python/p2.py | ghaering/five-problems | e0eeb6fa0fead5483ec53b12b8dc9d24b5976a4d | [
"MIT"
] | null | null | null | python/p2.py | ghaering/five-problems | e0eeb6fa0fead5483ec53b12b8dc9d24b5976a4d | [
"MIT"
] | null | null | null | def alternate_elements(lst1, lst2):
assert len(lst1) == len(lst2)
def alt(lst1, lst2):
for idx in range(len(lst1)):
yield lst1[idx], lst2[idx]
return list(alt(lst1, lst2))
if __name__ == "__main__":
lst1 = ["a", "b", "c"]
lst2 = [1, 2, 3]
correct = list(zip(lst1, lst2))
result = alternate_elements(lst1, ls... | 25.6875 | 40 | 0.644769 | 66 | 411 | 3.863636 | 0.409091 | 0.156863 | 0.164706 | 0.196078 | 0.266667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0.059172 | 0.177616 | 411 | 15 | 41 | 27.4 | 0.695266 | 0 | 0 | 0 | 0 | 0 | 0.026764 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.214286 | 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 |
dc4e62a72938180591630bbdee04efd77a87dfe6 | 3,838 | py | Python | src/tram_server.py | han1222/flask_ask_ros | 170d027a2238f99cf492303ec88975b6ece37abb | [
"MIT"
] | null | null | null | src/tram_server.py | han1222/flask_ask_ros | 170d027a2238f99cf492303ec88975b6ece37abb | [
"MIT"
] | null | null | null | src/tram_server.py | han1222/flask_ask_ros | 170d027a2238f99cf492303ec88975b6ece37abb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import rospy
import threading
from waitress import serve
from flask import Flask
from flask_ask import Ask, question, statement
from std_msgs.msg import String,Bool
from sensor_msgs.msg import NavSatFix
start_flag =False
e_stop_flag =False
app = Flask(__name__)
ask = Ask(app, "/")
#NEWC... | 34.576577 | 135 | 0.67457 | 561 | 3,838 | 4.483066 | 0.299465 | 0.023857 | 0.005964 | 0.007952 | 0.387276 | 0.365805 | 0.365805 | 0.365805 | 0.34831 | 0.321272 | 0 | 0.041051 | 0.206618 | 3,838 | 110 | 136 | 34.890909 | 0.784893 | 0.157374 | 0 | 0.324675 | 0 | 0 | 0.11677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103896 | null | null | 0.077922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc55cdfe6c56d21d21c9c3129b4dbd59ea886640 | 2,363 | py | Python | solutions/0414-third-maximum-number/third-maximum-number.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | solutions/0414-third-maximum-number/third-maximum-number.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | solutions/0414-third-maximum-number/third-maximum-number.py | iFun/Project-G | d33b3b3c7bcee64f93dc2539fd9955a27f321d96 | [
"MIT"
] | null | null | null | # Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n).
#
# Example 1:
#
# Input: [3, 2, 1]
#
# Output: 1
#
# Explanation: The third maximum is 1.
#
#
#
# Example 2:
#
# Input: [1, 2]
#
# Output: 2... | 20.37069 | 172 | 0.58485 | 331 | 2,363 | 4.175227 | 0.283988 | 0.104197 | 0.108538 | 0.054993 | 0.646889 | 0.646889 | 0.612156 | 0.612156 | 0.612156 | 0.612156 | 0 | 0.065742 | 0.29835 | 2,363 | 115 | 173 | 20.547826 | 0.767793 | 0.584427 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc5ae527b4909ffc4e324927c012a0635908e64f | 1,052 | py | Python | server/sonoser/sonos_accessor.py | uncreative/sonoser | eb430f7a9ab6dc02c3ef8e93430fde84886e0ea2 | [
"MIT"
] | null | null | null | server/sonoser/sonos_accessor.py | uncreative/sonoser | eb430f7a9ab6dc02c3ef8e93430fde84886e0ea2 | [
"MIT"
] | null | null | null | server/sonoser/sonos_accessor.py | uncreative/sonoser | eb430f7a9ab6dc02c3ef8e93430fde84886e0ea2 | [
"MIT"
] | null | null | null | import soco
class SonoserException(Exception):
pass
class SonoserPlaylistNotFoundException(SonoserException):
pass
class SonoserZoneNotFoundException(SonoserException):
pass
class SonosAccessor:
def __init__(self):
self.zones = [zone for zone in soco.discover()]
self.playlists = ... | 29.222222 | 99 | 0.686312 | 125 | 1,052 | 5.568 | 0.336 | 0.038793 | 0.071839 | 0.045977 | 0.109195 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.224335 | 1,052 | 35 | 100 | 30.057143 | 0.845588 | 0.015209 | 0 | 0.130435 | 0 | 0 | 0.047389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.043478 | 0 | 0.304348 | 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 |
dc5d5118ea0b4910e13d20cdae33f9e536405184 | 426 | py | Python | setup.py | ebernhardson/wikibase-unicorn | 5a9ecb75a15a9587713a6e479fec30d48f76c91d | [
"MIT"
] | 3 | 2020-09-22T04:26:46.000Z | 2020-09-23T20:39:54.000Z | setup.py | ebernhardson/wikibase-unicorn | 5a9ecb75a15a9587713a6e479fec30d48f76c91d | [
"MIT"
] | null | null | null | setup.py | ebernhardson/wikibase-unicorn | 5a9ecb75a15a9587713a6e479fec30d48f76c91d | [
"MIT"
] | null | null | null | import os
from setuptools import find_packages, setup
setup(
name='unicorn',
version='0.0.1',
license='MIT',
entry_points={
'console_scripts': [
'unicorn = unicorn.__main__:main',
],
},
packages=find_packages(),
install_requires=[
'elasticsearch>=6.0.0,<7... | 18.521739 | 46 | 0.532864 | 44 | 426 | 4.931818 | 0.704545 | 0.02765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033223 | 0.293427 | 426 | 22 | 47 | 19.363636 | 0.687708 | 0 | 0 | 0.1 | 0 | 0 | 0.258824 | 0.112941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc634b41c6f3b7f8917b55edacca1cbf92ab2592 | 613 | py | Python | features/steps/GoogleSearchSteps.py | ckzgraphics/lettuce-browserstack-custom | 8f1abb4ee18120258ecd0905d7588e8ad83eff8c | [
"Apache-2.0"
] | null | null | null | features/steps/GoogleSearchSteps.py | ckzgraphics/lettuce-browserstack-custom | 8f1abb4ee18120258ecd0905d7588e8ad83eff8c | [
"Apache-2.0"
] | null | null | null | features/steps/GoogleSearchSteps.py | ckzgraphics/lettuce-browserstack-custom | 8f1abb4ee18120258ecd0905d7588e8ad83eff8c | [
"Apache-2.0"
] | null | null | null | from lettuce import step, world
from selenium.webdriver.common.keys import Keys
import time
@step("I'm on Google")
def step_impl(step):
world.browser.get("https://www.google.com/ncr")
world.browser.maximize_window()
@step("I search for BrowserStack")
def step_impl(step):
element = world.browser.find_eleme... | 27.863636 | 67 | 0.738989 | 88 | 613 | 5.045455 | 0.477273 | 0.135135 | 0.074324 | 0.101351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001898 | 0.140294 | 613 | 21 | 68 | 29.190476 | 0.840607 | 0 | 0 | 0.176471 | 0 | 0 | 0.265905 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | null | null | 0 | 0.176471 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc63dbead0dad5abde1ddc199ed7556a9d08afa7 | 963 | py | Python | SHARQ/SHARQ_main/algorithms/quantile.py | aaronhan223/htsf | cfda92e63bcf9743e25d1784c32363ab50d573bb | [
"BSD-3-Clause"
] | 2 | 2022-01-06T00:34:49.000Z | 2022-01-11T09:07:53.000Z | SHARQ/SHARQ_main/algorithms/quantile.py | aaronhan223/htsf | cfda92e63bcf9743e25d1784c32363ab50d573bb | [
"BSD-3-Clause"
] | null | null | null | SHARQ/SHARQ_main/algorithms/quantile.py | aaronhan223/htsf | cfda92e63bcf9743e25d1784c32363ab50d573bb | [
"BSD-3-Clause"
] | null | null | null | import torch
import torch.nn as nn
import pdb
class QuantileLoss(nn.Module):
def __init__(self, quantiles):
super().__init__()
self.quantiles = quantiles
def forward(self, preds, target):
assert not target.requires_grad
assert preds.size(0) == target.size(0)
losses = [... | 28.323529 | 80 | 0.588785 | 123 | 963 | 4.495935 | 0.382114 | 0.188065 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.28972 | 963 | 33 | 81 | 29.181818 | 0.790936 | 0 | 0 | 0.074074 | 0 | 0 | 0.008307 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.185185 | false | 0 | 0.111111 | 0.037037 | 0.518519 | 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 |
dc6c1b223a2362d542a5b47a37d9c6de6077189d | 553 | py | Python | Exercicios/ex006.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | Exercicios/ex006.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | Exercicios/ex006.py | vaniaferreira/Python | 5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab | [
"MIT"
] | null | null | null | import math
import random
import emoji
num = int(input('Digite um número: '))
raiz = math.sqrt(num)
print('A raiz de {} é: {}'.format(num, math.floor(raiz)))
#floor --> arrendonda pra baixo
#ceil --> arredonda pra cima
#from math import sqrt, floor, ceil
#random - mostra numeros aleatorios entre 0 e 1
n1 = random.ra... | 19.75 | 57 | 0.714286 | 83 | 553 | 4.710843 | 0.518072 | 0.102302 | 0.173913 | 0.14578 | 0.237852 | 0.237852 | 0 | 0 | 0 | 0 | 0 | 0.014374 | 0.119349 | 553 | 27 | 58 | 20.481481 | 0.788501 | 0.24774 | 0 | 0 | 0 | 0 | 0.175743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc730dbfacf3fd2f9105978f6e7d144a1785e486 | 12,049 | py | Python | model.py | jazzsaxmafia/show_and_tell.tensorflow | 0a6f35afbda77986d9121c775929bc30b5f4a4e8 | [
"BSD-2-Clause"
] | 333 | 2015-11-15T07:24:12.000Z | 2022-03-16T08:53:07.000Z | model.py | rajat1994/show_and_tell.tensorflow | 0a6f35afbda77986d9121c775929bc30b5f4a4e8 | [
"BSD-2-Clause"
] | 26 | 2016-01-10T09:45:40.000Z | 2021-05-15T11:55:59.000Z | model.py | rajat1994/show_and_tell.tensorflow | 0a6f35afbda77986d9121c775929bc30b5f4a4e8 | [
"BSD-2-Clause"
] | 132 | 2015-11-16T01:31:55.000Z | 2020-12-30T07:53:10.000Z | #-*- coding: utf-8 -*-
import math
import os
import tensorflow as tf
import numpy as np
import pandas as pd
import cPickle
from tensorflow.models.rnn import rnn_cell
import tensorflow.python.platform
from keras.preprocessing import sequence
from collections import Counter
from cnn_util import *
class Caption_Generato... | 38.009464 | 145 | 0.638061 | 1,630 | 12,049 | 4.458896 | 0.193252 | 0.029719 | 0.026968 | 0.009631 | 0.289901 | 0.242983 | 0.228398 | 0.197854 | 0.152999 | 0.138415 | 0 | 0.016117 | 0.232716 | 12,049 | 316 | 146 | 38.129747 | 0.770038 | 0.068055 | 0 | 0.183857 | 0 | 0 | 0.047038 | 0.004458 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058296 | null | null | 0.022422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc7487518bf737622367563c728efc27af2ce7ff | 1,972 | py | Python | remediation/sciencelogic/lambda_function.py | schrius/prisma-cloud-hub | adaac939cbdcfc65b53cbf54d42fe036a828399e | [
"Apache-2.0"
] | null | null | null | remediation/sciencelogic/lambda_function.py | schrius/prisma-cloud-hub | adaac939cbdcfc65b53cbf54d42fe036a828399e | [
"Apache-2.0"
] | null | null | null | remediation/sciencelogic/lambda_function.py | schrius/prisma-cloud-hub | adaac939cbdcfc65b53cbf54d42fe036a828399e | [
"Apache-2.0"
] | null | null | null | import requests
import json
import os
def lambda_handler(event, context):
print("--- Prisma High Alerts ---")
send_alert(event)
def send_alert(msg):
if 'hasFinding' in msg: del msg['hasFinding']
if 'alertRemediationCli' in msg: del msg['alertRemediationCli']
if 'source' in msg: del msg['source... | 35.214286 | 101 | 0.638945 | 230 | 1,972 | 5.426087 | 0.313043 | 0.076122 | 0.121795 | 0.167468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003201 | 0.207911 | 1,972 | 56 | 102 | 35.214286 | 0.795775 | 0 | 0 | 0 | 0 | 0 | 0.376077 | 0.022301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.06383 | 0 | 0.106383 | 0.106383 | 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 |
dc7494fd7189ad9f7bced02f7a0c9636df71c6a1 | 2,199 | py | Python | scripts/build_docs.py | sys-bio/rrplugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | null | null | null | scripts/build_docs.py | sys-bio/rrplugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | 8 | 2015-12-02T18:20:43.000Z | 2021-08-20T17:13:34.000Z | scripts/build_docs.py | sys-bio/telPlugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | 3 | 2015-01-27T18:53:45.000Z | 2015-07-13T17:07:50.000Z | import sys
import os
import os.path
import show_status as ss
import subprocess
import datetime
import shutil
import pbs as sc
from pbs import git
from pbs import ls
def cleanFolder(path):
print('Removing folder ' + path)
shutil.rmtree(path, ignore_errors=True)
#==== C DOCS ====
def generateDocs(doxyFil... | 25.870588 | 90 | 0.625284 | 227 | 2,199 | 6.013216 | 0.370044 | 0.065934 | 0.064469 | 0.079121 | 0.235897 | 0.124542 | 0.124542 | 0.124542 | 0.124542 | 0.124542 | 0 | 0 | 0.254206 | 2,199 | 84 | 91 | 26.178571 | 0.832317 | 0.122783 | 0 | 0.111111 | 0 | 0 | 0.130846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.244444 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc784ad1d3b2b5c12c69eb3739aa721337c654bc | 1,232 | py | Python | sites/demo/apps/designer/views.py | jinnykoo/christmas | e9a969f9050cbaaef21b649aeb2e8819ed777976 | [
"BSD-3-Clause"
] | null | null | null | sites/demo/apps/designer/views.py | jinnykoo/christmas | e9a969f9050cbaaef21b649aeb2e8819ed777976 | [
"BSD-3-Clause"
] | null | null | null | sites/demo/apps/designer/views.py | jinnykoo/christmas | e9a969f9050cbaaef21b649aeb2e8819ed777976 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
from django.conf import settings
from django.core.files import File
from oscar.core.loading import get_class, get_classes, get_model
ProductClass, Product, Category, ProductCategory = get_classes(
'catalogue.models', ('ProductClass', 'Product', 'Category',
... | 31.589744 | 64 | 0.722403 | 158 | 1,232 | 5.518987 | 0.455696 | 0.112385 | 0.061927 | 0.09633 | 0.050459 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003813 | 0.148539 | 1,232 | 39 | 65 | 31.589744 | 0.827455 | 0.027597 | 0 | 0 | 0 | 0 | 0.195489 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc7989d21f57f6c69c4cdc5c2be841548db209d8 | 1,043 | py | Python | sender.py | brotherlogic/pytilt | c6ac18a9ef9c4f032572527425c35ece0a76e229 | [
"MIT"
] | null | null | null | sender.py | brotherlogic/pytilt | c6ac18a9ef9c4f032572527425c35ece0a76e229 | [
"MIT"
] | null | null | null | sender.py | brotherlogic/pytilt | c6ac18a9ef9c4f032572527425c35ece0a76e229 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
import json
from multiprocessing import Pool
import time
import os
import sys
def send(data, url, key):
print data
os._exit()
class Sender(object):
def __init__(self, batch_size=1):
self.queue = []
self.sending = []
self.batch_size = batch... | 23.704545 | 105 | 0.574305 | 133 | 1,043 | 4.390977 | 0.383459 | 0.123288 | 0.111301 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008208 | 0.299137 | 1,043 | 43 | 106 | 24.255814 | 0.790698 | 0.020134 | 0 | 0.147059 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc7a79c43cb151c17dcb759da6624ee0dec7af59 | 6,481 | py | Python | lib/feed_forward_nn.py | asjchen/skyflow_pollution | d54bc2ae2ad3235631f1a337249535b11a6c29bd | [
"BSD-3-Clause"
] | 3 | 2018-01-09T11:11:34.000Z | 2021-05-23T16:09:17.000Z | lib/feed_forward_nn.py | asjchen/skyflow_pollution | d54bc2ae2ad3235631f1a337249535b11a6c29bd | [
"BSD-3-Clause"
] | null | null | null | lib/feed_forward_nn.py | asjchen/skyflow_pollution | d54bc2ae2ad3235631f1a337249535b11a6c29bd | [
"BSD-3-Clause"
] | 3 | 2017-01-04T23:44:52.000Z | 2017-01-05T09:51:19.000Z | """
Sliding Window Feed Forward NN - a three-layer network that takes a feature
vector, representing the weather and pollutant data from the past n hours,
and outputs the predictions for the next hour's pollutant levels.
Brief description of model
------------------------------
Input: a n-dimensional ve... | 37.900585 | 108 | 0.70699 | 1,000 | 6,481 | 4.346 | 0.175 | 0.031063 | 0.043028 | 0.025311 | 0.437184 | 0.38081 | 0.313162 | 0.290382 | 0.266452 | 0.266452 | 0 | 0.027672 | 0.152446 | 6,481 | 170 | 109 | 38.123529 | 0.763517 | 0.013732 | 0 | 0.275862 | 0 | 0 | 0.014622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043103 | null | null | 0.043103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc7f4cc5430bbf65797fc7764d99bdae9f512335 | 810 | py | Python | extended_rl/environments/Repeater.py | semitrivial/ExtendedEnvironments | 1183ff9a03468452db929244c8c7c3e97e392223 | [
"MIT"
] | null | null | null | extended_rl/environments/Repeater.py | semitrivial/ExtendedEnvironments | 1183ff9a03468452db929244c8c7c3e97e392223 | [
"MIT"
] | 16 | 2021-02-28T22:25:17.000Z | 2021-10-13T20:15:33.000Z | extended_rl/environments/Repeater.py | semitrivial/ExtendedEnvironments | 1183ff9a03468452db929244c8c7c3e97e392223 | [
"MIT"
] | 3 | 2021-02-23T00:28:29.000Z | 2021-11-12T02:47:59.000Z | class Repeater:
"""
Environment which incentivizes the agent to act as if every turn is
repeated twice. Whenever the agent takes an action, the environment
determines: would the agent take the same action if every turn
leading up to that action were doubled? If so, give the agent reward
+1, othe... | 31.153846 | 72 | 0.632099 | 125 | 810 | 4 | 0.432 | 0.08 | 0.044 | 0.072 | 0.23 | 0.154 | 0.154 | 0.154 | 0.154 | 0.154 | 0 | 0.022184 | 0.276543 | 810 | 26 | 73 | 31.153846 | 0.831058 | 0.380247 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc7f5c256f0219df9d3bb429e88e699caf25bc46 | 3,989 | py | Python | riko/modules/truncate.py | sottom/riko | 7898b850b45451420feab33380d252be18e77714 | [
"MIT"
] | null | null | null | riko/modules/truncate.py | sottom/riko | 7898b850b45451420feab33380d252be18e77714 | [
"MIT"
] | null | null | null | riko/modules/truncate.py | sottom/riko | 7898b850b45451420feab33380d252be18e77714 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
riko.modules.truncate
~~~~~~~~~~~~~~~~~~~~~
Provides functions for returning a specified number of items from a stream.
Contrast this with the tail module, which also limits the number of items,
but returns items from the bottom of the stream.
Examples:
basic... | 29.330882 | 79 | 0.580095 | 477 | 3,989 | 4.836478 | 0.30608 | 0.030342 | 0.02254 | 0.010403 | 0.348505 | 0.289987 | 0.234504 | 0.228435 | 0.205462 | 0.205462 | 0 | 0.007717 | 0.285285 | 3,989 | 135 | 80 | 29.548148 | 0.801473 | 0.787666 | 0 | 0.125 | 0 | 0 | 0.023941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.5625 | 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 |
dc7fd28eb18f185c7fecf2b691f9351acaecb42f | 1,125 | py | Python | backup/sql_queries.py | andela/waitress | 55d4b99d2e5263a11609b18d478b2e514d79a7e8 | [
"MIT"
] | 2 | 2018-03-13T13:43:32.000Z | 2019-07-30T02:56:48.000Z | backup/sql_queries.py | waitress-andela/waitress | 55d4b99d2e5263a11609b18d478b2e514d79a7e8 | [
"MIT"
] | 16 | 2016-07-31T16:53:01.000Z | 2020-02-14T00:00:27.000Z | backup/sql_queries.py | andela-osule/waitress | 55d4b99d2e5263a11609b18d478b2e514d79a7e8 | [
"MIT"
] | 2 | 2017-01-15T03:25:00.000Z | 2018-10-29T15:19:27.000Z | from datetime import date
CURRENT_DATE = date.today().strftime("%Y-%m-%e")
# FETCH_MEAL_RECORDS = 'SELECT * FROM app_slackuser;'
FETCH_MEAL_RECORDS = f"""
SELECT
to_char(app_mealservice.date, 'DD-MM-YYYY'),
app_mealservice.date_modified,
app_mealservice.user_id,
app_slackuser.firstname,
app_slacku... | 18.145161 | 53 | 0.718222 | 151 | 1,125 | 5.033113 | 0.264901 | 0.189474 | 0.098684 | 0.105263 | 0.456579 | 0.401316 | 0.297368 | 0.297368 | 0.297368 | 0.297368 | 0 | 0 | 0.182222 | 1,125 | 61 | 54 | 18.442623 | 0.826087 | 0.045333 | 0 | 0.618182 | 0 | 0 | 0.818097 | 0.306903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.018182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc80873edfca7a335a9f543e32ebead4c665e977 | 5,607 | py | Python | jwql/database/database_interface.py | hover2pi/jwql | 0a97fe618c007883ffbced88ac1cb45a667fcb3c | [
"BSD-3-Clause"
] | null | null | null | jwql/database/database_interface.py | hover2pi/jwql | 0a97fe618c007883ffbced88ac1cb45a667fcb3c | [
"BSD-3-Clause"
] | null | null | null | jwql/database/database_interface.py | hover2pi/jwql | 0a97fe618c007883ffbced88ac1cb45a667fcb3c | [
"BSD-3-Clause"
] | null | null | null | """
A module to interact with the JWQL postgresql database ``jwqldb``
The ``load_connection()`` function within this module allows the user
to connect to the ``jwqldb`` database via the ``session``, ``base``,
and ``engine`` objects (described below). The classes within serve as
ORMs (Object-relational mappings) that ... | 35.264151 | 96 | 0.713216 | 699 | 5,607 | 5.625179 | 0.32475 | 0.082655 | 0.116989 | 0.145473 | 0.247965 | 0.236267 | 0.071974 | 0.017294 | 0.017294 | 0.017294 | 0 | 0.001099 | 0.188693 | 5,607 | 158 | 97 | 35.487342 | 0.863267 | 0.400927 | 0 | 0.060606 | 0 | 0 | 0.029613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.19697 | 0 | 0.727273 | 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 |
dc8541a32a6a74abcaa9e9cfa4360344c632915e | 1,233 | py | Python | shop/cascade/catalog.py | JensLanders/SHOP | 45c185a5ac0eab83bf9b9d7a915fab2c83493b10 | [
"BSD-3-Clause"
] | 1 | 2019-03-22T15:20:18.000Z | 2019-03-22T15:20:18.000Z | shop/cascade/catalog.py | JensLanders/SHOP | 45c185a5ac0eab83bf9b9d7a915fab2c83493b10 | [
"BSD-3-Clause"
] | 21 | 2020-06-05T16:36:51.000Z | 2022-03-11T23:25:50.000Z | shop/cascade/catalog.py | JensLanders/SHOP | 45c185a5ac0eab83bf9b9d7a915fab2c83493b10 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.template.loader import select_template
from django.utils.translation import ugettext_lazy as _
from cms.plugin_pool import plugin_pool
from shop import settings as shop_settings
from .plugin_base import ShopPluginBase
class ShopCatalogPlugin(... | 32.447368 | 79 | 0.729927 | 134 | 1,233 | 6.477612 | 0.425373 | 0.046083 | 0.039171 | 0.052995 | 0.509217 | 0.4447 | 0.327189 | 0.327189 | 0.327189 | 0.21659 | 0 | 0.002953 | 0.175994 | 1,233 | 37 | 80 | 33.324324 | 0.851378 | 0.017032 | 0 | 0.357143 | 0 | 0 | 0.182645 | 0.13719 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.071429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dc856c0b246cbe483293ac24a29a9ea001593c0c | 911 | py | Python | olamundo.py/exercicios_refeitos/ex023.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex023.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex023.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | '''
ex023: Faça um programa que leia um número de 0 a 9999 e mostre na tela cada um dos dígitos separados.
Ex: Digite um número: 1834
unidade: 4
dezena: 3
centena: 8
milhar: 1
'''
from colorise import set_color, reset_color
cores = {
'azul':'\033[1;34m',
'limpa':'\033[m',
'branco':'... | 33.740741 | 103 | 0.591658 | 134 | 911 | 3.992537 | 0.447761 | 0.149533 | 0.127103 | 0.164486 | 0.269159 | 0.269159 | 0.269159 | 0 | 0 | 0 | 0 | 0.070496 | 0.159166 | 911 | 26 | 104 | 35.038462 | 0.627937 | 0.21405 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.235294 | 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 |
dc89a999d133ac6909c4e65894cc4eb4b96c2cb0 | 8,044 | py | Python | main.py | raresito/Geographic-Distribution-of-Students | aa98e7703016260b7f4603779b086d5f3b5530b8 | [
"MIT"
] | null | null | null | main.py | raresito/Geographic-Distribution-of-Students | aa98e7703016260b7f4603779b086d5f3b5530b8 | [
"MIT"
] | null | null | null | main.py | raresito/Geographic-Distribution-of-Students | aa98e7703016260b7f4603779b086d5f3b5530b8 | [
"MIT"
] | null | null | null | import json;
import requests;
import pymongo;
import requests
from pymongo.collation import Collation
cookies = {
'WTSesIDHx': '35g0w816vv3xtlw65ylmwa1n0-4vj2hm-2pmtm0',
'_ga': 'GA1.2.1358434475.1548575832',
'WTSesIDx': '35g0iwwzs45qbi4mny20qb5mu-1bphsej-4at7mq',
'WTSesIDxC': '37d9cf2f6e016ee74acd070d8... | 37.765258 | 402 | 0.647936 | 828 | 8,044 | 6.263285 | 0.35628 | 0.008677 | 0.013884 | 0.017547 | 0.30833 | 0.298496 | 0.238334 | 0.216737 | 0.216737 | 0.202468 | 0 | 0.080715 | 0.165216 | 8,044 | 212 | 403 | 37.943396 | 0.691586 | 0.668449 | 0 | 0 | 0 | 0.073171 | 0.711282 | 0.38334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121951 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc8eea83b4c15f04317c83c7a4a0621fe31f6430 | 6,955 | py | Python | Lib/objc/_CoreDAV.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | Lib/objc/_CoreDAV.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | Lib/objc/_CoreDAV.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | '''
Classes from the 'CoreDAV' framework.
'''
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
CoreDAVXMLElementGenerator = _Class('CoreDAVXMLElementGen... | 53.914729 | 107 | 0.859382 | 361 | 6,955 | 16.243767 | 0.354571 | 0.004434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058375 | 6,955 | 128 | 108 | 54.335938 | 0.895404 | 0.00532 | 0 | 0.033333 | 0 | 0 | 0.372793 | 0.262373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.008333 | 0.008333 | 0.05 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc9222991d338c16dd621ae8121c0d301becab8b | 943 | py | Python | algorithms/strings/strong-password.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 41 | 2018-05-11T07:54:34.000Z | 2022-03-29T19:02:32.000Z | algorithms/strings/strong-password.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 2 | 2021-09-13T10:03:26.000Z | 2021-10-04T10:21:05.000Z | algorithms/strings/strong-password.py | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 21 | 2019-01-23T19:06:59.000Z | 2021-12-23T16:03:47.000Z | # Algorithms > Strings > Strong Password
# How many characters should you add to make the password strong?
#
# https://www.hackerrank.com/challenges/strong-password/problem
#
numbers = "0123456789"
lower_case = "abcdefghijklmnopqrstuvwxyz"
upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
special_characters = "!@#$%^&*()-+"
... | 26.194444 | 73 | 0.669141 | 124 | 943 | 4.975806 | 0.459677 | 0.016207 | 0.077796 | 0.12966 | 0.194489 | 0.119935 | 0.084279 | 0 | 0 | 0 | 0 | 0.029451 | 0.207847 | 943 | 35 | 74 | 26.942857 | 0.796519 | 0.264051 | 0 | 0 | 0 | 0 | 0.119534 | 0.075802 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.333333 | 0 | 0 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.