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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64e4102d21dd4469cee2c11452fd77745c96975d | 399 | py | Python | Squest/settings/production.py | a-belhadj/squest | 8714fefc332ab1ab349508488455f4a1f2ab8a82 | [
"Apache-2.0"
] | null | null | null | Squest/settings/production.py | a-belhadj/squest | 8714fefc332ab1ab349508488455f4a1f2ab8a82 | [
"Apache-2.0"
] | null | null | null | Squest/settings/production.py | a-belhadj/squest | 8714fefc332ab1ab349508488455f4a1f2ab8a82 | [
"Apache-2.0"
] | null | null | null | # Production settings
from Squest.settings.development import *
import os
# update default secret key if provided
from_env_secret_key = os.environ.get('SECRET_KEY', None)
if from_env_secret_key is not None:
SECRET_KEY = from_env_secret_key
DEBUG = False
STATICFILES_DIRS = [
os.path.join(BASE_DIR, '../project-st... | 30.692308 | 67 | 0.759398 | 60 | 399 | 4.8 | 0.516667 | 0.1875 | 0.135417 | 0.166667 | 0.118056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132832 | 399 | 12 | 68 | 33.25 | 0.83237 | 0.182957 | 0 | 0 | 0 | 0 | 0.114907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64ed72c193be090f5f5617b91f094b575bffbbea | 254 | py | Python | pallindrome.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | 1 | 2019-03-29T04:32:09.000Z | 2019-03-29T04:32:09.000Z | pallindrome.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | null | null | null | pallindrome.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | null | null | null | def main():
no=input("Please enter the number :")
rev=0
while no>10:
last =n%10
rev=rev*10+last
n/=10
print "The reversed number is ",rev
if rev == no:
print "yes it is palindrome"
else:
print "no it is not pallindrome"
main() | 19.538462 | 39 | 0.622047 | 44 | 254 | 3.590909 | 0.545455 | 0.075949 | 0.088608 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047368 | 0.251969 | 254 | 13 | 40 | 19.538462 | 0.784211 | 0 | 0 | 0 | 0 | 0 | 0.378601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64edb6649bc2a2dd57979598e08c540d0cd815a0 | 1,096 | py | Python | MIDI Remote Scripts/ableton/v2/control_surface/elements/velocity_levels_element.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | MIDI Remote Scripts/ableton/v2/control_surface/elements/velocity_levels_element.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | MIDI Remote Scripts/ableton/v2/control_surface/elements/velocity_levels_element.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | # uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\elements\velocity_levels_element.py
# Comp... | 33.212121 | 163 | 0.729015 | 143 | 1,096 | 5.356643 | 0.657343 | 0.05483 | 0.036554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062637 | 0.169708 | 1,096 | 33 | 164 | 33.212121 | 0.779121 | 0.308394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0.095238 | 0.761905 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
64f1f62b96d9454fc757078fa1203da56d62ac6c | 224 | py | Python | tests/basics/class2.py | LabAixBidouille/micropython | 11aa6ba456287d6c80598a7ebbebd2887ce8f5a2 | [
"MIT"
] | 303 | 2015-07-11T17:12:55.000Z | 2018-01-08T03:02:37.000Z | tests/basics/class2.py | LabAixBidouille/micropython | 11aa6ba456287d6c80598a7ebbebd2887ce8f5a2 | [
"MIT"
] | 13 | 2016-05-12T16:51:22.000Z | 2018-01-10T22:33:25.000Z | tests/basics/class2.py | LabAixBidouille/micropython | 11aa6ba456287d6c80598a7ebbebd2887ce8f5a2 | [
"MIT"
] | 26 | 2018-01-18T09:15:33.000Z | 2022-02-07T13:09:14.000Z | # class with __init__
class C1:
def __init__(self):
self.x = 1
c1 = C1()
print(type(c1) == C1)
print(c1.x)
class C2:
def __init__(self, x):
self.x = x
c2 = C2(4)
print(type(c2) == C2)
print(c2.x)
| 12.444444 | 26 | 0.558036 | 39 | 224 | 2.897436 | 0.307692 | 0.132743 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08589 | 0.272321 | 224 | 17 | 27 | 13.176471 | 0.607362 | 0.084821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 |
64f68fb6feb07e04813f7e78b0a11f5ddff4dce9 | 2,213 | py | Python | grr/core/grr_response_core/lib/rdfvalues/osquery.py | Dazbeni/grr | 5b49a83eba2f84e346a2b50d154264c190a24f08 | [
"Apache-2.0"
] | 1 | 2021-07-01T01:43:06.000Z | 2021-07-01T01:43:06.000Z | grr/core/grr_response_core/lib/rdfvalues/osquery.py | Dazbeni/grr | 5b49a83eba2f84e346a2b50d154264c190a24f08 | [
"Apache-2.0"
] | 44 | 2021-05-14T22:49:24.000Z | 2022-03-13T21:54:02.000Z | grr/core/grr_response_core/lib/rdfvalues/osquery.py | Dazbeni/grr | 5b49a83eba2f84e346a2b50d154264c190a24f08 | [
"Apache-2.0"
] | 1 | 2020-06-25T14:25:54.000Z | 2020-06-25T14:25:54.000Z | #!/usr/bin/env python
# Lint as: python3
"""A module with RDF values wrapping osquery protobufs."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from typing import Iterator
from typing import Text
from grr_response_core.lib.rdfvalues import structs as ... | 26.035294 | 67 | 0.723452 | 284 | 2,213 | 5.440141 | 0.320423 | 0.045307 | 0.093204 | 0.100971 | 0.227832 | 0.227832 | 0.227832 | 0.227832 | 0.227832 | 0.106149 | 0 | 0.00885 | 0.183009 | 2,213 | 84 | 68 | 26.345238 | 0.845686 | 0.282874 | 0 | 0.076923 | 0 | 0 | 0.023102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.179487 | 0 | 0.692308 | 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 |
64fb7eb7579c364612c8928cedbfc3c1e8ae2167 | 265 | py | Python | olamundo.py/exercicios/ex024.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios/ex024.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios/ex024.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | '''
Crie um programa que leia o nome de uma cidade diga se ela começa ou não com o nome "SANTO".
'''
nome_cidade = str(input('Digite o nome de uma cidade: ')).strip()
primeiro_nome = nome_cidade.split()
print('{}'.format('Santo' in primeiro_nome[0].capitalize()))
| 33.125 | 92 | 0.70566 | 44 | 265 | 4.159091 | 0.659091 | 0.081967 | 0.076503 | 0.10929 | 0.174863 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.143396 | 265 | 7 | 93 | 37.857143 | 0.801762 | 0.34717 | 0 | 0 | 0 | 0 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f1203d71317e01976a1662fb4be8fe99dd472ea | 853 | py | Python | src/python/WMQuality/Emulators/WMAgents/DefautlConfig.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 21 | 2015-11-19T16:18:45.000Z | 2021-12-02T18:20:39.000Z | src/python/WMQuality/Emulators/WMAgents/DefautlConfig.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 5,671 | 2015-01-06T14:38:52.000Z | 2022-03-31T22:11:14.000Z | src/python/WMQuality/Emulators/WMAgents/DefautlConfig.py | khurtado/WMCore | f74e252412e49189a92962945a94f93bec81cd1e | [
"Apache-2.0"
] | 67 | 2015-01-21T15:55:38.000Z | 2022-02-03T19:53:13.000Z | from WMCore.Configuration import Configuration
config = Configuration()
config.section_('Agent')
# Agent:
config.Agent.hostName = None
config.Agent.contact = None
config.Agent.teamName = "team_usa"
config.Agent.agentName = None
config.section_('General')
# General: General Settings Section
config.General.workDir = '/ho... | 37.086957 | 88 | 0.807737 | 94 | 853 | 7.276596 | 0.542553 | 0.064327 | 0.04386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010191 | 0.079719 | 853 | 22 | 89 | 38.772727 | 0.861147 | 0.19109 | 0 | 0 | 0 | 0 | 0.293255 | 0.20088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 0 | 0.066667 | 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 |
8f248482a1f69bac0820be1cb5a8464fadcac8cb | 716 | py | Python | users/migrations/0014_auto_20210801_2332.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 911 | 2015-01-03T22:16:06.000Z | 2022-03-31T23:56:22.000Z | users/migrations/0014_auto_20210801_2332.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 1,342 | 2015-01-02T16:14:45.000Z | 2022-03-28T08:01:20.000Z | users/migrations/0014_auto_20210801_2332.py | Manny27nyc/pythondotorg | 257c96d3a94755451a5a5cdcd2abad1e27ea299b | [
"Apache-2.0"
] | 551 | 2015-01-04T02:17:31.000Z | 2022-03-23T11:59:25.000Z | # Generated by Django 3.2.5 on 2021-08-01 23:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0013_auto_20180705_0348'),
]
operations = [
migrations.AlterField(
model_name='membership',
name='psf_annou... | 29.833333 | 136 | 0.636872 | 82 | 716 | 5.426829 | 0.609756 | 0.089888 | 0.11236 | 0.130337 | 0.440449 | 0.440449 | 0.440449 | 0.233708 | 0.233708 | 0.233708 | 0 | 0.058601 | 0.261173 | 716 | 23 | 137 | 31.130435 | 0.782609 | 0.062849 | 0 | 0.235294 | 1 | 0 | 0.263079 | 0.03438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
8f2fcce9ce8e28daf52e4f1d1ad04f9452577b52 | 423 | py | Python | lib/__init__.py | tdle94/app-store-scrapper | ed75880bac0c9ef685b2c1bf57a6997901abface | [
"MIT"
] | 1 | 2020-06-09T08:31:19.000Z | 2020-06-09T08:31:19.000Z | lib/__init__.py | tdle94/app-store-scrapper | ed75880bac0c9ef685b2c1bf57a6997901abface | [
"MIT"
] | 2 | 2021-03-31T19:46:47.000Z | 2021-06-02T01:15:42.000Z | lib/__init__.py | tdle94/app-store-scrapper | ed75880bac0c9ef685b2c1bf57a6997901abface | [
"MIT"
] | 1 | 2020-11-04T06:51:00.000Z | 2020-11-04T06:51:00.000Z | """
App Store Scraper
A web scraper for IOS app store.
"""
___version___ = "0.0.1"
import logging
from lib.api import (
details,
search,
suggest,
collection,
similar,
rating,
review,
)
try:
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
... | 14.586207 | 53 | 0.65721 | 48 | 423 | 5.583333 | 0.75 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.248227 | 423 | 28 | 54 | 15.107143 | 0.833333 | 0.120567 | 0 | 0 | 0 | 0 | 0.013736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f307c4aff6b9a6945a3305f33eb2a91f99d7cec | 18,666 | py | Python | build/lib.linux-x86_64-2.7_ucs4/mx/DateTime/mxDateTime/mxDateTime_Python.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/DateTime/mxDateTime/mxDateTime_Python.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/DateTime/mxDateTime/mxDateTime_Python.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | """
Python implementation courtesy of Drew Csillag (StarMedia Network, Inc.)
This version has been somewhat modified by MAL. It is still fairly
rough though and not necessarily high performance...
XXX Still needs testing and checkup !!!
WARNING: Using this file is only recommended if you really ... | 30.80198 | 81 | 0.543984 | 2,239 | 18,666 | 4.438142 | 0.132202 | 0.012076 | 0.008151 | 0.007648 | 0.419543 | 0.375868 | 0.333501 | 0.320821 | 0.309248 | 0.268995 | 0 | 0.064131 | 0.340887 | 18,666 | 605 | 82 | 30.852893 | 0.743558 | 0.05368 | 0 | 0.363014 | 0 | 0.004566 | 0.057163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006849 | 0.004566 | 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 |
8f334823812fdc1c5576d91e47e3f302331911dc | 7,092 | py | Python | qf_lib_tests/unit_tests/data_providers/test_preset_data_provider.py | quarkfin/QF-Lib | 1504c65c9ed8bbbd19948088fe7b924a7b6be709 | [
"Apache-2.0"
] | null | null | null | qf_lib_tests/unit_tests/data_providers/test_preset_data_provider.py | quarkfin/QF-Lib | 1504c65c9ed8bbbd19948088fe7b924a7b6be709 | [
"Apache-2.0"
] | null | null | null | qf_lib_tests/unit_tests/data_providers/test_preset_data_provider.py | quarkfin/QF-Lib | 1504c65c9ed8bbbd19948088fe7b924a7b6be709 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016-present CERN – European Organization for Nuclear Research
#
# 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... | 63.321429 | 118 | 0.610265 | 936 | 7,092 | 4.465812 | 0.17735 | 0.14067 | 0.152392 | 0.164115 | 0.611005 | 0.601435 | 0.601435 | 0.568421 | 0.552153 | 0.552153 | 0 | 0.103462 | 0.274958 | 7,092 | 111 | 119 | 63.891892 | 0.709257 | 0.088832 | 0 | 0.25 | 0 | 0 | 0.002793 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.047619 | false | 0 | 0.130952 | 0 | 0.238095 | 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 |
8f35d4aa5916e68eae58053f92c73d0e911c10d9 | 469 | py | Python | authors/apps/articles/migrations/0032_auto_20190223_1655.py | andela/ah-django-unchained | a4e5f6cd11fdc0b9422020693ac1200b849cf0f3 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/migrations/0032_auto_20190223_1655.py | andela/ah-django-unchained | a4e5f6cd11fdc0b9422020693ac1200b849cf0f3 | [
"BSD-3-Clause"
] | 26 | 2019-01-07T14:22:05.000Z | 2019-02-28T17:11:48.000Z | authors/apps/articles/migrations/0032_auto_20190223_1655.py | andela/ah-django-unchained | a4e5f6cd11fdc0b9422020693ac1200b849cf0f3 | [
"BSD-3-Clause"
] | 3 | 2019-09-19T22:16:09.000Z | 2019-10-16T21:16:16.000Z | # Generated by Django 2.1.5 on 2019-02-23 16:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0031_merge_20190203_1652'),
]
operations = [
migrations.AlterField(
model_name='article',
name='images',... | 24.684211 | 130 | 0.628998 | 55 | 469 | 5.290909 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106443 | 0.238806 | 469 | 18 | 131 | 26.055556 | 0.708683 | 0.095949 | 0 | 0 | 1 | 0.083333 | 0.277251 | 0.056872 | 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 |
8f55d06c497129b06049b32b0c6088d35139c022 | 303 | py | Python | setup.py | TheAlakazam/Dynamixel | 9d3c34a62dd576a38a99ee861bf718185631efd0 | [
"MIT"
] | null | null | null | setup.py | TheAlakazam/Dynamixel | 9d3c34a62dd576a38a99ee861bf718185631efd0 | [
"MIT"
] | null | null | null | setup.py | TheAlakazam/Dynamixel | 9d3c34a62dd576a38a99ee861bf718185631efd0 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='dxl',
version='0.1',
description='dxl library',
url='http://github.com/TheAlakazam/dynamixel',
author='Piyush Jaipuriyar',
author_email='flyingcircus@example.com',
license='MIT',
packages=['dxl'],
zip_safe=False)
| 25.25 | 52 | 0.636964 | 34 | 303 | 5.617647 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.211221 | 303 | 11 | 53 | 27.545455 | 0.790795 | 0 | 0 | 0 | 0 | 0 | 0.339934 | 0.079208 | 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 |
8f567c28d24ff8032f1fc90385437ccefed4f09c | 778 | py | Python | muddery/worlddata/editor/fixed_form_view.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | muddery/worlddata/editor/fixed_form_view.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | muddery/worlddata/editor/fixed_form_view.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null |
"""
This file checks user's edit actions and put changes into db.
"""
from django import http
from muddery.worlddata.editor.form_view import FormView
class FixedFormView(FormView):
"""
Users can not delete records from FixedPageView.
"""
def get_context(self):
"""
Get render context.... | 18.093023 | 61 | 0.55527 | 79 | 778 | 5.392405 | 0.544304 | 0.042254 | 0.056338 | 0.065728 | 0.164319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.357326 | 778 | 42 | 62 | 18.52381 | 0.84 | 0.302057 | 0 | 0.181818 | 0 | 0 | 0.024876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f60a5b8aef6836075041098e9d01685934554cc | 1,201 | py | Python | mapss/static/packages/arches/arches/app/models/migrations/5533_user_tasks.py | MPI-MAPSS/MAPSS | 3a5c0109758801717aaa8de1125ca5e98f83d3b4 | [
"CC0-1.0"
] | null | null | null | mapss/static/packages/arches/arches/app/models/migrations/5533_user_tasks.py | MPI-MAPSS/MAPSS | 3a5c0109758801717aaa8de1125ca5e98f83d3b4 | [
"CC0-1.0"
] | null | null | null | mapss/static/packages/arches/arches/app/models/migrations/5533_user_tasks.py | MPI-MAPSS/MAPSS | 3a5c0109758801717aaa8de1125ca5e98f83d3b4 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.2.6 on 2019-11-12 13:07
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(setti... | 37.53125 | 118 | 0.631973 | 133 | 1,201 | 5.586466 | 0.511278 | 0.053836 | 0.069987 | 0.091521 | 0.096904 | 0.096904 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.233972 | 1,201 | 31 | 119 | 38.741935 | 0.78587 | 0.037469 | 0 | 0 | 1 | 0 | 0.102253 | 0.024263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.32 | 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 |
8f6467b270e233dbfbf58ffb9a78cad42b0d8005 | 10,086 | py | Python | test/test_config.py | tiborsimon/p | 44d1caf2bab001a2b0bf33c40d7669ae1206f534 | [
"MIT"
] | null | null | null | test/test_config.py | tiborsimon/p | 44d1caf2bab001a2b0bf33c40d7669ae1206f534 | [
"MIT"
] | null | null | null | test/test_config.py | tiborsimon/p | 44d1caf2bab001a2b0bf33c40d7669ae1206f534 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from unittest import TestCase
try:
import mock
except ImportError:
from unittest import mock
try:
import __builtin__
open_mock_string = '__builtin__.open'
except ImportError:
open_mock_string = 'builtins.open'
from test.helpers import *
from project... | 41.850622 | 115 | 0.705433 | 1,258 | 10,086 | 5.255167 | 0.100954 | 0.053093 | 0.070337 | 0.098472 | 0.760097 | 0.711239 | 0.674028 | 0.617607 | 0.599153 | 0.520345 | 0 | 0.001357 | 0.196411 | 10,086 | 240 | 116 | 42.025 | 0.814312 | 0.004164 | 0 | 0.510101 | 0 | 0 | 0.060446 | 0.004382 | 0 | 0 | 0 | 0 | 0.186869 | 1 | 0.126263 | false | 0 | 0.040404 | 0 | 0.191919 | 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 |
8f650e766be58aa4ed63a33113bbdab52be570e0 | 960 | py | Python | 1006.clumsy-factorial.py | elfgzp/leetCode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | 3 | 2019-04-12T06:22:56.000Z | 2019-05-04T04:25:01.000Z | 1006.clumsy-factorial.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | 1006.clumsy-factorial.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | class Solution:
ops = ['*', '/', '+', '-']
def clumsy(self, N: int) -> int:
answer = [N]
i = N - 1
j = 0
while i > 0:
op = self.ops[j % 4]
j += 1
if op == '*':
n = answer.pop(-1)
val = n * i
a... | 19.591837 | 36 | 0.295833 | 94 | 960 | 3.021277 | 0.265957 | 0.056338 | 0.140845 | 0.126761 | 0.507042 | 0.507042 | 0.507042 | 0.394366 | 0.394366 | 0.394366 | 0 | 0.061728 | 0.578125 | 960 | 48 | 37 | 20 | 0.639506 | 0 | 0 | 0.342857 | 0 | 0 | 0.008351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f66e27ee42b01be16902bc9bba5cde9adce7df6 | 52,826 | py | Python | Mystic_OS.py | bhavinnor1/Python_app | e13bd1271fde144c1a699f70829b6a45ce686d93 | [
"Apache-2.0"
] | null | null | null | Mystic_OS.py | bhavinnor1/Python_app | e13bd1271fde144c1a699f70829b6a45ce686d93 | [
"Apache-2.0"
] | null | null | null | Mystic_OS.py | bhavinnor1/Python_app | e13bd1271fde144c1a699f70829b6a45ce686d93 | [
"Apache-2.0"
] | null | null | null | import tkinter as tk
import tkinter.font as font
from tkinter import *
from tkinter import messagebox
from PIL import ImageTk, Image
import random
import tkinter.ttk as ttk
import mysql.connector
from mysql.connector import Error
from mysql.connector import errorcode
from time import strftime
pagenum = 1
win = Tk()
wi... | 48.198905 | 556 | 0.479574 | 6,036 | 52,826 | 4.207919 | 0.105202 | 0.037482 | 0.030198 | 0.031419 | 0.582661 | 0.515847 | 0.46116 | 0.434663 | 0.411079 | 0.396984 | 0 | 0.044549 | 0.365161 | 52,826 | 1,095 | 557 | 48.242922 | 0.71046 | 0 | 0 | 0.400995 | 0 | 0.00597 | 0.124441 | 0.002065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0.055721 | 0.010945 | 0 | 0.055721 | 0.021891 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f715b9037a33cdef792204911c7c9959cce16a0 | 4,089 | py | Python | modbus_sniffer.py | snhobbs/ModbusSniffer | e6ca05517909b7692f14d44117b7679234904072 | [
"MIT"
] | 4 | 2021-04-07T06:35:21.000Z | 2022-03-11T16:55:00.000Z | modbus_sniffer.py | snhobbs/ModbusSniffer | e6ca05517909b7692f14d44117b7679234904072 | [
"MIT"
] | null | null | null | modbus_sniffer.py | snhobbs/ModbusSniffer | e6ca05517909b7692f14d44117b7679234904072 | [
"MIT"
] | 4 | 2021-04-23T23:30:33.000Z | 2022-02-11T08:23:35.000Z | import serial
from pymodbus.factory import ClientDecoder
from pymodbus.factory import ServerDecoder
from pymodbus.transaction import ModbusRtuFramer
#import pymodbus
#from pymodbus.transaction import ModbusRtuFramer
#from pymodbus.utilities import hexlify_packets
#from binascii import b2a_hex
from time import sleep
imp... | 32.975806 | 113 | 0.565909 | 444 | 4,089 | 5.103604 | 0.288288 | 0.031774 | 0.0609 | 0.071492 | 0.40865 | 0.369815 | 0.341571 | 0.341571 | 0.341571 | 0.300971 | 0 | 0.013236 | 0.297872 | 4,089 | 123 | 114 | 33.243902 | 0.776036 | 0.056493 | 0 | 0.427184 | 0 | 0 | 0.085996 | 0.006755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097087 | false | 0.097087 | 0.067961 | 0.019417 | 0.223301 | 0.135922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f782f1f9221c93f998d322c0cf1f7863b7a5b19 | 8,099 | py | Python | jaraco/path.py | hrnciar/jaraco.path | 49088ff54e73ef86f0ecd2206b07931b5801973a | [
"MIT"
] | 2 | 2021-01-06T23:35:56.000Z | 2021-07-14T11:25:39.000Z | jaraco/path.py | hrnciar/jaraco.path | 49088ff54e73ef86f0ecd2206b07931b5801973a | [
"MIT"
] | 1 | 2021-03-26T14:46:54.000Z | 2022-02-01T14:21:33.000Z | jaraco/path.py | hrnciar/jaraco.path | 49088ff54e73ef86f0ecd2206b07931b5801973a | [
"MIT"
] | 1 | 2021-03-03T14:13:42.000Z | 2021-03-03T14:13:42.000Z | """
Tools for working with files and file systems
"""
import os
import re
import itertools
import functools
import calendar
import contextlib
import logging
import datetime
import glob
import tempfile
import platform
import ctypes
import importlib
import pathlib
from typing import Dict, Union
from singledispatch impo... | 24.996914 | 85 | 0.637363 | 1,019 | 8,099 | 4.946026 | 0.311089 | 0.013095 | 0.008333 | 0.009921 | 0.011905 | 0.011905 | 0.011905 | 0 | 0 | 0 | 0 | 0.004369 | 0.236943 | 8,099 | 323 | 86 | 25.074303 | 0.811165 | 0.357822 | 0 | 0.057554 | 0 | 0 | 0.04866 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 1 | 0.201439 | false | 0 | 0.122302 | 0.007194 | 0.460432 | 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 |
56a96a432be75522a794246faaa05babfc0c2c5d | 1,260 | py | Python | geras/layers/Crossover.py | wITTus/geras | 7831af073bf4ae5edcf39f67047d781fb68f4a5a | [
"MIT"
] | 2 | 2018-09-07T15:00:25.000Z | 2020-06-06T09:53:29.000Z | geras/layers/Crossover.py | wITTus/geras | 7831af073bf4ae5edcf39f67047d781fb68f4a5a | [
"MIT"
] | null | null | null | geras/layers/Crossover.py | wITTus/geras | 7831af073bf4ae5edcf39f67047d781fb68f4a5a | [
"MIT"
] | null | null | null | import random
def roulette_wheel_selection(scores):
r_pos = random.uniform(0, sum(scores))
c_pos = 0
for idx, score in enumerate(scores):
c_pos += score
if r_pos <= c_pos:
return idx
def roulette_wheel_selection2(scores):
idx1 = roulette_wheel_selection(scores)
idx2 = roulette_wheel_selection(scores)
... | 22.909091 | 74 | 0.74127 | 183 | 1,260 | 4.852459 | 0.273224 | 0.086712 | 0.078829 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038282 | 0.15 | 1,260 | 54 | 75 | 23.333333 | 0.79085 | 0 | 0 | 0.054054 | 0 | 0 | 0.007143 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0 | null | null | 0.027027 | 0.027027 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56b57788e6e1c397e3aac6cca8a3b39adbfd8d14 | 6,089 | py | Python | cs15211/SearchforaRange.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/SearchforaRange.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/SearchforaRange.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/search-for-a-range/description/'
# Time: O(logn)
# Space: O(1)
#
# Description: Leetcode # 34. Search for a Range
#
# Given a sorted array of integers, find the starting and ending position of a given target value.
#
# Your algorithm's runtime complexity must be in the order... | 29.995074 | 101 | 0.488422 | 786 | 6,089 | 3.760814 | 0.1743 | 0.037889 | 0.022327 | 0.030447 | 0.525034 | 0.505751 | 0.439783 | 0.361637 | 0.339986 | 0.319012 | 0 | 0.034091 | 0.378551 | 6,089 | 202 | 102 | 30.143564 | 0.747093 | 0.150599 | 0 | 0.363636 | 0 | 0.019481 | 0.535346 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0 | null | null | 0 | 0.006494 | null | null | 0.032468 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56b6314224abbbc9a84af69bdd11131f51a7c771 | 5,003 | py | Python | scripts/Precision_matrices.py | kevinshen56714/NucleiTracker | ae5b60584bb7e181aa84458e8169cf29a4addcb7 | [
"MIT"
] | 2 | 2021-11-10T17:03:35.000Z | 2022-01-05T15:13:13.000Z | scripts/Precision_matrices.py | kevinshen56714/NucleiTracker | ae5b60584bb7e181aa84458e8169cf29a4addcb7 | [
"MIT"
] | null | null | null | scripts/Precision_matrices.py | kevinshen56714/NucleiTracker | ae5b60584bb7e181aa84458e8169cf29a4addcb7 | [
"MIT"
] | null | null | null | import os
import sys
import random
import warnings
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from itertools import chain
from skimage.io import imread, imshow, imread_collection, concatenate_images
from skimage.transform import resize
from skimage.morphology import label
import tensorflo... | 34.267123 | 107 | 0.654807 | 752 | 5,003 | 4.159574 | 0.238032 | 0.02046 | 0.026854 | 0.038043 | 0.250959 | 0.20844 | 0.184783 | 0.176471 | 0.167839 | 0.167839 | 0 | 0.026993 | 0.215071 | 5,003 | 145 | 108 | 34.503448 | 0.769544 | 0.176694 | 0 | 0.072165 | 0 | 0 | 0.071341 | 0.028585 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.134021 | null | null | 0.134021 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56bd0a63e6960a52c84a05a55d9df3c8e11679b1 | 1,657 | py | Python | tensorflow/python/util/keyword_args.py | abhaikollara/tensorflow | 4f96df3659696990cb34d0ad07dc67843c4225a9 | [
"Apache-2.0"
] | 848 | 2019-12-03T00:16:17.000Z | 2022-03-31T22:53:17.000Z | tensorflow/python/util/keyword_args.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 1,056 | 2019-12-15T01:20:31.000Z | 2022-02-10T02:06:28.000Z | tensorflow/python/util/keyword_args.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 506 | 2019-12-03T00:46:26.000Z | 2022-03-30T10:34:56.000Z | # Copyright 2016 The TensorFlow 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 applica... | 31.264151 | 80 | 0.71032 | 222 | 1,657 | 5.18018 | 0.518018 | 0.066957 | 0.052174 | 0.027826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005835 | 0.172601 | 1,657 | 52 | 81 | 31.865385 | 0.832969 | 0.66385 | 0 | 0 | 0 | 0 | 0.098619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.642857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
56bea74b6c26614922db26bc9367eba346339e8d | 1,769 | py | Python | epubcreator/misc/utils.py | JFTavares/ePubCreator | 56871800e9faff43643c85198f516643cdd5b4fd | [
"Unlicense"
] | 6 | 2015-04-07T23:27:35.000Z | 2022-03-03T20:31:28.000Z | epubcreator/misc/utils.py | JFTavares/ePubCreator | 56871800e9faff43643c85198f516643cdd5b4fd | [
"Unlicense"
] | null | null | null | epubcreator/misc/utils.py | JFTavares/ePubCreator | 56871800e9faff43643c85198f516643cdd5b4fd | [
"Unlicense"
] | 1 | 2021-04-17T11:36:22.000Z | 2021-04-17T11:36:22.000Z | import unicodedata
import re
import difflib
import pprint
_controlChars = None
_invalidCharForFileName = None
def toFileName(s):
"""
Elimina caracteres inválidos de un string para que pueda ser utilizado como nombre de
archivo en windows y linux.
"""
global _invalidCharForFileName
if _invali... | 28.079365 | 115 | 0.607123 | 222 | 1,769 | 4.792793 | 0.454955 | 0.023496 | 0.022556 | 0.013158 | 0.054511 | 0.035714 | 0.018797 | 0 | 0 | 0 | 0 | 0.017266 | 0.214245 | 1,769 | 63 | 116 | 28.079365 | 0.748201 | 0.193895 | 0 | 0 | 0 | 0 | 0.087464 | 0 | 0 | 0 | 0 | 0.015873 | 0.066667 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.366667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56c1405a169b22f3e096d71bfccd346b264d3750 | 2,348 | py | Python | graphs/edge_weights.py | jtejido/goim | c56427891ffd8f7117c9af35dfd6c677f3d0eba0 | [
"MIT"
] | 1 | 2021-09-13T09:40:43.000Z | 2021-09-13T09:40:43.000Z | graphs/edge_weights.py | jtejido/goim | c56427891ffd8f7117c9af35dfd6c677f3d0eba0 | [
"MIT"
] | null | null | null | graphs/edge_weights.py | jtejido/goim | c56427891ffd8f7117c9af35dfd6c677f3d0eba0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*-coding: utf-8 -*-
import sys
import random
import ntpath
import os
# import numpy as np
def path_leaf(path):
head, tail = ntpath.split(path)
return tail or ntpath.basename(head)
def load_reversed_graph(graph):
G = dict()
with open(graph, 'r') as fin:
for l in fin:
... | 27.952381 | 77 | 0.549404 | 381 | 2,348 | 3.288714 | 0.257218 | 0.012769 | 0.025539 | 0.051077 | 0.396648 | 0.374302 | 0.355148 | 0.355148 | 0.344773 | 0.344773 | 0 | 0.029394 | 0.275554 | 2,348 | 83 | 78 | 28.289157 | 0.707231 | 0.051533 | 0 | 0.328571 | 0 | 0 | 0.073324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56c32162885c5458dc20bb2ed599d47b8880fd6a | 888 | py | Python | setup.py | Nydareld/ConfigEnv | c4894d235d2f005b65fe2e5153d5acee2c7a65e4 | [
"MIT"
] | null | null | null | setup.py | Nydareld/ConfigEnv | c4894d235d2f005b65fe2e5153d5acee2c7a65e4 | [
"MIT"
] | 3 | 2018-09-12T13:04:56.000Z | 2018-09-24T15:09:31.000Z | setup.py | Nydareld/ConfigEnv | c4894d235d2f005b65fe2e5153d5acee2c7a65e4 | [
"MIT"
] | null | null | null | import setuptools
import io
fh = io.open("README.md",mode="r",encoding="utf-8")
long_description = fh.read()
setuptools.setup(
name='ConfigEnv',
version='1.2.4',
author="Théo \"Nydareld\" Guerin",
author_email="theo.guerin.pro@gmail.com",
description="Gestionnaire de configuration en json, ini a... | 30.62069 | 111 | 0.663288 | 103 | 888 | 5.640777 | 0.679612 | 0.10327 | 0.172117 | 0.179002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01669 | 0.190315 | 888 | 28 | 112 | 31.714286 | 0.791377 | 0 | 0 | 0 | 0 | 0 | 0.488739 | 0.028153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
56cd120720ce89c170e98a3ed5d0555d6a469fb6 | 2,096 | py | Python | 19898.py | gr33ndata/19898 | d9b0e4fa732b4ff142a98baff5ffc7cdd4942de9 | [
"MIT"
] | null | null | null | 19898.py | gr33ndata/19898 | d9b0e4fa732b4ff142a98baff5ffc7cdd4942de9 | [
"MIT"
] | null | null | null | 19898.py | gr33ndata/19898 | d9b0e4fa732b4ff142a98baff5ffc7cdd4942de9 | [
"MIT"
] | null | null | null | import sys
import json
import argparse
from nineteen898.twapi import TWAPI
def show_version():
from nineteen898 import version
print version.__version__
def get_tweets(query='', count=100):
tw = TWAPI(config_file='config.yml')
return tw.get_tweets(query=query, count=count)
def get_users(users=''):
... | 33.269841 | 129 | 0.664599 | 280 | 2,096 | 4.810714 | 0.35 | 0.048998 | 0.050483 | 0.025241 | 0.054937 | 0.054937 | 0.054937 | 0.054937 | 0.054937 | 0 | 0 | 0.007071 | 0.190363 | 2,096 | 63 | 130 | 33.269841 | 0.786682 | 0 | 0 | 0.16 | 0 | 0 | 0.192656 | 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 |
56cde532154c063512b84392fbb1e95963c32159 | 2,459 | py | Python | hci/command/commands/le_apcf_commands/apcf_set_filter_parameters.py | cc4728/python-hci | d988f69c55972af445ec3ba04fd4cd1199593d10 | [
"MIT"
] | 3 | 2021-12-16T14:32:45.000Z | 2022-01-25T03:10:48.000Z | hci/command/commands/le_apcf_commands/apcf_set_filter_parameters.py | cc4728/python-hci | d988f69c55972af445ec3ba04fd4cd1199593d10 | [
"MIT"
] | null | null | null | hci/command/commands/le_apcf_commands/apcf_set_filter_parameters.py | cc4728/python-hci | d988f69c55972af445ec3ba04fd4cd1199593d10 | [
"MIT"
] | 1 | 2022-01-25T03:10:50.000Z | 2022-01-25T03:10:50.000Z | from ..le_apcf_command_pkt import LE_APCF_Command
from struct import pack, unpack
from enum import IntEnum
"""
This pare base on spec <<Android BT HCI Requirement for BLE feature>> v0.52
Advertisement Package Content filter
"""
class APCF_Set_Filter_parameters(LE_APCF_Command):
class Logic_Type(IntEnum):
... | 27.322222 | 99 | 0.615697 | 315 | 2,459 | 4.511111 | 0.31746 | 0.098522 | 0.157635 | 0.098522 | 0.335679 | 0.300493 | 0.300493 | 0.300493 | 0.300493 | 0.300493 | 0 | 0.027134 | 0.280602 | 2,459 | 89 | 100 | 27.629213 | 0.776145 | 0.006913 | 0 | 0.318841 | 0 | 0 | 0.011207 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.144928 | false | 0.014493 | 0.043478 | 0.014493 | 0.376812 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56cfc27776948dc1db122dd02ba35943df4c764c | 1,975 | py | Python | herd-code/herd-tools/herd-content-loader/herdcl/constants.py | hoppinghol/herd | e51c056fcc43d9f146aa7de9036a5a1baf8718ac | [
"Apache-2.0"
] | null | null | null | herd-code/herd-tools/herd-content-loader/herdcl/constants.py | hoppinghol/herd | e51c056fcc43d9f146aa7de9036a5a1baf8718ac | [
"Apache-2.0"
] | null | null | null | herd-code/herd-tools/herd-content-loader/herdcl/constants.py | hoppinghol/herd | e51c056fcc43d9f146aa7de9036a5a1baf8718ac | [
"Apache-2.0"
] | null | null | null | """
Copyright 2015 herd contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 29.044118 | 74 | 0.679494 | 257 | 1,975 | 5.198444 | 0.455253 | 0.031437 | 0.033683 | 0.058383 | 0.131737 | 0.094311 | 0.094311 | 0.067365 | 0 | 0 | 0 | 0.00526 | 0.229873 | 1,975 | 67 | 75 | 29.477612 | 0.87311 | 0.282025 | 0 | 0.111111 | 0 | 0 | 0.384173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 1.022222 | 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 |
56d722a6408dbbc1467dee674e85d725a399f49f | 2,486 | py | Python | src/data/gdacs.py | computer-geek64/swamphacks | 16231e8123c7660ddc987cfda357629227bc2154 | [
"MIT"
] | null | null | null | src/data/gdacs.py | computer-geek64/swamphacks | 16231e8123c7660ddc987cfda357629227bc2154 | [
"MIT"
] | 10 | 2020-02-02T05:36:40.000Z | 2022-02-26T23:08:19.000Z | src/data/gdacs.py | computer-geek64/swamphacks | 16231e8123c7660ddc987cfda357629227bc2154 | [
"MIT"
] | 1 | 2020-02-21T18:05:10.000Z | 2020-02-21T18:05:10.000Z | #!/usr/bin/python3
# gdacs.py
import os
import json
from subprocess import Popen
from datetime import datetime
from selenium import webdriver
from time import sleep
from selenium.webdriver.firefox.options import Options
def download_geojson():
options = Options()
options.headless = True
profile = webdriv... | 42.135593 | 123 | 0.588093 | 260 | 2,486 | 5.553846 | 0.373077 | 0.135042 | 0.144044 | 0.234072 | 0.415512 | 0.369806 | 0.315789 | 0.315789 | 0.315789 | 0.315789 | 0 | 0.003627 | 0.223652 | 2,486 | 58 | 124 | 42.862069 | 0.74456 | 0.031376 | 0 | 0.291667 | 0 | 0 | 0.252185 | 0.02913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.145833 | 0 | 0.229167 | 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 |
56dcceeec541bb1e3356899718e6276a9618ddb3 | 1,367 | py | Python | scripts/testSmurfProcessor.py | bopopescu/smurf-processor | bfe00ed6f4e1ed9ee629f25a68a79fa1e3076eda | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-04-30T16:51:21.000Z | 2019-04-30T16:51:21.000Z | scripts/testSmurfProcessor.py | bopopescu/smurf-processor | bfe00ed6f4e1ed9ee629f25a68a79fa1e3076eda | [
"BSD-3-Clause-LBNL"
] | 6 | 2019-10-22T02:32:17.000Z | 2020-08-19T14:56:39.000Z | scripts/testSmurfProcessor.py | bopopescu/smurf-processor | bfe00ed6f4e1ed9ee629f25a68a79fa1e3076eda | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-07-22T06:38:21.000Z | 2020-12-12T23:33:05.000Z | #!/usr/bin/env python3
#-----------------------------------------------------------------------------
# Title : Test file for MceTransmit
#-----------------------------------------------------------------------------
# File : exoTest.py
# Created : 2018-02-28
#---------------------------------------------... | 31.790698 | 101 | 0.549378 | 143 | 1,367 | 5.237762 | 0.657343 | 0.040053 | 0.024032 | 0.037383 | 0.128171 | 0.077437 | 0 | 0 | 0 | 0 | 0 | 0.017933 | 0.14338 | 1,367 | 42 | 102 | 32.547619 | 0.621691 | 0.734455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.285714 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
56df91d2426fbf9556883e4a651dd834149f1656 | 971 | py | Python | api/tournaments/views.py | individuo7/wololo-tournaments-api | 5be6284064373e99346d39c78844e454c41c501d | [
"MIT"
] | 2 | 2019-12-09T10:19:36.000Z | 2020-01-11T11:48:41.000Z | api/tournaments/views.py | individuo7/wololo-tournaments-api | 5be6284064373e99346d39c78844e454c41c501d | [
"MIT"
] | null | null | null | api/tournaments/views.py | individuo7/wololo-tournaments-api | 5be6284064373e99346d39c78844e454c41c501d | [
"MIT"
] | null | null | null | from rest_framework.viewsets import GenericViewSet, ReadOnlyModelViewSet
from .models import Game, Tournament
from .serializers import GameSerializer, TournamentSerializer
from rest_framework import mixins
class TournamentViewSet(ReadOnlyModelViewSet):
queryset = Tournament.objects.all()
serializer_class = To... | 26.972222 | 72 | 0.737384 | 95 | 971 | 7.431579 | 0.484211 | 0.042493 | 0.072238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001267 | 0.187436 | 971 | 35 | 73 | 27.742857 | 0.893536 | 0 | 0 | 0.166667 | 0 | 0 | 0.031926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.083333 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
56e67e028e520e8b445b26fd04ec9f85def05c9c | 18,434 | py | Python | tools.py | ctchervenkov/pgMapMatch | 2fe9f4fa6b9318e575ea49b75cdad927b37b4309 | [
"MIT"
] | null | null | null | tools.py | ctchervenkov/pgMapMatch | 2fe9f4fa6b9318e575ea49b75cdad927b37b4309 | [
"MIT"
] | null | null | null | tools.py | ctchervenkov/pgMapMatch | 2fe9f4fa6b9318e575ea49b75cdad927b37b4309 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tools for database connection, etc. for use with map-matching analysis
Adapted from postgres_tools.py by Chris Barrington-Leigh and Adam Millard-Ball
"""
import os
import math
import re
import six
import psycopg2
import psycopg2.extras
import numpy as np
import pandas as pd
def getPgLogin... | 47.633075 | 289 | 0.626343 | 2,487 | 18,434 | 4.568154 | 0.220346 | 0.01646 | 0.003521 | 0.007394 | 0.141449 | 0.110554 | 0.079394 | 0.059414 | 0.043394 | 0.043394 | 0 | 0.007979 | 0.265705 | 18,434 | 386 | 290 | 47.756477 | 0.831339 | 0.242053 | 0 | 0.105042 | 0 | 0.021008 | 0.199555 | 0.017863 | 0 | 0 | 0 | 0 | 0.016807 | 1 | 0.10084 | false | 0.058824 | 0.05042 | 0.008403 | 0.231092 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56e6c2cca0c42fd94f49edeab372850e2b125948 | 591 | py | Python | competitive-programming/codeforces/cr755div2/b.py | sanchopanca/coding-for-pleasure | fed1910e8a5a4241bd55aed333afd79b4405a71d | [
"MIT"
] | null | null | null | competitive-programming/codeforces/cr755div2/b.py | sanchopanca/coding-for-pleasure | fed1910e8a5a4241bd55aed333afd79b4405a71d | [
"MIT"
] | null | null | null | competitive-programming/codeforces/cr755div2/b.py | sanchopanca/coding-for-pleasure | fed1910e8a5a4241bd55aed333afd79b4405a71d | [
"MIT"
] | null | null | null | def main():
t = int(input())
# t = 1
for _ in range(t):
n, m = sorted(map(int, input().split()))
# n, m = 5, 7
if n % 3 == 0 or m % 3 == 0:
print(n * m // 3)
continue
if n % 3 == 1 and m % 3 == 1:
print((m // 3) * n + n // 3 + 1)
... | 24.625 | 50 | 0.314721 | 90 | 591 | 2.055556 | 0.266667 | 0.086486 | 0.081081 | 0.172973 | 0.443243 | 0.443243 | 0.432432 | 0.432432 | 0 | 0 | 0 | 0.110738 | 0.49577 | 591 | 23 | 51 | 25.695652 | 0.510067 | 0.028765 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0.277778 | 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 |
56e82188fc314c7309b144641e9b8f7f18642e0b | 2,854 | py | Python | backend/hqlib/metric/project/bug_metrics.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 25 | 2016-11-25T10:41:24.000Z | 2021-07-03T14:02:49.000Z | backend/hqlib/metric/project/bug_metrics.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 783 | 2016-09-19T12:10:21.000Z | 2021-01-04T20:39:15.000Z | backend/hqlib/metric/project/bug_metrics.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 15 | 2015-03-25T13:52:49.000Z | 2021-03-08T17:17:56.000Z | """
Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... | 32.067416 | 83 | 0.738963 | 345 | 2,854 | 5.968116 | 0.428986 | 0.093249 | 0.049539 | 0.067023 | 0.286547 | 0.199126 | 0.135017 | 0.06508 | 0.06508 | 0.06508 | 0 | 0.012169 | 0.193763 | 2,854 | 88 | 84 | 32.431818 | 0.88266 | 0.334968 | 0 | 0.111111 | 0 | 0 | 0.247573 | 0.047465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.044444 | 0 | 0.911111 | 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 |
56f3ccbd5c915e5359690924b56666cd67ab443f | 420 | py | Python | ticket/migrations/0010_ticket_archived.py | aessex24/rindr | 2a546b27ce1c72728bb7a63e60653929ca592cfe | [
"MIT"
] | 1 | 2021-12-21T16:24:18.000Z | 2021-12-21T16:24:18.000Z | ticket/migrations/0010_ticket_archived.py | aessex24/rindr | 2a546b27ce1c72728bb7a63e60653929ca592cfe | [
"MIT"
] | 1 | 2021-12-10T01:05:55.000Z | 2021-12-10T01:05:55.000Z | ticket/migrations/0010_ticket_archived.py | aessex24/rindr | 2a546b27ce1c72728bb7a63e60653929ca592cfe | [
"MIT"
] | 1 | 2021-12-10T00:48:33.000Z | 2021-12-10T00:48:33.000Z | # Generated by Django 3.2.8 on 2021-10-31 13:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticket', '0009_auto_20211030_1947'),
]
operations = [
migrations.AddField(
model_name='ticket',
name='archived',
... | 22.105263 | 85 | 0.616667 | 45 | 420 | 5.644444 | 0.777778 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100977 | 0.269048 | 420 | 18 | 86 | 23.333333 | 0.726384 | 0.107143 | 0 | 0 | 1 | 0 | 0.155496 | 0.061662 | 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 |
56ff56e8506cf7834d414f3126507ec0cc1c94fd | 587 | py | Python | settings/defaults.py | corbinSanders/osf-pigeon | e4ebfd77e6c66f1daba878ac1ba1c816e687645f | [
"MIT"
] | null | null | null | settings/defaults.py | corbinSanders/osf-pigeon | e4ebfd77e6c66f1daba878ac1ba1c816e687645f | [
"MIT"
] | null | null | null | settings/defaults.py | corbinSanders/osf-pigeon | e4ebfd77e6c66f1daba878ac1ba1c816e687645f | [
"MIT"
] | null | null | null | # New tokens can be found at https://archive.org/account/s3.php
DOI_FORMAT = '10.70102/fk2osf.io/{guid}'
DATACITE_USERNAME = ''
DATACITE_PASSWORD = ''
DATACITE_URL = 'https://doi.test.datacite.org/'
DATACITE_PREFIX = '10.70102' # Datacite's test DOI prefix -- update in production
CHUNK_SIZE = 1000
PAGE_SIZE = 100
O... | 26.681818 | 82 | 0.72402 | 89 | 587 | 4.52809 | 0.629213 | 0.049628 | 0.079404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063584 | 0.115843 | 587 | 21 | 83 | 27.952381 | 0.712909 | 0.190801 | 0 | 0 | 0 | 0 | 0.377119 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
71017eb5928f2cfa4ff002dfe2b1d37f8c4e067e | 161 | py | Python | Kattis/savingforretirement.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/savingforretirement.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | null | null | null | Kattis/savingforretirement.py | ruidazeng/online-judge | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | [
"MIT"
] | 1 | 2020-06-22T21:07:24.000Z | 2020-06-22T21:07:24.000Z | b, br, bs, a, ass = map(int, input().split())
bobMoney = (br - b) * bs
aliceMoney = 0
while aliceMoney <= bobMoney:
aliceMoney += ass
a += 1
print(a) | 16.1 | 45 | 0.57764 | 24 | 161 | 3.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.248447 | 161 | 10 | 46 | 16.1 | 0.752066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7101cf35599f38a77ca050665b51d27e7223242d | 20,325 | py | Python | make_figures/chapter4.py | nodonoughue/emitter-detection-python | ebff19acebcc1edfd941280e05f8ddf2ff20c974 | [
"MIT"
] | null | null | null | make_figures/chapter4.py | nodonoughue/emitter-detection-python | ebff19acebcc1edfd941280e05f8ddf2ff20c974 | [
"MIT"
] | null | null | null | make_figures/chapter4.py | nodonoughue/emitter-detection-python | ebff19acebcc1edfd941280e05f8ddf2ff20c974 | [
"MIT"
] | null | null | null | """
Draw Figures - Chapter 4
This script generates all of the figures that appear in Chapter 4 of the textbook.
Ported from MATLAB Code
Nicholas O'Donoughue
24 March 2021
"""
import utils
from utils.unit_conversions import lin_to_db, db_to_lin
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
i... | 32.729469 | 120 | 0.64738 | 3,159 | 20,325 | 3.978474 | 0.13232 | 0.007002 | 0.022915 | 0.008593 | 0.482654 | 0.407623 | 0.36028 | 0.320735 | 0.260264 | 0.240054 | 0 | 0.038355 | 0.220074 | 20,325 | 620 | 121 | 32.782258 | 0.754479 | 0.19695 | 0 | 0.12945 | 1 | 0 | 0.033755 | 0.001574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032362 | false | 0 | 0.038835 | 0 | 0.106796 | 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 |
7102c63978d505a61d970552c50ba4e5147b24a4 | 1,053 | py | Python | tools/pin.py | nothub/java-pinning | e6940cbf4cd5baf625a195a6091c4fd8f2aed46e | [
"Apache-2.0"
] | 37 | 2015-03-16T12:26:36.000Z | 2021-11-09T17:27:34.000Z | tools/pin.py | nothub/java-pinning | e6940cbf4cd5baf625a195a6091c4fd8f2aed46e | [
"Apache-2.0"
] | 13 | 2015-10-28T09:45:53.000Z | 2022-02-17T11:11:18.000Z | tools/pin.py | nothub/java-pinning | e6940cbf4cd5baf625a195a6091c4fd8f2aed46e | [
"Apache-2.0"
] | 14 | 2015-05-27T15:49:18.000Z | 2021-07-13T10:26:47.000Z | #!/usr/bin/env python
from M2Crypto import X509
import binascii
import hashlib
import ssl
import sys
def main(argv):
if len(argv) != 1 and len(argv) != 2:
print "Usage: pin.py [<certificate_path> | <host> <port>]"
return
if (len(argv) == 1):
cert = X509.load_cert(argv[0])
e... | 27 | 76 | 0.608737 | 131 | 1,053 | 4.740458 | 0.442748 | 0.032206 | 0.028986 | 0.032206 | 0.067633 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0.042527 | 0.218424 | 1,053 | 38 | 77 | 27.710526 | 0.712029 | 0.018993 | 0 | 0.064516 | 0 | 0 | 0.194767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16129 | null | null | 0.387097 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7107da87c67e679d8fda799620885e6407b9d948 | 522 | py | Python | manager/director/apps/sites/migrations/0009_auto_20191220_0901.py | darius-kia/director4 | 1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9 | [
"MIT"
] | 7 | 2020-08-23T23:08:34.000Z | 2021-12-02T04:17:37.000Z | manager/director/apps/sites/migrations/0009_auto_20191220_0901.py | darius-kia/director4 | 1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9 | [
"MIT"
] | 43 | 2020-08-24T16:48:29.000Z | 2022-03-02T19:45:54.000Z | manager/director/apps/sites/migrations/0009_auto_20191220_0901.py | darius-kia/director4 | 1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9 | [
"MIT"
] | 10 | 2020-08-17T20:42:52.000Z | 2021-07-16T03:46:51.000Z | # Generated by Django 2.2.8 on 2019-12-20 14:01
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sites', '0008_auto_20191213_0733'),
]
operations = [
migrations.AlterField(
model_name='site',
... | 26.1 | 162 | 0.662835 | 56 | 522 | 6.107143 | 0.714286 | 0.087719 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100737 | 0.220307 | 522 | 19 | 163 | 27.473684 | 0.739558 | 0.086207 | 0 | 0 | 1 | 0 | 0.075789 | 0.048421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
710b3bdf48f79c71452eb171472f1307d1c1c609 | 6,206 | py | Python | MHD/FEniCS/FieldSplit/ShellPrecond/test.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2020-10-25T13:30:20.000Z | 2021-08-10T21:27:30.000Z | MHD/FEniCS/FieldSplit/ShellPrecond/test.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | null | null | null | MHD/FEniCS/FieldSplit/ShellPrecond/test.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2019-10-28T16:12:13.000Z | 2020-01-13T13:59:44.000Z |
#!/usr/bin/python
import petsc4py
import sys
petsc4py.init(sys.argv)
from petsc4py import PETSc
Print = PETSc.Sys.Print
# from MatrixOperations import *
from dolfin import *
import numpy as np
import matplotlib.pylab as plt
import os
import scipy.io
from PyTrilinos import Epetra, EpetraExt, AztecOO, ML, Amesos
from ... | 24.923695 | 103 | 0.592008 | 1,050 | 6,206 | 3.45619 | 0.206667 | 0.018738 | 0.026454 | 0.02976 | 0.324607 | 0.255442 | 0.247727 | 0.22706 | 0.198953 | 0.171397 | 0 | 0.04999 | 0.181276 | 6,206 | 249 | 104 | 24.923695 | 0.664239 | 0.101354 | 0 | 0.145349 | 0 | 0.02907 | 0.197693 | 0.069382 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063953 | null | null | 0.040698 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
71115cf6f74cc2afd1f75470ecb2ce6660aef415 | 757 | py | Python | backend/recipes/migrations/0006_auto_20211206_1849.py | Falken565/foodgram-CV- | 8ff7646eda13f82c6329f360ba02563f9a991a74 | [
"BSD-3-Clause"
] | null | null | null | backend/recipes/migrations/0006_auto_20211206_1849.py | Falken565/foodgram-CV- | 8ff7646eda13f82c6329f360ba02563f9a991a74 | [
"BSD-3-Clause"
] | null | null | null | backend/recipes/migrations/0006_auto_20211206_1849.py | Falken565/foodgram-CV- | 8ff7646eda13f82c6329f360ba02563f9a991a74 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-06 15:49
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('recipes', '0005_auto_202... | 28.037037 | 133 | 0.649934 | 82 | 757 | 5.829268 | 0.609756 | 0.050209 | 0.058577 | 0.09205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054196 | 0.244386 | 757 | 26 | 134 | 29.115385 | 0.781469 | 0.059445 | 0 | 0.1 | 1 | 0 | 0.116901 | 0.032394 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7114ae305e37b79ff710f587f9fc535d43f132df | 423 | py | Python | game/message/unused/S_PRIVATE_CHAT.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | 1 | 2016-09-30T14:54:55.000Z | 2016-09-30T14:54:55.000Z | game/message/unused/S_PRIVATE_CHAT.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | game/message/unused/S_PRIVATE_CHAT.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | from util.tipo import tipo
class S_PRIVATE_CHAT(object):
def __init__(self, tracker, time, direction, opcode, data):
print(str(type(self)).split('.')[3]+'('+str(len(data))+'): '+ str(data.get_array_hex(1))[1:-1])
data.skip(4) # offsets
Channel = data.read(tipo.uint32)
AuthorId = da... | 38.454545 | 103 | 0.624113 | 59 | 423 | 4.338983 | 0.644068 | 0.125 | 0.1875 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026627 | 0.200946 | 423 | 10 | 104 | 42.3 | 0.730769 | 0.016548 | 0 | 0 | 0 | 0 | 0.012077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.111111 | 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 |
711b437c409a5a72d1ec1e743984807d46c729fb | 7,616 | py | Python | test_simplematch.py | Constructionware/simplematch | a0e4426f569fc47985c7957e76a7a55ea20fcf0c | [
"MIT"
] | 1 | 2021-04-24T02:36:41.000Z | 2021-04-24T02:36:41.000Z | test_simplematch.py | Constructionware/simplematch | a0e4426f569fc47985c7957e76a7a55ea20fcf0c | [
"MIT"
] | null | null | null | test_simplematch.py | Constructionware/simplematch | a0e4426f569fc47985c7957e76a7a55ea20fcf0c | [
"MIT"
] | null | null | null | import simplematch as sm
def test_readme_example_opener():
assert sm.match("He* {planet}!", "Hello World!") == {"planet": "World"}
assert sm.match("It* {temp:float}°C *", "It's -10.2°C outside!") == {"temp": -10.2}
def test_readme_example_basic_usage():
result = sm.match(
pattern="Invoice*_{year... | 34.461538 | 101 | 0.587841 | 1,015 | 7,616 | 4.352709 | 0.20197 | 0.061114 | 0.095066 | 0.033952 | 0.332503 | 0.277727 | 0.183567 | 0.142146 | 0.139656 | 0.074921 | 0 | 0.100468 | 0.187106 | 7,616 | 220 | 102 | 34.618182 | 0.612825 | 0.045956 | 0 | 0.01227 | 0 | 0.006135 | 0.371192 | 0.098415 | 0 | 0 | 0.005789 | 0 | 0.552147 | 1 | 0.116564 | false | 0 | 0.006135 | 0 | 0.128834 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
711d81da89520857755db73488ff92189705be68 | 10,551 | py | Python | lib/galaxy/webapps/tool_shed/api/repositories.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/webapps/tool_shed/api/repositories.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/webapps/tool_shed/api/repositories.py | bopopescu/phyG | 023f505b705ab953f502cbc55e90612047867583 | [
"CC-BY-3.0"
] | 1 | 2020-07-25T21:03:18.000Z | 2020-07-25T21:03:18.000Z | import logging
from galaxy.web.framework.helpers import time_ago
from galaxy import web
from galaxy import util
from galaxy.web.base.controller import BaseAPIController
import tool_shed.util.shed_util_common as suc
from tool_shed.galaxy_install import repository_util
from galaxy import eggs
import pkg_resources
pkg_r... | 52.755 | 163 | 0.62032 | 1,094 | 10,551 | 5.722121 | 0.169104 | 0.06901 | 0.021566 | 0.030192 | 0.511022 | 0.458626 | 0.41901 | 0.371885 | 0.33099 | 0.301597 | 0 | 0.017857 | 0.30471 | 10,551 | 199 | 164 | 53.020101 | 0.835469 | 0.065871 | 0 | 0.435185 | 0 | 0 | 0.073342 | 0.009957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092593 | 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 |
711f66725d0b71fc9d8f83f5998e49c46704dc23 | 3,401 | py | Python | SRC/common/IO/GUI/gtklogger/gtklogger/checkpoint.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 31 | 2015-04-01T15:59:36.000Z | 2022-03-18T20:21:47.000Z | SRC/common/IO/GUI/gtklogger/gtklogger/checkpoint.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 3 | 2015-02-06T19:30:24.000Z | 2017-05-25T14:14:31.000Z | SRC/common/IO/GUI/gtklogger/gtklogger/checkpoint.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 7 | 2015-01-23T15:19:22.000Z | 2021-06-09T09:03:59.000Z | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | 35.8 | 73 | 0.664804 | 383 | 3,401 | 5.835509 | 0.43342 | 0.053244 | 0.042953 | 0.010738 | 0.03311 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002776 | 0.258453 | 3,401 | 94 | 74 | 36.180851 | 0.883426 | 0.472214 | 0 | 0.410714 | 0 | 0 | 0.028441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.107143 | null | null | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
712faa1e6eb3585a115a32d5c21455e1f45d1199 | 2,251 | py | Python | final_solver.py | pbl64k/icfpc2015 | ec47e6db3e41c435340e4488ac8659a380c104ac | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2015-08-11T06:29:26.000Z | 2015-08-11T06:29:26.000Z | final_solver.py | pbl64k/icfpc2015 | ec47e6db3e41c435340e4488ac8659a380c104ac | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | final_solver.py | pbl64k/icfpc2015 | ec47e6db3e41c435340e4488ac8659a380c104ac | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import argparse
import json
import sys
import time
started_on = time.time()
from tag import *
from konstruckt import *
import game
parser = argparse.ArgumentParser(description = 'ICFP Contest 2015 -- team Replete With Abstract Joy solver')
parser.add_argument('--nodebug', action = 'store_true')
parser.add_argumen... | 27.790123 | 169 | 0.627721 | 320 | 2,251 | 4.34375 | 0.35625 | 0.051799 | 0.097842 | 0.045324 | 0.132374 | 0.069065 | 0 | 0 | 0 | 0 | 0 | 0.008567 | 0.222124 | 2,251 | 80 | 170 | 28.1375 | 0.785266 | 0.016881 | 0 | 0.116667 | 0 | 0 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7132b223ffb763ce24ffa226e9151b5b5ade464c | 7,019 | py | Python | server.py | StupidHackathonAMS/sammify | 99687afaf7fe8f5426161d7238d8eaace4912b40 | [
"MIT"
] | null | null | null | server.py | StupidHackathonAMS/sammify | 99687afaf7fe8f5426161d7238d8eaace4912b40 | [
"MIT"
] | null | null | null | server.py | StupidHackathonAMS/sammify | 99687afaf7fe8f5426161d7238d8eaace4912b40 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import optparse
import uuid
from math import floor
import string
from flask import (
Flask, render_template, request, redirect, url_for, send_from_directory, g)
from werkzeug.utils import secure_filename
from PIL import Image
import sqlite3
DATABASE = '/Users/breyten/sammify/sammif... | 31.904545 | 79 | 0.612195 | 869 | 7,019 | 4.7687 | 0.27618 | 0.056467 | 0.023166 | 0.031371 | 0.199807 | 0.186052 | 0.16723 | 0.130068 | 0.104247 | 0.104247 | 0 | 0.010028 | 0.275395 | 7,019 | 219 | 80 | 32.050228 | 0.804758 | 0.092463 | 0 | 0.116279 | 0 | 0 | 0.134689 | 0.01009 | 0 | 0 | 0 | 0.004566 | 0 | 0 | null | null | 0.005814 | 0.05814 | null | null | 0.005814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
71333d375085345a886ca5842bf9f931376dd5b4 | 12,449 | py | Python | app/routes.py | nowmozillaclub/Netco | f11efaebe04e6944ed34391346dfb100952d92ff | [
"MIT"
] | 1 | 2020-08-08T16:35:14.000Z | 2020-08-08T16:35:14.000Z | app/routes.py | nowmozillaclub/netco | f11efaebe04e6944ed34391346dfb100952d92ff | [
"MIT"
] | 8 | 2018-06-03T12:27:40.000Z | 2018-10-01T05:46:26.000Z | app/routes.py | nowmozillaclub/netco | f11efaebe04e6944ed34391346dfb100952d92ff | [
"MIT"
] | 2 | 2018-06-04T08:15:59.000Z | 2018-06-04T08:27:47.000Z | from flask import render_template, flash, redirect, url_for
from app import app
from app.forms import LoginForm
from flask_login import current_user, login_user
from app.models import User
from flask_login import logout_user
from flask_login import login_required
from flask import request
from werkzeug.urls import url_... | 39.271293 | 145 | 0.674512 | 1,614 | 12,449 | 5.018587 | 0.105948 | 0.067901 | 0.057037 | 0.079012 | 0.651481 | 0.605679 | 0.518395 | 0.494691 | 0.48642 | 0.415185 | 0 | 0.000797 | 0.194152 | 12,449 | 316 | 146 | 39.39557 | 0.806619 | 0.001205 | 0 | 0.496575 | 0 | 0 | 0.130068 | 0.009974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071918 | false | 0.061644 | 0.075342 | 0.003425 | 0.30137 | 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 |
7133f552b7d55c2e6f716075a4b2b0ca81eeeda6 | 5,785 | py | Python | State.py | hhojatansari/DatasetDecoder | 90d82a04c0bc6ef0c24df6f0f7a8a59326a3b5a9 | [
"MIT"
] | 1 | 2020-06-30T19:09:03.000Z | 2020-06-30T19:09:03.000Z | State.py | hhojatansari/DatasetDecoder | 90d82a04c0bc6ef0c24df6f0f7a8a59326a3b5a9 | [
"MIT"
] | null | null | null | State.py | hhojatansari/DatasetDecoder | 90d82a04c0bc6ef0c24df6f0f7a8a59326a3b5a9 | [
"MIT"
] | null | null | null | import datetime as dt
ClassLabel = {
"NoLabel": "0",
"Meal_Preparation": "1",
"Relax": "2",
"Eating": "3",
"Work": "4",
"Sleeping": "5",
"Wash_Dishes": "6",
"Bed_to_Toilet": "7",
"Enter_Home": "8",
"Leave_Home": "9",
"Housekeeping": "10",
"Respirate": "11"
}
class State... | 48.208333 | 118 | 0.467416 | 687 | 5,785 | 3.909753 | 0.203785 | 0.291884 | 0.026806 | 0.018615 | 0.498139 | 0.446016 | 0.384959 | 0.384959 | 0.384959 | 0.384959 | 0 | 0.116883 | 0.281245 | 5,785 | 119 | 119 | 48.613445 | 0.529101 | 0 | 0 | 0.028571 | 0 | 0 | 0.156612 | 0 | 0.009524 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.009524 | 0 | 0.104762 | 0.028571 | 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 |
7139f35ecc5eee0ce6b6e537c10338608b59555e | 1,611 | py | Python | src/Gon/realtime_starter_cnstock.py | majiajue/Listed-company-news-crawl-and-text-analysis | fd3b23814039cbe8fbb2e25cbadb68238e0d998b | [
"MIT"
] | 635 | 2018-02-25T08:45:06.000Z | 2022-03-30T10:05:23.000Z | src/Gon/realtime_starter_cnstock.py | NongMaYiSheng/Listed-company-news-crawl-and-text-analysis | fd3b23814039cbe8fbb2e25cbadb68238e0d998b | [
"MIT"
] | 5 | 2018-10-29T16:21:28.000Z | 2022-01-03T12:59:28.000Z | src/Gon/realtime_starter_cnstock.py | NongMaYiSheng/Listed-company-news-crawl-and-text-analysis | fd3b23814039cbe8fbb2e25cbadb68238e0d998b | [
"MIT"
] | 216 | 2018-02-26T09:27:15.000Z | 2022-03-30T10:05:26.000Z | import __init__
import time
import redis
import logging
import threading
from Kite import config
from Kite.database import Database
from Killua.denull import DeNull
from Killua.deduplication import Deduplication
from Gon.cnstockspyder import CnStockSpyder
redis_client = redis.StrictRedis(config.REDIS_IP,
... | 36.613636 | 110 | 0.787089 | 223 | 1,611 | 5.345291 | 0.349776 | 0.029362 | 0.060403 | 0.080537 | 0.347315 | 0.347315 | 0.239933 | 0.16443 | 0.083893 | 0.083893 | 0 | 0.024165 | 0.126629 | 1,611 | 44 | 111 | 36.613636 | 0.823028 | 0.072626 | 0 | 0.066667 | 0 | 0 | 0.028859 | 0.018121 | 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 |
71402d682a2b6cc9a3cf4e8a4737a900103280e6 | 908 | py | Python | tests/sfko/sfko/obj/stage.py | Public-Cloud-Projects/Zenko | d62a7bad90b69108bbf9ea1cbd2f9b983f1235b7 | [
"Apache-2.0"
] | 453 | 2017-07-11T13:14:05.000Z | 2022-03-31T20:50:01.000Z | tests/sfko/sfko/obj/stage.py | Public-Cloud-Projects/Zenko | d62a7bad90b69108bbf9ea1cbd2f9b983f1235b7 | [
"Apache-2.0"
] | 987 | 2017-07-11T16:56:45.000Z | 2022-03-31T19:36:10.000Z | tests/sfko/sfko/obj/stage.py | Public-Cloud-Projects/Zenko | d62a7bad90b69108bbf9ea1cbd2f9b983f1235b7 | [
"Apache-2.0"
] | 100 | 2017-07-11T16:16:29.000Z | 2022-03-11T15:07:54.000Z | from pipewrench.pipeline import Filter
from pipewrench.pipeline import Router as BaseRouter
from ..execute import (CheckPipeline, ControllerPipeline, TestPipeline,
WorkerPipeline)
from ..register import CHECKS, TESTS
from .backend import BackendsWrapper
from .scenario import SCENARIOS
from .secr... | 23.894737 | 71 | 0.713656 | 90 | 908 | 7 | 0.433333 | 0.066667 | 0.069841 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221366 | 908 | 37 | 72 | 24.540541 | 0.891089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.034483 | 0.241379 | 0 | 0.793103 | 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 |
714099ddca11c7617f887d06578b0c7671507f4f | 139 | py | Python | BOJ/03000~03999/3400~3499/3447.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/03000~03999/3400~3499/3447.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/03000~03999/3400~3499/3447.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | while True:
try:
a=input()
except:
break
while "BUG" in a:
a=a.replace("BUG","")
print(a) | 13.9 | 29 | 0.417266 | 17 | 139 | 3.411765 | 0.647059 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.438849 | 139 | 10 | 30 | 13.9 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71447558587844a4644c985685cf9f758ed04b8e | 1,038 | py | Python | server/agora/agora/views.py | MHDYousuf/chatapp | aa53b78d1bd4191288e3841ea836bd1a610704ec | [
"MIT"
] | null | null | null | server/agora/agora/views.py | MHDYousuf/chatapp | aa53b78d1bd4191288e3841ea836bd1a610704ec | [
"MIT"
] | null | null | null | server/agora/agora/views.py | MHDYousuf/chatapp | aa53b78d1bd4191288e3841ea836bd1a610704ec | [
"MIT"
] | null | null | null |
from django.http import JsonResponse
import json
import urllib.request as urllib2
from watson_developer_cloud import VisualRecognitionV3
visual_recognition = VisualRecognitionV3(
'2018-03-19',
iam_apikey='2bD2GP8g-R5-GHxF-_ze1oclTBYtI0O5-zjtWvS2fGuB')
def agora(request):
target_url = request.GET["url"]
... | 29.657143 | 70 | 0.689788 | 117 | 1,038 | 5.957265 | 0.521368 | 0.057389 | 0.054519 | 0.040172 | 0.350072 | 0.350072 | 0.350072 | 0.350072 | 0.350072 | 0.350072 | 0 | 0.053988 | 0.214836 | 1,038 | 35 | 71 | 29.657143 | 0.801227 | 0.219653 | 0 | 0 | 0 | 0 | 0.13325 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8538513876d3b454570148e3553fef9a8c7e754d | 637 | py | Python | lulu/a_b_problem.py | joshua-jin/algorithm-campus | 8f60cd63542f4f5778a992179c3e767fbc023338 | [
"MIT"
] | 8 | 2016-05-10T12:59:36.000Z | 2020-09-16T19:47:44.000Z | lulu/a_b_problem.py | joshua-jin/algorithm-campus | 8f60cd63542f4f5778a992179c3e767fbc023338 | [
"MIT"
] | null | null | null | lulu/a_b_problem.py | joshua-jin/algorithm-campus | 8f60cd63542f4f5778a992179c3e767fbc023338 | [
"MIT"
] | 2 | 2016-12-22T09:28:54.000Z | 2020-01-22T17:56:02.000Z | class Solution:
"""
@param a: The first integer
@param b: The second integer
@return: The sum of a and b
"""
# Actually both of these methods fail to work in Python
# because Python supports infinite integer
# Non-recursive
def aplusb(self, a, b):
# write your code here, try... | 27.695652 | 74 | 0.549451 | 89 | 637 | 3.932584 | 0.52809 | 0.034286 | 0.102857 | 0.125714 | 0.137143 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0.009926 | 0.367347 | 637 | 22 | 75 | 28.954545 | 0.858561 | 0.423862 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
853c28028be7c0979584eaeab9bbfc038f333d68 | 1,647 | py | Python | roles/apache/files/assets/var/www/cgi-bin/logdisplay.py | Armorless-Visage/ansible-config | cbd1970ee58732ee03b9b9dbe6c80dd5f391d0a0 | [
"BSD-2-Clause"
] | null | null | null | roles/apache/files/assets/var/www/cgi-bin/logdisplay.py | Armorless-Visage/ansible-config | cbd1970ee58732ee03b9b9dbe6c80dd5f391d0a0 | [
"BSD-2-Clause"
] | 1 | 2017-06-01T03:23:51.000Z | 2017-06-01T03:23:51.000Z | roles/apache/files/assets/var/www/cgi-bin/logdisplay.py | Armorless-Visage/ansible-config | cbd1970ee58732ee03b9b9dbe6c80dd5f391d0a0 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Liam Nolan 2017 (c) BSD 2-Clause
from sys import stdout, exit
from html import escape as esc
#import cgitb
def print_100_lines(path):
# cgitb.enable()
'''
print last lines of file
'''
header = ('Content-Type: text/html\n\n')
html_head = ('''
<!DOCTYPE html>
... | 24.58209 | 67 | 0.519126 | 205 | 1,647 | 4.058537 | 0.482927 | 0.092548 | 0.03125 | 0.033654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027358 | 0.356406 | 1,647 | 66 | 68 | 24.954545 | 0.757547 | 0.178506 | 0 | 0.229167 | 0 | 0 | 0.293675 | 0.020331 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.020833 | false | 0 | 0.041667 | 0 | 0.104167 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85404eba4eee085e3e346e97a7fb797a687ab0f1 | 1,915 | py | Python | doctor/migrations/0001_initial.py | ricksaha2000/MedBay-V1 | ee8ead4c3583066c778dc76ed0749feb70f412c8 | [
"MIT"
] | null | null | null | doctor/migrations/0001_initial.py | ricksaha2000/MedBay-V1 | ee8ead4c3583066c778dc76ed0749feb70f412c8 | [
"MIT"
] | null | null | null | doctor/migrations/0001_initial.py | ricksaha2000/MedBay-V1 | ee8ead4c3583066c778dc76ed0749feb70f412c8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-08 07:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 39.081633 | 118 | 0.593211 | 201 | 1,915 | 5.512438 | 0.323383 | 0.036101 | 0.050542 | 0.079422 | 0.534296 | 0.509025 | 0.509025 | 0.472924 | 0.472924 | 0.472924 | 0 | 0.0193 | 0.269452 | 1,915 | 48 | 119 | 39.895833 | 0.772695 | 0.023499 | 0 | 0.463415 | 1 | 0 | 0.067452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.170732 | 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 |
8540e1fd1841d63190d5c5720d0131ed29da1739 | 22,091 | py | Python | apps/simple_sweep.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | apps/simple_sweep.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | apps/simple_sweep.py | danielflanigan/kid_readout | 07202090d468669200cab78297122880c1c03e87 | [
"BSD-2-Clause"
] | null | null | null | import IPython
import bisect
import threading
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
from matplotlib.figure import Figure
fr... | 40.238616 | 137 | 0.577611 | 2,703 | 22,091 | 4.54458 | 0.174621 | 0.024178 | 0.020759 | 0.017991 | 0.468089 | 0.369261 | 0.316509 | 0.302996 | 0.28069 | 0.266037 | 0 | 0.025801 | 0.317505 | 22,091 | 548 | 138 | 40.312044 | 0.78895 | 0.050337 | 0 | 0.377399 | 0 | 0 | 0.059576 | 0.00105 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002132 | 0.042644 | null | null | 0.044776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
855367e9fc1aeafbd993d1e204980144aebb74f8 | 404 | py | Python | Tests/h2_sto3g.py | berquist/PyQuante | 1cb800c6889d23fd1ad4653ac6c1d5618bc79af5 | [
"DOC"
] | 1 | 2021-06-09T02:30:23.000Z | 2021-06-09T02:30:23.000Z | Tests/h2_sto3g.py | berquist/PyQuante | 1cb800c6889d23fd1ad4653ac6c1d5618bc79af5 | [
"DOC"
] | 1 | 2019-02-03T10:44:02.000Z | 2019-02-03T10:44:02.000Z | Tests/h2_sto3g.py | berquist/PyQuante | 1cb800c6889d23fd1ad4653ac6c1d5618bc79af5 | [
"DOC"
] | 1 | 2017-09-11T19:20:11.000Z | 2017-09-11T19:20:11.000Z | #!/usr/bin/env python
"H2 using Gaussians"
from PyQuante.Ints import getbasis,getints
from PyQuante.hartree_fock import rhf
from PyQuante.Molecule import Molecule
energy = -1.082098
name = "H2"
def main():
h2 = Molecule('h2',atomlist=[(1,(0,0,0.6921756113231793)),(1,(0,0,-0.6921756113231793))])
en,orbe,orbs ... | 21.263158 | 93 | 0.695545 | 59 | 404 | 4.610169 | 0.576271 | 0.029412 | 0.022059 | 0.029412 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15407 | 0.148515 | 404 | 18 | 94 | 22.444444 | 0.636628 | 0.049505 | 0 | 0 | 0 | 0 | 0.091623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8558e7f9f89ec7e64ed43e531963d304ee19766c | 344 | py | Python | Ex28.py | TiagoM018/Python-Stuff | c868ce4872edb414d8b058aa278cc0b1ca864fcc | [
"Unlicense"
] | null | null | null | Ex28.py | TiagoM018/Python-Stuff | c868ce4872edb414d8b058aa278cc0b1ca864fcc | [
"Unlicense"
] | null | null | null | Ex28.py | TiagoM018/Python-Stuff | c868ce4872edb414d8b058aa278cc0b1ca864fcc | [
"Unlicense"
] | null | null | null | print ("Em que classe o seu terreno se encaixa?")
largura = float (input("Insira aqui a largura do seu terreno :"))
comprimento = float (input("Insira aqui o comprimento do seu terreno :"))
m2 = largura*comprimento
if m2 <=100:
print ("Terreno Popular")
elif m2 <= 500:
print ("Terreno Master")
if m2 >= 500:
... | 34.4 | 75 | 0.677326 | 50 | 344 | 4.66 | 0.5 | 0.128755 | 0.137339 | 0.171674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046931 | 0.194767 | 344 | 10 | 76 | 34.4 | 0.794224 | 0 | 0 | 0 | 0 | 0 | 0.463768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
8561ac552d6dde5aac90f2686b3ac15b55bb46bd | 450 | py | Python | catkin_ws/src/00-infrastructure/what_the_duck/include/what_the_duck_tests/repo_age.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | 2 | 2018-06-25T02:51:25.000Z | 2018-06-25T02:51:27.000Z | catkin_ws/src/00-infrastructure/what_the_duck/include/what_the_duck_tests/repo_age.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/00-infrastructure/what_the_duck/include/what_the_duck_tests/repo_age.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | 2 | 2018-09-04T06:44:21.000Z | 2018-10-15T02:30:50.000Z | from compmake.utils.duration_hum import duration_compact
from duckietown_utils.constants import get_duckietown_root
from comptests import comptest, run_module_tests
from what_the_duck.checks.git_repos import get_repo_age
@comptest
def test_repo_age():
d = get_duckietown_root()
age_s = get_repo_age(d)
ag... | 26.470588 | 58 | 0.764444 | 68 | 450 | 4.602941 | 0.529412 | 0.067093 | 0.108626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.151111 | 450 | 17 | 59 | 26.470588 | 0.814136 | 0.035556 | 0 | 0 | 0 | 0 | 0.034642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 |
85626261d1cddcd5debfa4b4f7f73e80bfc519c5 | 1,609 | py | Python | clearblade/cbLogs.py | sraman0302/ClearBlade-Python-SDK | bde192ef86969c8d1c592f7697ca104bc2362408 | [
"Apache-2.0"
] | 2 | 2018-05-10T18:38:04.000Z | 2020-12-19T08:14:21.000Z | clearblade/cbLogs.py | sraman0302/ClearBlade-Python-SDK | bde192ef86969c8d1c592f7697ca104bc2362408 | [
"Apache-2.0"
] | 6 | 2018-01-13T17:05:51.000Z | 2021-09-01T18:25:41.000Z | clearblade/cbLogs.py | sraman0302/ClearBlade-Python-SDK | bde192ef86969c8d1c592f7697ca104bc2362408 | [
"Apache-2.0"
] | 4 | 2018-11-08T21:18:08.000Z | 2021-05-10T01:07:14.000Z | from __future__ import print_function, absolute_import
# set these variables to false to disable the logs
# (import cbLogs to your project and set it from there)
DEBUG = True
MQTT_DEBUG = True
class prettyText:
bold = '\033[1m'
faded = '\033[2m'
italics = '\033[3m'
underline = '\033[4m'
red = '\03... | 34.234043 | 101 | 0.632691 | 199 | 1,609 | 5.075377 | 0.371859 | 0.124752 | 0.150495 | 0.229703 | 0.420792 | 0.136634 | 0.136634 | 0.09505 | 0 | 0 | 0 | 0.045603 | 0.236793 | 1,609 | 46 | 102 | 34.978261 | 0.776873 | 0.125544 | 0 | 0 | 0 | 0 | 0.122769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.029412 | 0 | 0.5 | 0.264706 | 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 |
8563cf345d7a0f0c01996ce75cefbd1f70e8f7e1 | 453 | py | Python | mysign_app/migrations/0009_company_image.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | mysign_app/migrations/0009_company_image.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | 11 | 2020-06-06T00:27:01.000Z | 2022-02-10T09:38:26.000Z | mysign_app/migrations/0009_company_image.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-28 09:58
from django.db import migrations, models
import mysign_app.models
class Migration(migrations.Migration):
dependencies = [
('mysign_app', '0008_auto_20191011_1115'),
]
operations = [
migrations.AddField(
model_name='company',
... | 21.571429 | 90 | 0.637969 | 53 | 453 | 5.283019 | 0.698113 | 0.096429 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091716 | 0.253863 | 453 | 20 | 91 | 22.65 | 0.736686 | 0.099338 | 0 | 0 | 1 | 0 | 0.110837 | 0.05665 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8564472cdad74d436baec8ff4b85cb9b79587ede | 435 | py | Python | Mortgage Calculator/mortgage.py | yashpatel123a/Mini-Projects | 57ecd8162da5979c2a97edc85eb38bf8cb0e3788 | [
"MIT"
] | null | null | null | Mortgage Calculator/mortgage.py | yashpatel123a/Mini-Projects | 57ecd8162da5979c2a97edc85eb38bf8cb0e3788 | [
"MIT"
] | null | null | null | Mortgage Calculator/mortgage.py | yashpatel123a/Mini-Projects | 57ecd8162da5979c2a97edc85eb38bf8cb0e3788 | [
"MIT"
] | null | null | null | def mortgage_calculator(P,r,N):
if r == 0:
return P / N
else:
return ((r * P) / (1 - (1 + r)**-N))
if __name__ == '__main__':
P = float(input('Enter the amount borrowed: '))
R = float(input('Enter the interest rate: '))
N = int(input("Enter the number of monthly payments: "))
r ... | 31.071429 | 98 | 0.583908 | 67 | 435 | 3.641791 | 0.58209 | 0.02459 | 0.159836 | 0.163934 | 0.172131 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.248276 | 435 | 13 | 99 | 33.461538 | 0.718654 | 0 | 0 | 0 | 0 | 0.090909 | 0.419355 | 0.085253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 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 |
85683b1ae88f4687d9115f163bdfd91a46b2884b | 12,973 | py | Python | movers/base.py | virthead/COMPASS-multijob-pilot | beac49ec432d24382d4d23aacfe6c9674a59e118 | [
"Apache-2.0"
] | null | null | null | movers/base.py | virthead/COMPASS-multijob-pilot | beac49ec432d24382d4d23aacfe6c9674a59e118 | [
"Apache-2.0"
] | null | null | null | movers/base.py | virthead/COMPASS-multijob-pilot | beac49ec432d24382d4d23aacfe6c9674a59e118 | [
"Apache-2.0"
] | null | null | null | """
Base class of site movers
:author: Alexey Anisenkov
"""
import hashlib
import os
import time
from subprocess import Popen, PIPE, STDOUT
from pUtil import tolog #
from PilotErrors import PilotErrors, PilotException
class BaseSiteMover(object):
"""
File movers move files between a storage element (of... | 36.750708 | 166 | 0.604486 | 1,535 | 12,973 | 5.009121 | 0.22671 | 0.035895 | 0.02224 | 0.020029 | 0.261803 | 0.221225 | 0.181038 | 0.148914 | 0.143322 | 0.127455 | 0 | 0.00889 | 0.297695 | 12,973 | 352 | 167 | 36.855114 | 0.835035 | 0.078008 | 0 | 0.127168 | 0 | 0.00578 | 0.199012 | 0 | 0 | 0 | 0 | 0.002841 | 0 | 0 | null | null | 0.00578 | 0.040462 | 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 |
85710e45feccfdf6a95cc71721d3f9415c5bb03f | 558 | py | Python | MachineLearning/TP1/computeCostMulti.py | piwithy/ENSTA_MACHINE_LEARNING | 8a58b230f150ca7ceaf340086f15d0d3535d2859 | [
"MIT"
] | null | null | null | MachineLearning/TP1/computeCostMulti.py | piwithy/ENSTA_MACHINE_LEARNING | 8a58b230f150ca7ceaf340086f15d0d3535d2859 | [
"MIT"
] | null | null | null | MachineLearning/TP1/computeCostMulti.py | piwithy/ENSTA_MACHINE_LEARNING | 8a58b230f150ca7ceaf340086f15d0d3535d2859 | [
"MIT"
] | null | null | null | import numpy as np
def computeCostMulti(X, y, theta):
"""
computes the cost of using theta as the parameter for linear
regression to fit the data points in X and y
"""
m = y.size
J = 0.
# ====================== YOUR CODE HERE ======================
# Instructions: Compute the co... | 27.9 | 68 | 0.451613 | 73 | 558 | 3.424658 | 0.589041 | 0.056 | 0.072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012407 | 0.277778 | 558 | 19 | 69 | 29.368421 | 0.60794 | 0.523297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
857745e02fcf38e2909cb1e13ed316a6965e3e8c | 840 | py | Python | edi_835_parser/segments/service_adjustment.py | javigoncompte/edi-835-parser | 0e44450adea0297bf6e0fbc74ad52cc01f709953 | [
"MIT"
] | 20 | 2021-01-21T21:34:20.000Z | 2022-03-06T16:07:42.000Z | edi_835_parser/segments/service_adjustment.py | javigoncompte/edi-835-parser | 0e44450adea0297bf6e0fbc74ad52cc01f709953 | [
"MIT"
] | 7 | 2021-03-10T18:08:54.000Z | 2022-02-05T04:40:34.000Z | edi_835_parser/segments/service_adjustment.py | javigoncompte/edi-835-parser | 0e44450adea0297bf6e0fbc74ad52cc01f709953 | [
"MIT"
] | 13 | 2021-01-22T19:05:48.000Z | 2022-02-04T23:27:08.000Z | from edi_835_parser.elements.identifier import Identifier
from edi_835_parser.elements.dollars import Dollars
from edi_835_parser.elements.adjustment_group_code import AdjustmentGroupCode
from edi_835_parser.elements.adjustment_reason_code import AdjustmentReasonCode
from edi_835_parser.segments.utilities import split_... | 27.096774 | 79 | 0.792857 | 107 | 840 | 5.850467 | 0.411215 | 0.055911 | 0.079872 | 0.127796 | 0.185304 | 0.108626 | 0 | 0 | 0 | 0 | 0 | 0.025745 | 0.121429 | 840 | 30 | 80 | 28 | 0.822493 | 0 | 0 | 0 | 0 | 0 | 0.015476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.227273 | 0.045455 | 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 |
857ec12b04b95ebaae99ab011622d65ae351db96 | 959 | py | Python | controls/bluetooth/conect.py | daviddbarrero/pandora | 3c28147e9abb1c7e9180f510506f0ae8677b7ed7 | [
"MIT"
] | 1 | 2019-08-08T22:54:43.000Z | 2019-08-08T22:54:43.000Z | controls/bluetooth/conect.py | neura-8/pandora | 3c28147e9abb1c7e9180f510506f0ae8677b7ed7 | [
"MIT"
] | null | null | null | controls/bluetooth/conect.py | neura-8/pandora | 3c28147e9abb1c7e9180f510506f0ae8677b7ed7 | [
"MIT"
] | 1 | 2019-09-06T17:58:39.000Z | 2019-09-06T17:58:39.000Z | #!/usr/bin/python
import socket
import bluetooth, subprocess
nearby_devices = bluetooth.discover_devices(duration=4,lookup_names=True,
flush_cache=True, lookup_class=False)
TCP_IP = '44:44:1B:04:13:7D'
TCP_PORT = 13854
BUFFER_SIZE = 2048
name = 'Sichiray' #... | 30.935484 | 91 | 0.688217 | 131 | 959 | 4.977099 | 0.618321 | 0.08589 | 0.018405 | 0.02454 | 0.03681 | 0.03681 | 0 | 0 | 0 | 0 | 0 | 0.05284 | 0.210636 | 959 | 30 | 92 | 31.966667 | 0.808454 | 0.298227 | 0 | 0 | 0 | 0 | 0.143072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
858192df3975d8573526afeb5207dad35f9b58a6 | 892 | py | Python | dbms/errors.py | CanburakTumer/youtube_examples | ef41c88a8d8997628d54c4f7ef75c40e0794e544 | [
"Unlicense"
] | null | null | null | dbms/errors.py | CanburakTumer/youtube_examples | ef41c88a8d8997628d54c4f7ef75c40e0794e544 | [
"Unlicense"
] | null | null | null | dbms/errors.py | CanburakTumer/youtube_examples | ef41c88a8d8997628d54c4f7ef75c40e0794e544 | [
"Unlicense"
] | null | null | null | import logging
TABLE_DOES_NOT_EXIST = 1
TABLE_ALREADY_EXISTS = 2
INPUT_DATA_IS_CORRUPTED = 3
KEY_ALREADY_EXISTS = 4
KEY_DOES_NOT_EXIST = 5
THIS_WILL_TRUNCATE_TABLE = 6
def throw_table_does_not_exist(table):
logging.error(f"{table} does not exist.")
exit(TABLE_DOES_NOT_EXIST)
def throw_table_already_exists(ta... | 27.875 | 56 | 0.774664 | 142 | 892 | 4.485915 | 0.197183 | 0.087912 | 0.150706 | 0.10675 | 0.204082 | 0.069074 | 0 | 0 | 0 | 0 | 0 | 0.007772 | 0.134529 | 892 | 32 | 57 | 27.875 | 0.817358 | 0 | 0 | 0 | 0 | 0 | 0.183651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0 | 0.28 | 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 |
85864cb875b10f10b3670f19af779cb8948d9e3c | 819 | py | Python | exception-always.py | hydrargyrum/python-exercises | f99889d18179dce45956ce68382e37a987c8f460 | [
"Unlicense"
] | null | null | null | exception-always.py | hydrargyrum/python-exercises | f99889d18179dce45956ce68382e37a987c8f460 | [
"Unlicense"
] | null | null | null | exception-always.py | hydrargyrum/python-exercises | f99889d18179dce45956ce68382e37a987c8f460 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env pytest-3
import pytest
# Exercice: try..except
class ExBase:
normal_called = False
error_called = False
always_called = False
def normal(self):
self.normal_called = True
def error(self):
self.error_called = True
def always(self):
self.always_called =... | 16.38 | 37 | 0.608059 | 102 | 819 | 4.745098 | 0.313725 | 0.123967 | 0.053719 | 0.070248 | 0.136364 | 0.136364 | 0.136364 | 0 | 0 | 0 | 0 | 0.001748 | 0.301587 | 819 | 49 | 38 | 16.714286 | 0.844406 | 0.065934 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.193548 | 1 | 0.193548 | false | 0.032258 | 0.032258 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85888b69a6fee4a0cd7239e7cf24ddfdc6bfe0d0 | 1,690 | py | Python | src/code42cli/sdk_client.py | unparalleled-js/code42cli | 3efbc274b96437ffcfa0fe5abb280fa10f0f05e6 | [
"MIT"
] | null | null | null | src/code42cli/sdk_client.py | unparalleled-js/code42cli | 3efbc274b96437ffcfa0fe5abb280fa10f0f05e6 | [
"MIT"
] | null | null | null | src/code42cli/sdk_client.py | unparalleled-js/code42cli | 3efbc274b96437ffcfa0fe5abb280fa10f0f05e6 | [
"MIT"
] | null | null | null | import py42.sdk
import py42.settings
import py42.settings.debug as debug
import requests
from click import secho
from py42.exceptions import Py42UnauthorizedError
from requests.exceptions import ConnectionError
from code42cli.errors import Code42CLIError
from code42cli.errors import LoggedCLIError
from code42cli.logge... | 35.208333 | 99 | 0.730178 | 196 | 1,690 | 6.142857 | 0.413265 | 0.049834 | 0.027409 | 0.034884 | 0.098007 | 0.098007 | 0.098007 | 0.098007 | 0.07309 | 0 | 0 | 0.02566 | 0.192899 | 1,690 | 47 | 100 | 35.957447 | 0.857038 | 0 | 0 | 0.075 | 0 | 0 | 0.121302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.25 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
858a11be63684208d2f8232c35e62d9698a3cd10 | 4,466 | py | Python | Audio.py | EdenMelaku/tacotron2 | e1cec635fa7bff4772e41c69609709f875f1fa0c | [
"BSD-3-Clause"
] | null | null | null | Audio.py | EdenMelaku/tacotron2 | e1cec635fa7bff4772e41c69609709f875f1fa0c | [
"BSD-3-Clause"
] | null | null | null | Audio.py | EdenMelaku/tacotron2 | e1cec635fa7bff4772e41c69609709f875f1fa0c | [
"BSD-3-Clause"
] | null | null | null | import torch
import numpy as np
from hparams import create_hparams as hps
def mode(obj, model = False):
if model and hps.is_cuda:
obj = obj.cuda()
elif hps.is_cuda:
obj = obj.cuda(non_blocking = hps.pin_mem)
return obj
def to_arr(var):
return var.cpu().detach().numpy().astype(np.float32)
def get_mask_from_le... | 26.426036 | 105 | 0.698388 | 716 | 4,466 | 4.089385 | 0.252793 | 0.038251 | 0.030738 | 0.013661 | 0.342213 | 0.288934 | 0.275956 | 0.234973 | 0.143443 | 0.070355 | 0 | 0.01506 | 0.182266 | 4,466 | 168 | 106 | 26.583333 | 0.786692 | 0.043439 | 0 | 0.13913 | 0 | 0 | 0.006588 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 1 | 0.208696 | false | 0 | 0.113043 | 0.069565 | 0.530435 | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
858c17fc190b6543dcb6c296e195e3c448b15edf | 3,808 | py | Python | teamcat_service/doraemon/agent/socket_message/agent_pb2.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 6 | 2018-11-26T08:42:52.000Z | 2020-06-01T08:33:48.000Z | teamcat_service/doraemon/agent/socket_message/agent_pb2.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | null | null | null | teamcat_service/doraemon/agent/socket_message/agent_pb2.py | zhangyin2088/Teamcat | be9be8d7c1e58c8d2d22ab78d25783d9aee4de71 | [
"Apache-2.0"
] | 1 | 2019-01-22T06:45:36.000Z | 2019-01-22T06:45:36.000Z | #coding=utf-8
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: agent.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import m... | 31.733333 | 342 | 0.735294 | 505 | 3,808 | 5.293069 | 0.283168 | 0.047886 | 0.040404 | 0.044893 | 0.29667 | 0.242798 | 0.242798 | 0.242798 | 0.242798 | 0.242798 | 0 | 0.041958 | 0.136292 | 3,808 | 119 | 343 | 32 | 0.770751 | 0.05646 | 0 | 0.418367 | 1 | 0.010204 | 0.161416 | 0.112908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
858ec1508e68a42d8f532b00f81e0211eeddd82e | 928 | py | Python | github_team_organizer/classes/ghgql.py | soar/github-team-organizer | a305f2c3c5d40722fb9211bdbf82d80bbb28026e | [
"MIT"
] | null | null | null | github_team_organizer/classes/ghgql.py | soar/github-team-organizer | a305f2c3c5d40722fb9211bdbf82d80bbb28026e | [
"MIT"
] | null | null | null | github_team_organizer/classes/ghgql.py | soar/github-team-organizer | a305f2c3c5d40722fb9211bdbf82d80bbb28026e | [
"MIT"
] | null | null | null | import click
from cached_property import cached_property
from sgqlc.endpoint.http import HTTPEndpoint
from github_team_organizer.classes.github import GitHubWrapper
class GitHubGraphQL:
__instance = None
url = 'https://api.github.com/graphql'
def __new__(cls, *args, **kwargs):
if GitHubGraphQL... | 25.777778 | 76 | 0.65194 | 102 | 928 | 5.696078 | 0.5 | 0.096386 | 0.034423 | 0.055077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001418 | 0.240302 | 928 | 35 | 77 | 26.514286 | 0.822695 | 0 | 0 | 0.08 | 0 | 0 | 0.126078 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.16 | 0.08 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8591fdbced2eac34c1c4ff20f3af4ee35f6a5262 | 8,487 | py | Python | pysnmp-with-texts/XEDIA-FRAME-RELAY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/XEDIA-FRAME-RELAY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/XEDIA-FRAME-RELAY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module XEDIA-FRAME-RELAY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XEDIA-FRAME-RELAY-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:42:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 124.808824 | 674 | 0.774361 | 1,044 | 8,487 | 6.293103 | 0.25 | 0.047489 | 0.083105 | 0.010959 | 0.315068 | 0.156925 | 0.148097 | 0.128006 | 0.128006 | 0.12618 | 0 | 0.052474 | 0.097325 | 8,487 | 67 | 675 | 126.671642 | 0.805117 | 0.03959 | 0 | 0.033898 | 0 | 0.101695 | 0.364161 | 0.033775 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.135593 | 0 | 0.135593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8597c004c94e649f1b09caed7a897558797f5d14 | 1,103 | py | Python | python/dailyStudy/jbttb/jbttb_userinfo.py | xmmmmmovo/BaseNotes | aa895c15e47d2f344ffcc48798d094a8ca942a79 | [
"MIT"
] | 2 | 2019-06-06T21:09:44.000Z | 2019-09-23T05:00:27.000Z | python/dailyStudy/jbttb/jbttb_userinfo.py | xmmmmmovo/BaseNotes | aa895c15e47d2f344ffcc48798d094a8ca942a79 | [
"MIT"
] | 13 | 2020-11-12T14:35:34.000Z | 2022-02-27T09:25:06.000Z | python/dailyStudy/jbttb/jbttb_userinfo.py | xmmmmmovo/BaseNotes | aa895c15e47d2f344ffcc48798d094a8ca942a79 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import requests
session = "2B2DD9E68BD4007DC3E3FC2A055FB55C"
headers = {
"Host": "zbjkttb.nuc.edu.cn",
"Proxy-Connection": "keep-alive",
"Content-Length": "0",
"Accept": "application/json, text/plain, */*",
"Origin": "http://zbjkttb.nuc.edu.cn",
"User-Agent": "Mozilla/... | 33.424242 | 275 | 0.654578 | 161 | 1,103 | 4.459627 | 0.670807 | 0.05571 | 0.072423 | 0.083565 | 0.079387 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085288 | 0.149592 | 1,103 | 32 | 276 | 34.46875 | 0.680171 | 0.019039 | 0 | 0 | 0 | 0.083333 | 0.660185 | 0.082407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
859c91e276af1ff6c5970c21061f3138d6040749 | 470 | py | Python | exception_test.py | alecgtx/algorithm | af2e44ad957fdf92cd1a077e115eff8ba824bb82 | [
"Apache-2.0"
] | null | null | null | exception_test.py | alecgtx/algorithm | af2e44ad957fdf92cd1a077e115eff8ba824bb82 | [
"Apache-2.0"
] | null | null | null | exception_test.py | alecgtx/algorithm | af2e44ad957fdf92cd1a077e115eff8ba824bb82 | [
"Apache-2.0"
] | null | null | null | def num():
a=int(input('input a : '))
b=int(input('input b : '))
return a, b
def func(a,b):
add = a+b
multi = a*b
devi = a/b
return add, multi, devi
if __name__=='__main__':
try:
a, b=num()
add,_,_=func(a,b)
_,multi,_=func(a,b)
_,_,devi=func(a,b)
ex... | 18.076923 | 39 | 0.508511 | 70 | 470 | 3.214286 | 0.371429 | 0.088889 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0.334043 | 470 | 25 | 40 | 18.8 | 0.715655 | 0 | 0 | 0.090909 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85a348621d2c81c4d8ec553e246e6062a6030a13 | 3,722 | py | Python | mischief/helpers.py | murtazazaidi/mischief | d84f7bc1bec366ba024cfeedb2bb74228e1b1751 | [
"BSD-2-Clause"
] | null | null | null | mischief/helpers.py | murtazazaidi/mischief | d84f7bc1bec366ba024cfeedb2bb74228e1b1751 | [
"BSD-2-Clause"
] | null | null | null | mischief/helpers.py | murtazazaidi/mischief | d84f7bc1bec366ba024cfeedb2bb74228e1b1751 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
''' For mischief module, all the helper methods are
added in this file, for user to use in core. '''
from datetime import datetime
import tweepy
from .config import PARDON_LIST
def generate_summary_report(api):
""" Generate Summary Report of Authenticated User """
# Get the User o... | 34.462963 | 79 | 0.658248 | 495 | 3,722 | 4.749495 | 0.236364 | 0.057848 | 0.032752 | 0.021693 | 0.256912 | 0.158231 | 0.158231 | 0.14547 | 0.116546 | 0.116546 | 0 | 0.002362 | 0.203654 | 3,722 | 107 | 80 | 34.785047 | 0.790823 | 0.023643 | 0 | 0.164384 | 0 | 0 | 0.109438 | 0.029116 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041096 | null | null | 0.342466 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85a6350adcfcff6805329853ef38edf47993c8d9 | 626 | py | Python | Pangrams/code.py | swy20190/HackerRankChallenge | c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a | [
"MIT"
] | null | null | null | Pangrams/code.py | swy20190/HackerRankChallenge | c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a | [
"MIT"
] | null | null | null | Pangrams/code.py | swy20190/HackerRankChallenge | c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a | [
"MIT"
] | null | null | null | import os
def pangrams(s):
# Write your code here
buckets = []
for i in range(26):
buckets.append(0)
for i in range(len(s)):
char = s[i]
if char >= 'a' and char <= 'z':
buckets[ord(char) - ord('a')] += 1
elif char >= 'A' and char <= 'Z':
buckets[... | 19.5625 | 49 | 0.49361 | 87 | 626 | 3.448276 | 0.471264 | 0.04 | 0.06 | 0.11 | 0.266667 | 0.18 | 0.18 | 0.18 | 0 | 0 | 0 | 0.021635 | 0.335463 | 626 | 31 | 50 | 20.193548 | 0.699519 | 0.031949 | 0 | 0.095238 | 0 | 0 | 0.076159 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85aa2c0bdccaf6a7f66e3ce11fbdfab30058bb8c | 704 | py | Python | app/covidbed/serializer/user.py | dbaelipro/coordination-dispo-lits | d252df23f570f6a83a5c6af36056ed5f2cf02fe0 | [
"MIT"
] | 2 | 2020-05-10T16:06:17.000Z | 2020-05-10T16:10:03.000Z | app/covidbed/serializer/user.py | dbaelipro/coordination-dispo-lits | d252df23f570f6a83a5c6af36056ed5f2cf02fe0 | [
"MIT"
] | 8 | 2020-04-07T16:36:51.000Z | 2020-04-26T10:34:26.000Z | app/covidbed/serializer/user.py | dbaelipro/coordination-dispo-lits | d252df23f570f6a83a5c6af36056ed5f2cf02fe0 | [
"MIT"
] | 4 | 2020-04-18T22:53:33.000Z | 2021-06-04T09:31:13.000Z | from flask_restful_swagger import swagger
from flask_restful import fields
@swagger.model
class SignupRequestSerializer:
resource_fields = {
'email': fields.String,
'username': fields.String,
'password': fields.String,
}
required = ["email", 'username', "password"]
@swagger.mode... | 19.555556 | 48 | 0.659091 | 63 | 704 | 7.253968 | 0.31746 | 0.183807 | 0.148797 | 0.109409 | 0.341357 | 0.231947 | 0.231947 | 0.231947 | 0 | 0 | 0 | 0 | 0.232955 | 704 | 35 | 49 | 20.114286 | 0.846296 | 0 | 0 | 0.444444 | 0 | 0 | 0.106534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.074074 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85acce63ae22c77c8d8a521df3fa113b55ea1716 | 4,220 | py | Python | ixia_orch/restore/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | ixia_orch/restore/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | ixia_orch/restore/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cloudshell.helpers.scripts.cloudshell_dev_helpers as dev_helpers
from cloudshell.api.cloudshell_api import InputNameValue
from cloudshell.workflow.orchestration.sandbox import Sandbox
from cloudshell.workflow.orchestration.setup.default_setup_orchestrator impo... | 45.376344 | 189 | 0.677725 | 438 | 4,220 | 6.36758 | 0.347032 | 0.060595 | 0.050197 | 0.055934 | 0.296881 | 0.273216 | 0.273216 | 0.273216 | 0.192901 | 0.192901 | 0 | 0.00892 | 0.229621 | 4,220 | 92 | 190 | 45.869565 | 0.84897 | 0.1109 | 0 | 0.070175 | 0 | 0 | 0.150244 | 0.039069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0.070175 | 0.122807 | 0 | 0.140351 | 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 |
85b18f596c9983587429be79cba127914d8e52e9 | 2,297 | py | Python | azure_uploader.py | hill/PyUpdater-Azure-Blob-Plugin | 7e6f80b460291a69c7f70483f648283c5b9fe45e | [
"MIT"
] | null | null | null | azure_uploader.py | hill/PyUpdater-Azure-Blob-Plugin | 7e6f80b460291a69c7f70483f648283c5b9fe45e | [
"MIT"
] | null | null | null | azure_uploader.py | hill/PyUpdater-Azure-Blob-Plugin | 7e6f80b460291a69c7f70483f648283c5b9fe45e | [
"MIT"
] | null | null | null | from pyupdater.core.uploader import BaseUploader
from pyupdater.utils.exceptions import UploaderError
import os, uuid
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient
class AzureBlobStorageUploader(BaseUploader):
name = "azure-blob"
author = "Tom Hill"
def init_config(self,... | 31.902778 | 88 | 0.653896 | 259 | 2,297 | 5.586873 | 0.359073 | 0.099516 | 0.105736 | 0.058051 | 0.109191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270788 | 2,297 | 71 | 89 | 32.352113 | 0.863881 | 0.084023 | 0 | 0.042553 | 0 | 0 | 0.127568 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.085106 | false | 0 | 0.085106 | 0 | 0.276596 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85ba40edf1e0575dbec4a5dd325c2e688b767054 | 4,316 | py | Python | packages/w3af/w3af/core/data/url/handlers/ntlm_auth.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/data/url/handlers/ntlm_auth.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/data/url/handlers/ntlm_auth.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | # This library is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful... | 41.104762 | 87 | 0.602178 | 517 | 4,316 | 4.83559 | 0.367505 | 0.072 | 0.036 | 0.0228 | 0.2016 | 0.1672 | 0.136 | 0.084 | 0.084 | 0.0424 | 0 | 0.007953 | 0.329935 | 4,316 | 104 | 88 | 41.5 | 0.856501 | 0.260195 | 0 | 0.180328 | 0 | 0 | 0.020661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0.114754 | 0.032787 | 0 | 0.311475 | 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 |
85ba48230e8a51d5070d07c95fb93ec2ab7ea4b9 | 512 | py | Python | company/InfyTQ/Fundamentals/07SET/anagram.py | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | company/InfyTQ/Fundamentals/07SET/anagram.py | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | company/InfyTQ/Fundamentals/07SET/anagram.py | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | from collections import Counter
def check_anagram(data1, data2):
# start writing your code here
d1 = Counter(data1.lower())
d2 = Counter(data2.lower())
if d1 == d2:
# The zip() function returns a zip object, which is an iterator of tuples where the first item in each passed iterator is paired ... | 26.947368 | 145 | 0.623047 | 71 | 512 | 4.464789 | 0.676056 | 0.07571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027701 | 0.294922 | 512 | 18 | 146 | 28.444444 | 0.850416 | 0.320313 | 0 | 0.166667 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85bf9393aa09b62e9f3710367301ec2f1f8840dc | 1,520 | py | Python | numbas_lti/migrations/0034_resource_num_questions.py | oscarsiles/numbas-lti-provider | ef7080a2593a800a1b9630c746e4f8667e2ec42d | [
"Apache-2.0"
] | 6 | 2016-12-12T14:41:33.000Z | 2021-04-18T01:04:23.000Z | numbas_lti/migrations/0034_resource_num_questions.py | oscarsiles/numbas-lti-provider | ef7080a2593a800a1b9630c746e4f8667e2ec42d | [
"Apache-2.0"
] | 206 | 2016-08-24T13:53:07.000Z | 2022-03-31T09:14:43.000Z | numbas_lti/migrations/0034_resource_num_questions.py | oscarsiles/numbas-lti-provider | ef7080a2593a800a1b9630c746e4f8667e2ec42d | [
"Apache-2.0"
] | 13 | 2016-10-23T04:53:30.000Z | 2022-02-17T09:25:00.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-10-09 14:08
from __future__ import unicode_literals
from django.db import migrations, models
import re
import django.db.models.deletion
def calculate_num_questions(resource, ScormElement):
re_objective_id_key = r'^cmi.objectives.([0-9]+).id$'
top_key =... | 33.777778 | 141 | 0.684211 | 187 | 1,520 | 5.299465 | 0.470588 | 0.072654 | 0.039354 | 0.048436 | 0.042381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020509 | 0.198026 | 1,520 | 44 | 142 | 34.545455 | 0.792453 | 0.042763 | 0 | 0.057143 | 1 | 0 | 0.139118 | 0.048209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.314286 | 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 |
85c16f4270bdb143bc04d7cb3c753c9e3e62a9e1 | 392 | py | Python | subset_sum.py | pnijhara/question-paper-generator | 4954b03abe586885e158ee8edd9944721f437aae | [
"MIT"
] | null | null | null | subset_sum.py | pnijhara/question-paper-generator | 4954b03abe586885e158ee8edd9944721f437aae | [
"MIT"
] | null | null | null | subset_sum.py | pnijhara/question-paper-generator | 4954b03abe586885e158ee8edd9944721f437aae | [
"MIT"
] | null | null | null | def subsetsum(array,num):
if num == 0 or num < 1:
return None
elif len(array) == 0:
return None
else:
if array[0].marks == num:
return [array[0]]
else:
x = subsetsum(array[1:],(num - array[0].marks))
if x:
return [array[0]... | 24.5 | 60 | 0.446429 | 48 | 392 | 3.645833 | 0.3125 | 0.171429 | 0.125714 | 0.205714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039823 | 0.423469 | 392 | 15 | 61 | 26.133333 | 0.734513 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.428571 | 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 |
85c1d04a42ad1682febdda38237a6f406d7ebb71 | 1,420 | py | Python | src/user_profile/migrations/0001_initial.py | zmiterpimenau/PiLib | 301b51c5402f86da801d437ea943d10ea01c8fc1 | [
"Apache-2.0"
] | null | null | null | src/user_profile/migrations/0001_initial.py | zmiterpimenau/PiLib | 301b51c5402f86da801d437ea943d10ea01c8fc1 | [
"Apache-2.0"
] | null | null | null | src/user_profile/migrations/0001_initial.py | zmiterpimenau/PiLib | 301b51c5402f86da801d437ea943d10ea01c8fc1 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-28 12:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 44.375 | 142 | 0.653521 | 159 | 1,420 | 5.672956 | 0.490566 | 0.097561 | 0.110865 | 0.133038 | 0.245011 | 0.245011 | 0.17184 | 0.17184 | 0.17184 | 0.119734 | 0 | 0.027853 | 0.216197 | 1,420 | 31 | 143 | 45.806452 | 0.78257 | 0.03169 | 0 | 0 | 1 | 0 | 0.12673 | 0.016023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.291667 | 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 |
85c6d4f536cc571b9ee93244e846d979b0d65bf8 | 2,443 | py | Python | catcher_modules/service/expect.py | Daniel-Han-Yang/catcher_modules | 2eff08d2c19719539f761a7cae0a48b69a3231db | [
"Apache-2.0"
] | 5 | 2019-01-09T14:15:25.000Z | 2020-09-11T12:18:43.000Z | catcher_modules/service/expect.py | Daniel-Han-Yang/catcher_modules | 2eff08d2c19719539f761a7cae0a48b69a3231db | [
"Apache-2.0"
] | 44 | 2019-06-30T09:19:42.000Z | 2021-12-30T16:09:09.000Z | catcher_modules/service/expect.py | Daniel-Han-Yang/catcher_modules | 2eff08d2c19719539f761a7cae0a48b69a3231db | [
"Apache-2.0"
] | 5 | 2019-09-01T09:49:05.000Z | 2021-09-12T06:00:54.000Z | from catcher.steps.external_step import ExternalStep
from catcher_modules.utils import module_utils
import catcher_modules.database
class Expect(ExternalStep):
"""
This is the opposite for prepare. It compares expected data from csv to what you have in the database.
csv file supports templates.
**Imp... | 35.405797 | 106 | 0.561195 | 264 | 2,443 | 5.075758 | 0.439394 | 0.041791 | 0.049254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002592 | 0.3684 | 2,443 | 68 | 107 | 35.926471 | 0.865846 | 0.63201 | 0 | 0 | 0 | 0 | 0.043419 | 0.033921 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a41529483eebbe11d361bda88e5026c3a679d54b | 2,231 | py | Python | alipay/aop/api/response/AlipayCommerceLogisticsWaybillIstddetailQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayCommerceLogisticsWaybillIstddetailQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayCommerceLogisticsWaybillIstddetailQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceLogisticsWaybillIstddetailQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceLogisticsWaybillIstddetailQueryResponse, self).__init__()
... | 29.355263 | 126 | 0.668758 | 259 | 2,231 | 5.428571 | 0.150579 | 0.102418 | 0.083215 | 0.048364 | 0.02845 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000596 | 0.248319 | 2,231 | 75 | 127 | 29.746667 | 0.837806 | 0.018826 | 0 | 0.098361 | 0 | 0 | 0.057613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229508 | false | 0 | 0.032787 | 0.098361 | 0.377049 | 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 |
a41781ad92b70eeba4fcafc668892111dce9810e | 34,386 | py | Python | src/displayGUI_gpx.py | WeiHYDavid/Generate-GPX | d4fac10057a0b606d27edf90dbc95de54aa47c39 | [
"MIT"
] | 3 | 2021-07-03T14:00:24.000Z | 2021-07-06T06:53:38.000Z | src/displayGUI_gpx.py | WeiHYDavid/Generate-GPX | d4fac10057a0b606d27edf90dbc95de54aa47c39 | [
"MIT"
] | null | null | null | src/displayGUI_gpx.py | WeiHYDavid/Generate-GPX | d4fac10057a0b606d27edf90dbc95de54aa47c39 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'displayGUI_gpx.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | 56.930464 | 96 | 0.70741 | 4,283 | 34,386 | 5.413729 | 0.065141 | 0.059775 | 0.088239 | 0.031052 | 0.641868 | 0.505801 | 0.351231 | 0.230388 | 0.160693 | 0.132747 | 0 | 0.03704 | 0.175595 | 34,386 | 603 | 97 | 57.024876 | 0.780902 | 0.005467 | 0 | 0.145763 | 1 | 0 | 0.070194 | 0.008423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00339 | false | 0 | 0.001695 | 0 | 0.00678 | 0.010169 | 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 |
a421a15dd5405b2619b26dc7778427401aede5f4 | 15,832 | py | Python | test/integration/mongo_perf/run_program.py | mjpernot/mongo-perf | ba15f77cd8006aeb061ba83d6c605caedfd6015e | [
"MIT"
] | null | null | null | test/integration/mongo_perf/run_program.py | mjpernot/mongo-perf | ba15f77cd8006aeb061ba83d6c605caedfd6015e | [
"MIT"
] | null | null | null | test/integration/mongo_perf/run_program.py | mjpernot/mongo-perf | ba15f77cd8006aeb061ba83d6c605caedfd6015e | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: run_program.py
Description: Integration testing of run_program in mongo_perf.py.
Usage:
test/integration/mongo_perf/run_program.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
import filecmp
if sys.versio... | 28.890511 | 79 | 0.629421 | 1,970 | 15,832 | 4.757868 | 0.104061 | 0.069135 | 0.076176 | 0.097941 | 0.726235 | 0.696789 | 0.680145 | 0.660621 | 0.645151 | 0.625413 | 0 | 0.00478 | 0.260043 | 15,832 | 547 | 80 | 28.943327 | 0.795305 | 0.166182 | 0 | 0.614173 | 0 | 0.007874 | 0.161607 | 0.116354 | 0 | 0 | 0 | 0 | 0.055118 | 1 | 0.07874 | false | 0.007874 | 0.035433 | 0 | 0.129921 | 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 |
a42843e1c930a8e38daa6e71f822e33fe79dc519 | 3,112 | py | Python | nidm/nidm-experiment/ncanda/redcap_datadict_to_owl.py | nicholst/nidm | abaf408a292a0d47c7e4f11be723fde6bd7055ec | [
"Apache-2.0"
] | 1 | 2015-10-29T07:12:01.000Z | 2015-10-29T07:12:01.000Z | nidm/nidm-experiment/ncanda/redcap_datadict_to_owl.py | nicholst/nidm | abaf408a292a0d47c7e4f11be723fde6bd7055ec | [
"Apache-2.0"
] | null | null | null | nidm/nidm-experiment/ncanda/redcap_datadict_to_owl.py | nicholst/nidm | abaf408a292a0d47c7e4f11be723fde6bd7055ec | [
"Apache-2.0"
] | 2 | 2016-11-28T05:55:55.000Z | 2021-10-10T22:54:06.000Z | #!/usr/bin/env python
"""
REDCap Data Dictionary to OWL Converter
=======================================
This script provides a conversion utility for modeling REDCap Data
Dictionaries as an OWL Ontology, where instances are specific implementations
of a given REDCap Form.
"""
__author__ = 'Nolan Nichols <https://orci... | 29.084112 | 88 | 0.591902 | 396 | 3,112 | 4.527778 | 0.343434 | 0.035694 | 0.021751 | 0.028444 | 0.128277 | 0.095371 | 0.095371 | 0.061907 | 0.061907 | 0.061907 | 0 | 0.009142 | 0.261889 | 3,112 | 106 | 89 | 29.358491 | 0.771441 | 0.006427 | 0 | 0.168831 | 0 | 0 | 0.134392 | 0.008818 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077922 | null | null | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4314bab7532ae107b94dfba37351ccaaada392d | 673 | py | Python | scrapi/harvesters/ut_chattanooga.py | wearpants/scrapi | b1619a1212d9fc7e1f2247336fc2e4a3d453a4bb | [
"Apache-2.0"
] | 34 | 2015-10-06T20:08:43.000Z | 2022-03-16T12:46:24.000Z | scrapi/harvesters/ut_chattanooga.py | jgw4sq/twilio | 796e97dc6a8fdb8983fd736b328ad907bb1ff73e | [
"Apache-2.0"
] | 100 | 2015-09-10T19:57:32.000Z | 2016-06-22T03:09:51.000Z | scrapi/harvesters/ut_chattanooga.py | jgw4sq/twilio | 796e97dc6a8fdb8983fd736b328ad907bb1ff73e | [
"Apache-2.0"
] | 32 | 2015-09-09T21:28:54.000Z | 2019-05-09T03:18:02.000Z | '''
Harvester for the UTC Scholar for the SHARE project
Example API call: http://scholar.utc.edu/do/oai/?verb=ListRecords&metadataPrefix=oai_dc
'''
from __future__ import unicode_literals
from scrapi.base import OAIHarvester
class Ut_chattanoogaHarvester(OAIHarvester):
short_name = 'ut_chattanooga'
long_nam... | 26.92 | 116 | 0.69688 | 82 | 673 | 5.54878 | 0.695122 | 0.072527 | 0.092308 | 0.112088 | 0.147253 | 0.096703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172363 | 673 | 24 | 117 | 28.041667 | 0.816876 | 0.208024 | 0 | 0 | 0 | 0 | 0.348571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.769231 | 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 |
a4435ed87ce9814b910ab351b43b3592b6c3012b | 700 | py | Python | exercicios3/ex077.py | LuanGermano/Mundo-3-Curso-em-Video-Python | 1dffda71ff769e4e901b85e4cca5595a5dbb545c | [
"MIT"
] | null | null | null | exercicios3/ex077.py | LuanGermano/Mundo-3-Curso-em-Video-Python | 1dffda71ff769e4e901b85e4cca5595a5dbb545c | [
"MIT"
] | null | null | null | exercicios3/ex077.py | LuanGermano/Mundo-3-Curso-em-Video-Python | 1dffda71ff769e4e901b85e4cca5595a5dbb545c | [
"MIT"
] | null | null | null | #Crie um programa que tenha uma tupla com VARIAS PALAVRAS.
# Depois disso vc deve mostrar, para cada palavra, quais sao suas vogais.
palavras = ('Olho', 'Cabeça', 'ombro', 'Joelho', 'pe', 'boca', 'nariz', 'mao', 'cotovelo', 'pescoço')
for p in palavras:
print('\n', '-=-' * 15)
print(f'A palavra {str(p).title()}... | 31.818182 | 101 | 0.564286 | 110 | 700 | 3.590909 | 0.536364 | 0.04557 | 0.081013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.228571 | 700 | 21 | 102 | 33.333333 | 0.727778 | 0.184286 | 0 | 0 | 0 | 0 | 0.345566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a44a1d809d2818001583d5e3e97f4abfef4eb675 | 7,490 | py | Python | motorsPlusPlus.py | deadrobots/Lego-17 | 3ede3c23e0395beed52ad50bbf1cd2ecf5a38845 | [
"MIT"
] | null | null | null | motorsPlusPlus.py | deadrobots/Lego-17 | 3ede3c23e0395beed52ad50bbf1cd2ecf5a38845 | [
"MIT"
] | null | null | null | motorsPlusPlus.py | deadrobots/Lego-17 | 3ede3c23e0395beed52ad50bbf1cd2ecf5a38845 | [
"MIT"
] | null | null | null | '''
Created on Aug 7, 2016
@author: graysonelias
'''
'''
This module tries to provide more accurate motor commands.
It requires boolean "isClone", integer "LMOTOR", and integer "RMOTOR" from a "constants" module.
These values refer to prime/clone status, the left motor's port, and the right motor's port respectively.
... | 32.008547 | 139 | 0.64486 | 945 | 7,490 | 4.918519 | 0.203175 | 0.038726 | 0.047332 | 0.039587 | 0.436102 | 0.401893 | 0.373279 | 0.35994 | 0.325732 | 0.291093 | 0 | 0.022801 | 0.256342 | 7,490 | 233 | 140 | 32.145923 | 0.81167 | 0.098398 | 0 | 0.464481 | 0 | 0 | 0.05605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021858 | 0.071038 | null | null | 0.131148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a452d98cacb596fa100a4011b3ff6c27634cd324 | 152 | py | Python | kg_efk/__init__.py | RangelReale/kg_efk | 2854564977cf69189018f4cdaeb51e564cb7ac2d | [
"MIT"
] | null | null | null | kg_efk/__init__.py | RangelReale/kg_efk | 2854564977cf69189018f4cdaeb51e564cb7ac2d | [
"MIT"
] | null | null | null | kg_efk/__init__.py | RangelReale/kg_efk | 2854564977cf69189018f4cdaeb51e564cb7ac2d | [
"MIT"
] | null | null | null | from .builder import (
EFKBuilder
)
from .option import (
EFKOptions
)
__version__ = "0.8.2"
__all__ = [
'EFKOptions',
'EFKBuilder',
] | 11.692308 | 22 | 0.618421 | 15 | 152 | 5.733333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.25 | 152 | 13 | 23 | 11.692308 | 0.72807 | 0 | 0 | 0 | 0 | 0 | 0.163399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a45ade989adc73581c1e33fa0dede5790eeac044 | 865 | py | Python | src/backend/expungeservice/models/charge_types/unclassified_charge.py | KentShikama/recordexpungPDX | 4d3d14339e9f408ae466b867615101bdee42e98b | [
"MIT"
] | null | null | null | src/backend/expungeservice/models/charge_types/unclassified_charge.py | KentShikama/recordexpungPDX | 4d3d14339e9f408ae466b867615101bdee42e98b | [
"MIT"
] | null | null | null | src/backend/expungeservice/models/charge_types/unclassified_charge.py | KentShikama/recordexpungPDX | 4d3d14339e9f408ae466b867615101bdee42e98b | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from expungeservice.models.charge import Charge
from expungeservice.models.expungement_result import TypeEligibility, EligibilityStatus
@dataclass(frozen=True)
class UnclassifiedCharge(Charge):
type_name: str = "Unclassified"
expungement_rules: str = (
"""RecordSpong... | 41.190476 | 320 | 0.764162 | 103 | 865 | 6.330097 | 0.679612 | 0.055215 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183815 | 865 | 20 | 321 | 43.25 | 0.923513 | 0 | 0 | 0 | 0 | 0 | 0.103074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 1 |
a45e20b40bc6071f58cc4541775b5f3cf88be687 | 875 | py | Python | proso_subscription/urls.py | adaptive-learning/proso-apps | 58c95ebb4da1207de8972237c383489575ce2a20 | [
"MIT"
] | 2 | 2015-11-14T15:02:57.000Z | 2017-04-26T10:42:20.000Z | proso_subscription/urls.py | adaptive-learning/proso-apps | 58c95ebb4da1207de8972237c383489575ce2a20 | [
"MIT"
] | 175 | 2015-01-19T19:02:10.000Z | 2022-03-11T23:17:08.000Z | proso_subscription/urls.py | adaptive-learning/proso-apps | 58c95ebb4da1207de8972237c383489575ce2a20 | [
"MIT"
] | 11 | 2016-03-02T19:49:08.000Z | 2020-06-22T10:01:12.000Z | from django.conf.urls import patterns, url
from django.views.decorators.csrf import ensure_csrf_cookie
from django.views.generic import TemplateView
urlpatterns = patterns(
'proso_subscription.views',
url(r'^(|home)$', ensure_csrf_cookie(TemplateView.as_view(template_name="subscription_home.html")), name='sub... | 54.6875 | 130 | 0.745143 | 111 | 875 | 5.594595 | 0.378378 | 0.206119 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083429 | 875 | 15 | 131 | 58.333333 | 0.774314 | 0 | 0 | 0 | 0 | 0 | 0.508571 | 0.324571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.