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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ade2a92f33cb85c6184573e8194b3c0fe1687423 | 876 | py | Python | data/single_dataset.py | t-martyniuk/DeblurGAN | 4b637bb0e19c446e7dbf63383eb5081a8c3b1804 | [
"BSD-3-Clause"
] | 10 | 2019-01-14T17:23:58.000Z | 2021-02-20T14:47:55.000Z | data/single_dataset.py | t-martyniuk/DeblurGAN | 4b637bb0e19c446e7dbf63383eb5081a8c3b1804 | [
"BSD-3-Clause"
] | 3 | 2019-05-31T09:15:21.000Z | 2021-03-31T08:30:17.000Z | data/single_dataset.py | t-martyniuk/DeblurGAN | 4b637bb0e19c446e7dbf63383eb5081a8c3b1804 | [
"BSD-3-Clause"
] | 1 | 2019-07-18T10:21:46.000Z | 2019-07-18T10:21:46.000Z | import os.path
import torchvision.transforms as transforms
from data.base_dataset import BaseDataset, get_transform
from data.image_folder import make_dataset
from PIL import Image
class SingleDataset(BaseDataset):
def initialize(self, config, filename):
self.config = config
self.filename = filena... | 25.028571 | 56 | 0.672374 | 119 | 876 | 4.697479 | 0.361345 | 0.064401 | 0.089445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230594 | 876 | 34 | 57 | 25.764706 | 0.829377 | 0 | 0 | 0 | 0 | 0 | 0.049087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0.086957 | 0.565217 | 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 |
ade6aea8077c686d0ca694dbe8adfa689a9ee4c5 | 9,115 | py | Python | gamecores/gamecores.py | pangjie/gamecores | 2e5eeca89690f216896d55f424302b3a6a7579d5 | [
"MIT"
] | null | null | null | gamecores/gamecores.py | pangjie/gamecores | 2e5eeca89690f216896d55f424302b3a6a7579d5 | [
"MIT"
] | null | null | null | gamecores/gamecores.py | pangjie/gamecores | 2e5eeca89690f216896d55f424302b3a6a7579d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from difflib import SequenceMatcher
from time import time, sleep, mktime, strptime
from datetime import datetime
import re
from shortuuid import uuid
from tinydb import *
import click
import requests
import cal_scrape_wiki as g
@click.group()
def cal():
... | 33.511029 | 76 | 0.544816 | 1,220 | 9,115 | 3.955738 | 0.218852 | 0.024244 | 0.012433 | 0.004973 | 0.188976 | 0.123291 | 0.070659 | 0.047866 | 0.012433 | 0 | 0 | 0.016986 | 0.295996 | 9,115 | 271 | 77 | 33.634686 | 0.735079 | 0.075151 | 0 | 0.11165 | 0 | 0 | 0.175584 | 0.006566 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048544 | null | null | 0.092233 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
adea359fffdfe1e7b6a538d50bf79e36d50b3f27 | 1,123 | py | Python | src/app/main.py | MohamedAfham/cough-detector-app | ee5998d96726d026f83ec4e3a649259bf49361cb | [
"Apache-2.0"
] | 2 | 2020-06-23T05:09:59.000Z | 2021-12-26T03:05:08.000Z | src/app/main.py | MohamedAfham/cough-detector-app | ee5998d96726d026f83ec4e3a649259bf49361cb | [
"Apache-2.0"
] | null | null | null | src/app/main.py | MohamedAfham/cough-detector-app | ee5998d96726d026f83ec4e3a649259bf49361cb | [
"Apache-2.0"
] | 1 | 2020-06-28T17:04:43.000Z | 2020-06-28T17:04:43.000Z | import sys
sys.path.append("./")
from threading import Thread
import logging
from modules.soundRecorder import SoundRecorder
from modules.soundReceiver import SoundReceiver
from modules.responder import Responder
from modules.processor import Processor
from recordSound.soundRecorder import record
from process.preProces... | 41.592593 | 141 | 0.793411 | 138 | 1,123 | 6.413043 | 0.384058 | 0.049718 | 0.042938 | 0.065537 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014141 | 0.118433 | 1,123 | 27 | 142 | 41.592593 | 0.879798 | 0.049866 | 0 | 0 | 0 | 0 | 0.047842 | 0.023452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.458333 | 0 | 0.458333 | 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 |
adeaace6a2abe1171c6ca21ef69ff548664cc0a3 | 450 | py | Python | backoffice/migrations/0022_auto_20210305_1456.py | mono57/verger.stock-mgmt | f8de21738f435f9dc2d604e0aa8187a81d04c50a | [
"MIT"
] | null | null | null | backoffice/migrations/0022_auto_20210305_1456.py | mono57/verger.stock-mgmt | f8de21738f435f9dc2d604e0aa8187a81d04c50a | [
"MIT"
] | 1 | 2021-02-23T15:54:30.000Z | 2021-02-23T15:54:30.000Z | backoffice/migrations/0022_auto_20210305_1456.py | mono57/verger.stock-mgmt | f8de21738f435f9dc2d604e0aa8187a81d04c50a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-05 14:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backoffice', '0021_auto_20210305_1455'),
]
operations = [
migrations.AlterField(
model_name='partitionformulla',
nam... | 23.684211 | 93 | 0.628889 | 49 | 450 | 5.632653 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098507 | 0.255556 | 450 | 18 | 94 | 25 | 0.725373 | 0.1 | 0 | 0 | 1 | 0 | 0.191067 | 0.057072 | 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 |
adf191a36171eaf951226b42c794016c3c01d81c | 1,077 | py | Python | evenement/models.py | Kgermando/catsr | 52da79130a4bb7c15b59e3690c8df8d23573d728 | [
"Apache-2.0"
] | null | null | null | evenement/models.py | Kgermando/catsr | 52da79130a4bb7c15b59e3690c8df8d23573d728 | [
"Apache-2.0"
] | null | null | null | evenement/models.py | Kgermando/catsr | 52da79130a4bb7c15b59e3690c8df8d23573d728 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.db.models.signals import pre_save
from catsr.utils import unique_slug_generator_event
from tinymce import HTMLField
# Create your models here.
class Evenenement(models.Model):
titre_evenement = models.CharField(max_length=300)
slug = models.SlugField(blank=True, uniqu... | 37.137931 | 87 | 0.762303 | 146 | 1,077 | 5.376712 | 0.534247 | 0.035669 | 0.030573 | 0.061147 | 0.061147 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007609 | 0.145775 | 1,077 | 28 | 88 | 38.464286 | 0.845652 | 0.022284 | 0 | 0 | 0 | 0 | 0.079924 | 0.019981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0.047619 | 0.857143 | 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 |
adf6a122a47ad93d86dc2676641550e04bcc03cf | 2,515 | py | Python | src/example_2.py | MrMame/ShellGui | 3be31a3624917453847afb25daebab5afb302ad4 | [
"MIT"
] | null | null | null | src/example_2.py | MrMame/ShellGui | 3be31a3624917453847afb25daebab5afb302ad4 | [
"MIT"
] | null | null | null | src/example_2.py | MrMame/ShellGui | 3be31a3624917453847afb25daebab5afb302ad4 | [
"MIT"
] | null | null | null | """ Curses Wrapper
Problem : Wenn während der Ausführung von curses eine Ausnahme auftritt, bevor die Kommandozeile
wieder ordentlich zurückgesetzt wurde, ist die Darstellung der Ausgaben und Texte
Fehlerhaft oder werden garnicht angezeigt.
... | 61.341463 | 169 | 0.617097 | 306 | 2,515 | 5.065359 | 0.617647 | 0.02129 | 0.012903 | 0.023226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008459 | 0.341948 | 2,515 | 40 | 170 | 62.875 | 0.928097 | 0.816302 | 0 | 0 | 0 | 0 | 0.07309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
adf9edec57d5b6257f9263ed44f81741ea763f06 | 1,108 | py | Python | Organizer/comic_genre.py | bpepple/Comic-Organizer | 4b0ef15bd2f1309e5728637e3f182888b616af33 | [
"MIT"
] | null | null | null | Organizer/comic_genre.py | bpepple/Comic-Organizer | 4b0ef15bd2f1309e5728637e3f182888b616af33 | [
"MIT"
] | null | null | null | Organizer/comic_genre.py | bpepple/Comic-Organizer | 4b0ef15bd2f1309e5728637e3f182888b616af33 | [
"MIT"
] | null | null | null | import logging
from enum import auto, Enum
from typing import Optional
LOGGER = logging.getLogger(__name__)
class ComicGenre(Enum):
SUPERHERO = auto()
COMEDY = auto()
CHILDRENS = auto()
ROMANCE = auto()
VIDEO_GAMES = auto()
def __repr__(self):
return self.__str__()
def __str__(s... | 29.157895 | 85 | 0.590253 | 131 | 1,108 | 4.801527 | 0.358779 | 0.055644 | 0.09539 | 0.111288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261733 | 1,108 | 37 | 86 | 29.945946 | 0.768949 | 0 | 0 | 0 | 0 | 0 | 0.150722 | 0.030686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 0.1 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
adfc85bd8342ad75fb9eab35b4680a385dcb9ac2 | 1,170 | py | Python | enrich_data.py | banduri/whodata | 413480846a71546dcc2adaa2aa15cf8423228f8d | [
"CC0-1.0"
] | null | null | null | enrich_data.py | banduri/whodata | 413480846a71546dcc2adaa2aa15cf8423228f8d | [
"CC0-1.0"
] | null | null | null | enrich_data.py | banduri/whodata | 413480846a71546dcc2adaa2aa15cf8423228f8d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
import json
with open("without_china.json") as fd:
data = json.load(fd)
for i,o in enumerate(data):
data[i]['active_confirmed_infections']=o['cumultative_confirmed_cases']-o['cumultative_deaths']
if (o['cumultative_confirmed_cases'] > 0) and (o['cumultative_confirmed_cases'] !=... | 41.785714 | 127 | 0.664957 | 165 | 1,170 | 4.436364 | 0.218182 | 0.196721 | 0.172131 | 0.213115 | 0.561475 | 0.486339 | 0.439891 | 0.439891 | 0.259563 | 0.259563 | 0 | 0.01006 | 0.150427 | 1,170 | 27 | 128 | 43.333333 | 0.726358 | 0.017094 | 0 | 0.1 | 0 | 0 | 0.509138 | 0.237598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
bc0121a1a2dbfcdde95725bde491477dcb485b1f | 1,519 | py | Python | Super_users/migrations/0006_auto_20180520_1356.py | amirhRahimi1993/info | 29e3e356e37d37415c4fb708185c9448f36d33ca | [
"Apache-2.0"
] | null | null | null | Super_users/migrations/0006_auto_20180520_1356.py | amirhRahimi1993/info | 29e3e356e37d37415c4fb708185c9448f36d33ca | [
"Apache-2.0"
] | null | null | null | Super_users/migrations/0006_auto_20180520_1356.py | amirhRahimi1993/info | 29e3e356e37d37415c4fb708185c9448f36d33ca | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.2 on 2018-05-20 13:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Super_users', '0005_dr_info_dr_special'),
]
operations = [
migrations.RemoveField(
model_name='... | 31 | 117 | 0.579329 | 162 | 1,519 | 5.216049 | 0.388889 | 0.092308 | 0.091124 | 0.12426 | 0.499408 | 0.457988 | 0.433136 | 0.266272 | 0.125444 | 0.125444 | 0 | 0.031746 | 0.294931 | 1,519 | 48 | 118 | 31.645833 | 0.757236 | 0.029625 | 0 | 0.47619 | 1 | 0 | 0.169837 | 0.066576 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.119048 | 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 |
bc04ff8cb8d6e64d4eed1e1e8ebb35e9fdd8a9a7 | 4,461 | py | Python | dao/notificacao_usuario_dao.py | lucianoanjos02/Choco-Stock-System-CSS | 767e3827c8a68ea1620a0645daff3fae6076db8d | [
"Apache-2.0"
] | null | null | null | dao/notificacao_usuario_dao.py | lucianoanjos02/Choco-Stock-System-CSS | 767e3827c8a68ea1620a0645daff3fae6076db8d | [
"Apache-2.0"
] | null | null | null | dao/notificacao_usuario_dao.py | lucianoanjos02/Choco-Stock-System-CSS | 767e3827c8a68ea1620a0645daff3fae6076db8d | [
"Apache-2.0"
] | null | null | null | from database import db_session
from models.notificacao_usuario import NotificacaoUsuario
class NotificacaoUsuarioDAO:
'''
CLASSE NotificacaoUsuarioDAO - IMPLEMENTA O ACESSO AO BANCO RELACIONADO A CLASSE
NotificacaoUsuario DO MÓDULO models.py QUE MAPEIA A TABELA TNotificacaoUsuario
@autor... | 39.131579 | 183 | 0.630576 | 496 | 4,461 | 5.453629 | 0.247984 | 0.04658 | 0.043993 | 0.059519 | 0.468022 | 0.41183 | 0.395194 | 0.295379 | 0.281331 | 0.190388 | 0 | 0.026032 | 0.29388 | 4,461 | 114 | 184 | 39.131579 | 0.832698 | 0.312486 | 0 | 0.431373 | 0 | 0 | 0.096648 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.137255 | false | 0 | 0.039216 | 0 | 0.313725 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc0a9b8ea4321b8003a00eb106818de3ddfefa67 | 1,354 | py | Python | clitool/core/base/BaseTask.py | baimingjiang/clitool | 100e3f54cd313a3d7609b9bad73da85a4d54318e | [
"MIT"
] | 1 | 2019-11-13T13:39:24.000Z | 2019-11-13T13:39:24.000Z | clitool/core/base/BaseTask.py | baimingjiang/clitool | 100e3f54cd313a3d7609b9bad73da85a4d54318e | [
"MIT"
] | null | null | null | clitool/core/base/BaseTask.py | baimingjiang/clitool | 100e3f54cd313a3d7609b9bad73da85a4d54318e | [
"MIT"
] | null | null | null | #coding=utf-8
import time
import logging
from progressbar import AnimatedMarker, Bar, BouncingBar, Counter, ETA, \
FileTransferSpeed, FormatLabel, Percentage, \
ProgressBar, ReverseBar, RotatingMarker, \
SimpleProgress, Timer, AdaptiveETA, AbsoluteETA, AdaptiveTransferSpeed
from clitool.core.base.BaseObj... | 23.754386 | 126 | 0.604136 | 137 | 1,354 | 5.737226 | 0.510949 | 0.026718 | 0.02799 | 0.035623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006244 | 0.290251 | 1,354 | 56 | 127 | 24.178571 | 0.811655 | 0.023634 | 0 | 0.075 | 0 | 0 | 0.007576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.075 | 0.1 | 0 | 0.375 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bc1601622f73bf2bab35496eab21eaf272b770d8 | 13,441 | py | Python | crsg/crsg.py | davidgcameron/scripts | 5cd8dcbe2e0b63dd501de2434bfc417e211ec1e7 | [
"Apache-2.0"
] | null | null | null | crsg/crsg.py | davidgcameron/scripts | 5cd8dcbe2e0b63dd501de2434bfc417e211ec1e7 | [
"Apache-2.0"
] | null | null | null | crsg/crsg.py | davidgcameron/scripts | 5cd8dcbe2e0b63dd501de2434bfc417e211ec1e7 | [
"Apache-2.0"
] | null | null | null | # Script written by Aleksandr Alekseev
# Original source https://gitlab.cern.ch/atlas-adc-monitoring/grafana-api/-/blob/master/Examples/CRSG%20report/Scripts/crsg.py
#
# Before using, add the grafana access token below (where is says FIX ME)
# The token can be found at the above location
import json
import pytz
import... | 44.803333 | 1,080 | 0.522357 | 1,274 | 13,441 | 5.267661 | 0.176609 | 0.067203 | 0.031292 | 0.02861 | 0.462375 | 0.424527 | 0.384592 | 0.37297 | 0.326628 | 0.26613 | 0 | 0.022941 | 0.351388 | 13,441 | 299 | 1,081 | 44.953177 | 0.746846 | 0.028123 | 0 | 0.376984 | 0 | 0.007937 | 0.243738 | 0.123248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.027778 | 0 | 0.051587 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc1e43ebead0141d089d0581fbee0b883097b2ab | 13,078 | py | Python | test/unit/objects/test_dataset.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 73 | 2016-01-28T05:02:05.000Z | 2022-03-30T07:46:33.000Z | test/unit/objects/test_dataset.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 113 | 2016-02-25T15:32:18.000Z | 2022-03-31T13:18:13.000Z | test/unit/objects/test_dataset.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 41 | 2016-03-15T19:32:07.000Z | 2022-02-16T10:22:05.000Z | import pickle
from collections import OrderedDict
import numpy as np
import pygsti.circuits as pc
from pygsti.baseobjs import outcomelabeldict as ld
from pygsti.circuits import Circuit
from pygsti.data import DataSet
from ..util import BaseCase
class DataSetTester(BaseCase):
def setUp(self):
self.gstrs ... | 38.922619 | 131 | 0.601239 | 1,674 | 13,078 | 4.501792 | 0.14098 | 0.046975 | 0.069666 | 0.079618 | 0.527601 | 0.428609 | 0.333997 | 0.17914 | 0.112261 | 0.088508 | 0 | 0.029586 | 0.250497 | 13,078 | 335 | 132 | 39.038806 | 0.739237 | 0.084187 | 0 | 0.193277 | 0 | 0 | 0.024217 | 0 | 0 | 0 | 0 | 0.002985 | 0.142857 | 1 | 0.239496 | false | 0 | 0.033613 | 0 | 0.306723 | 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 |
bc2350c56428b609c288259b155789dde770485b | 1,473 | py | Python | src/sortingandsearching/maximal_subarray_sum_2.py | seahrh/cses-problem-set-python | 53e8dba200893cc13a0f7b66fc18e55fa0af137a | [
"MIT"
] | null | null | null | src/sortingandsearching/maximal_subarray_sum_2.py | seahrh/cses-problem-set-python | 53e8dba200893cc13a0f7b66fc18e55fa0af137a | [
"MIT"
] | null | null | null | src/sortingandsearching/maximal_subarray_sum_2.py | seahrh/cses-problem-set-python | 53e8dba200893cc13a0f7b66fc18e55fa0af137a | [
"MIT"
] | null | null | null | """
Given an array of n integers, find the maximum sum of values in a contiguous subarray with length between a and b.
Input
The first input line has three integers n, a and b: the size of the array and the minimum and maximum subarray length.
The second line has n integers x1,x2,…,xn: the array values.
Output
Pr... | 26.781818 | 119 | 0.57909 | 254 | 1,473 | 3.26378 | 0.405512 | 0.028951 | 0.012063 | 0.028951 | 0.048251 | 0.048251 | 0.048251 | 0 | 0 | 0 | 0 | 0.040117 | 0.306178 | 1,473 | 54 | 120 | 27.277778 | 0.759296 | 0.43313 | 0 | 0.222222 | 0 | 0 | 0.040103 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
bc23f56aaff49137212841901149923367f84fe2 | 1,060 | py | Python | tests/test_split_criterion.py | zgw21cn/slimgbm | 576430b7122be1624842b92e89cccda64626eda1 | [
"MIT"
] | 1 | 2017-11-17T13:54:55.000Z | 2017-11-17T13:54:55.000Z | tests/test_split_criterion.py | zgw21cn/slimgbm | 576430b7122be1624842b92e89cccda64626eda1 | [
"MIT"
] | null | null | null | tests/test_split_criterion.py | zgw21cn/slimgbm | 576430b7122be1624842b92e89cccda64626eda1 | [
"MIT"
] | null | null | null | import numpy as np
from tests.split_criterion import xgb_score,mse_score,entropy_score,xgb_score_gain,mse_score_gain,entropy_score_gain
from tensorboost.src.loss import SquareLoss,CustomizeLoss
def square_loss(pred, y):
return 0.5*(y-pred)**2
print "--- score ---"
preds = np.array([15.0,9.0,17.0,15.0])
labels =... | 30.285714 | 116 | 0.764151 | 198 | 1,060 | 3.868687 | 0.20202 | 0.082245 | 0.036554 | 0.031332 | 0.330287 | 0.321149 | 0.24282 | 0.24282 | 0.24282 | 0.125326 | 0 | 0.0818 | 0.077358 | 1,060 | 34 | 117 | 31.176471 | 0.701431 | 0 | 0 | 0 | 0 | 0 | 0.029273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.391304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc29ece3568d5074481699cbf8e51122338e22fd | 5,087 | py | Python | lib/bgp/log.py | ericchenth/ericcac-test | 579cb72dac6f6db0e6a8c4a62bea639d8a465ac1 | [
"BSD-3-Clause"
] | null | null | null | lib/bgp/log.py | ericchenth/ericcac-test | 579cb72dac6f6db0e6a8c4a62bea639d8a465ac1 | [
"BSD-3-Clause"
] | null | null | null | lib/bgp/log.py | ericchenth/ericcac-test | 579cb72dac6f6db0e6a8c4a62bea639d8a465ac1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
utils.py
Created by Thomas Mangin on 2009-09-06.
Copyright (c) 2009-2011 Exa Networks. All rights reserved.
"""
import os
import sys
import time
import logging
import logging.handlers
class _Logger (object):
_instance = None
_syslog = None
# we use os.pid everytime as ... | 30.279762 | 100 | 0.694122 | 731 | 5,087 | 4.711354 | 0.229822 | 0.051103 | 0.034843 | 0.066783 | 0.368757 | 0.356272 | 0.226771 | 0.191928 | 0.158827 | 0.158827 | 0 | 0.013124 | 0.161195 | 5,087 | 167 | 101 | 30.461078 | 0.794 | 0.12876 | 0 | 0.205128 | 0 | 0 | 0.105043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042735 | null | null | 0.042735 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc2d0f8f6d2573d43129377dc5c4fc2f574dfbbd | 3,725 | py | Python | examples/planet.py | christian-rauch/noise | bb32991ab97e90882d0e46e578060717c5b90dc5 | [
"MIT"
] | 329 | 2015-01-29T16:04:29.000Z | 2022-03-21T17:01:16.000Z | examples/planet.py | christian-rauch/noise | bb32991ab97e90882d0e46e578060717c5b90dc5 | [
"MIT"
] | 25 | 2015-09-01T14:49:33.000Z | 2022-02-20T09:02:42.000Z | examples/planet.py | christian-rauch/noise | bb32991ab97e90882d0e46e578060717c5b90dc5 | [
"MIT"
] | 86 | 2015-03-05T09:24:20.000Z | 2022-03-16T02:07:58.000Z | #!/usr/bin/env python
"""Offline procedural planet texture generator using Perlin noise
A 2D atmospheric texture is generated at startup and stored.
This is then used to shade the planet sphere with simple lighting.
The mouse can be used to rotate the planet axis. Notice the
pinching distortion near the poles due t... | 28.875969 | 90 | 0.689664 | 638 | 3,725 | 3.88558 | 0.318182 | 0.016942 | 0.010891 | 0.041952 | 0.156111 | 0.139976 | 0.110125 | 0.080274 | 0.045583 | 0.045583 | 0 | 0.083039 | 0.162685 | 3,725 | 128 | 91 | 29.101563 | 0.711767 | 0.099866 | 0 | 0.070707 | 1 | 0 | 0.002391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.070707 | 0 | 0.161616 | 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 |
bc2e65db4f22ff6c68b114e63c516729de5ec420 | 7,292 | py | Python | uicomplete.py | pralaymandal/UDOWN | 3c023dec26b79ea397f245baa47c30bcf39384ff | [
"MIT"
] | null | null | null | uicomplete.py | pralaymandal/UDOWN | 3c023dec26b79ea397f245baa47c30bcf39384ff | [
"MIT"
] | null | null | null | uicomplete.py | pralaymandal/UDOWN | 3c023dec26b79ea397f245baa47c30bcf39384ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ytgui.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from ytcode import Youtube
import pytube
class Ui_YtGUI(object):
def __init__(se... | 42.894118 | 121 | 0.667581 | 809 | 7,292 | 5.899876 | 0.222497 | 0.041483 | 0.039807 | 0.035198 | 0.325791 | 0.298973 | 0.187723 | 0.14582 | 0.100356 | 0.100356 | 0 | 0.024713 | 0.212013 | 7,292 | 169 | 122 | 43.147929 | 0.805952 | 0.100247 | 0 | 0.134921 | 1 | 0.007937 | 0.083333 | 0.005046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.02381 | 0 | 0.087302 | 0.015873 | 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 |
bc2fbdcc02ffad09b58b71ac8e893e22767cf77f | 1,173 | py | Python | src/pages/migrations/0002_team.py | snhasan/sandeep | f8725948c3ccf79091c3f249fc8d419c940ba12f | [
"bzip2-1.0.6"
] | null | null | null | src/pages/migrations/0002_team.py | snhasan/sandeep | f8725948c3ccf79091c3f249fc8d419c940ba12f | [
"bzip2-1.0.6"
] | null | null | null | src/pages/migrations/0002_team.py | snhasan/sandeep | f8725948c3ccf79091c3f249fc8d419c940ba12f | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.0.7 on 2020-07-16 03:41
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Team',
fields=[
... | 39.1 | 114 | 0.589088 | 125 | 1,173 | 5.44 | 0.496 | 0.092647 | 0.088235 | 0.105882 | 0.273529 | 0.194118 | 0.194118 | 0.194118 | 0.194118 | 0 | 0 | 0.042775 | 0.262575 | 1,173 | 29 | 115 | 40.448276 | 0.743353 | 0.038363 | 0 | 0 | 1 | 0 | 0.076377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc31169866336e34a9bed2d0e5bbb823755e10bc | 3,057 | py | Python | IndyAV/simulation/indyav_gazebo/scripts/generate_racetrack.py | RishiKumarRay/mil | f3746a91e68aac713e86b380cdda8852ba826170 | [
"MIT"
] | 27 | 2020-02-17T21:54:09.000Z | 2022-03-18T17:49:23.000Z | IndyAV/simulation/indyav_gazebo/scripts/generate_racetrack.py | RishiKumarRay/mil | f3746a91e68aac713e86b380cdda8852ba826170 | [
"MIT"
] | 325 | 2019-09-11T14:13:56.000Z | 2022-03-31T00:38:30.000Z | IndyAV/simulation/indyav_gazebo/scripts/generate_racetrack.py | RishiKumarRay/mil | f3746a91e68aac713e86b380cdda8852ba826170 | [
"MIT"
] | 24 | 2019-09-16T00:29:45.000Z | 2022-03-06T10:56:38.000Z | #!/usr/bin/env python3
import yaml
import argparse
import numpy as np
import matplotlib.pyplot as plt
parser = argparse.ArgumentParser(
description='Generates the points down the centerline of a reace track given specified by a yaml file')
# get input yaml specifying racetrack
parser.add_argument(
'input_file'... | 34.348315 | 107 | 0.588158 | 394 | 3,057 | 4.449239 | 0.324873 | 0.034227 | 0.045636 | 0.014832 | 0.116372 | 0.06275 | 0.03765 | 0.03765 | 0.03765 | 0 | 0 | 0.013614 | 0.255152 | 3,057 | 88 | 108 | 34.738636 | 0.756258 | 0.068041 | 0 | 0.026667 | 1 | 0 | 0.221675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.053333 | 0 | 0.106667 | 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 |
bc31db593a4166db3aa2fe33eb2566d7eba07d5d | 376 | gyp | Python | binding.gyp | snaplingo-org/xfy-node | d86b7d5b2ee93c97a3d707e699332b34e4972539 | [
"0BSD"
] | 6 | 2017-06-13T11:14:23.000Z | 2017-11-07T08:24:08.000Z | binding.gyp | snaplingo-org/xfy-node | d86b7d5b2ee93c97a3d707e699332b34e4972539 | [
"0BSD"
] | 1 | 2017-07-31T09:21:19.000Z | 2017-08-04T05:59:48.000Z | binding.gyp | snaplingo-org/xfy-node | d86b7d5b2ee93c97a3d707e699332b34e4972539 | [
"0BSD"
] | 4 | 2017-09-04T08:37:18.000Z | 2017-10-31T03:16:58.000Z | {
"targets": [
{
"target_name": "xfyun",
"sources": ["src/xfyun.cc"],
"libraries": ["/opt/xfy-sdk/libs/x64/libmsc.so"],
"include_dirs": [
"./src/sdk/include",
"<!(node -e \"require('nan')\")"
],
"cflags":... | 25.066667 | 61 | 0.367021 | 31 | 376 | 4.387097 | 0.806452 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.404255 | 376 | 14 | 62 | 26.857143 | 0.598214 | 0 | 0 | 0 | 0 | 0 | 0.417553 | 0.082447 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc31f898d041abb2a2895880e194ec2994e53939 | 1,843 | py | Python | pseudo_cms/south_migrations/0003_populating_body_html.py | madisona/django-pseudo-cms | d99d4e3b4b1fb543e4e31192236a5d502ee98984 | [
"BSD-3-Clause"
] | 1 | 2015-04-10T10:48:15.000Z | 2015-04-10T10:48:15.000Z | pseudo_cms/south_migrations/0003_populating_body_html.py | madisona/django-pseudo-cms | d99d4e3b4b1fb543e4e31192236a5d502ee98984 | [
"BSD-3-Clause"
] | null | null | null | pseudo_cms/south_migrations/0003_populating_body_html.py | madisona/django-pseudo-cms | d99d4e3b4b1fb543e4e31192236a5d502ee98984 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from pseudo_cms.utils import convert_to_html
class Migration(DataMigration):
def forwards(self, orm):
# saving will force the conversion of body content to body_html
for... | 32.333333 | 75 | 0.492132 | 176 | 1,843 | 5.017045 | 0.4375 | 0.08154 | 0.12684 | 0.1812 | 0.271801 | 0.14043 | 0.14043 | 0.097395 | 0 | 0 | 0 | 0.014975 | 0.347803 | 1,843 | 56 | 76 | 32.910714 | 0.719634 | 0.064569 | 0 | 0.166667 | 0 | 0 | 0.336369 | 0.170176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.104167 | 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 |
bc32767b0cb84e011d2de48197a9be79a4faae5e | 3,338 | py | Python | tests/serialisation/test_integer.py | DavidMinarsch/ledger-api-py | 83bcae0bbe140b05e9413f4a5240b4a9b1cd6dc3 | [
"Apache-2.0"
] | 24 | 2019-03-06T03:58:28.000Z | 2022-01-16T07:23:44.000Z | tests/serialisation/test_integer.py | DavidMinarsch/ledger-api-py | 83bcae0bbe140b05e9413f4a5240b4a9b1cd6dc3 | [
"Apache-2.0"
] | 39 | 2019-05-31T16:38:33.000Z | 2021-11-18T10:46:41.000Z | tests/serialisation/test_integer.py | DavidMinarsch/ledger-api-py | 83bcae0bbe140b05e9413f4a5240b4a9b1cd6dc3 | [
"Apache-2.0"
] | 22 | 2019-02-20T18:16:22.000Z | 2021-11-20T21:24:29.000Z | import io
from fetchai.ledger.serialisation.integer import encode, decode
from .common import SerialisationUnitTest
class IntegerSerialisationTests(SerialisationUnitTest):
def test_small_unsigned_encode(self):
buffer = io.BytesIO()
encode(buffer, 4)
self.assertIsEncoded(buffer, '04')
... | 31.196262 | 63 | 0.672259 | 363 | 3,338 | 5.947658 | 0.157025 | 0.068087 | 0.076424 | 0.083372 | 0.723483 | 0.680871 | 0.680871 | 0.48541 | 0.323298 | 0.323298 | 0 | 0.054419 | 0.223787 | 3,338 | 106 | 64 | 31.490566 | 0.77885 | 0.009587 | 0 | 0.139241 | 0 | 0 | 0.048441 | 0 | 0 | 0 | 0.046019 | 0 | 0.265823 | 1 | 0.265823 | false | 0 | 0.037975 | 0 | 0.316456 | 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 |
bc369fd658cf4333caf748863607c4cd32d62aad | 285 | py | Python | util.py | jeongchans/smrf | 3e7cc792c78f47a6ce87e86abec9a8980122f56d | [
"MIT"
] | 3 | 2017-07-06T16:29:22.000Z | 2022-02-17T03:53:39.000Z | util.py | jeongchans/smrf | 3e7cc792c78f47a6ce87e86abec9a8980122f56d | [
"MIT"
] | null | null | null | util.py | jeongchans/smrf | 3e7cc792c78f47a6ce87e86abec9a8980122f56d | [
"MIT"
] | null | null | null | import os.path
import sys
import time
def open_file(filename):
return open(filename)
def write_file(buf, filename):
fp = sys.stdout if filename == "stdout" else open(filename, 'w')
fp.write(buf)
fp.close()
def message(msg):
print '[%s] %s'%(time.asctime(), msg)
| 19 | 68 | 0.659649 | 43 | 285 | 4.325581 | 0.534884 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189474 | 285 | 14 | 69 | 20.357143 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.049123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc39258e7c1eca8fee4e2a0872f5ee7cf342c699 | 4,291 | py | Python | Documents/Automation/ManagedInstance/Documents/Lambdas/create_instance_profile.py | samhays/aws-systems-manager | 0547fc6d6bcab4039123a5e3cd86dbb440c61d0a | [
"MIT-0"
] | 1 | 2021-02-28T13:13:05.000Z | 2021-02-28T13:13:05.000Z | Documents/Automation/ManagedInstance/Documents/Lambdas/create_instance_profile.py | samhays/aws-systems-manager | 0547fc6d6bcab4039123a5e3cd86dbb440c61d0a | [
"MIT-0"
] | null | null | null | Documents/Automation/ManagedInstance/Documents/Lambdas/create_instance_profile.py | samhays/aws-systems-manager | 0547fc6d6bcab4039123a5e3cd86dbb440c61d0a | [
"MIT-0"
] | 1 | 2021-02-28T13:13:15.000Z | 2021-02-28T13:13:15.000Z | import json
import boto3
import cfnresponse
POLICY_ARNS = ['arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM']
def handler_create(event, context):
name = event["ResourceProperties"].get("InstanceProfileName", None)
iam = boto3.client('iam')
try:
if name is None:
raise Excepti... | 32.022388 | 101 | 0.618038 | 443 | 4,291 | 5.839729 | 0.259594 | 0.06494 | 0.071125 | 0.073058 | 0.378044 | 0.286819 | 0.173947 | 0.1523 | 0.117124 | 0.050251 | 0 | 0.005107 | 0.269867 | 4,291 | 133 | 102 | 32.263158 | 0.820619 | 0.011186 | 0 | 0.223301 | 0 | 0 | 0.139623 | 0.013208 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009709 | 0.029126 | null | null | 0.087379 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc3d1c05139ac0208ac3db166f5626ade0ab3a70 | 2,366 | py | Python | IBA/scripts/generate_small_imagenet.py | YaNgZhAnG-V5/covid-attribution | b3cb2efe6de9db79ab68f0d7c3d1264d2cfab030 | [
"MIT"
] | 7 | 2021-04-05T16:08:48.000Z | 2022-02-23T09:20:52.000Z | IBA/scripts/generate_small_imagenet.py | YaNgZhAnG-V5/covid-attribution | b3cb2efe6de9db79ab68f0d7c3d1264d2cfab030 | [
"MIT"
] | 1 | 2021-09-16T16:46:22.000Z | 2021-09-16T16:46:22.000Z | IBA/scripts/generate_small_imagenet.py | YaNgZhAnG-V5/covid-attribution | b3cb2efe6de9db79ab68f0d7c3d1264d2cfab030 | [
"MIT"
] | null | null | null | ############################################################
# This Python script generates folder structure for torchvision.datasets.DatasetFolder
# Each subfolder contains all images of same class (label)
# usage python reorder_imagenet.py -p $imagenet_path -gt $ground_truth
##########################################... | 42.25 | 109 | 0.640744 | 292 | 2,366 | 5 | 0.380137 | 0.115068 | 0.05137 | 0.036986 | 0.306849 | 0.268493 | 0.19863 | 0.160274 | 0.10411 | 0.10411 | 0 | 0.004294 | 0.212595 | 2,366 | 56 | 110 | 42.25 | 0.779388 | 0.124683 | 0 | 0.142857 | 1 | 0 | 0.202057 | 0.036504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.190476 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70aec15688557631d3793ed0802ff32895551de2 | 7,361 | py | Python | app/account_routes.py | SiwyKrzysiek/shielded-notes | c8b2b4e8458bce4f0251d463d8fd070765d3e77f | [
"MIT"
] | null | null | null | app/account_routes.py | SiwyKrzysiek/shielded-notes | c8b2b4e8458bce4f0251d463d8fd070765d3e77f | [
"MIT"
] | 1 | 2021-06-02T00:52:39.000Z | 2021-06-02T00:52:39.000Z | app/account_routes.py | SiwyKrzysiek/shielded-notes | c8b2b4e8458bce4f0251d463d8fd070765d3e77f | [
"MIT"
] | null | null | null | """Routes connected to users accounts"""
from flask import Blueprint, render_template, flash, redirect, url_for, request, session, current_app, abort
from flask_login import current_user, login_user, logout_user, login_required
from forms import RegisterForm, LoginForm, ChangePasswordForm, RecoverPasswordForm, ResetPa... | 32.570796 | 108 | 0.675452 | 922 | 7,361 | 5.21692 | 0.240781 | 0.012474 | 0.023285 | 0.029106 | 0.225364 | 0.172557 | 0.131393 | 0.110811 | 0.086486 | 0.02869 | 0 | 0.007024 | 0.207037 | 7,361 | 225 | 109 | 32.715556 | 0.817029 | 0.013721 | 0 | 0.216867 | 0 | 0 | 0.142601 | 0.022066 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.198795 | 0.072289 | 0 | 0.240964 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70b07dfb9d642d92dbe1f50b65c591741082db44 | 518 | py | Python | good_spot/users/migrations/0008_auto_20180603_1536.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | null | null | null | good_spot/users/migrations/0008_auto_20180603_1536.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | 5 | 2020-02-12T03:13:11.000Z | 2022-01-13T01:41:14.000Z | good_spot/users/migrations/0008_auto_20180603_1536.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-06-03 15:36
from __future__ import unicode_literals
from django.db import migrations
import sorl.thumbnail.fields
class Migration(migrations.Migration):
dependencies = [
('users', '0007_auto_20180603_1532'),
]
operations = [
m... | 23.545455 | 101 | 0.640927 | 60 | 518 | 5.366667 | 0.783333 | 0.080745 | 0.118012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083544 | 0.237452 | 518 | 21 | 102 | 24.666667 | 0.731646 | 0.131274 | 0 | 0 | 1 | 0 | 0.111857 | 0.051454 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70b1f65de1c89d01edb9ee2938ea0178b0bdf09a | 2,741 | py | Python | scripts/demo.py | masamasa9841/turtlebot_sweeping | 6d67e47647636cb88b83c285a328b64dc733e4e0 | [
"MIT"
] | null | null | null | scripts/demo.py | masamasa9841/turtlebot_sweeping | 6d67e47647636cb88b83c285a328b64dc733e4e0 | [
"MIT"
] | null | null | null | scripts/demo.py | masamasa9841/turtlebot_sweeping | 6d67e47647636cb88b83c285a328b64dc733e4e0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import colorsys
from visualization_msgs.msg import Marker
if __name__ == '__main__':
X_KOUSHI = 80
Y_KOUSHI = 80
rospy.init_node('demo')
pub3 = rospy.Publisher('z_mag', Marker, queue_size=1000)
read, x, y, mag = [], [], [], []
f = open... | 33.426829 | 85 | 0.507114 | 417 | 2,741 | 3.151079 | 0.239808 | 0.063927 | 0.03653 | 0.053272 | 0.320396 | 0.202435 | 0.202435 | 0.202435 | 0.202435 | 0.202435 | 0 | 0.058146 | 0.36629 | 2,741 | 81 | 86 | 33.839506 | 0.69833 | 0.015688 | 0 | 0.210526 | 0 | 0 | 0.013729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70b546dab4389e98bf69d6fbd97904c9f2aa8d32 | 10,112 | py | Python | scinoephile/ocr/__init__.py | KarlTDebiec/scinoephile | 5ccdf600bbe08c0902eefa7bfba814ad1937fc2c | [
"BSD-3-Clause"
] | 2 | 2019-02-14T12:14:17.000Z | 2020-07-06T07:11:30.000Z | scinoephile/ocr/__init__.py | KarlTDebiec/Scinoephile | 5ccdf600bbe08c0902eefa7bfba814ad1937fc2c | [
"BSD-3-Clause"
] | null | null | null | scinoephile/ocr/__init__.py | KarlTDebiec/Scinoephile | 5ccdf600bbe08c0902eefa7bfba814ad1937fc2c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# scinoephile.ocr.__init__.py
#
# Copyright (C) 2017-2019 Karl T Debiec
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD license. See the LICENSE file for details.
################################### MODULES #######... | 34.749141 | 79 | 0.587025 | 1,266 | 10,112 | 4.57109 | 0.251185 | 0.016589 | 0.015207 | 0.01296 | 0.214792 | 0.139623 | 0.104717 | 0.081908 | 0.055642 | 0.019699 | 0 | 0.02367 | 0.273042 | 10,112 | 290 | 80 | 34.868966 | 0.762889 | 0.289359 | 0 | 0.0625 | 0 | 0.041667 | 0.142685 | 0.071117 | 0 | 0 | 0 | 0.013793 | 0 | 1 | 0.048611 | false | 0.006944 | 0.131944 | 0 | 0.201389 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70b7cf385cd4e4f90da6fea360eecb7ee12d4ceb | 1,883 | py | Python | bouser/_compat.py | MarsStirner/bouser | 33bf759448fec4340581f1cc44e7b0b23a2c4e7a | [
"0BSD"
] | null | null | null | bouser/_compat.py | MarsStirner/bouser | 33bf759448fec4340581f1cc44e7b0b23a2c4e7a | [
"0BSD"
] | null | null | null | bouser/_compat.py | MarsStirner/bouser | 33bf759448fec4340581f1cc44e7b0b23a2c4e7a | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
import functools
import types
from twisted.internet import defer
__author__ = 'viruzzz-kun'
try:
import stackless
except ImportError:
stackless = None
class ReturnValue(object):
def __init__(self, value):
self.value = value
if stackless:
def block_on(deferred):
... | 25.794521 | 69 | 0.479023 | 169 | 1,883 | 5.213018 | 0.390533 | 0.068104 | 0.022701 | 0.040863 | 0.229285 | 0.229285 | 0.165721 | 0.165721 | 0.165721 | 0.165721 | 0 | 0.001869 | 0.431758 | 1,883 | 73 | 70 | 25.794521 | 0.821495 | 0.011152 | 0 | 0.310345 | 0 | 0 | 0.005911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086207 | 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 |
70bc9f6e2fddf6ca4e3a35bc6417e950677d5413 | 267 | py | Python | alchimia/__init__.py | alex/alchimia | 30e8c5974c2911ad7e675e015d270f041af8f2a8 | [
"MIT"
] | 55 | 2015-02-09T01:32:24.000Z | 2021-09-02T22:22:47.000Z | alchimia/__init__.py | alex/alchimia | 30e8c5974c2911ad7e675e015d270f041af8f2a8 | [
"MIT"
] | 29 | 2015-01-11T21:26:11.000Z | 2019-08-10T23:36:23.000Z | alchimia/__init__.py | alex/alchimia | 30e8c5974c2911ad7e675e015d270f041af8f2a8 | [
"MIT"
] | 17 | 2015-02-04T15:57:17.000Z | 2020-11-03T22:51:13.000Z | from __future__ import absolute_import, division
from alchimia.strategy import TWISTED_STRATEGY
from alchimia.engine import TwistedEngine
wrap_engine = TwistedEngine.from_sqlalchemy_engine
del TwistedEngine
__all__ = [
"TWISTED_STRATEGY",
"wrap_engine",
]
| 20.538462 | 50 | 0.816479 | 30 | 267 | 6.766667 | 0.466667 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131086 | 267 | 12 | 51 | 22.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
70c489679f8db01f222fa5fc84600d3b58c2f0cc | 1,003 | py | Python | strong_but_simple_passwords/__init__.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | 2 | 2021-04-04T03:44:16.000Z | 2021-06-04T13:50:29.000Z | strong_but_simple_passwords/__init__.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | null | null | null | strong_but_simple_passwords/__init__.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | 1 | 2021-08-28T03:35:36.000Z | 2021-08-28T03:35:36.000Z | from pathlib import Path
from flask import Flask
from flask_talisman import Talisman
from whitenoise import WhiteNoise
from . import views
from .config import get_config_from_env_vars
def create_app(config=None):
# don't use a static_folder since we will use whitenoise to serve the static files
app = Flask(... | 28.657143 | 86 | 0.720837 | 143 | 1,003 | 4.818182 | 0.468531 | 0.058055 | 0.037736 | 0.046444 | 0.058055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177468 | 1,003 | 34 | 87 | 29.5 | 0.835152 | 0.18345 | 0 | 0 | 0 | 0 | 0.09828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
70c5a25b8c603108f65ac5a409794a09a8a6f54a | 430 | py | Python | room_reservations/migrations/0002_roomreservation_is_cancelled.py | nahidsaikat/reservation | 7b4856b67072f90e2a126cc55c484e0d8bf601d4 | [
"MIT"
] | null | null | null | room_reservations/migrations/0002_roomreservation_is_cancelled.py | nahidsaikat/reservation | 7b4856b67072f90e2a126cc55c484e0d8bf601d4 | [
"MIT"
] | null | null | null | room_reservations/migrations/0002_roomreservation_is_cancelled.py | nahidsaikat/reservation | 7b4856b67072f90e2a126cc55c484e0d8bf601d4 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-10 04:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('room_reservations', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='roomreservation',
name='is_ca... | 22.631579 | 82 | 0.627907 | 45 | 430 | 5.866667 | 0.8 | 0.045455 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059748 | 0.260465 | 430 | 18 | 83 | 23.888889 | 0.77044 | 0.104651 | 0 | 0 | 1 | 0 | 0.177546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70d50903647dc329d475fac2167ef82a5b621034 | 549 | py | Python | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/admin_views.py | hgztlmb/meiduo_project | 5eb3b875faa06db844c8ba842cc299eccd976311 | [
"MIT"
] | 2 | 2019-05-27T12:41:53.000Z | 2019-06-11T02:58:00.000Z | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/admin_views.py | hgztlmb/meiduo_project | 5eb3b875faa06db844c8ba842cc299eccd976311 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/admin_views.py | hgztlmb/meiduo_project | 5eb3b875faa06db844c8ba842cc299eccd976311 | [
"MIT"
] | null | null | null | from rest_framework.viewsets import ModelViewSet
from meiduo_admin.serializers.admin_serializers import *
from meiduo_admin.pages import UserPageNum
from rest_framework.response import Response
class AdminViewSet(ModelViewSet):
queryset = User.objects.filter(is_staff=True)
serializer_class = AdminSerializer
... | 30.5 | 56 | 0.757741 | 62 | 549 | 6.580645 | 0.612903 | 0.039216 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17122 | 549 | 17 | 57 | 32.294118 | 0.896703 | 0.052823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
70d5a9bf3b112ebbbe8cd512d780a5cfecf2acd2 | 384 | py | Python | python-functions/03-function-types.py | oviniciusoliveira/python-bootcamp | cd08ec4ec30049822c283a656307a5dcb25b5d99 | [
"MIT"
] | null | null | null | python-functions/03-function-types.py | oviniciusoliveira/python-bootcamp | cd08ec4ec30049822c283a656307a5dcb25b5d99 | [
"MIT"
] | null | null | null | python-functions/03-function-types.py | oviniciusoliveira/python-bootcamp | cd08ec4ec30049822c283a656307a5dcb25b5d99 | [
"MIT"
] | null | null | null | def facebook(name, status):
return f"{name} is {status}"
abra_status = facebook("Abra", "online")
tiburcio_status = facebook("Tiburcio", "offline")
print(abra_status)
print(tiburcio_status)
print('\n')
def divide(number1, number2):
return number1 / number2
result = divide(21, 3)
print(result)
# Keyword... | 16 | 49 | 0.713542 | 50 | 384 | 5.4 | 0.42 | 0.074074 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036474 | 0.143229 | 384 | 23 | 50 | 16.695652 | 0.784195 | 0.044271 | 0 | 0.153846 | 0 | 0 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.153846 | 0.307692 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70d66c1c18b0772a4e22a4a04c1300e89d80a0eb | 18,288 | py | Python | organizacion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | null | null | null | organizacion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | 7 | 2020-06-05T17:11:32.000Z | 2022-03-11T23:14:00.000Z | organizacion/migrations/0001_initial.py | ErickMurillo/aprocacaho | eecd216103e6b06e3ece174c89d911f27b50585a | [
"MIT"
] | 1 | 2016-07-04T18:38:14.000Z | 2016-07-04T18:38:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-27 14:55
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import multiselectfield.db.fields
import smart_selects.db_fields
import sorl.thumbnail.fields
clas... | 58.428115 | 316 | 0.598972 | 1,774 | 18,288 | 6.053551 | 0.183766 | 0.069653 | 0.027377 | 0.043021 | 0.586274 | 0.569234 | 0.526772 | 0.523885 | 0.523885 | 0.498184 | 0 | 0.015381 | 0.256999 | 18,288 | 312 | 317 | 58.615385 | 0.774948 | 0.003664 | 0 | 0.539474 | 1 | 0 | 0.284938 | 0.042376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023026 | 0 | 0.036184 | 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 |
70d772560eaa7d38df835897bd1397ddcdd9b9c5 | 1,124 | py | Python | linux/main.py | HoolyPanda/Tat-Ru_Translater | 09a09e0eba745710a1165716005c9156a95dbccf | [
"MIT"
] | null | null | null | linux/main.py | HoolyPanda/Tat-Ru_Translater | 09a09e0eba745710a1165716005c9156a95dbccf | [
"MIT"
] | null | null | null | linux/main.py | HoolyPanda/Tat-Ru_Translater | 09a09e0eba745710a1165716005c9156a95dbccf | [
"MIT"
] | null | null | null | # from xlrd import open_workbook
import sys
import translater
import client
import os
import platform
# from os import path
s = translater.Translater()
def MainMenu():
# print()
print(platform.system())
if len(sys.argv) == 2:
# os.path.exists()
a = os.getlogin()
if ... | 26.761905 | 72 | 0.521352 | 124 | 1,124 | 4.717742 | 0.435484 | 0.047863 | 0.041026 | 0.054701 | 0.140171 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0.005305 | 0.329181 | 1,124 | 42 | 73 | 26.761905 | 0.770557 | 0.066726 | 0 | 0.205882 | 0 | 0 | 0.085657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.088235 | 0.147059 | 0 | 0.176471 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
70df7d29e53c618685bf23a6f620b70e2a9116f6 | 1,144 | py | Python | api_sender.py | Apocryphoon/scicrop | b516d092a5d3ad5d727c040c776c79b3ee4d9bca | [
"MIT"
] | null | null | null | api_sender.py | Apocryphoon/scicrop | b516d092a5d3ad5d727c040c776c79b3ee4d9bca | [
"MIT"
] | null | null | null | api_sender.py | Apocryphoon/scicrop | b516d092a5d3ad5d727c040c776c79b3ee4d9bca | [
"MIT"
] | null | null | null | from pip._vendor import requests
json = {
"full_name": "Ricardo Ribeiro Cardoso",
"email": "ricardo.rc15@hotmail.com",
"mobile_phone": "(11) 94555-5915",
"age": 19,
"home_address": "Rua joão tezza, 48",
"start_date": 30092000,
"opportunity_tag": "estágio_dev",
"past_jobs_experience": "Trabalhei po... | 42.37037 | 199 | 0.638986 | 140 | 1,144 | 5.1 | 0.792857 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045547 | 0.136364 | 1,144 | 27 | 200 | 42.37037 | 0.677126 | 0 | 0 | 0 | 0 | 0.076923 | 0.71403 | 0.067918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.153846 | 0 | 0 | 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 |
70e33c96dfefbade97569ff14c8e524e14740a08 | 974 | py | Python | aiomatrix/dispatcher/handlers/handler.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | 2 | 2021-10-29T18:07:08.000Z | 2021-11-19T00:25:43.000Z | aiomatrix/dispatcher/handlers/handler.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | 1 | 2022-03-06T11:17:43.000Z | 2022-03-06T11:17:43.000Z | aiomatrix/dispatcher/handlers/handler.py | Forden/aiomatrix | d258076bae8eb776495b92be46ee9f4baec8d9a6 | [
"MIT"
] | null | null | null | import inspect
import typing
import pydantic
from pydantic import root_validator
from aiomatrix import types
from aiomatrix.dispatcher.filters import BaseFilter
if typing.TYPE_CHECKING:
from aiomatrix import AiomatrixClient
class HandlerCallback(pydantic.BaseModel):
callback: typing.Callable
spec: typi... | 26.324324 | 92 | 0.714579 | 109 | 974 | 6.284404 | 0.495413 | 0.056934 | 0.055474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210472 | 974 | 36 | 93 | 27.055556 | 0.890767 | 0 | 0 | 0 | 0 | 0 | 0.027721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.269231 | 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 |
70e37a115735edf628450ce0171b1a3a273f79f2 | 3,081 | py | Python | saddle-points/saddle_points_test.py | ikostan/python | a6d52ad74e36db1d2bf82ed15362c1e4341d741d | [
"Unlicense"
] | null | null | null | saddle-points/saddle_points_test.py | ikostan/python | a6d52ad74e36db1d2bf82ed15362c1e4341d741d | [
"Unlicense"
] | 121 | 2020-03-16T19:25:56.000Z | 2021-08-02T19:20:10.000Z | saddle-points/saddle_points_test.py | ikostan/python | a6d52ad74e36db1d2bf82ed15362c1e4341d741d | [
"Unlicense"
] | null | null | null | """Tests for the saddle-points exercise
Implementation note:
The saddle_points function must validate the input matrix and raise a
ValueError with a meaningful error message if the matrix turns out to be
irregular.
"""
import unittest
from saddle_points import saddle_points
# Tests adapted from `problem-specificati... | 39 | 75 | 0.597533 | 392 | 3,081 | 4.477041 | 0.247449 | 0.136752 | 0.119658 | 0.153846 | 0.34188 | 0.278063 | 0.258689 | 0.223932 | 0.19943 | 0.062678 | 0 | 0.044386 | 0.254138 | 3,081 | 78 | 76 | 39.5 | 0.719321 | 0.10938 | 0 | 0.058824 | 0 | 0 | 0.050091 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.254902 | false | 0 | 0.039216 | 0.019608 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70e4050348035d455ba9f834cbfdbc1097869661 | 39,132 | py | Python | src/commands/moderacao.py | Liveira/SphyxBot.py | da7e864ecdb0500904c306940179a2404e21dd6e | [
"MIT"
] | 3 | 2020-12-10T17:50:12.000Z | 2020-12-13T02:40:13.000Z | src/commands/moderacao.py | Liveira/SphyxBot.py | da7e864ecdb0500904c306940179a2404e21dd6e | [
"MIT"
] | 3 | 2020-12-10T17:46:07.000Z | 2021-01-24T15:58:36.000Z | src/commands/moderacao.py | Liveira/SphyxBot.py | da7e864ecdb0500904c306940179a2404e21dd6e | [
"MIT"
] | 1 | 2020-12-10T17:47:19.000Z | 2020-12-10T17:47:19.000Z | import sys
sys.path.append('..')
from main import *
class mod(commands.Cog):
@commands.group(name='warn' ,aliases=['avisar'] , invoke_without_command=True)
@commands.has_permissions(kick_members=True)
@commands.before_invoke(usou)
@commands.cooldown(1,5,commands.BucketType.member)
async def cmdwarn(... | 56.386167 | 1,336 | 0.559951 | 4,697 | 39,132 | 4.625506 | 0.131999 | 0.033876 | 0.045844 | 0.023336 | 0.588557 | 0.536178 | 0.502301 | 0.471509 | 0.440072 | 0.412501 | 0 | 0.006184 | 0.297531 | 39,132 | 694 | 1,337 | 56.386167 | 0.783877 | 0 | 0 | 0.530523 | 0 | 0.045058 | 0.284456 | 0.027952 | 0 | 0 | 0 | 0.001441 | 0 | 1 | 0.002907 | false | 0.018895 | 0.002907 | 0.001453 | 0.072674 | 0.005814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70e664e353155a50a56084baa199059a89130972 | 557 | py | Python | selene_sdk/samplers/__init__.py | msindeeva/selene | 601d0d11e11838a61778b4282482cacd20ce1a4a | [
"BSD-3-Clause-Clear"
] | 307 | 2018-09-21T16:48:12.000Z | 2022-03-23T21:42:04.000Z | selene_sdk/samplers/__init__.py | msindeeva/selene | 601d0d11e11838a61778b4282482cacd20ce1a4a | [
"BSD-3-Clause-Clear"
] | 104 | 2018-08-07T13:44:29.000Z | 2022-01-12T01:35:30.000Z | selene_sdk/samplers/__init__.py | msindeeva/selene | 601d0d11e11838a61778b4282482cacd20ce1a4a | [
"BSD-3-Clause-Clear"
] | 85 | 2018-10-20T08:06:31.000Z | 2022-03-29T15:17:30.000Z | """
This module provides classes and methods for sampling labeled data
examples.
"""
from .sampler import Sampler
from .online_sampler import OnlineSampler
from .intervals_sampler import IntervalsSampler
from .random_positions_sampler import RandomPositionsSampler
from .multi_sampler import MultiSampler, MultiFileSampl... | 29.315789 | 66 | 0.72711 | 50 | 557 | 7.88 | 0.54 | 0.164975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206463 | 557 | 18 | 67 | 30.944444 | 0.891403 | 0.136445 | 0 | 0 | 0 | 0 | 0.209302 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
70e72658dc7dc46cf25851008aad4da565962dd2 | 3,929 | py | Python | logagg/nsqsender.py | supriyopaul/logagg2 | 3edbe8696d56678d96c0e9bda22137d734a0c51c | [
"MIT"
] | null | null | null | logagg/nsqsender.py | supriyopaul/logagg2 | 3edbe8696d56678d96c0e9bda22137d734a0c51c | [
"MIT"
] | null | null | null | logagg/nsqsender.py | supriyopaul/logagg2 | 3edbe8696d56678d96c0e9bda22137d734a0c51c | [
"MIT"
] | null | null | null | import time
import ujson as json
import requests
from deeputil import keeprunning
import util
class NSQSender(object):
NSQ_MAX_DEPTH = 1000000 # Depth after which nsq_sender won't send msgs and wait to clear
NSQ_READY_CHECK_INTERVAL = 1 # Wait time to check nsq readiness (alive and... | 39.29 | 108 | 0.601171 | 499 | 3,929 | 4.49499 | 0.278557 | 0.0963 | 0.040125 | 0.042354 | 0.30807 | 0.248328 | 0.188587 | 0.159162 | 0.141329 | 0.141329 | 0 | 0.01513 | 0.293459 | 3,929 | 99 | 109 | 39.686869 | 0.792867 | 0.075592 | 0 | 0.22973 | 0 | 0 | 0.086466 | 0.019737 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.081081 | false | 0 | 0.067568 | 0 | 0.22973 | 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 |
70eab01353b846ab6b95a02504bcbc2559c4c345 | 1,930 | py | Python | tests/tests_find_square_root.py | quervernetzt/find-square-root-floor-value | d715ed878f95b606983bc3b1ba02f91d44fb9b1b | [
"MIT"
] | null | null | null | tests/tests_find_square_root.py | quervernetzt/find-square-root-floor-value | d715ed878f95b606983bc3b1ba02f91d44fb9b1b | [
"MIT"
] | null | null | null | tests/tests_find_square_root.py | quervernetzt/find-square-root-floor-value | d715ed878f95b606983bc3b1ba02f91d44fb9b1b | [
"MIT"
] | null | null | null | import unittest
from solution.find_square_root import FindSquareRoot
class TestCasesFindSquareRoot(unittest.TestCase):
def negative_input_should_return_none(self: object) -> None:
# Arrange
find_square_root: FindSquareRoot = FindSquareRoot()
# Act
square_root: int = find_square_roo... | 31.639344 | 82 | 0.667358 | 229 | 1,930 | 5.266376 | 0.170306 | 0.273632 | 0.174129 | 0.126866 | 0.739635 | 0.595357 | 0.477612 | 0.477612 | 0.477612 | 0.477612 | 0 | 0.029861 | 0.253886 | 1,930 | 61 | 83 | 31.639344 | 0.807639 | 0.048705 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290323 | 1 | 0.16129 | false | 0 | 0.064516 | 0 | 0.258065 | 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 |
70f3abc278750adbfac109dba9b88484f01bfaac | 1,125 | py | Python | diamondback/interfaces/IConfigure.py | larryturner/diamondback | 8c280edafaa20c1287cfc339a0ca33eefc1c1b89 | [
"BSD-3-Clause"
] | 4 | 2019-09-10T07:02:48.000Z | 2021-07-02T08:25:49.000Z | diamondback/interfaces/IConfigure.py | larryturner/diamondback | 8c280edafaa20c1287cfc339a0ca33eefc1c1b89 | [
"BSD-3-Clause"
] | null | null | null | diamondback/interfaces/IConfigure.py | larryturner/diamondback | 8c280edafaa20c1287cfc339a0ca33eefc1c1b89 | [
"BSD-3-Clause"
] | null | null | null | """ **Description**
Configure interface.
**Example**
::
from diamondback import IConfigure
class Test( IConfigure ) :
def __init__( self ) -> None :
super( ).__init__( )
self.configure = [ ]
... | 20.833333 | 91 | 0.518222 | 100 | 1,125 | 5.64 | 0.53 | 0.138298 | 0.039007 | 0.053191 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029207 | 0.360889 | 1,125 | 53 | 92 | 21.226415 | 0.753825 | 0.598222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70f6517b842095cc7d52462c8a5a23f91583f5ab | 620 | py | Python | assets/data_and_scripts/Parsing/script-3.py | GTPB/PPB18 | fe19c9b8c6b91dce22c554bc1fa48c97834f8a87 | [
"CC-BY-4.0"
] | 4 | 2020-01-14T18:23:24.000Z | 2021-07-30T10:15:10.000Z | assets/data_and_scripts/Parsing/script-3.py | GTPB/PPB18 | fe19c9b8c6b91dce22c554bc1fa48c97834f8a87 | [
"CC-BY-4.0"
] | null | null | null | assets/data_and_scripts/Parsing/script-3.py | GTPB/PPB18 | fe19c9b8c6b91dce22c554bc1fa48c97834f8a87 | [
"CC-BY-4.0"
] | 1 | 2021-07-30T10:11:35.000Z | 2021-07-30T10:11:35.000Z | ac_cancer = open("cancer-expressed.txt")
ac_list = []
for line in ac_cancer:
ac = line.strip()
ac_list.append(ac)
print ac_list
'''
infile = open("test_sample.fasta")
header = ''
seq = ''
for line in infile:
if line.startswith('>') and not seq:
header = line.strip()
elif line.startsw... | 18.787879 | 54 | 0.546774 | 82 | 620 | 4.060976 | 0.365854 | 0.108108 | 0.054054 | 0.108108 | 0.408408 | 0.246246 | 0.246246 | 0.246246 | 0.246246 | 0.246246 | 0 | 0.004357 | 0.259677 | 620 | 32 | 55 | 19.375 | 0.721133 | 0 | 0 | 0 | 0 | 0 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70fad3144e5af0a28ad7249a9396f6ede7ecf892 | 1,406 | py | Python | artview/__init__.py | savelov/artview | 83c918757d6ae51cecc7589af4ab279e2c750bfe | [
"BSD-3-Clause"
] | null | null | null | artview/__init__.py | savelov/artview | 83c918757d6ae51cecc7589af4ab279e2c750bfe | [
"BSD-3-Clause"
] | 1 | 2021-12-30T17:57:03.000Z | 2022-01-01T20:05:20.000Z | artview/__init__.py | savelov/artview | 83c918757d6ae51cecc7589af4ab279e2c750bfe | [
"BSD-3-Clause"
] | 1 | 2021-12-30T17:33:17.000Z | 2021-12-30T17:33:17.000Z | """
========================
ARTview (:mod:`artview`)
========================
.. _user:
################
Reference Manual
################
:Release: |release|
:Date: |today|
This guide provides details on all public functions, modules and classes
included in ARTview which a typical user will use on a regular basis... | 20.985075 | 72 | 0.634424 | 159 | 1,406 | 5.371069 | 0.528302 | 0.070258 | 0.039813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00466 | 0.236842 | 1,406 | 66 | 73 | 21.30303 | 0.79124 | 0.374822 | 0 | 0.068966 | 0 | 0 | 0.1188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.413793 | 0 | 0.413793 | 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 |
70fcab12b701841238ee3501e70bcb3083ce34f2 | 641 | py | Python | ds_and_alg/number_of_equivalent_domino_pairs.py | and1can/and1can-data-structures-and-algorithms | f6aee3b6728f3e575465ce157a869ccebd45ef62 | [
"MIT"
] | 1 | 2021-05-13T20:52:42.000Z | 2021-05-13T20:52:42.000Z | ds_and_alg/number_of_equivalent_domino_pairs.py | and1can/and1can-data-structures-and-algorithms | f6aee3b6728f3e575465ce157a869ccebd45ef62 | [
"MIT"
] | null | null | null | ds_and_alg/number_of_equivalent_domino_pairs.py | and1can/and1can-data-structures-and-algorithms | f6aee3b6728f3e575465ce157a869ccebd45ef62 | [
"MIT"
] | null | null | null | class Solution:
def numEquivDominoPairs(self, dominoes: List[List[int]]) -> int:
for sub_list in dominoes:
sub_list.sort()
dom_map = {}
dom_tuples = []
for sub_list in dominoes:
dom_tuples.append((sub_list[0], sub_list[1]))
dominoes = dom_tuples
... | 33.736842 | 68 | 0.5117 | 81 | 641 | 3.82716 | 0.333333 | 0.203226 | 0.096774 | 0.116129 | 0.341935 | 0.187097 | 0.187097 | 0 | 0 | 0 | 0 | 0.017949 | 0.391576 | 641 | 19 | 69 | 33.736842 | 0.776923 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 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 |
cb07666c31ead441de625cdc4e5eff7aa54d40fd | 3,308 | py | Python | retention_dashboard/dao/data.py | uw-it-aca/retention-dashboard | 5f808f62f26b14eead4409603760fa1abc2c6a2a | [
"Apache-2.0"
] | null | null | null | retention_dashboard/dao/data.py | uw-it-aca/retention-dashboard | 5f808f62f26b14eead4409603760fa1abc2c6a2a | [
"Apache-2.0"
] | 32 | 2020-12-08T19:19:53.000Z | 2022-02-23T23:29:53.000Z | retention_dashboard/dao/data.py | uw-it-aca/retention-dashboard | 5f808f62f26b14eead4409603760fa1abc2c6a2a | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from retention_dashboard.models import DataPoint, Week
class FilterDataDao():
def get_weeks_with_data(self):
unique_weeks = DataPoint.objects.values('week').distinct().order_by(
'week__year', '... | 44.702703 | 76 | 0.53023 | 300 | 3,308 | 5.51 | 0.256667 | 0.125832 | 0.15971 | 0.174229 | 0.246219 | 0.173019 | 0.133091 | 0 | 0 | 0 | 0 | 0.003071 | 0.409311 | 3,308 | 73 | 77 | 45.315068 | 0.842886 | 0.032346 | 0 | 0.083333 | 0 | 0 | 0.043165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.016667 | 0 | 0.1 | 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 |
cb11f11d64faa391c7fcdaea2945ae6c5ec0508b | 5,906 | py | Python | liasis/core/protocols.py | johnnywell/liasis | 42bddabd9025dfa5812693e904ee168121ef39ac | [
"MIT"
] | 6 | 2019-03-25T18:34:12.000Z | 2020-03-04T14:20:29.000Z | liasis/core/protocols.py | johnnywell/liasis | 42bddabd9025dfa5812693e904ee168121ef39ac | [
"MIT"
] | 5 | 2019-03-25T20:29:19.000Z | 2019-12-24T15:01:37.000Z | liasis/core/protocols.py | johnnywell/liasis | 42bddabd9025dfa5812693e904ee168121ef39ac | [
"MIT"
] | 1 | 2019-07-25T17:58:30.000Z | 2019-07-25T17:58:30.000Z | from abc import abstractmethod
from functools import reduce
from typing import List, Any, Dict, Type, Set, ClassVar, TypeVar, Union, Optional, Iterable
from typing_extensions import Protocol
from liasis.core.errors import InvalidEventError, InvalidEventVersionError, InvalidEventEntityError, NotHandledError
from liasis... | 29.383085 | 116 | 0.651879 | 674 | 5,906 | 5.553412 | 0.265579 | 0.034732 | 0.026182 | 0.02164 | 0.105797 | 0.082821 | 0.053967 | 0.053967 | 0.034732 | 0.034732 | 0 | 0.000454 | 0.253471 | 5,906 | 200 | 117 | 29.53 | 0.848492 | 0.198273 | 0 | 0.190476 | 0 | 0 | 0.087885 | 0.058665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.07619 | 0.047619 | 0.552381 | 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 |
cb14bb00ecb526c09d5fbff0ff8ec824abae7155 | 1,944 | py | Python | app/api/v1/utils/decorators.py | codacy-badger/SendIT | a492f9fec7278639e76e604ee0d1dfe8e79f8e40 | [
"MIT"
] | null | null | null | app/api/v1/utils/decorators.py | codacy-badger/SendIT | a492f9fec7278639e76e604ee0d1dfe8e79f8e40 | [
"MIT"
] | null | null | null | app/api/v1/utils/decorators.py | codacy-badger/SendIT | a492f9fec7278639e76e604ee0d1dfe8e79f8e40 | [
"MIT"
] | null | null | null | """Contains the token_required decorator to restrict access
to authenticated users only and the admin_required decorator
to restrict access to administrators only.
"""
from functools import wraps
from flask import request, current_app, jsonify, make_response
import jwt
# local imports
from ..utils.udto import api
d... | 27.771429 | 77 | 0.600309 | 231 | 1,944 | 4.987013 | 0.333333 | 0.041667 | 0.057292 | 0.055556 | 0.664931 | 0.664931 | 0.604167 | 0.604167 | 0.604167 | 0.604167 | 0 | 0.015351 | 0.296296 | 1,944 | 69 | 78 | 28.173913 | 0.826754 | 0.152263 | 0 | 0.651163 | 0 | 0 | 0.157055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.093023 | 0 | 0.302326 | 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 |
cb198cfd63be9568b957da17b6a19f76d9a730d2 | 360 | py | Python | meerschaum/api/dash/sync.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 32 | 2020-09-14T16:29:19.000Z | 2022-03-08T00:51:28.000Z | meerschaum/api/dash/sync.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 3 | 2020-10-04T20:03:30.000Z | 2022-02-02T21:04:46.000Z | meerschaum/api/dash/sync.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 5 | 2021-04-22T23:49:21.000Z | 2022-02-02T12:59:08.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
"""
Define syncing components.
"""
from __future__ import annotations
from meerschaum.utils.packages import attempt_import, import_dcc, import_html
dash = attempt_import('dash', lazy=False)
html, dcc = import_html(), import_dcc()
dbc = attempt_import('da... | 22.5 | 77 | 0.744444 | 49 | 360 | 5.204082 | 0.55102 | 0.152941 | 0.101961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.116667 | 360 | 15 | 78 | 24 | 0.795597 | 0.236111 | 0 | 0 | 0 | 0 | 0.110266 | 0.095057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cb1e2bf2fd8a45d566c2b2ff845d517e53151a93 | 5,458 | py | Python | Project1 - Linear Regression/main.py | JruvikaBhimani/CSE-547---Introduction-to-Machine-Learning | 3a8196cf9372cfbecbb043fc7ea94bcce665b097 | [
"Apache-2.0"
] | null | null | null | Project1 - Linear Regression/main.py | JruvikaBhimani/CSE-547---Introduction-to-Machine-Learning | 3a8196cf9372cfbecbb043fc7ea94bcce665b097 | [
"Apache-2.0"
] | null | null | null | Project1 - Linear Regression/main.py | JruvikaBhimani/CSE-547---Introduction-to-Machine-Learning | 3a8196cf9372cfbecbb043fc7ea94bcce665b097 | [
"Apache-2.0"
] | null | null | null | import numpy
from scipy.stats import norm
#import matplotlib.pyplot as plot1
from math import log1p, pi
import xlrd
def log_like(y, x):
x0 = 1
a11 = 0
a12 = 0
a21 = 0
a22 = 0
for i in range(49):
a11 = a11 + (x0 * x0)
a12 = a12 + (x[i] * x0)
a21 = a21 + (x0 * x[i])
... | 28.279793 | 104 | 0.590143 | 776 | 5,458 | 4.036082 | 0.20232 | 0.051086 | 0.086845 | 0.00894 | 0.335888 | 0.192848 | 0.123563 | 0.055236 | 0.016603 | 0 | 0 | 0.089968 | 0.256687 | 5,458 | 192 | 105 | 28.427083 | 0.682031 | 0.300293 | 0 | 0.067308 | 0 | 0 | 0.075412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.221154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb1eb03333d3fecebcbb8b6eaa9ae1a5f0837413 | 428 | py | Python | pyprojects/scripts/find_replace.py | abhmul/projects-repo | 6d3a8110ce69219e769e0e56d14fbe394f6389c6 | [
"MIT"
] | null | null | null | pyprojects/scripts/find_replace.py | abhmul/projects-repo | 6d3a8110ce69219e769e0e56d14fbe394f6389c6 | [
"MIT"
] | null | null | null | pyprojects/scripts/find_replace.py | abhmul/projects-repo | 6d3a8110ce69219e769e0e56d14fbe394f6389c6 | [
"MIT"
] | null | null | null | import re
if __name__ == "__main__":
original_string = input("Original String: ")
print(f"Original:\n{original_string}")
find_regex = re.compile(input("Find Regex: "))
print(f"Find:\n{find_regex}")
replace_string = input("Replace String (use \\n for backrefs): ")
print(f"Replace:\n{replace_str... | 32.923077 | 69 | 0.672897 | 58 | 428 | 4.672414 | 0.344828 | 0.206642 | 0.140221 | 0.147601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168224 | 428 | 13 | 70 | 32.923077 | 0.761236 | 0 | 0 | 0 | 0 | 0 | 0.386946 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.4 | 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 |
cb1f4cb5cb54147e6f2af934be3e94b0729c62a3 | 5,847 | py | Python | Standalones/naver_news_crawler_by_date.py | H-BlackGom/naverNewsCrawler-python | 84b2dedb880462b46d9911e1487351c3f62a3959 | [
"Apache-2.0"
] | null | null | null | Standalones/naver_news_crawler_by_date.py | H-BlackGom/naverNewsCrawler-python | 84b2dedb880462b46d9911e1487351c3f62a3959 | [
"Apache-2.0"
] | 3 | 2021-03-31T19:56:30.000Z | 2021-12-13T20:47:00.000Z | Standalones/naver_news_crawler_by_date.py | H-BlackGom/naverNewsCrawler-python | 84b2dedb880462b46d9911e1487351c3f62a3959 | [
"Apache-2.0"
] | null | null | null | import re
import requests
import datetime
import random
import time
from tqdm.notebook import tqdm
import pandas as pd
from selenium import webdriver
from pymongo import MongoClient
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.wait import WebDriverWait
from bs4 import BeautifulS... | 44.295455 | 243 | 0.597229 | 718 | 5,847 | 4.674095 | 0.335655 | 0.023838 | 0.028605 | 0.032181 | 0.199344 | 0.146901 | 0.0882 | 0.075089 | 0.075089 | 0.053635 | 0 | 0.032899 | 0.251411 | 5,847 | 131 | 244 | 44.633588 | 0.733836 | 0.059689 | 0 | 0.028302 | 0 | 0.018868 | 0.204297 | 0.021486 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113208 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb2fc13c1feea60508653fe56afc1d21e8b25bfc | 435 | py | Python | twitteruser/migrations/0002_twitteruser_follow.py | marcornett/twitter-clone | bcee2828311ffeb598a5740edcd576d562135981 | [
"MIT"
] | null | null | null | twitteruser/migrations/0002_twitteruser_follow.py | marcornett/twitter-clone | bcee2828311ffeb598a5740edcd576d562135981 | [
"MIT"
] | null | null | null | twitteruser/migrations/0002_twitteruser_follow.py | marcornett/twitter-clone | bcee2828311ffeb598a5740edcd576d562135981 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-02 00:18
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('twitteruser', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='twitteruser',
... | 21.75 | 70 | 0.629885 | 47 | 435 | 5.744681 | 0.723404 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059375 | 0.264368 | 435 | 19 | 71 | 22.894737 | 0.784375 | 0.103448 | 0 | 0 | 1 | 0 | 0.103093 | 0 | 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 |
cb356a1f43f0d6e50240d47765ab4840a314ac13 | 3,127 | py | Python | tests/test_magma_simulator_target.py | standanley/fault | 7418103744e3ec5b5d142e0a152f08b7feef6a1e | [
"BSD-3-Clause"
] | null | null | null | tests/test_magma_simulator_target.py | standanley/fault | 7418103744e3ec5b5d142e0a152f08b7feef6a1e | [
"BSD-3-Clause"
] | null | null | null | tests/test_magma_simulator_target.py | standanley/fault | 7418103744e3ec5b5d142e0a152f08b7feef6a1e | [
"BSD-3-Clause"
] | null | null | null | from hwtypes import BitVector
from fault.actions import Poke, Expect, Eval, Step, Print, Peek
from fault.magma_simulator_target import MagmaSimulatorTarget
from fault.random import random_bv
from .common import (TestBasicCircuit, TestNestedArraysCircuit,
TestBasicClkCircuit, TestPeekCircuit)
# NO... | 31.585859 | 78 | 0.65686 | 402 | 3,127 | 4.997512 | 0.266169 | 0.054754 | 0.035839 | 0.071677 | 0.447486 | 0.352912 | 0.320557 | 0.263813 | 0.224988 | 0.224988 | 0 | 0.014297 | 0.217141 | 3,127 | 98 | 79 | 31.908163 | 0.806373 | 0.121522 | 0 | 0.430556 | 0 | 0 | 0.030814 | 0 | 0 | 0 | 0 | 0.010204 | 0.027778 | 1 | 0.097222 | false | 0 | 0.069444 | 0 | 0.166667 | 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 |
cb35e4678eb9eb1a8b7f336dd8a955b2a328fcbd | 3,978 | py | Python | scripts/tester_bngl_data_model_pymcell4.py | mcellteam/mcell-tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | 1 | 2021-08-13T20:40:54.000Z | 2021-08-13T20:40:54.000Z | scripts/tester_bngl_data_model_pymcell4.py | mcellteam/mcell_tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | null | null | null | scripts/tester_bngl_data_model_pymcell4.py | mcellteam/mcell_tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | null | null | null | """
Copyright (C) 2019 by
The Salk Institute for Biological Studies and
Pittsburgh Supercomputing Center, Carnegie Mellon University
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""
"""
This module contains functions to ch... | 33.428571 | 109 | 0.606335 | 489 | 3,978 | 4.650307 | 0.333333 | 0.038698 | 0.042216 | 0.056288 | 0.242304 | 0.177661 | 0.154793 | 0.109938 | 0.07212 | 0.07212 | 0 | 0.009548 | 0.315485 | 3,978 | 118 | 110 | 33.711864 | 0.82556 | 0.123429 | 0 | 0.253521 | 0 | 0 | 0.046402 | 0.029956 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.070423 | false | 0.070423 | 0.112676 | 0 | 0.323944 | 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 |
cb391bc8629030e74522fa65cb0dec5fcddd4c5b | 6,602 | py | Python | HarvestOpenBUrecords.py | jwacooks/library-link-network-demo | 9df8d5bb96cee28d87e34fec1d9dc915190405b9 | [
"MIT"
] | 4 | 2017-01-18T15:13:54.000Z | 2018-09-05T20:55:55.000Z | HarvestOpenBUrecords.py | jwacooks/library-link-network-demo | 9df8d5bb96cee28d87e34fec1d9dc915190405b9 | [
"MIT"
] | null | null | null | HarvestOpenBUrecords.py | jwacooks/library-link-network-demo | 9df8d5bb96cee28d87e34fec1d9dc915190405b9 | [
"MIT"
] | null | null | null | #!/usr3/bustaff/jwa/anaconda_envs/py3/bin/python
## HarvestOpenBUrecords.py
## Jack Ammerman
## January 10, 2017
## run this from a working directory
from urllib.request import Request, urlopen
from urllib.parse import urlencode, quote_plus
import time
import xml.etree.ElementTree as ET
import io
import os
import str... | 42.87013 | 140 | 0.667828 | 943 | 6,602 | 4.597031 | 0.282078 | 0.029066 | 0.041522 | 0.036909 | 0.501961 | 0.453979 | 0.431142 | 0.415225 | 0.387543 | 0.364014 | 0 | 0.022889 | 0.192669 | 6,602 | 153 | 141 | 43.150327 | 0.790432 | 0.272493 | 0 | 0.666667 | 0 | 0.036036 | 0.339523 | 0.06647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.063063 | 0.09009 | 0 | 0.09009 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cb3c2781d56de0cd4998f91aa98ff7dd70fd8283 | 916 | py | Python | apps/home/quickstart.py | Fayzan-Bhatti/MY_Product | e7a2f3b64b3f3fb421f95bb779fa8e480c3c23a8 | [
"MIT"
] | null | null | null | apps/home/quickstart.py | Fayzan-Bhatti/MY_Product | e7a2f3b64b3f3fb421f95bb779fa8e480c3c23a8 | [
"MIT"
] | null | null | null | apps/home/quickstart.py | Fayzan-Bhatti/MY_Product | e7a2f3b64b3f3fb421f95bb779fa8e480c3c23a8 | [
"MIT"
] | null | null | null | from google.analytics.data_v1beta import BetaAnalyticsDataClient
from google.analytics.data_v1beta.types import DateRange
from google.analytics.data_v1beta.types import Dimension
from google.analytics.data_v1beta.types import Metric
from google.analytics.data_v1beta.types import RunReportRequest
def sample_run_report... | 36.64 | 75 | 0.744541 | 110 | 916 | 5.972727 | 0.454545 | 0.076104 | 0.144597 | 0.175038 | 0.287671 | 0.243531 | 0.243531 | 0 | 0 | 0 | 0 | 0.029374 | 0.145197 | 916 | 25 | 76 | 36.64 | 0.809706 | 0 | 0 | 0 | 0 | 0 | 0.114504 | 0.026172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.285714 | 0.190476 | 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 |
cb3f211fd6872ab0748131d2b171fe2977e7b5ac | 2,289 | py | Python | Introduccion/Humei.py | Marcelo510/cursos-python | 7f18ec06d677b10b78ba696527e56ffc88f6a78e | [
"MIT"
] | null | null | null | Introduccion/Humei.py | Marcelo510/cursos-python | 7f18ec06d677b10b78ba696527e56ffc88f6a78e | [
"MIT"
] | null | null | null | Introduccion/Humei.py | Marcelo510/cursos-python | 7f18ec06d677b10b78ba696527e56ffc88f6a78e | [
"MIT"
] | null | null | null |
base = {
1: {"nombre":"Fernanda",
"apellido":"Fernandez",
"dni":333333331},
2: {"nombre":"Gonzalo",
"apellido":"Gonzalez",
"dni":333333332},
3: {"nombre":"Rodrigo",
"apellido":"Rodriguez",
"dni":333333333}
}
dnis = [333333331, 333333336, 333333339, 3333... | 32.7 | 117 | 0.612931 | 304 | 2,289 | 4.588816 | 0.503289 | 0.037276 | 0.018638 | 0.022939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059855 | 0.277414 | 2,289 | 69 | 118 | 33.173913 | 0.78295 | 0.346439 | 0 | 0 | 0 | 0 | 0.218009 | 0.016926 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0 | false | 0.023256 | 0 | 0 | 0 | 0.186047 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cb412d411e4abe40c4d4a112b76df7a701b393c5 | 8,439 | py | Python | tests/test_buffered_mode.py | ac-optimus/signac | 43a5519531cc8cc44199c9251d0fd4e6208b5bdb | [
"BSD-3-Clause"
] | 1 | 2020-03-09T17:56:02.000Z | 2020-03-09T17:56:02.000Z | tests/test_buffered_mode.py | ac-optimus/signac | 43a5519531cc8cc44199c9251d0fd4e6208b5bdb | [
"BSD-3-Clause"
] | 81 | 2020-12-28T20:23:57.000Z | 2022-03-01T06:03:40.000Z | tests/test_buffered_mode.py | admdev8/signac | d639e682ca7ebaff781d68621a2d86cc26de04b9 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2018 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
import os
import pytest
import json
import logging
import platform
from time import sleep
from stat import S_IREAD
from tempfile import TemporaryDirectory
import signac
from... | 33.756 | 95 | 0.530987 | 1,071 | 8,439 | 4.088702 | 0.135387 | 0.063942 | 0.097511 | 0.106874 | 0.693994 | 0.659055 | 0.603562 | 0.51884 | 0.50902 | 0.487326 | 0 | 0.012008 | 0.368409 | 8,439 | 249 | 96 | 33.891566 | 0.809568 | 0.027728 | 0 | 0.747664 | 0 | 0 | 0.012808 | 0 | 0 | 0 | 0 | 0 | 0.35514 | 1 | 0.037383 | false | 0.028037 | 0.060748 | 0 | 0.102804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb4b2851b65a624db023f7c95275928da285cad1 | 3,209 | py | Python | python-package/protobuf/exp_pb2.py | openmit/openmit | 01e3262d69d47fbe38bad1ba95c7d1ade110d01e | [
"Apache-2.0"
] | 15 | 2017-06-28T08:39:51.000Z | 2019-03-27T14:08:45.000Z | python-package/protobuf/exp_pb2.py | openmit/openmit | 01e3262d69d47fbe38bad1ba95c7d1ade110d01e | [
"Apache-2.0"
] | null | null | null | python-package/protobuf/exp_pb2.py | openmit/openmit | 01e3262d69d47fbe38bad1ba95c7d1ade110d01e | [
"Apache-2.0"
] | 3 | 2017-07-30T08:50:45.000Z | 2017-10-24T14:41:30.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protobuf/exp.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _... | 34.505376 | 282 | 0.736366 | 429 | 3,209 | 5.270396 | 0.300699 | 0.045997 | 0.039805 | 0.053074 | 0.346307 | 0.316232 | 0.294118 | 0.294118 | 0.277311 | 0.277311 | 0 | 0.043354 | 0.130259 | 3,209 | 92 | 283 | 34.880435 | 0.76675 | 0.065129 | 0 | 0.328767 | 1 | 0.013699 | 0.168671 | 0.104208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.082192 | 0 | 0.082192 | 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 |
cb4ba21d86b814aef011ee1108332ad9a3fcaf15 | 4,006 | py | Python | milestone1/test_sql2ra.py | miniHive/assignment | d4aa8c3501186d590555636074ece9980b5aa584 | [
"Apache-2.0"
] | 5 | 2019-05-08T07:29:44.000Z | 2022-03-13T18:22:25.000Z | milestone1/test_sql2ra.py | miniHive/assignment | d4aa8c3501186d590555636074ece9980b5aa584 | [
"Apache-2.0"
] | null | null | null | milestone1/test_sql2ra.py | miniHive/assignment | d4aa8c3501186d590555636074ece9980b5aa584 | [
"Apache-2.0"
] | 2 | 2021-03-12T20:58:50.000Z | 2021-08-30T12:45:50.000Z | import radb
import radb.ast # Some environments require this import.
import radb.parse # Some environments require this import.
import sql2ra
import sqlparse
import unittest
'''
Public unit tests for miniHive milestone 1.
These tests check the canonical translation of simple SQL statements
into the relational algeb... | 47.129412 | 106 | 0.676735 | 532 | 4,006 | 4.857143 | 0.24812 | 0.096749 | 0.070433 | 0.124613 | 0.521285 | 0.460913 | 0.407121 | 0.349845 | 0.220975 | 0.04644 | 0 | 0.011672 | 0.208687 | 4,006 | 84 | 107 | 47.690476 | 0.80347 | 0.080879 | 0 | 0 | 0 | 0.040816 | 0.405597 | 0.066419 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.306122 | false | 0 | 0.122449 | 0 | 0.44898 | 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 |
cb53efa15cd8fa143de321643d2a145d50d2de04 | 14,257 | py | Python | python/spoonacular/com/spoonacular/client/model/inline_object4.py | FPU-Spring-2021-CEN4010/spoonacular-api-clients | 5becc86987c1b0406ed05d02f5c158fba284aa9c | [
"MIT"
] | 1 | 2021-12-03T14:21:16.000Z | 2021-12-03T14:21:16.000Z | python/spoonacular/com/spoonacular/client/model/inline_object4.py | lucky-luky/spoonacular-api-clients | e52c13e288ed71563537638f7c3611d1d053c28f | [
"MIT"
] | null | null | null | python/spoonacular/com/spoonacular/client/model/inline_object4.py | lucky-luky/spoonacular-api-clients | e52c13e288ed71563537638f7c3611d1d053c28f | [
"MIT"
] | null | null | null | # coding: utf-8
"""
spoonacular API
The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 80,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural langu... | 33.002315 | 1,049 | 0.61184 | 1,692 | 14,257 | 5.0526 | 0.14539 | 0.066441 | 0.106679 | 0.096853 | 0.522985 | 0.462627 | 0.446368 | 0.310329 | 0.223184 | 0.13487 | 0 | 0.029532 | 0.296977 | 14,257 | 431 | 1,050 | 33.078886 | 0.823406 | 0.4529 | 0 | 0.077778 | 0 | 0 | 0.123075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.016667 | 0 | 0.3 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb556400e91924f89e5a056ad78f20f01fcab46f | 460 | py | Python | app/models/event.py | RemotelyGreenOrg/co2-calculator-api | 7d3403b06b35579de6aaa134607f8161629cc6f3 | [
"MIT"
] | 3 | 2022-01-14T13:28:37.000Z | 2022-03-30T15:27:41.000Z | app/models/event.py | RemotelyGreenOrg/co2-calculator-api | 7d3403b06b35579de6aaa134607f8161629cc6f3 | [
"MIT"
] | 9 | 2022-01-18T09:22:03.000Z | 2022-03-21T15:19:13.000Z | app/models/event.py | RemotelyGreenOrg/co2-calculator-api | 7d3403b06b35579de6aaa134607f8161629cc6f3 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
from sqlalchemy import Column, Integer, String, Float
from sqlalchemy.orm import relationship
from app.db.base_class import Base
if TYPE_CHECKING:
from .participant import Participant # noqa
class Event(Base):
__tablename__ = "events"
id = Column(Integer, primary_key... | 21.904762 | 54 | 0.736957 | 57 | 460 | 5.807018 | 0.54386 | 0.072508 | 0.096677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184783 | 460 | 20 | 55 | 23 | 0.882667 | 0.008696 | 0 | 0 | 0 | 0 | 0.037445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.923077 | 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 |
cb569dd531e08ce5576f4295ec61288879fd78ef | 11,233 | py | Python | psst/plot/plotmpld3.py | ayadabd000/psst | 8c116fb7afd183881ecc605e017dffc87cdc49e6 | [
"MIT"
] | null | null | null | psst/plot/plotmpld3.py | ayadabd000/psst | 8c116fb7afd183881ecc605e017dffc87cdc49e6 | [
"MIT"
] | null | null | null | psst/plot/plotmpld3.py | ayadabd000/psst | 8c116fb7afd183881ecc605e017dffc87cdc49e6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
MPLD3 Plugin to convert a NetworkX graph to a force layout
Copyright (C) 2016 Dheepak Krishnamurthy
"""
import mpld3
from networkx.readwrite.json_graph import node_link_data
class NetworkXD3ForceLayout(mpld3.plugins.PluginBase):
"""A NetworkX to D3 Force Layout Plugin"""
JAVASCRI... | 33.135693 | 118 | 0.508591 | 1,100 | 11,233 | 5.106364 | 0.209091 | 0.018159 | 0.026705 | 0.011394 | 0.13922 | 0.110735 | 0.06872 | 0.040235 | 0.027773 | 0.027773 | 0 | 0.016721 | 0.36642 | 11,233 | 338 | 119 | 33.233728 | 0.772517 | 0.018072 | 0 | 0.088353 | 0 | 0.044177 | 0.842794 | 0.243847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008032 | false | 0.004016 | 0.016064 | 0 | 0.068273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb57d10234d9d3d7efbdf9ca37074a874b5c988d | 4,238 | py | Python | R/tests/autoGen/writers.py | gigliovale/h2o | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 882 | 2015-05-22T02:59:21.000Z | 2022-02-17T05:02:48.000Z | R/tests/autoGen/writers.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 1 | 2015-01-14T23:54:56.000Z | 2015-01-15T20:04:17.000Z | R/tests/autoGen/writers.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 392 | 2015-05-22T17:04:11.000Z | 2022-02-22T09:04:39.000Z | ##
# A set of classes that do stuff:
# Classes are task managers for respect task type.
# At the head of control is the WriterTask, which
# control to the other writers.
##
from mungeTasks import *
def switch(x):
return {
'mungeTask': MungeWriter(),
#'classTask': ClassWriter(),
#'regreTas... | 26.4875 | 107 | 0.601227 | 446 | 4,238 | 5.455157 | 0.262332 | 0.082203 | 0.045212 | 0.061652 | 0.429922 | 0.429922 | 0.429922 | 0.429922 | 0.339088 | 0.339088 | 0 | 0.000659 | 0.284332 | 4,238 | 159 | 108 | 26.654088 | 0.801517 | 0.472393 | 0 | 0.446429 | 0 | 0 | 0.022504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb63edb70bf833992d4994f9cb00e043d87e6772 | 6,910 | py | Python | sdk/python/pulumi_gcp/healthcare/dataset.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/healthcare/dataset.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/healthcare/dataset.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 42.919255 | 139 | 0.633575 | 853 | 6,910 | 4.934349 | 0.213365 | 0.052269 | 0.066524 | 0.045141 | 0.564029 | 0.494892 | 0.465194 | 0.433832 | 0.417676 | 0.417676 | 0 | 0.001402 | 0.277569 | 6,910 | 160 | 140 | 43.1875 | 0.841747 | 0.392909 | 0 | 0.209302 | 1 | 0 | 0.121116 | 0.007899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104651 | false | 0.011628 | 0.05814 | 0.023256 | 0.267442 | 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 |
cb640276aaa296b25ddd094017366d9cc2c30650 | 3,669 | py | Python | python101/code/widget_demo.py | nirmeshk/mase | c31fb41f39bb7a333f6fd33aa43fa0b23531030a | [
"Unlicense"
] | 9 | 2015-08-23T01:46:56.000Z | 2019-04-25T00:48:21.000Z | python101/code/widget_demo.py | sadiaTab/mase | 95339dbb045c0613b40d69de9774368c0a2eb5ae | [
"Unlicense"
] | 20 | 2015-08-08T03:39:25.000Z | 2015-11-03T22:22:56.000Z | python101/code/widget_demo.py | sadiaTab/mase | 95339dbb045c0613b40d69de9774368c0a2eb5ae | [
"Unlicense"
] | 43 | 2015-05-08T05:55:41.000Z | 2020-04-27T14:13:26.000Z | """Solution to an exercise from
Think Python: An Introduction to Software Design
Copyright 2010 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
This program requires Gui.py, which is part of
Swampy; you can download it from thinkpython.com/swampy.
This program demonstrates how to use the Gui ... | 19.620321 | 70 | 0.672118 | 639 | 3,669 | 3.835681 | 0.367762 | 0.02652 | 0.011424 | 0.01836 | 0.063647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024782 | 0.186154 | 3,669 | 186 | 71 | 19.725806 | 0.796048 | 0.189152 | 0 | 0.141176 | 0 | 0 | 0.153751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011765 | null | null | 0.094118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb69c2775cac401f07c5a78ce8f0da5bc7d9b14f | 682 | py | Python | ecomapp/migrations/0005_productimage.py | Jahangir-gi/Software-project | a3e8f98b2a051d03d3517411a763c43a020c86f3 | [
"Unlicense"
] | null | null | null | ecomapp/migrations/0005_productimage.py | Jahangir-gi/Software-project | a3e8f98b2a051d03d3517411a763c43a020c86f3 | [
"Unlicense"
] | null | null | null | ecomapp/migrations/0005_productimage.py | Jahangir-gi/Software-project | a3e8f98b2a051d03d3517411a763c43a020c86f3 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1 on 2020-09-23 15:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ecomapp', '0004_auto_20200917_1848'),
]
operations = [
migrations.CreateModel(
name='ProductImage... | 29.652174 | 114 | 0.615836 | 72 | 682 | 5.722222 | 0.680556 | 0.058252 | 0.067961 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058708 | 0.250733 | 682 | 22 | 115 | 31 | 0.747554 | 0.06305 | 0 | 0 | 1 | 0 | 0.139717 | 0.036107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cb7b862c9698083bcfd67966992fb66538599701 | 2,224 | py | Python | fbmap.py | ishandutta2007/Facebook-Scripts | 6a2d8f520eb4ebc60733ed39d46ab8f0b3339d14 | [
"MIT"
] | 2 | 2016-06-19T13:55:17.000Z | 2016-11-17T17:13:44.000Z | fbmap.py | ishandutta2007/Facebook-Scripts | 6a2d8f520eb4ebc60733ed39d46ab8f0b3339d14 | [
"MIT"
] | null | null | null | fbmap.py | ishandutta2007/Facebook-Scripts | 6a2d8f520eb4ebc60733ed39d46ab8f0b3339d14 | [
"MIT"
] | 2 | 2017-10-14T16:12:54.000Z | 2018-12-11T03:10:01.000Z | # MAPS PAGES UPTO 3 LEVELS FROM USER LEVEL
# Multiple nesting of for-loops is bad programming
import requests
import json
import treelib
from treelib import Tree
f = open("pages.txt","w+") # we will bewriting into file for test purposes
url_string1 = 'https://graph.facebook.com/' # all requests go to the Face... | 37.066667 | 191 | 0.642536 | 317 | 2,224 | 4.287066 | 0.29653 | 0.12362 | 0.09713 | 0.07947 | 0.332598 | 0.187638 | 0.085357 | 0 | 0 | 0 | 0 | 0.012759 | 0.154227 | 2,224 | 60 | 192 | 37.066667 | 0.709729 | 0.227068 | 0 | 0.136364 | 0 | 0 | 0.16524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb8636cabc41aa1cf9c656d51755c5a5d4887bb8 | 1,421 | py | Python | ADVECTOR/examples/data_downloaders/get_ECCO_credentials.py | john-science/ADVECTOR | 5c5ca7595c2c051f1a088b1f0e694936c3da3610 | [
"MIT"
] | 7 | 2021-09-07T02:32:00.000Z | 2022-01-15T11:35:02.000Z | ADVECTOR/examples/data_downloaders/get_ECCO_credentials.py | TheOceanCleanupAlgorithms/ADVECT | e27ce15da6a2fcbccbe363f8c2415b0122696d1f | [
"MIT"
] | 1 | 2021-12-20T21:11:33.000Z | 2021-12-20T21:11:33.000Z | ADVECTOR/examples/data_downloaders/get_ECCO_credentials.py | TheOceanCleanupAlgorithms/ADVECT | e27ce15da6a2fcbccbe363f8c2415b0122696d1f | [
"MIT"
] | 1 | 2021-12-12T15:13:52.000Z | 2021-12-12T15:13:52.000Z | import subprocess
import tempfile
from getpass import getpass
def get_ECCO_credentials():
print(
"Download requires authentication. "
"You can find your WebDAV credenials and/or "
"create an account here: https://ecco.jpl.nasa.gov/drive/"
)
test_url = "https://ecco.jpl.nasa.gov/dri... | 39.472222 | 87 | 0.605208 | 161 | 1,421 | 5.285714 | 0.552795 | 0.06463 | 0.042303 | 0.056404 | 0.094007 | 0.094007 | 0.065805 | 0 | 0 | 0 | 0 | 0.008016 | 0.297678 | 1,421 | 35 | 88 | 40.6 | 0.844689 | 0.075299 | 0 | 0 | 0 | 0 | 0.451564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.133333 | 0.1 | 0 | 0.166667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb951dbfcc7e325885f53eaa1d20b07acf69916d | 2,155 | py | Python | Worksheets/Worksheet1_Answers.py | josh-gree/NumericalMethods | 03cb91114b3f5eb1b56916920ad180d371fe5283 | [
"CC-BY-3.0"
] | 76 | 2015-02-12T19:51:52.000Z | 2022-03-26T15:34:11.000Z | Worksheets/Worksheet1_Answers.py | josh-gree/NumericalMethods | 03cb91114b3f5eb1b56916920ad180d371fe5283 | [
"CC-BY-3.0"
] | 2 | 2017-05-24T19:49:52.000Z | 2018-01-23T21:40:42.000Z | Worksheets/Worksheet1_Answers.py | josh-gree/NumericalMethods | 03cb91114b3f5eb1b56916920ad180d371fe5283 | [
"CC-BY-3.0"
] | 41 | 2015-01-05T13:30:47.000Z | 2022-02-15T09:59:39.000Z | # -*- coding: utf-8 -*-
"""
Example solutions for Worksheet 1
Ian Hawke
"""
def MatrixConditionCheck(A):
import numpy as np
MaxConditionNumber = 10 # This is absurdly low
ConditionNumber = np.linalg.cond(A)
if ConditionNumber > MaxConditionNumber:
print "Condition number of matrix\n", A, ... | 26.9375 | 110 | 0.635731 | 394 | 2,155 | 3.388325 | 0.238579 | 0.09588 | 0.116854 | 0.06367 | 0.198502 | 0.125843 | 0.025468 | 0.025468 | 0.025468 | 0.025468 | 0 | 0.052362 | 0.184687 | 2,155 | 79 | 111 | 27.278481 | 0.707456 | 0.095128 | 0 | 0.12 | 0 | 0 | 0.186871 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | null | null | 0 | 0.04 | null | null | 0.26 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cb9a97aa13bd8cca4f6601674cd746fd949a882a | 676 | py | Python | app/post/admin.py | HSAkash/Questionnaire-Docker | ee7f45ddc04e9ce72156a888255711df6a34720b | [
"MIT"
] | 1 | 2021-12-26T06:18:48.000Z | 2021-12-26T06:18:48.000Z | app/post/admin.py | HSAkash/Questionnaire_api | 95a0e4e7bc680fe27dd312dad0e2fd70ceafb8b4 | [
"MIT"
] | null | null | null | app/post/admin.py | HSAkash/Questionnaire_api | 95a0e4e7bc680fe27dd312dad0e2fd70ceafb8b4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from post import models
class QuestionAdmin(admin.ModelAdmin):
list_display = ('title', 'user', 'created_at', 'published_date')
list_filter = ('published_date',)
search_fields = ('title', 'user')
date_hierarchy = 'published_date'
ordering = ['-published_date']
... | 26 | 68 | 0.693787 | 74 | 676 | 6.108108 | 0.445946 | 0.115044 | 0.084071 | 0.115044 | 0.168142 | 0.168142 | 0.168142 | 0 | 0 | 0 | 0 | 0.007181 | 0.176036 | 676 | 25 | 69 | 27.04 | 0.804309 | 0 | 0 | 0.315789 | 0 | 0 | 0.161243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.894737 | 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 |
cb9a9f938d04eef36e03407a81078a1c33754d05 | 1,025 | py | Python | flask01/app.py | guoziyuan/lflask | 54f7a084b933a9d948086e7e2ec00081fb52e5f2 | [
"Apache-2.0"
] | null | null | null | flask01/app.py | guoziyuan/lflask | 54f7a084b933a9d948086e7e2ec00081fb52e5f2 | [
"Apache-2.0"
] | null | null | null | flask01/app.py | guoziyuan/lflask | 54f7a084b933a9d948086e7e2ec00081fb52e5f2 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from markupsafe import escape
from flask import url_for
from flask import request
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
# 默认只能接收get请求,也可以通过route装饰器设置请求类型
@app.route('/method', methods=['GET', 'POST'])
def method():
if request.method == 'GET':... | 17.083333 | 46 | 0.665366 | 140 | 1,025 | 4.714286 | 0.392857 | 0.045455 | 0.066667 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003542 | 0.173659 | 1,025 | 59 | 47 | 17.372881 | 0.775679 | 0.132683 | 0 | 0 | 0 | 0 | 0.190176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.133333 | 0.133333 | 0.5 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cb9d9acbfd41e8bd8dd1b0056ad53d2249b3e966 | 416 | py | Python | 5.py | ssabit/simulation-modeling | c084d9ba904b509b4cd4f95aec05a51d0b36b4e5 | [
"MIT"
] | null | null | null | 5.py | ssabit/simulation-modeling | c084d9ba904b509b4cd4f95aec05a51d0b36b4e5 | [
"MIT"
] | null | null | null | 5.py | ssabit/simulation-modeling | c084d9ba904b509b4cd4f95aec05a51d0b36b4e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""5.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1LMJzco9m298t2Umhpbj78twX_TbLTVcM
"""
start=25
end=50
print("Prime numbers between",start,"and",end,"are:")
for n in range(start,end+1):
if n>1:
for i ... | 20.8 | 77 | 0.59375 | 58 | 416 | 4.241379 | 0.741379 | 0.056911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058632 | 0.262019 | 416 | 20 | 78 | 20.8 | 0.742671 | 0.430288 | 0 | 0 | 1 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cba848a74fa8b5626153aba0b0e59c202426e737 | 451 | py | Python | apps/device/migrations/0006_device_updated_at_deploy.py | joewen85/mycmdb | b4855192a92c0a1f28f2af84d4f8cf7b215ff27c | [
"Apache-2.0"
] | 2 | 2019-05-24T03:48:10.000Z | 2020-07-01T14:58:31.000Z | apps/device/migrations/0006_device_updated_at_deploy.py | joewen85/mycmdb | b4855192a92c0a1f28f2af84d4f8cf7b215ff27c | [
"Apache-2.0"
] | null | null | null | apps/device/migrations/0006_device_updated_at_deploy.py | joewen85/mycmdb | b4855192a92c0a1f28f2af84d4f8cf7b215ff27c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2018-11-14 10:11
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('device', '0005_auto_20181107_1248'),
]
operations = [
migrations.AddField(
model_name='device',
name... | 22.55 | 91 | 0.636364 | 50 | 451 | 5.6 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091988 | 0.252772 | 451 | 19 | 92 | 23.736842 | 0.738872 | 0.099778 | 0 | 0 | 1 | 0 | 0.148515 | 0.056931 | 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 |
cbaa08648dc773456a4885d1578c9e9286f86079 | 1,249 | py | Python | kiez/hubness_reduction/base.py | cthoyt/kiez | 25f9f103ed51d4084e10f7ac532bb24183fe3894 | [
"BSD-3-Clause"
] | null | null | null | kiez/hubness_reduction/base.py | cthoyt/kiez | 25f9f103ed51d4084e10f7ac532bb24183fe3894 | [
"BSD-3-Clause"
] | null | null | null | kiez/hubness_reduction/base.py | cthoyt/kiez | 25f9f103ed51d4084e10f7ac532bb24183fe3894 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# adapted from skhubness
# SPDX-License-Identifier: BSD-3-Clause
from abc import ABC, abstractmethod
class HubnessReduction(ABC):
"""Base class for hubness reduction."""
@abstractmethod
def __init__(self, **kwargs):
pass
@abstractmethod
def fit(
self, nei... | 21.169492 | 83 | 0.592474 | 127 | 1,249 | 5.582677 | 0.409449 | 0.056417 | 0.078984 | 0.09591 | 0.246827 | 0.217207 | 0.141044 | 0.141044 | 0.141044 | 0.141044 | 0 | 0.002328 | 0.31225 | 1,249 | 58 | 84 | 21.534483 | 0.82305 | 0.188151 | 0 | 0.585366 | 0 | 0 | 0.018036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0.097561 | 0.02439 | 0.02439 | 0.317073 | 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 |
cbaa9b92ffb57f304a76c6136cc909a2193853c6 | 200 | py | Python | OnlineDelivery/forms.py | fallprojects/FoodDelivery | 05fe4a6ee53b28c37e8d1a95175114c760aa71db | [
"MIT"
] | null | null | null | OnlineDelivery/forms.py | fallprojects/FoodDelivery | 05fe4a6ee53b28c37e8d1a95175114c760aa71db | [
"MIT"
] | 4 | 2020-11-06T11:32:45.000Z | 2020-11-17T13:02:26.000Z | OnlineDelivery/forms.py | fallprojects/FoodDelivery | 05fe4a6ee53b28c37e8d1a95175114c760aa71db | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from .models import Complect
class ComplectForm(ModelForm):
class Meta:
model = Complect
fields = '__all__'
exclude = ['sale','price'] | 20 | 34 | 0.655 | 21 | 200 | 6.047619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255 | 200 | 10 | 35 | 20 | 0.852349 | 0 | 0 | 0 | 0 | 0 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
cbac9002c74d86b48e034403ff024a3ba483ea19 | 2,398 | py | Python | api/models.py | lebedovskiy/django-angular-jwt | 355fb6b80ade277081591fc23ccd19088e2588b2 | [
"MIT"
] | null | null | null | api/models.py | lebedovskiy/django-angular-jwt | 355fb6b80ade277081591fc23ccd19088e2588b2 | [
"MIT"
] | null | null | null | api/models.py | lebedovskiy/django-angular-jwt | 355fb6b80ade277081591fc23ccd19088e2588b2 | [
"MIT"
] | null | null | null | from .managers import UserManager
import jwt
from datetime import datetime, timedelta
from django.db import models
from django.conf import settings
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.utils.translation import ugettext_lazy a... | 29.604938 | 107 | 0.668057 | 285 | 2,398 | 5.452632 | 0.442105 | 0.032175 | 0.03668 | 0.030888 | 0.106821 | 0.093951 | 0.063063 | 0.063063 | 0 | 0 | 0 | 0.008625 | 0.226439 | 2,398 | 80 | 108 | 29.975 | 0.829111 | 0.141785 | 0 | 0.046512 | 0 | 0 | 0.060465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.186047 | 0.023256 | 0.744186 | 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 |
cbb4145205b68f415d1ef368a9610a900c214d4f | 959 | py | Python | user3.py | davidthaler/Kaggle-Avito-2015 | 58482f16d1429b1a024dfe35acbbc60f1eb7a6cd | [
"MIT"
] | null | null | null | user3.py | davidthaler/Kaggle-Avito-2015 | 58482f16d1429b1a024dfe35acbbc60f1eb7a6cd | [
"MIT"
] | null | null | null | user3.py | davidthaler/Kaggle-Avito-2015 | 58482f16d1429b1a024dfe35acbbc60f1eb7a6cd | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | '''
This script records the steps for creating the user3.pkl file in ARTIFACTS.
It collects a 5% sample by value of UserIDs, and produces a dict like:
{SearchID: [UserID,
SearchDate,
CategoryID,
IsLoggedOn,
SearchQuery exists,
SearchParams exists]}
Fields... | 34.25 | 75 | 0.656934 | 129 | 959 | 4.829457 | 0.565891 | 0.096308 | 0.104334 | 0.081862 | 0.064205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020243 | 0.22732 | 959 | 28 | 76 | 34.25 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.170874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
cbb4ae9842bb99552e05df0e89e2df84e2f419f5 | 753 | py | Python | gestao/administracao_geral/models/empresa/DadosDaEmpresaContaDeBanco.py | Smartboxweb98/gestao_empresarial | ff41ccfc3c8bd2fc4b87dea5b2a48fa82f8e7195 | [
"CC0-1.0"
] | 3 | 2015-05-19T17:20:52.000Z | 2017-10-28T02:48:29.000Z | gestao/administracao_geral/models/empresa/DadosDaEmpresaContaDeBanco.py | Smartboxweb98/gestao_empresarial | ff41ccfc3c8bd2fc4b87dea5b2a48fa82f8e7195 | [
"CC0-1.0"
] | null | null | null | gestao/administracao_geral/models/empresa/DadosDaEmpresaContaDeBanco.py | Smartboxweb98/gestao_empresarial | ff41ccfc3c8bd2fc4b87dea5b2a48fa82f8e7195 | [
"CC0-1.0"
] | 3 | 2015-06-20T05:05:22.000Z | 2018-09-20T12:02:32.000Z | # -*- coding: utf-8 -*-
from django.db import models
from gestao.administracao_geral.models.empresa.DadosDaEmpresa import \
DadosDaEmpresa
from gestao.financeiro.models.basico.ContaDeBanco import ContaDeBanco
class DadosDaEmpresaContaDeBanco(models.Model):
dados_da_empresa = models.ForeignKey(DadosDaEmpresa, ... | 35.857143 | 89 | 0.705179 | 83 | 753 | 6.180723 | 0.493976 | 0.070175 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001675 | 0.207171 | 753 | 21 | 90 | 35.857143 | 0.857621 | 0.027888 | 0 | 0 | 0 | 0 | 0.140903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 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 |
cbbb62858f84f6e294e4732c7e0cbd4ecb5f1446 | 1,747 | py | Python | scripts/aa_list.py | phabel-LD/python_class-2 | ac21d0d0e0e46c345dbcdb8cc0f47c11c17bff6b | [
"MIT"
] | null | null | null | scripts/aa_list.py | phabel-LD/python_class-2 | ac21d0d0e0e46c345dbcdb8cc0f47c11c17bff6b | [
"MIT"
] | null | null | null | scripts/aa_list.py | phabel-LD/python_class-2 | ac21d0d0e0e46c345dbcdb8cc0f47c11c17bff6b | [
"MIT"
] | null | null | null | '''
NAME
aa_list.py
VERSION
[1.0]
AUTHOR
Daianna Gonzalez Padilla <daianna@lcg.unam.mx>
DESCRIPTION
This programs generates a function to determine the percentage of amino acids given in a list of a
protein sequence
CATEGORY
Protein sequence analysis
USAGE
None
ARGUMENTS
This prog... | 29.116667 | 105 | 0.73154 | 264 | 1,747 | 4.719697 | 0.397727 | 0.064205 | 0.08427 | 0.140449 | 0.279294 | 0.184591 | 0.117175 | 0.067416 | 0.067416 | 0.067416 | 0 | 0.013076 | 0.168288 | 1,747 | 60 | 105 | 29.116667 | 0.84446 | 0.566113 | 0 | 0 | 1 | 0 | 0.275168 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbbda451103405d5b77951c15aaee8c64a665739 | 1,310 | py | Python | doubleratchet/aead.py | mmojahed93/python-doubleratchet | 3a8ae7a2ab2222f50df0b8077d89b05447532978 | [
"MIT"
] | 8 | 2018-03-28T11:15:30.000Z | 2021-10-18T05:43:51.000Z | doubleratchet/aead.py | mmojahed93/python-doubleratchet | 3a8ae7a2ab2222f50df0b8077d89b05447532978 | [
"MIT"
] | null | null | null | doubleratchet/aead.py | mmojahed93/python-doubleratchet | 3a8ae7a2ab2222f50df0b8077d89b05447532978 | [
"MIT"
] | 6 | 2019-04-22T20:13:25.000Z | 2021-09-13T16:24:32.000Z | class AEAD(object):
"""
Authenticated Encryption with Associated Data (AEAD).
"""
def encrypt(self, plaintext, key, ad):
"""
Encrypt given plaintext using given key and authenticating using given associated
data.
:param plaintext: A bytes-like object encoding the data t... | 39.69697 | 89 | 0.677863 | 160 | 1,310 | 5.55 | 0.275 | 0.054054 | 0.09009 | 0.144144 | 0.463964 | 0.398649 | 0.398649 | 0.398649 | 0.324324 | 0.324324 | 0 | 0 | 0.263359 | 1,310 | 32 | 90 | 40.9375 | 0.920207 | 0.725191 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbc066dd739c281139609847afdd1adc1de7a4e6 | 1,173 | py | Python | CW_Portal/urls.py | IIIT-Delhi/sg-cw-iiitd | a85e90fccc3f6a11446bfd9200b32444fd0a13d2 | [
"MIT"
] | null | null | null | CW_Portal/urls.py | IIIT-Delhi/sg-cw-iiitd | a85e90fccc3f6a11446bfd9200b32444fd0a13d2 | [
"MIT"
] | 14 | 2020-12-26T13:18:17.000Z | 2022-01-06T10:49:04.000Z | CW_Portal/urls.py | IIIT-Delhi/sg-cw-iiitd | a85e90fccc3f6a11446bfd9200b32444fd0a13d2 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
import studentportal
admin.autodiscover()
from studentportal.views import index, first_login
from ... | 33.514286 | 80 | 0.671782 | 128 | 1,173 | 6.046875 | 0.328125 | 0.036176 | 0.041344 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012848 | 0.203751 | 1,173 | 34 | 81 | 34.5 | 0.815846 | 0 | 0 | 0 | 0 | 0 | 0.178176 | 0.056266 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 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 |
cbc51388fc208bc6e6bf505a2f334f2b0272d213 | 611 | py | Python | tests/transform/llvm/test_ar.py | hutoTUM/MakeAdditions | 85fbe80c16d24abdddeee2d737f046a5bd1a9604 | [
"Apache-2.0"
] | null | null | null | tests/transform/llvm/test_ar.py | hutoTUM/MakeAdditions | 85fbe80c16d24abdddeee2d737f046a5bd1a9604 | [
"Apache-2.0"
] | null | null | null | tests/transform/llvm/test_ar.py | hutoTUM/MakeAdditions | 85fbe80c16d24abdddeee2d737f046a5bd1a9604 | [
"Apache-2.0"
] | null | null | null | from ..TransformationTestCase import TransformationTestCase
from makeadditions.config import LLVMLINK
class TestTransformLlvmAr(TransformationTestCase):
def test_ar_cq_bzip2(self):
self.assertTransformation(
LLVMLINK + " -o libbz2.a.bc blocksort.bc huffman.bc",
"ar cq libbz2.a blo... | 32.157895 | 71 | 0.649755 | 69 | 611 | 5.666667 | 0.405797 | 0.035806 | 0.046036 | 0.184143 | 0.189258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.243863 | 611 | 18 | 72 | 33.944444 | 0.839827 | 0 | 0 | 0.142857 | 0 | 0 | 0.319149 | 0.03437 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbcb6a6ad5068b4775ae59759b9b212080d94ce7 | 4,754 | py | Python | pywren/wrenconfig.py | pxgao/pywren | 6e8f445c1ca3b5ea9cdc011605968cdff4b95262 | [
"Apache-2.0"
] | null | null | null | pywren/wrenconfig.py | pxgao/pywren | 6e8f445c1ca3b5ea9cdc011605968cdff4b95262 | [
"Apache-2.0"
] | null | null | null | pywren/wrenconfig.py | pxgao/pywren | 6e8f445c1ca3b5ea9cdc011605968cdff4b95262 | [
"Apache-2.0"
] | null | null | null | import os
GENERIC_HANDLER_NAME = "wrenhandler.generic_handler"
AWS_LAMBDA_HANDLER_NAME = "wrenhandler.aws_lambda_handler"
PACKAGE_FILE = "deploy.zip"
MEMORY = 512 * 3
TIMEOUT = 300
AWS_ACCOUNT_ID = 783175685819
AWS_ROLE = "helloworld_exec_role"
ROLE = "arn:aws:iam::{}:role/{}".format(AWS_ACCOUNT_ID, AWS_ROLE)
AW... | 28.812121 | 139 | 0.582036 | 509 | 4,754 | 5.174853 | 0.275049 | 0.063781 | 0.027335 | 0.029613 | 0.257403 | 0.176538 | 0.153759 | 0.153759 | 0.153759 | 0.138952 | 0 | 0.019773 | 0.276609 | 4,754 | 164 | 140 | 28.987805 | 0.746147 | 0.074043 | 0 | 0.209677 | 0 | 0 | 0.34329 | 0.095129 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.040323 | false | 0 | 0.016129 | 0 | 0.096774 | 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 |
cbd1ca63d5b5e4fb12bb1da386a9eccd29190060 | 467 | py | Python | PYTHON CODES/Tough Questions/MultiDigitRev.Number&Palindrome.py | Pavan1199/PURE-PYTHON-CODES | f0b9823e264e67a498a742eb66ab569cc1861b5e | [
"MIT"
] | 2 | 2019-03-31T14:10:44.000Z | 2019-05-03T17:19:00.000Z | PYTHON CODES/Tough Questions/MultiDigitRev.Number&Palindrome.py | Pavan1199/PURE-PYTHON-CODES | f0b9823e264e67a498a742eb66ab569cc1861b5e | [
"MIT"
] | null | null | null | PYTHON CODES/Tough Questions/MultiDigitRev.Number&Palindrome.py | Pavan1199/PURE-PYTHON-CODES | f0b9823e264e67a498a742eb66ab569cc1861b5e | [
"MIT"
] | null | null | null | '''program to input a multidigit no. and
1)print sum
2)print the reverse number
3)check whether the given no. is a palindrome '''
n=input("Enter A Multidigit Number:")
i=1
s=0
while n>i:
f=i*10
x=(n%f)
x=x/i
s=s+x
i*=10
print 'Sum Of The Digits Is', s
m=n
r=0
while n!=0:
d=n%10
... | 17.961538 | 50 | 0.586724 | 98 | 467 | 2.795918 | 0.387755 | 0.120438 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050898 | 0.284797 | 467 | 25 | 51 | 18.68 | 0.769461 | 0 | 0 | 0 | 0 | 0 | 0.354633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cbd7a1fbc6e7b4819e8c2789669998c01b4e5a6a | 200 | py | Python | team_9/cocos/docgen/programming_guide/skeleton/body_and_arm_skin.py | Donnyvdm/dojo19 | 3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400 | [
"BSD-3-Clause"
] | 1 | 2019-09-15T18:59:49.000Z | 2019-09-15T18:59:49.000Z | team_9/cocos/docgen/programming_guide/skeleton/body_and_arm_skin.py | Donnyvdm/dojo19 | 3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400 | [
"BSD-3-Clause"
] | null | null | null | team_9/cocos/docgen/programming_guide/skeleton/body_and_arm_skin.py | Donnyvdm/dojo19 | 3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400 | [
"BSD-3-Clause"
] | null | null | null |
skin = [
('body', (25, 91), 'gil-cuerpo.png', True, True, 0.5),
('lower_arm', (0, 0), 'gil-mano1.png', False, False, 0.5),
('upper_arm', (0, 0), 'gil-brazo1.png', False, False, 0.5),
]
| 28.571429 | 63 | 0.515 | 33 | 200 | 3.060606 | 0.484848 | 0.059406 | 0.09901 | 0.158416 | 0.29703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.2 | 200 | 6 | 64 | 33.333333 | 0.53125 | 0 | 0 | 0 | 0 | 0 | 0.316583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cbd882a6748a6c9fbd49075ec36820dc94cc8682 | 6,831 | py | Python | tools/android/loading/prefetch_view.py | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | tools/android/loading/prefetch_view.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/android/loading/prefetch_view.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Models the effect of prefetching resources from a loading trace.
For example, this can be used to evaluate NoState Prefetch
(https://goo.gl/B3nRUR).
Whe... | 35.578125 | 80 | 0.729615 | 820 | 6,831 | 5.890244 | 0.269512 | 0.056315 | 0.028571 | 0.020704 | 0.184265 | 0.150311 | 0.103106 | 0.050104 | 0.050104 | 0.050104 | 0 | 0.002513 | 0.1846 | 6,831 | 191 | 81 | 35.764398 | 0.864632 | 0.045821 | 0 | 0.13913 | 0 | 0 | 0.041128 | 0 | 0 | 0 | 0 | 0.005236 | 0.008696 | 0 | null | null | 0 | 0.086957 | null | null | 0.026087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cbe0739ed6be0b1af55c25ceee36b71fdaf79061 | 429 | py | Python | fault/verilog_utils.py | David-Durst/fault | 523b684d94c95f7c4cca653ecfb53897ca41e37c | [
"BSD-3-Clause"
] | null | null | null | fault/verilog_utils.py | David-Durst/fault | 523b684d94c95f7c4cca653ecfb53897ca41e37c | [
"BSD-3-Clause"
] | null | null | null | fault/verilog_utils.py | David-Durst/fault | 523b684d94c95f7c4cca653ecfb53897ca41e37c | [
"BSD-3-Clause"
] | null | null | null | import magma as m
def verilog_name(name):
if isinstance(name, m.ref.DefnRef):
return str(name)
if isinstance(name, m.ref.ArrayRef):
array_name = verilog_name(name.array.name)
return f"{array_name}_{name.index}"
if isinstance(name, m.ref.TupleRef):
tuple_name = verilog_name(... | 30.642857 | 50 | 0.67366 | 60 | 429 | 4.666667 | 0.366667 | 0.142857 | 0.160714 | 0.182143 | 0.242857 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 429 | 13 | 51 | 33 | 0.821114 | 0 | 0 | 0 | 0 | 0 | 0.11655 | 0.11655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.454545 | 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 |
1dab803acb7e5203260f8d3a095ed42e181be16a | 603 | py | Python | examples/DummyProcess.py | banalna/pip-services3-container-python | d26aee1f49840eb0dac4ccb290b4808550494354 | [
"MIT"
] | null | null | null | examples/DummyProcess.py | banalna/pip-services3-container-python | d26aee1f49840eb0dac4ccb290b4808550494354 | [
"MIT"
] | null | null | null | examples/DummyProcess.py | banalna/pip-services3-container-python | d26aee1f49840eb0dac4ccb290b4808550494354 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
test.DummyProcess
~~~~~~~~~~~~~~~~~
Dummy process implementation
:copyright: Conceptual Vision Consulting LLC 2015-2016, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from pip_services3_container.ProcessContainer import ProcessC... | 28.714286 | 89 | 0.691542 | 62 | 603 | 6.516129 | 0.645161 | 0.034653 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020367 | 0.185738 | 603 | 20 | 90 | 30.15 | 0.802444 | 0.364842 | 0 | 0 | 0 | 0 | 0.132565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1db05a9ddd5a66ca63ac8671b05bc64be8b15cd5 | 3,322 | py | Python | websauna/tests/user/test_register.py | stevepiercy/websauna | 2886b86f7920d75900c634958779d61aa73f011b | [
"CNRI-Python"
] | 286 | 2016-01-17T05:44:02.000Z | 2022-02-07T20:28:49.000Z | websauna/tests/user/test_register.py | stevepiercy/websauna | 2886b86f7920d75900c634958779d61aa73f011b | [
"CNRI-Python"
] | 203 | 2016-03-15T02:00:53.000Z | 2021-09-27T10:48:49.000Z | websauna/tests/user/test_register.py | ooduor/websauna | 2e78cd87eda305fbbb1080d386b8cf96537360e5 | [
"CNRI-Python"
] | 71 | 2016-01-17T11:04:26.000Z | 2021-08-24T08:04:31.000Z | # Standard Library
from datetime import timedelta
# Pyramid
import transaction
# Websauna
from websauna.system.user.models import Activation
from websauna.system.user.models import User
from websauna.utils.time import now
EMAIL = "example@example.com"
PASSWORD = "ToholamppiMadCowz585"
def get_user(dbsession):
... | 27.915966 | 97 | 0.701385 | 463 | 3,322 | 4.825054 | 0.220302 | 0.033572 | 0.048344 | 0.085944 | 0.60385 | 0.556401 | 0.498657 | 0.377798 | 0.305282 | 0.286482 | 0 | 0.003247 | 0.165563 | 3,322 | 118 | 98 | 28.152542 | 0.80267 | 0.098435 | 0 | 0.449275 | 0 | 0 | 0.187101 | 0.048371 | 0 | 0 | 0 | 0 | 0.188406 | 1 | 0.043478 | false | 0.202899 | 0.086957 | 0 | 0.144928 | 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 |
1db3dd1d9cc41b0fec32b0375e9a78b73c50e698 | 2,875 | py | Python | tools/check_array_format.py | WoolleySheep/search-functions | 513b23fd58f08bfc7d978be35cfd3abecac9d904 | [
"MIT"
] | null | null | null | tools/check_array_format.py | WoolleySheep/search-functions | 513b23fd58f08bfc7d978be35cfd3abecac9d904 | [
"MIT"
] | null | null | null | tools/check_array_format.py | WoolleySheep/search-functions | 513b23fd58f08bfc7d978be35cfd3abecac9d904 | [
"MIT"
] | null | null | null | """
-----------------------------
Author: Matthew Woolley
Email: matt.wool@live.com.au
-----------------------------
Functions for testing whether an object can be searched
"""
import matplotlib.pyplot as plt
from scipy.stats import chisquare, kstest
from tabulate import tabulate
def is_array_correct_format(
ar... | 27.380952 | 85 | 0.626783 | 380 | 2,875 | 4.563158 | 0.305263 | 0.032295 | 0.023068 | 0.019608 | 0.080738 | 0.031142 | 0 | 0 | 0 | 0 | 0 | 0.008008 | 0.261565 | 2,875 | 104 | 86 | 27.644231 | 0.808761 | 0.147826 | 0 | 0.126984 | 0 | 0 | 0.117769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0.095238 | 0.047619 | 0.031746 | 0.285714 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1db7b595a673131a866fdad0b3479d82333a0040 | 2,467 | py | Python | tpDcc/dccs/mobu/core/namespace.py | tpDcc/tpDcc-dccs-mobu | 1e28dfa95d72aeaccf4c916259b7e07380758cc7 | [
"MIT"
] | null | null | null | tpDcc/dccs/mobu/core/namespace.py | tpDcc/tpDcc-dccs-mobu | 1e28dfa95d72aeaccf4c916259b7e07380758cc7 | [
"MIT"
] | null | null | null | tpDcc/dccs/mobu/core/namespace.py | tpDcc/tpDcc-dccs-mobu | 1e28dfa95d72aeaccf4c916259b7e07380758cc7 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains functions and classes related with namespaces for MotionBuilder
"""
import re
import pyfbsdk
from tpDcc.libs.python import python
from tpDcc.dccs.mobu.core import node as node_utils
def get_namespace(node):
"""
Returns the namespace ... | 28.686047 | 98 | 0.717876 | 308 | 2,467 | 5.668831 | 0.275974 | 0.034364 | 0.040092 | 0.025773 | 0.439863 | 0.382589 | 0.382589 | 0.382589 | 0.382589 | 0.382589 | 0 | 0.000508 | 0.202675 | 2,467 | 85 | 99 | 29.023529 | 0.887138 | 0.352655 | 0 | 0.333333 | 0 | 0 | 0.007493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1dc2f94a9f64ad9e55819ef53f982d07a4663c53 | 1,685 | py | Python | __init__.py | macborow/anki_pinyin | 430b74fbce6a8fcca0a79a9153aad5ff521ad5c1 | [
"MIT"
] | null | null | null | __init__.py | macborow/anki_pinyin | 430b74fbce6a8fcca0a79a9153aad5ff521ad5c1 | [
"MIT"
] | null | null | null | __init__.py | macborow/anki_pinyin | 430b74fbce6a8fcca0a79a9153aad5ff521ad5c1 | [
"MIT"
] | null | null | null |
from aqt.editor import Editor
from anki.hooks import addHook
from . import tones
from . import tokens
def colour_tones(text):
"""
Returns HTML with syllables marked with colours according to the tone number:
- 1st tone: blue
- 2nd tone: red
- 3rd tone: green
- 4th tone/neutral... | 28.559322 | 83 | 0.574481 | 189 | 1,685 | 5.015873 | 0.444444 | 0.046414 | 0.07173 | 0.044304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031332 | 0.318101 | 1,685 | 58 | 84 | 29.051724 | 0.793734 | 0.156677 | 0 | 0.052632 | 0 | 0 | 0.096939 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.236842 | 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 |
1dc4672826b0bb67a4e3071fd44eb005487bd7e5 | 2,254 | py | Python | src/piony/migrations/0004_auto_20190317_0024_squashed_0008_auto_20190317_1050.py | mpasternak/dyzurmajster3 | 0861ad512280458bc7158c8295c480b28efdf570 | [
"MIT"
] | null | null | null | src/piony/migrations/0004_auto_20190317_0024_squashed_0008_auto_20190317_1050.py | mpasternak/dyzurmajster3 | 0861ad512280458bc7158c8295c480b28efdf570 | [
"MIT"
] | 24 | 2019-04-10T01:18:28.000Z | 2021-06-10T18:01:14.000Z | src/piony/migrations/0004_auto_20190317_0024_squashed_0008_auto_20190317_1050.py | mpasternak/dyzurmajster3 | 0861ad512280458bc7158c8295c480b28efdf570 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-17 09:51
import django.core.validators
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
replaces = [('piony', '0004_auto_20190317_0024'), ('piony', '0005_auto_20190317_0038'), ('piony', '0006_auto_20190317_1050'), ('piony', '0007_... | 39.54386 | 205 | 0.629547 | 230 | 2,254 | 6.026087 | 0.434783 | 0.051948 | 0.064935 | 0.082251 | 0.368687 | 0.368687 | 0.368687 | 0.368687 | 0.331169 | 0.331169 | 0 | 0.131855 | 0.239574 | 2,254 | 56 | 206 | 40.25 | 0.676779 | 0.019965 | 0 | 0.55102 | 1 | 0 | 0.245582 | 0.158133 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dc6a10f8f5b8887fbdd00ff69f330b4b39c9ce9 | 819 | py | Python | eee3097s_project/Command Line Scripts/forestRanger.py | StevenThomi/eee3097s_project | c2b64f974afe3a620c4c72e348eb85c9b4187cb0 | [
"MIT"
] | null | null | null | eee3097s_project/Command Line Scripts/forestRanger.py | StevenThomi/eee3097s_project | c2b64f974afe3a620c4c72e348eb85c9b4187cb0 | [
"MIT"
] | 1 | 2020-08-19T15:39:04.000Z | 2020-08-19T15:39:04.000Z | eee3097s_project/Command Line Scripts/forestRanger.py | StevenThomi/eee3097s_project | c2b64f974afe3a620c4c72e348eb85c9b4187cb0 | [
"MIT"
] | null | null | null | # import Enum class library, and User class
from enum import Enum, unique
from User import User
@unique
class Forest(Enum):
AMAZON = 1
CONGO = 2
BURMESE = 3
BORNEO = 4
VALDIVIAN = 5
# define the forest ranger user type
class ForestRanger(User):
def __init__(self, forest = 1):
super()._... | 24.818182 | 65 | 0.622711 | 103 | 819 | 4.737864 | 0.466019 | 0.143443 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.274725 | 819 | 32 | 66 | 25.59375 | 0.806397 | 0.177045 | 0 | 0 | 0 | 0 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0.043478 | 0.608696 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.