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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16cdcf2973e1ad025656e14cb783431442084516 | 6,489 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_local_user_manager.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 7 | 2021-11-16T04:05:42.000Z | 2022-02-19T21:14:29.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_local_user_manager.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_local_user_manager.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2022-03-01T05:43:07.000Z | 2022-03-01T05:43:07.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, IBM Corp
# Author(s): Andreas Nafpliotis <nafpliot@de.ibm.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMEN... | 34.515957 | 132 | 0.643088 | 747 | 6,489 | 5.340027 | 0.253012 | 0.063174 | 0.035097 | 0.045124 | 0.319629 | 0.259464 | 0.248433 | 0.230384 | 0.21083 | 0.21083 | 0 | 0.002746 | 0.270304 | 6,489 | 187 | 133 | 34.700535 | 0.839704 | 0.032517 | 0 | 0.258278 | 0 | 0.013245 | 0.264828 | 0.028858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066225 | false | 0.059603 | 0.033113 | 0 | 0.13245 | 0.006623 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16d4e17a6c57a5869df20eef32aaf98207d9114e | 332 | py | Python | apps/subjects/migrations/0005_remove_subject_classroom.py | thiagojack/school_manager | b6fa9d62e598ba2b6ba8ae719e27f5dc920f098e | [
"MIT"
] | null | null | null | apps/subjects/migrations/0005_remove_subject_classroom.py | thiagojack/school_manager | b6fa9d62e598ba2b6ba8ae719e27f5dc920f098e | [
"MIT"
] | null | null | null | apps/subjects/migrations/0005_remove_subject_classroom.py | thiagojack/school_manager | b6fa9d62e598ba2b6ba8ae719e27f5dc920f098e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-02-09 14:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('subjects', '0004_subject_classroom'),
]
operations = [
migrations.RemoveField(
model_name='subject',
name='classroom',
... | 18.444444 | 47 | 0.596386 | 34 | 332 | 5.735294 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080851 | 0.292169 | 332 | 17 | 48 | 19.529412 | 0.748936 | 0.135542 | 0 | 0 | 1 | 0 | 0.161404 | 0.077193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16d9fe81d6eb6f2bd9727e6c6819319d4926e355 | 848 | py | Python | 14/tests.py | remihuguet/aoc2020 | c313c5b425dda92d949fd9ca4f18ff66f452794f | [
"MIT"
] | null | null | null | 14/tests.py | remihuguet/aoc2020 | c313c5b425dda92d949fd9ca4f18ff66f452794f | [
"MIT"
] | null | null | null | 14/tests.py | remihuguet/aoc2020 | c313c5b425dda92d949fd9ca4f18ff66f452794f | [
"MIT"
] | null | null | null | import docking
def test_compute_simple_masking_from_int():
mask = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X'
val = 11
assert 73 == docking.apply_mask(val, mask)
val = 101
assert 101 == docking.apply_mask(val, mask)
val = 0
assert 64 == docking.apply_mask(val, mask)
def test_compute_init_p... | 22.315789 | 77 | 0.709906 | 111 | 848 | 5.162162 | 0.342342 | 0.061082 | 0.122164 | 0.099476 | 0.581152 | 0.547993 | 0.394415 | 0.394415 | 0.394415 | 0.394415 | 0 | 0.167862 | 0.178066 | 848 | 37 | 78 | 22.918919 | 0.654232 | 0 | 0 | 0.285714 | 0 | 0 | 0.170012 | 0.127509 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16dfe5655f7213e4b1ffcd3e320b8a0564d130dc | 2,092 | py | Python | apps/methodologies/models.py | vulnman/vulnman | d48ee022bc0e4368060a990a527b1c7a5e437504 | [
"MIT"
] | 3 | 2021-12-22T07:02:24.000Z | 2022-01-27T20:19:11.000Z | apps/methodologies/models.py | vulnman/vulnman | d48ee022bc0e4368060a990a527b1c7a5e437504 | [
"MIT"
] | 44 | 2021-12-14T07:24:29.000Z | 2022-03-23T07:01:16.000Z | apps/methodologies/models.py | vulnman/vulnman | d48ee022bc0e4368060a990a527b1c7a5e437504 | [
"MIT"
] | 1 | 2022-01-21T16:29:56.000Z | 2022-01-21T16:29:56.000Z | from django.db import models
from django.urls import reverse_lazy
from django.contrib.auth.models import User
from vulnman.models import VulnmanModel, VulnmanProjectModel
from apps.methodologies import constants
from apps.assets.models import ASSET_TYPES_CHOICES
TASK_STATUS_CHOICES = [
(0, "Open"),
(1, "Close... | 29.885714 | 78 | 0.673518 | 244 | 2,092 | 5.586066 | 0.364754 | 0.044021 | 0.041086 | 0.061629 | 0.202495 | 0.123258 | 0.123258 | 0.123258 | 0 | 0 | 0 | 0.015281 | 0.217973 | 2,092 | 69 | 79 | 30.318841 | 0.817848 | 0 | 0 | 0.090909 | 0 | 0 | 0.0913 | 0.010038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.109091 | 0.018182 | 0.563636 | 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 |
16e23239826df2525d6018096db7a1514d327c0d | 1,708 | py | Python | vmoe/nn/external.py | google-research/vmoe | 38a1e4f75c3eb268b974f8860497ec9f17b46504 | [
"Apache-2.0"
] | 205 | 2021-11-10T12:04:30.000Z | 2022-03-30T08:26:18.000Z | vmoe/nn/external.py | google-research/vmoe | 38a1e4f75c3eb268b974f8860497ec9f17b46504 | [
"Apache-2.0"
] | 3 | 2022-01-18T08:13:17.000Z | 2022-01-25T05:46:11.000Z | vmoe/nn/external.py | google-research/vmoe | 38a1e4f75c3eb268b974f8860497ec9f17b46504 | [
"Apache-2.0"
] | 27 | 2022-01-14T05:38:47.000Z | 2022-03-17T05:20:55.000Z | # Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.16 | 75 | 0.75 | 238 | 1,708 | 5.189076 | 0.470588 | 0.048583 | 0.051012 | 0.065587 | 0.361134 | 0.325506 | 0.325506 | 0.252632 | 0.252632 | 0.252632 | 0 | 0.005591 | 0.162178 | 1,708 | 49 | 76 | 34.857143 | 0.857442 | 0.484778 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
16ece412bf9a103a10cb9a2d781daca5c039e557 | 360 | py | Python | phonebook/telweb/migrations/0002_auto_20190827_1026.py | Necromoshka/WebPhonebook | 7369bc623660caaf2ba0dba5b52615264ceda75c | [
"MIT"
] | null | null | null | phonebook/telweb/migrations/0002_auto_20190827_1026.py | Necromoshka/WebPhonebook | 7369bc623660caaf2ba0dba5b52615264ceda75c | [
"MIT"
] | 6 | 2020-06-05T22:42:16.000Z | 2022-02-10T10:00:38.000Z | phonebook/telweb/migrations/0002_auto_20190827_1026.py | Necromoshka/WebPhonebook | 7369bc623660caaf2ba0dba5b52615264ceda75c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-08-27 10:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('telweb', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='person',
old_name='surname',
new_... | 18.947368 | 47 | 0.580556 | 37 | 360 | 5.540541 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076 | 0.305556 | 360 | 18 | 48 | 20 | 0.744 | 0.125 | 0 | 0 | 1 | 0 | 0.14377 | 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 |
16efb336535f68524255ef06af50ed7fca77c796 | 652 | py | Python | backend/app/posts/migrations/0001_initial.py | soroosha/live-feed-sample | d66574ba8dde6d4db38756a1e8f7a07cdc770a98 | [
"MIT"
] | null | null | null | backend/app/posts/migrations/0001_initial.py | soroosha/live-feed-sample | d66574ba8dde6d4db38756a1e8f7a07cdc770a98 | [
"MIT"
] | null | null | null | backend/app/posts/migrations/0001_initial.py | soroosha/live-feed-sample | d66574ba8dde6d4db38756a1e8f7a07cdc770a98 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.12 on 2020-05-01 16:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(au... | 27.166667 | 118 | 0.556748 | 67 | 652 | 5.343284 | 0.746269 | 0.083799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049784 | 0.291411 | 652 | 23 | 119 | 28.347826 | 0.725108 | 0.070552 | 0 | 0 | 1 | 0 | 0.076159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 |
bc43e67015d1339530f8311c12428e2b20f95470 | 1,071 | py | Python | general_maths/sph_harms/azi_deriv.py | chrisjdavie/ws_cross_project | 10ffd6d0df1aeea0e5d2d6c5dfddab907a2cd439 | [
"MIT"
] | null | null | null | general_maths/sph_harms/azi_deriv.py | chrisjdavie/ws_cross_project | 10ffd6d0df1aeea0e5d2d6c5dfddab907a2cd439 | [
"MIT"
] | null | null | null | general_maths/sph_harms/azi_deriv.py | chrisjdavie/ws_cross_project | 10ffd6d0df1aeea0e5d2d6c5dfddab907a2cd439 | [
"MIT"
] | null | null | null | '''
Examining the gradients of the azimuthally symmetric legendre polynomial.
Created on 1 May 2013
@author: chris
'''
def main():
l = 4
a = max_n_minimas(l)
print a
def leg_poly(l):
m = 0
from pert_sphere import pert_sphere
rs, thetas, _ = pert_sphere(l,m)
rs = rs[:,0]
theta... | 21.857143 | 73 | 0.575163 | 165 | 1,071 | 3.442424 | 0.321212 | 0.06162 | 0.084507 | 0.042254 | 0.080986 | 0.080986 | 0.080986 | 0.080986 | 0.080986 | 0 | 0 | 0.040268 | 0.304388 | 1,071 | 49 | 74 | 21.857143 | 0.722148 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc4446ac8c556b11f5d68b6951f8d78f61a5b596 | 5,804 | py | Python | scripts/download_pretrained_models.py | gerialkot/BasicSR | 45e232d02b0d41612b77d6e0cc3b1ef36951c50d | [
"Apache-2.0",
"MIT"
] | null | null | null | scripts/download_pretrained_models.py | gerialkot/BasicSR | 45e232d02b0d41612b77d6e0cc3b1ef36951c50d | [
"Apache-2.0",
"MIT"
] | null | null | null | scripts/download_pretrained_models.py | gerialkot/BasicSR | 45e232d02b0d41612b77d6e0cc3b1ef36951c50d | [
"Apache-2.0",
"MIT"
] | null | null | null | import argparse
import os
from os import path as osp
from basicsr.utils.download_util import download_file_from_google_drive
def download_pretrained_models(method, file_ids):
save_path_root = f'./experiments/pretrained_models/{method}'
os.makedirs(save_path_root, exist_ok=True)
for file_name, file_id in... | 42.676471 | 94 | 0.644383 | 563 | 5,804 | 6.225577 | 0.445826 | 0.019971 | 0.017118 | 0.01883 | 0.147218 | 0.054779 | 0.033666 | 0.033666 | 0.033666 | 0.033666 | 0 | 0.124825 | 0.262922 | 5,804 | 135 | 95 | 42.992593 | 0.694483 | 0.004824 | 0 | 0.039683 | 0 | 0 | 0.548683 | 0.487006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007937 | false | 0 | 0.031746 | 0 | 0.039683 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc49ec25ec889523daef1ad1610dadce1d56b070 | 1,156 | py | Python | rec_to_nwb/processing/nwb/components/associated_files/fl_associated_files_manager.py | LorenFrankLab/rec_to_nwb | d0630f414662963ebbe23aedf8f3ce07628636bc | [
"Apache-2.0"
] | 1 | 2021-01-20T00:26:30.000Z | 2021-01-20T00:26:30.000Z | rec_to_nwb/processing/nwb/components/associated_files/fl_associated_files_manager.py | LorenFrankLab/rec_to_nwb | d0630f414662963ebbe23aedf8f3ce07628636bc | [
"Apache-2.0"
] | 12 | 2020-11-13T01:36:32.000Z | 2022-01-23T20:35:55.000Z | rec_to_nwb/processing/nwb/components/associated_files/fl_associated_files_manager.py | LorenFrankLab/rec_to_nwb | d0630f414662963ebbe23aedf8f3ce07628636bc | [
"Apache-2.0"
] | 3 | 2020-10-20T06:52:45.000Z | 2021-07-06T23:00:53.000Z | from rec_to_nwb.processing.nwb.components.associated_files.fl_associated_files_builder import \
FlAssociatedFilesBuilder
from rec_to_nwb.processing.nwb.components.associated_files.fl_associated_files_reader import \
FlAssociatedFilesReader
from rec_to_nwb.processing.tools.beartype.beartype import beartype
cla... | 38.533333 | 95 | 0.720588 | 124 | 1,156 | 6.298387 | 0.33871 | 0.24968 | 0.152369 | 0.107554 | 0.340589 | 0.171575 | 0.171575 | 0.171575 | 0.171575 | 0.171575 | 0 | 0 | 0.205017 | 1,156 | 29 | 96 | 39.862069 | 0.849837 | 0 | 0 | 0 | 0 | 0 | 0.027682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.083333 | 0.375 | 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 |
bc4a00de0007ed9931681db03d50c494302e16cc | 755 | py | Python | libmodernize/fixes/fix_classic_division.py | graingert/python-modernize | 028d13416d7abe4b8b39bc21e6425df65c7836c0 | [
"BSD-3-Clause"
] | null | null | null | libmodernize/fixes/fix_classic_division.py | graingert/python-modernize | 028d13416d7abe4b8b39bc21e6425df65c7836c0 | [
"BSD-3-Clause"
] | null | null | null | libmodernize/fixes/fix_classic_division.py | graingert/python-modernize | 028d13416d7abe4b8b39bc21e6425df65c7836c0 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import generator_stop
from fissix import fixer_base, pytree
from fissix.pgen2 import token
import libmodernize
class FixClassicDivision(fixer_base.BaseFix):
PATTERN = """
'/=' | '/'
"""
def start_tree(self, tree, name):
super().start_tree(tree, name)
self.skip = "div... | 25.166667 | 81 | 0.619868 | 84 | 755 | 5.440476 | 0.464286 | 0.043764 | 0.070022 | 0.091904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001767 | 0.250331 | 755 | 29 | 82 | 26.034483 | 0.805654 | 0 | 0 | 0 | 0 | 0 | 0.059603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0.047619 | 0.619048 | 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 |
bc52bf629488cf5c3bd5064a90a6112457ceb3f8 | 634 | py | Python | rynda/message/urls.py | sarutobi/flowofkindness | e9c5e9caa2f253f46e36fe913eaaaedddf00a183 | [
"MIT"
] | null | null | null | rynda/message/urls.py | sarutobi/flowofkindness | e9c5e9caa2f253f46e36fe913eaaaedddf00a183 | [
"MIT"
] | null | null | null | rynda/message/urls.py | sarutobi/flowofkindness | e9c5e9caa2f253f46e36fe913eaaaedddf00a183 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, url
from .views import MessageView, CreateRequest, MessageList,\
CreateOffer
urlpatterns = patterns('',
url(r'^$', MessageList.as_view(), name="messages-list"),
url(r'^page/(?P<page>\d+)/$', MessageList.as_view(), name='message-list-paged'),
url(r'^(?P<pk>\d+)$',... | 42.266667 | 85 | 0.671924 | 80 | 634 | 5.2625 | 0.4125 | 0.047506 | 0.118765 | 0.16152 | 0.109264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108833 | 634 | 14 | 86 | 45.285714 | 0.745133 | 0.138801 | 0 | 0 | 0 | 0 | 0.288355 | 0.079482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc5372a1904ef0a6512452d8f2348ed1347d6cf0 | 1,680 | py | Python | vibora/router/parser.py | brettcannon/vibora | 1933b631d4df62e7d748016f7463ab746d4695cc | [
"MIT"
] | 6,238 | 2018-06-14T19:29:47.000Z | 2022-03-29T21:42:03.000Z | vibora/router/parser.py | LL816/vibora | 4cda888f89aec6bfb2541ee53548ae1bf50fbf1b | [
"MIT"
] | 213 | 2018-06-13T20:13:59.000Z | 2022-03-26T07:46:49.000Z | vibora/router/parser.py | LL816/vibora | 4cda888f89aec6bfb2541ee53548ae1bf50fbf1b | [
"MIT"
] | 422 | 2018-06-20T01:29:41.000Z | 2022-02-27T16:45:29.000Z | import re
from ..exceptions import RouteConfigurationError
class PatternParser:
PARAM_REGEX = re.compile(b'<.*?>')
DYNAMIC_CHARS = bytearray(b'*?.[]()')
CAST = {
str: lambda x: x.decode('utf-8'),
int: lambda x: int(x),
float: lambda x: float(x)
}
@classmethod
def val... | 32.941176 | 112 | 0.559524 | 182 | 1,680 | 5.06044 | 0.450549 | 0.043431 | 0.036916 | 0.043431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.33631 | 1,680 | 50 | 113 | 33.6 | 0.821525 | 0.029167 | 0 | 0.081081 | 0 | 0 | 0.130244 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.324324 | 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 |
bc5434a3db8ebc53f62601074797b4c6160ebe46 | 7,456 | py | Python | tests/storage/test_model_storage.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/storage/test_model_storage.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | tests/storage/test_model_storage.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 34.841121 | 133 | 0.723981 | 983 | 7,456 | 5.296033 | 0.19939 | 0.089896 | 0.03592 | 0.055321 | 0.359777 | 0.310027 | 0.281598 | 0.281598 | 0.281598 | 0.268344 | 0 | 0.011747 | 0.177977 | 7,456 | 213 | 134 | 35.004695 | 0.837657 | 0.108637 | 0 | 0.040268 | 0 | 0 | 0.020063 | 0.006336 | 0 | 0 | 0 | 0 | 0.436242 | 1 | 0.120805 | false | 0 | 0.033557 | 0 | 0.187919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc5a80ce48da9a7e60398cd8227047b1023fd1eb | 7,874 | py | Python | toy.py | caseyjlaw/flaskigm | 60c939dd9c259e87f29ca2f016d763e718dda8a7 | [
"BSD-3-Clause"
] | 2 | 2017-04-15T00:04:03.000Z | 2017-04-15T17:29:19.000Z | toy.py | caseyjlaw/flaskigm | 60c939dd9c259e87f29ca2f016d763e718dda8a7 | [
"BSD-3-Clause"
] | null | null | null | toy.py | caseyjlaw/flaskigm | 60c939dd9c259e87f29ca2f016d763e718dda8a7 | [
"BSD-3-Clause"
] | null | null | null | from math import pi, sin, cos, acos, ceil, modf
import warnings, os, sys, csv, json
import urllib, urllib2
from flask import Flask, render_template, request
from astropy.coordinates import SkyCoord
from astropy.utils.exceptions import AstropyWarning
from astropy import units as u
from ne2001 import density
from SM2017 ... | 33.506383 | 170 | 0.610109 | 1,015 | 7,874 | 4.635468 | 0.26601 | 0.038682 | 0.05101 | 0.024655 | 0.188735 | 0.188735 | 0.125824 | 0.125824 | 0.125824 | 0.111371 | 0 | 0.035218 | 0.249937 | 7,874 | 234 | 171 | 33.649573 | 0.761429 | 0.037338 | 0 | 0.065934 | 0 | 0.010989 | 0.138364 | 0.006343 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054945 | null | null | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc6a224122242cb159aee7f5e702711e41e9989d | 811 | py | Python | torchfilter/train/__init__.py | brentyi/torchfilter | da0250baf2197f59b6e67f37cafdd63015380cbb | [
"MIT"
] | 84 | 2020-09-08T07:33:04.000Z | 2022-03-30T17:25:00.000Z | torchfilter/train/__init__.py | brentyi/diffbayes | da0250baf2197f59b6e67f37cafdd63015380cbb | [
"MIT"
] | 4 | 2020-11-03T14:32:11.000Z | 2021-05-12T02:49:49.000Z | torchfilter/train/__init__.py | brentyi/diffbayes | da0250baf2197f59b6e67f37cafdd63015380cbb | [
"MIT"
] | 18 | 2020-11-04T22:20:55.000Z | 2021-12-21T10:23:26.000Z | """Reference implementations for training state estimators with learnable parameters.
These are written with a custom [model
manager](https://brentyi.github.io/fannypack/utils/experiment_management/) for
brevity, but can be easily translated to raw PyTorch.
"""
from ._train_dynamics import train_dynamics_recurrent, t... | 36.863636 | 85 | 0.833539 | 101 | 811 | 6.217822 | 0.465347 | 0.16242 | 0.08121 | 0.133758 | 0.143312 | 0.143312 | 0.143312 | 0 | 0 | 0 | 0 | 0 | 0.106042 | 811 | 21 | 86 | 38.619048 | 0.866207 | 0.314427 | 0 | 0 | 0 | 0 | 0.265938 | 0.20765 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bc6af1c6bbd6bced95c29fdfa9192f3d8763d62e | 3,019 | py | Python | old/am2320.py | eggplant60/airalarm | 78baccbfd59b25edaf2fd8f353750fd15337383b | [
"MIT"
] | null | null | null | old/am2320.py | eggplant60/airalarm | 78baccbfd59b25edaf2fd8f353750fd15337383b | [
"MIT"
] | null | null | null | old/am2320.py | eggplant60/airalarm | 78baccbfd59b25edaf2fd8f353750fd15337383b | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import smbus
import time
import datetime
import threading
import crc16
ADDRESS = 0x5c # 7bit address (will be left shifted to add the read write bit)
READ_INT = 10 # [sec], each reading interval is to be grater than 2 sec
LOG_INT = 600 # [sec]
DEBUG_MODE = True
#W_ADDR =... | 25.584746 | 89 | 0.532295 | 362 | 3,019 | 4.240331 | 0.361878 | 0.041042 | 0.026059 | 0.01759 | 0.218241 | 0.194137 | 0.168078 | 0.115961 | 0.115961 | 0.067752 | 0 | 0.05683 | 0.335542 | 3,019 | 117 | 90 | 25.803419 | 0.707378 | 0.19311 | 0 | 0.287671 | 0 | 0 | 0.047362 | 0 | 0 | 0 | 0.008309 | 0 | 0 | 0 | null | null | 0.013699 | 0.068493 | null | null | 0.09589 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc71594e646ed0e25b5fc2bda439ade9602ca436 | 4,915 | py | Python | src/oci/identity_data_plane/models/x509_federation_request.py | xjuarez/oci-python-sdk | 3c1604e4e212008fb6718e2f68cdb5ef71fd5793 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-09-10T22:09:45.000Z | 2021-12-24T17:00:07.000Z | src/oci/identity_data_plane/models/x509_federation_request.py | xjuarez/oci-python-sdk | 3c1604e4e212008fb6718e2f68cdb5ef71fd5793 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/identity_data_plane/models/x509_federation_request.py | xjuarez/oci-python-sdk | 3c1604e4e212008fb6718e2f68cdb5ef71fd5793 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 35.875912 | 245 | 0.682808 | 563 | 4,915 | 5.802842 | 0.253996 | 0.060606 | 0.123967 | 0.056933 | 0.550352 | 0.426997 | 0.344047 | 0.316498 | 0.316498 | 0.316498 | 0 | 0.021306 | 0.255137 | 4,915 | 136 | 246 | 36.139706 | 0.871073 | 0.568871 | 0 | 0.068182 | 0 | 0 | 0.089774 | 0.043995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.045455 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc73f94b9bd3da3dbca037bb114a67e60262fd6e | 13,491 | py | Python | tests/integration/test_github.py | Hojang2/ogr | fb95015f119ac54d9c399168f4205f516800c22b | [
"MIT"
] | null | null | null | tests/integration/test_github.py | Hojang2/ogr | fb95015f119ac54d9c399168f4205f516800c22b | [
"MIT"
] | null | null | null | tests/integration/test_github.py | Hojang2/ogr | fb95015f119ac54d9c399168f4205f516800c22b | [
"MIT"
] | null | null | null | import os
import unittest
import pytest
from github import GithubException
from ogr import GithubService
from ogr.abstract import PRStatus, IssueStatus
from ogr.persistent_storage import PersistentObjectStorage
from ogr.exceptions import GithubAPIException
DATA_DIR = "test_data"
PERSISTENT_DATA_PREFIX = os.path.join... | 35.316754 | 96 | 0.670447 | 1,778 | 13,491 | 4.79865 | 0.131046 | 0.050047 | 0.085326 | 0.073722 | 0.424285 | 0.388772 | 0.305556 | 0.271214 | 0.219526 | 0.162916 | 0 | 0.021155 | 0.236157 | 13,491 | 381 | 97 | 35.409449 | 0.806793 | 0.018976 | 0 | 0.147157 | 0 | 0 | 0.097884 | 0.031595 | 0 | 0 | 0 | 0 | 0.404682 | 1 | 0.130435 | false | 0 | 0.026756 | 0 | 0.180602 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc74812ecc14b1f2e3154a2f892e1d454aa4b5d7 | 3,250 | py | Python | igibson/__init__.py | Nick-AhSen/iGibson | c6854f11eec5d935fa3ef3d6d4852c6571beab4b | [
"MIT"
] | null | null | null | igibson/__init__.py | Nick-AhSen/iGibson | c6854f11eec5d935fa3ef3d6d4852c6571beab4b | [
"MIT"
] | null | null | null | igibson/__init__.py | Nick-AhSen/iGibson | c6854f11eec5d935fa3ef3d6d4852c6571beab4b | [
"MIT"
] | null | null | null | import logging
import os
import yaml
__version__ = "2.0.3"
logging.getLogger().setLevel(logging.INFO)
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "global_config.yaml")) as f:
global_config = yaml.load(f, Loader=yaml.FullLoader)
# can override assets_path and dataset_path from environmen... | 40.625 | 114 | 0.78 | 488 | 3,250 | 4.838115 | 0.125 | 0.228293 | 0.063532 | 0.063532 | 0.470563 | 0.389665 | 0.350699 | 0.291826 | 0.188479 | 0.188479 | 0 | 0.002369 | 0.090769 | 3,250 | 79 | 115 | 41.139241 | 0.796616 | 0.020615 | 0 | 0.096774 | 0 | 0 | 0.173845 | 0.02735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 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 |
bc755f1a541e6332db9bcd6334693ec8db7fc886 | 3,360 | py | Python | core/dbt/contracts/relation.py | joellabes/dbt | 1060035838650a30e86989cbf2693db7720ff002 | [
"Apache-2.0"
] | 1 | 2019-05-19T03:55:59.000Z | 2019-05-19T03:55:59.000Z | core/dbt/contracts/relation.py | joellabes/dbt | 1060035838650a30e86989cbf2693db7720ff002 | [
"Apache-2.0"
] | 1 | 2021-02-01T17:57:50.000Z | 2021-02-01T17:57:50.000Z | core/dbt/contracts/relation.py | joellabes/dbt | 1060035838650a30e86989cbf2693db7720ff002 | [
"Apache-2.0"
] | 1 | 2021-02-01T17:54:24.000Z | 2021-02-01T17:54:24.000Z | from collections.abc import Mapping
from dataclasses import dataclass, fields
from typing import (
Optional, TypeVar, Generic, Dict,
)
from typing_extensions import Protocol
from hologram import JsonSchemaMixin
from hologram.helpers import StrEnum
from dbt import deprecations
from dbt.contracts.util import Replac... | 27.317073 | 77 | 0.63244 | 371 | 3,360 | 5.617251 | 0.318059 | 0.023992 | 0.021593 | 0.027351 | 0.114203 | 0.114203 | 0.114203 | 0.114203 | 0.074856 | 0 | 0 | 0.000818 | 0.272024 | 3,360 | 122 | 78 | 27.540984 | 0.851186 | 0.034821 | 0 | 0.085106 | 0 | 0 | 0.069136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095745 | false | 0 | 0.106383 | 0.010638 | 0.56383 | 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 |
bc77a56e6e4d1f1ec92e9f279702af1f53bfd596 | 14,645 | py | Python | pyginput.py | FrBrGeorge/PythonWinter2015-Sphinx | 004ba6aab5efdfef936a5d641d152c0ca827633e | [
"MIT"
] | null | null | null | pyginput.py | FrBrGeorge/PythonWinter2015-Sphinx | 004ba6aab5efdfef936a5d641d152c0ca827633e | [
"MIT"
] | null | null | null | pyginput.py | FrBrGeorge/PythonWinter2015-Sphinx | 004ba6aab5efdfef936a5d641d152c0ca827633e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf
'''
Simple input box for pygame
Usage:
.. code-block:: python
box=Input(…) # declare an input box
while <main loop>:
…
if box.is_active() and <event goes to box>: # currently in input state
box.edit(event) ... | 37.551282 | 139 | 0.570775 | 1,892 | 14,645 | 4.385307 | 0.193975 | 0.026034 | 0.02748 | 0.01157 | 0.21791 | 0.137158 | 0.099795 | 0.058214 | 0.044956 | 0.010847 | 0 | 0.014739 | 0.30973 | 14,645 | 389 | 140 | 37.647815 | 0.802849 | 0.044384 | 0 | 0.114894 | 0 | 0 | 0.022293 | 0 | 0 | 0 | 0 | 0.007712 | 0 | 0 | null | null | 0 | 0.008511 | null | null | 0.025532 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc7b2914e26660b987318ff3613c0ce06658a836 | 671 | py | Python | tests/json_schema/test_draft07.py | StephenNneji/python-fastjsonschema | e7441c2efa40f5ac099a7788b8dafe6942146cf0 | [
"BSD-3-Clause"
] | 300 | 2018-07-25T03:56:28.000Z | 2022-03-28T14:28:16.000Z | tests/json_schema/test_draft07.py | StephenNneji/python-fastjsonschema | e7441c2efa40f5ac099a7788b8dafe6942146cf0 | [
"BSD-3-Clause"
] | 115 | 2018-08-03T06:26:14.000Z | 2022-03-28T09:23:32.000Z | tests/json_schema/test_draft07.py | StephenNneji/python-fastjsonschema | e7441c2efa40f5ac099a7788b8dafe6942146cf0 | [
"BSD-3-Clause"
] | 52 | 2018-09-12T11:53:41.000Z | 2021-11-01T09:48:34.000Z | import pytest
from .utils import template_test, resolve_param_values_and_ids
def pytest_generate_tests(metafunc):
param_values, param_ids = resolve_param_values_and_ids(
schema_version='http://json-schema.org/draft-07/schema',
suite_dir='JSON-Schema-Test-Suite/tests/draft7',
ignored_suite... | 30.5 | 103 | 0.681073 | 83 | 671 | 5.240964 | 0.566265 | 0.101149 | 0.082759 | 0.096552 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005671 | 0.211624 | 671 | 21 | 104 | 31.952381 | 0.816635 | 0.129657 | 0 | 0 | 1 | 0 | 0.259897 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 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 |
bc7c8cb724e7c7ca4d8c7dada078e1522cb6d2fa | 8,414 | py | Python | tests/test_coffeecoin.py | OPHoperHPO/CoffeeWarCoinV5 | 20fbc3920f3c7d8caf85b73b2438271c2f0e13fb | [
"Unlicense"
] | null | null | null | tests/test_coffeecoin.py | OPHoperHPO/CoffeeWarCoinV5 | 20fbc3920f3c7d8caf85b73b2438271c2f0e13fb | [
"Unlicense"
] | null | null | null | tests/test_coffeecoin.py | OPHoperHPO/CoffeeWarCoinV5 | 20fbc3920f3c7d8caf85b73b2438271c2f0e13fb | [
"Unlicense"
] | null | null | null | from brownie import accounts, CoffeeCoin
import brownie
def deploy_token():
minter = accounts[0]
user = accounts[1]
contract = minter.deploy(CoffeeCoin)
return user, minter, contract,
def test_name():
user, minter, contract = deploy_token()
assert contract.name() == "CoffeeWarCoin"
def tes... | 32.486486 | 134 | 0.660447 | 913 | 8,414 | 6.035049 | 0.100767 | 0.043557 | 0.058621 | 0.082759 | 0.792922 | 0.708167 | 0.628131 | 0.506171 | 0.493466 | 0.43539 | 0 | 0.049117 | 0.206323 | 8,414 | 259 | 135 | 32.486486 | 0.775981 | 0.084977 | 0 | 0.630769 | 0 | 0 | 0.072377 | 0.016402 | 0 | 0 | 0.016402 | 0 | 0.394872 | 1 | 0.071795 | false | 0 | 0.010256 | 0 | 0.087179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc808fbfd02d0c6c6ee788cb38495d0921cc6b04 | 7,458 | py | Python | triggers.py | tawnkramer/Adventure | c1ba861350b2cf394a6ea0f742d60bd16c834601 | [
"MIT"
] | 2 | 2018-01-21T03:04:26.000Z | 2021-06-05T00:17:35.000Z | triggers.py | tawnkramer/Adventure | c1ba861350b2cf394a6ea0f742d60bd16c834601 | [
"MIT"
] | null | null | null | triggers.py | tawnkramer/Adventure | c1ba861350b2cf394a6ea0f742d60bd16c834601 | [
"MIT"
] | null | null | null | '''
Callbacks from events in rooms
'''
import random
import util
class ActionResponse(object):
def __init__(self, name, reply_fn):
self.name = name
self.response = reply_fn
def do_response(self, reciever, actor):
return self.response(reciever, actor)
#derive from RoomTrigger and pass into the room actio... | 34.688372 | 640 | 0.692277 | 1,186 | 7,458 | 4.279933 | 0.298482 | 0.025217 | 0.040977 | 0.056738 | 0.211584 | 0.165091 | 0.154649 | 0.137313 | 0.11249 | 0.10264 | 0 | 0.00829 | 0.223652 | 7,458 | 214 | 641 | 34.850467 | 0.868394 | 0.10177 | 0 | 0.361963 | 0 | 0.055215 | 0.36911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01227 | null | null | 0.104294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bc83558309ef9b5b858052c8d119ed7b1ab2fa43 | 3,629 | py | Python | dialogos/templatetags/dialogos_tags.py | geosolutions-it/geonode-dialogos | 5ab4b9cc81cfb61df29fe9787bef2c7e937f4c16 | [
"BSD-3-Clause"
] | null | null | null | dialogos/templatetags/dialogos_tags.py | geosolutions-it/geonode-dialogos | 5ab4b9cc81cfb61df29fe9787bef2c7e937f4c16 | [
"BSD-3-Clause"
] | null | null | null | dialogos/templatetags/dialogos_tags.py | geosolutions-it/geonode-dialogos | 5ab4b9cc81cfb61df29fe9787bef2c7e937f4c16 | [
"BSD-3-Clause"
] | 1 | 2019-05-06T09:21:11.000Z | 2019-05-06T09:21:11.000Z | from django import template
from django.core.urlresolvers import reverse
from django.contrib.contenttypes.models import ContentType
from dialogos.authorization import load_can_delete, load_can_edit
from dialogos.forms import CommentForm
from dialogos.models import Comment
can_delete = load_can_delete()
can_edit = l... | 25.027586 | 94 | 0.635161 | 430 | 3,629 | 5.209302 | 0.265116 | 0.044196 | 0.034821 | 0.05 | 0.244643 | 0.220536 | 0.191964 | 0.130804 | 0.092411 | 0.06875 | 0 | 0.004494 | 0.26426 | 3,629 | 144 | 95 | 25.201389 | 0.834457 | 0.092036 | 0 | 0.231707 | 0 | 0 | 0.041169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158537 | false | 0 | 0.073171 | 0.02439 | 0.512195 | 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 |
bc838e659985994ce82f9a3f4f6b83e26b488a32 | 4,536 | py | Python | lefi/objects/enums.py | blanketsucks/Lefi | 3fe6af83e0be25ea953091aae62ba6076069f05e | [
"MIT"
] | null | null | null | lefi/objects/enums.py | blanketsucks/Lefi | 3fe6af83e0be25ea953091aae62ba6076069f05e | [
"MIT"
] | null | null | null | lefi/objects/enums.py | blanketsucks/Lefi | 3fe6af83e0be25ea953091aae62ba6076069f05e | [
"MIT"
] | null | null | null | from __future__ import annotations
from enum import Enum, IntEnum
__all__ = (
"AuditLogsEvent",
"MessageType",
"MessageNotificationLevel",
"ExplicitContentFilterLevel",
"MFALevel",
"VerificationLevel",
"NSFWLevel",
"GuildPremiumTier",
"InviteTargetType",
"PrivacyLevel",
"St... | 18.590164 | 53 | 0.659171 | 527 | 4,536 | 5.409867 | 0.394687 | 0.010523 | 0.022448 | 0.039284 | 0.033672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066159 | 0.276896 | 4,536 | 243 | 54 | 18.666667 | 0.803049 | 0 | 0 | 0.030457 | 0 | 0 | 0.071429 | 0.011023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010152 | 0 | 0.878173 | 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 |
bc8532ea7b6c1cd24c18aa0e75689e774ce6be26 | 6,622 | py | Python | util/singleton.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | 1 | 2020-12-25T18:21:18.000Z | 2020-12-25T18:21:18.000Z | util/singleton.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | 1 | 2021-02-11T15:05:59.000Z | 2021-02-11T15:05:59.000Z | util/singleton.py | aliaksandr-klimovich/sandbox | adab6b18f3d78a891c38609abc71b5d7a751919c | [
"Unlicense"
] | null | null | null |
# Most preferable way to create singletons is to use a metaclass.
class SingletonMeta(type):
def __init__(cls, name, bases=None, attr=None):
super().__init__(name, bases, attr)
# create instance holder after class is created
cls._instance = None
def __call__(cls, *args, **kwargs):
... | 31.836538 | 118 | 0.559197 | 759 | 6,622 | 4.753623 | 0.216074 | 0.083149 | 0.034922 | 0.021064 | 0.289911 | 0.200388 | 0.161031 | 0.124446 | 0.124446 | 0.048226 | 0 | 0.009568 | 0.352915 | 6,622 | 207 | 119 | 31.990338 | 0.832439 | 0.283902 | 0 | 0.442623 | 0 | 0 | 0.013508 | 0 | 0 | 0 | 0 | 0 | 0.286885 | 1 | 0.122951 | false | 0.065574 | 0.008197 | 0.02459 | 0.393443 | 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 |
bc8b24c3f16b4a54df585a81d436b8f559242bb3 | 20,488 | py | Python | plug-ins/zRigHandle.py | zewt/zRigHandle | 9eb3f93d6b104aba9392cac5a3fbb841d93fadcc | [
"MIT"
] | 13 | 2015-10-17T11:36:49.000Z | 2019-12-19T15:23:08.000Z | plug-ins/zRigHandle.py | zewt/zRigHandle | 9eb3f93d6b104aba9392cac5a3fbb841d93fadcc | [
"MIT"
] | 2 | 2016-02-27T21:00:48.000Z | 2017-11-30T00:24:57.000Z | plug-ins/zRigHandle.py | zewt/zRigHandle | 9eb3f93d6b104aba9392cac5a3fbb841d93fadcc | [
"MIT"
] | 5 | 2015-10-13T09:05:21.000Z | 2022-01-28T06:26:29.000Z | import math, sys
import maya.api.OpenMaya as om
import maya.api.OpenMayaUI as omui
import maya.api.OpenMayaAnim as oma
import maya.api.OpenMayaRender as omr
from maya.OpenMaya import MGlobal
# This is insane. There are two Python APIs in Maya, and both of them are missing lots of
# stuff, and you can't mix th... | 37.318761 | 161 | 0.561499 | 2,138 | 20,488 | 5.358279 | 0.220767 | 0.004714 | 0.006023 | 0.005587 | 0.213076 | 0.173359 | 0.141149 | 0.124214 | 0.102828 | 0.054993 | 0 | 0.021635 | 0.327704 | 20,488 | 548 | 162 | 37.386861 | 0.810077 | 0.086685 | 0 | 0.256345 | 0 | 0 | 0.023612 | 0.001434 | 0 | 0 | 0.000441 | 0 | 0 | 0 | null | null | 0.005076 | 0.017767 | 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 |
bc8b2a87cb8c805b03e349579957799345cdd48e | 958 | py | Python | cellular automata/blender-scripting/src/abstract_GOL.py | ChrizH/data-science-learning | c5770955256ef535e22346f977fb070db98a135d | [
"Apache-2.0"
] | 1 | 2021-09-22T20:32:05.000Z | 2021-09-22T20:32:05.000Z | cellular automata/blender-scripting/src/abstract_GOL.py | ChrizH/data-science-learning | c5770955256ef535e22346f977fb070db98a135d | [
"Apache-2.0"
] | null | null | null | cellular automata/blender-scripting/src/abstract_GOL.py | ChrizH/data-science-learning | c5770955256ef535e22346f977fb070db98a135d | [
"Apache-2.0"
] | 1 | 2021-09-22T20:31:55.000Z | 2021-09-22T20:31:55.000Z | import numpy as np
from abc import ABC, abstractmethod
class AbstractGOL(ABC):
def __init__(self, config, seed=None):
"""
Abstract Conway Game of Life
:param config: configuration for this GOL instance (cell survival and generation settings)
"""
self.config = conf... | 29.9375 | 99 | 0.604384 | 102 | 958 | 5.480392 | 0.509804 | 0.161002 | 0.135957 | 0.134168 | 0.194991 | 0.132379 | 0 | 0 | 0 | 0 | 0 | 0.003082 | 0.322547 | 958 | 32 | 100 | 29.9375 | 0.858243 | 0.151357 | 0 | 0.2 | 0 | 0 | 0.103022 | 0.103022 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bc8bf501e57bc53821f6ac88959bb1fec1eef684 | 7,998 | py | Python | pimp.py | KittyHawkIrc/THE_KGB-apps | 7f82b882a8c392e5262ae8426e8bbe03f92a390f | [
"Apache-2.0"
] | null | null | null | pimp.py | KittyHawkIrc/THE_KGB-apps | 7f82b882a8c392e5262ae8426e8bbe03f92a390f | [
"Apache-2.0"
] | 4 | 2016-02-28T06:46:22.000Z | 2018-01-24T02:07:34.000Z | pimp.py | KittyHawkIrc/THE_KGB-apps | 7f82b882a8c392e5262ae8426e8bbe03f92a390f | [
"Apache-2.0"
] | 4 | 2016-02-24T23:32:03.000Z | 2022-01-18T02:00:46.000Z | import urllib2
from time import ctime
#Update schema
__url__ = "https://raw.githubusercontent.com/KittyHawkIrc/modules/production/" + __name__ + ".py"
__version__ = 1.0
#c = channel
#u = user giving/taking points
#t = target who's points are being modified
#p = points being taken/removed
def addPoints(self, c, u, t, ... | 36.190045 | 152 | 0.51888 | 1,093 | 7,998 | 3.773102 | 0.168344 | 0.111542 | 0.155189 | 0.070078 | 0.519884 | 0.417313 | 0.347478 | 0.281765 | 0.262124 | 0.219932 | 0 | 0.006149 | 0.328957 | 7,998 | 220 | 153 | 36.354545 | 0.762251 | 0.043761 | 0 | 0.273256 | 0 | 0.023256 | 0.207935 | 0.005892 | 0 | 0 | 0 | 0 | 0.005814 | 0 | null | null | 0.005814 | 0.011628 | null | null | 0.005814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc8d199ae152af54d125dd5311cba4be6e094bb1 | 347 | py | Python | endemic/__init__.py | j-i-l/EndemicPy | e1ff566ea7e915b2959f7d77273e45f456f71f6a | [
"Apache-2.0",
"MIT"
] | 10 | 2017-08-09T12:47:36.000Z | 2022-03-08T12:12:12.000Z | endemic/__init__.py | j-i-l/EndemicPy | e1ff566ea7e915b2959f7d77273e45f456f71f6a | [
"Apache-2.0",
"MIT"
] | 6 | 2017-12-31T11:22:41.000Z | 2019-08-25T14:38:01.000Z | endemic/__init__.py | j-i-l/EndemicPy | e1ff566ea7e915b2959f7d77273e45f456f71f6a | [
"Apache-2.0",
"MIT"
] | 7 | 2017-08-17T15:13:11.000Z | 2020-04-09T14:49:50.000Z | __title__ = 'endemic'
__version__ = '0.4.1'
#__build__ =
__author__ = 'Jonas I Liechti'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2015 Jonas I. Liechti'
"""
:copyright: (c) 2018 by Jonas I. Liechti.
:license: Apache 2.0, see LICENSE for more details.
"""
from nw_construct import Graph, TemporalGraph
from... | 21.6875 | 51 | 0.73487 | 48 | 347 | 4.770833 | 0.645833 | 0.078603 | 0.170306 | 0.174672 | 0.244541 | 0.244541 | 0.244541 | 0 | 0 | 0 | 0 | 0.05102 | 0.152738 | 347 | 15 | 52 | 23.133333 | 0.727891 | 0.0317 | 0 | 0 | 0 | 0 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
bc92207e533b815a161902000e93b0ecf18a43a7 | 12,477 | py | Python | ipas/collection_from_db/plotly_aggs.py | vprzybylo/IPAS | 9c9268097b9d7d02be1b14671b8fbfc1818e02c0 | [
"MIT"
] | null | null | null | ipas/collection_from_db/plotly_aggs.py | vprzybylo/IPAS | 9c9268097b9d7d02be1b14671b8fbfc1818e02c0 | [
"MIT"
] | 7 | 2021-05-09T02:22:43.000Z | 2022-03-12T00:53:05.000Z | ipas/collection_from_db/plotly_aggs.py | vprzybylo/IPAS | 9c9268097b9d7d02be1b14671b8fbfc1818e02c0 | [
"MIT"
] | null | null | null | '''
plots aggregates from database using plotly
'''
from ipas.collection_from_db.calculations import ClusterCalculations
import plotly.graph_objs as go
import numpy as np
class PlotAgg:
def __init__(self, agg, crystal_num):
self.agg = agg
self.points = agg.points
self.x = self.points['x']... | 46.906015 | 94 | 0.390639 | 1,146 | 12,477 | 4.060209 | 0.157941 | 0.061466 | 0.048141 | 0.029014 | 0.499033 | 0.452181 | 0.398668 | 0.365141 | 0.335482 | 0.212981 | 0 | 0.029352 | 0.524886 | 12,477 | 266 | 95 | 46.906015 | 0.755567 | 0.039192 | 0 | 0.256039 | 0 | 0 | 0.00914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05314 | false | 0 | 0.014493 | 0 | 0.077295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bc933fbc22bfafde3eda009051b09f36abf5c228 | 2,954 | py | Python | sauronlab/caches/audio_caches.py | dmyersturnbull/sauronlab | c458b622efd3cb70c2547ec64ea9d11c293ab8f6 | [
"Apache-2.0"
] | null | null | null | sauronlab/caches/audio_caches.py | dmyersturnbull/sauronlab | c458b622efd3cb70c2547ec64ea9d11c293ab8f6 | [
"Apache-2.0"
] | 73 | 2021-02-03T21:32:44.000Z | 2022-03-28T05:14:24.000Z | sauronlab/caches/audio_caches.py | dmyersturnbull/sauronlab | c458b622efd3cb70c2547ec64ea9d11c293ab8f6 | [
"Apache-2.0"
] | null | null | null | import pydub
from sauronlab.core.core_imports import *
from sauronlab.core.environment import sauronlab_env
from sauronlab.model.cache_interfaces import AnAudioStimulusCache, StimulusWaveform
DEFAULT_CACHE_DIR = sauronlab_env.cache_dir / "stimuli"
@abcd.auto_eq()
@abcd.auto_repr_str()
class AudioStimulusCache(AnAud... | 34.348837 | 96 | 0.640826 | 327 | 2,954 | 5.633028 | 0.302752 | 0.039088 | 0.052117 | 0.032573 | 0.161238 | 0.083605 | 0.060803 | 0.060803 | 0.060803 | 0 | 0 | 0.004159 | 0.267434 | 2,954 | 85 | 97 | 34.752941 | 0.847043 | 0.02065 | 0 | 0.261538 | 0 | 0 | 0.095122 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.123077 | false | 0.015385 | 0.076923 | 0.015385 | 0.307692 | 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 |
bc9a5865f0cd964579e44b83336eb42cb31e20e9 | 2,379 | py | Python | AnalyticsVidhyaUltimateStudentHunt/random_forest.py | saurv4u/MLCompetitions | 14020107781d284627d214875a66be5b6617a2d5 | [
"MIT"
] | null | null | null | AnalyticsVidhyaUltimateStudentHunt/random_forest.py | saurv4u/MLCompetitions | 14020107781d284627d214875a66be5b6617a2d5 | [
"MIT"
] | null | null | null | AnalyticsVidhyaUltimateStudentHunt/random_forest.py | saurv4u/MLCompetitions | 14020107781d284627d214875a66be5b6617a2d5 | [
"MIT"
] | null | null | null | import pandas
import numpy
from sklearn.ensemble import RandomForestRegressor as forest
from sklearn import preprocessing
from datetime import datetime
from sklearn.tree import DecisionTreeRegressor
import matplotlib.pyplot as plt
import pickle
from sklearn.feature_selection import VarianceThreshold
from sklearn.prepro... | 42.482143 | 334 | 0.773855 | 350 | 2,379 | 4.988571 | 0.405714 | 0.044101 | 0.04811 | 0.028637 | 0.140893 | 0.120275 | 0.120275 | 0.120275 | 0.120275 | 0.120275 | 0 | 0.018501 | 0.091215 | 2,379 | 55 | 335 | 43.254545 | 0.789084 | 0.246742 | 0 | 0 | 0 | 0 | 0.179473 | 0.079641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.387097 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bc9ac496b088602281f9d659217ea4752d843cd7 | 663 | py | Python | src/samples/scikit_test.py | 000ubird/HighResolution | 71fbc42928057a5db33d5bbf569ee5102012dbd5 | [
"MIT"
] | null | null | null | src/samples/scikit_test.py | 000ubird/HighResolution | 71fbc42928057a5db33d5bbf569ee5102012dbd5 | [
"MIT"
] | 5 | 2015-08-23T11:02:40.000Z | 2016-01-09T15:25:25.000Z | src/samples/scikit_test.py | 000ubird/HighResolution | 71fbc42928057a5db33d5bbf569ee5102012dbd5 | [
"MIT"
] | null | null | null | from sklearn.datasets import load_digits
from sklearn.cross_validation import train_test_split
from sklearn import svm
from sklearn import mixture
from sklearn.metrics.classification import accuracy_score, classification_report
digits = load_digits()
print(digits.data.shape)
data_train, data_test, label_train, label_t... | 24.555556 | 93 | 0.817496 | 98 | 663 | 5.27551 | 0.357143 | 0.106383 | 0.054159 | 0.065764 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003333 | 0.095023 | 663 | 26 | 94 | 25.5 | 0.858333 | 0.048265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bc9b33208d48a488d64aeceaa919a1d86230e5ac | 37,378 | py | Python | admin.py | pekacheew/PSEC-CA2 | fab15e799131b75ce3de336a1d57fed26809568d | [
"MIT"
] | null | null | null | admin.py | pekacheew/PSEC-CA2 | fab15e799131b75ce3de336a1d57fed26809568d | [
"MIT"
] | null | null | null | admin.py | pekacheew/PSEC-CA2 | fab15e799131b75ce3de336a1d57fed26809568d | [
"MIT"
] | null | null | null | from verifiers import *
from cipher import *
from rwaFiles import *
from colors import *
import getpass
passCounter = 0
idCounter = 0
userID = ''
############################################ Start of Register User ############################################
# Register User Function - userid_pswd.csv
def re... | 49.638778 | 156 | 0.423859 | 3,238 | 37,378 | 4.885423 | 0.116739 | 0.039446 | 0.017258 | 0.020418 | 0.529174 | 0.486124 | 0.434478 | 0.399962 | 0.366458 | 0.334977 | 0 | 0.003212 | 0.49184 | 37,378 | 752 | 157 | 49.704787 | 0.82963 | 0.167585 | 0 | 0.579216 | 0 | 0 | 0.167304 | 0.006834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013629 | false | 0.054514 | 0.008518 | 0 | 0.02385 | 0.166951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bca9782915d0f2287d05170b5799b3cff7eb0011 | 559 | py | Python | emotion recognition/convert_fer2013.py | dani97/EmotionRecognition | 464d30cc52109e1d9e6014a34a893a77b8b6966f | [
"Apache-2.0"
] | 6 | 2017-11-14T10:12:42.000Z | 2020-03-07T03:33:43.000Z | emotion recognition/convert_fer2013.py | dani97/EmotionRecognition | 464d30cc52109e1d9e6014a34a893a77b8b6966f | [
"Apache-2.0"
] | null | null | null | emotion recognition/convert_fer2013.py | dani97/EmotionRecognition | 464d30cc52109e1d9e6014a34a893a77b8b6966f | [
"Apache-2.0"
] | 5 | 2017-09-08T10:47:10.000Z | 2018-08-25T16:36:12.000Z | #!/usr/bin/env python
import csv
csvr = csv.reader(open('fer2013.csv'))
header = csvr.next()
rows = [row for row in csvr]
trn = [row[:-1] for row in rows if row[-1] == 'Training']
csv.writer(open('test.csv', 'w+')).writerows([header[:-1]] + trn)
print len(trn)
tst = [row[:-1] for row in rows if row[-1] == 'PublicTe... | 27.95 | 73 | 0.627907 | 93 | 559 | 3.774194 | 0.333333 | 0.068376 | 0.091168 | 0.08547 | 0.45584 | 0.39886 | 0.39886 | 0.39886 | 0.39886 | 0 | 0 | 0.032922 | 0.13059 | 559 | 19 | 74 | 29.421053 | 0.6893 | 0.035778 | 0 | 0 | 0 | 0 | 0.143123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcaa2dbef81ac7eaf075239f1fcce225c56df0e7 | 2,211 | py | Python | mainapp/migrations/0007_auto_20190114_0854.py | tum0xa/geekbrains-django2-homework | 55a7a0aa60da2978ab4abd5d2dacf7af21b301cc | [
"MIT"
] | null | null | null | mainapp/migrations/0007_auto_20190114_0854.py | tum0xa/geekbrains-django2-homework | 55a7a0aa60da2978ab4abd5d2dacf7af21b301cc | [
"MIT"
] | null | null | null | mainapp/migrations/0007_auto_20190114_0854.py | tum0xa/geekbrains-django2-homework | 55a7a0aa60da2978ab4abd5d2dacf7af21b301cc | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2019-01-14 03:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0006_productcategory_is_active'),
]
operations = [
migrations.CreateModel(
name='Addre... | 45.122449 | 116 | 0.597919 | 225 | 2,211 | 5.728889 | 0.364444 | 0.110939 | 0.069822 | 0.093095 | 0.458495 | 0.418154 | 0.418154 | 0.360745 | 0.360745 | 0.360745 | 0 | 0.02129 | 0.256445 | 2,211 | 48 | 117 | 46.0625 | 0.762774 | 0.019448 | 0 | 0.380952 | 1 | 0 | 0.126962 | 0.01385 | 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 |
bcac060b5638dfcc53eb094f3fc75291fa987919 | 434 | py | Python | test/test_strains.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 22 | 2021-09-14T04:33:11.000Z | 2022-02-01T21:33:05.000Z | test/test_strains.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 7 | 2021-11-02T13:48:35.000Z | 2022-03-23T18:08:35.000Z | test/test_strains.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 6 | 2021-09-18T01:06:51.000Z | 2022-01-10T02:22:06.000Z | # Copyright Contributors to the Pyro-Cov project.
# SPDX-License-Identifier: Apache-2.0
import pytest
from pyrocov.strains import TimeSpaceStrainModel, simulate
@pytest.mark.parametrize("T", [32])
@pytest.mark.parametrize("R", [6])
@pytest.mark.parametrize("S", [5])
def test_strains(T, R, S):
dataset = simulate... | 25.529412 | 58 | 0.71659 | 59 | 434 | 5.237288 | 0.661017 | 0.097087 | 0.203884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023936 | 0.133641 | 434 | 16 | 59 | 27.125 | 0.797872 | 0.191244 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcaeda8e6590cef1efa48f09cb34662edcc307ba | 501 | py | Python | scripts/vccs_measurement.py | turingbirds/howland_vccs | b4d69476f151a05d830396e152d06a93b6bc0e3f | [
"Apache-2.0"
] | 1 | 2022-03-26T17:16:58.000Z | 2022-03-26T17:16:58.000Z | scripts/vccs_measurement.py | turingbirds/howland_vccs | b4d69476f151a05d830396e152d06a93b6bc0e3f | [
"Apache-2.0"
] | null | null | null | scripts/vccs_measurement.py | turingbirds/howland_vccs | b4d69476f151a05d830396e152d06a93b6bc0e3f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
def Mag_V_L(I, RL, Ro, w, C):
return I * (1/(1/RL + 1/Ro)) / (1 + (w * (1/(1/RL + 1/Ro)) * C)**2)**.5
def Mag_I_L(I, RL, Ro, w, C):
I_L = 1 / RL * I / (1 / Ro + 1 / RL + 1j * w * C)
return abs(I_L)
def Z_o_from_VLa_VLb(RLa, RLb, VLa, VLb):
Z_o = (RLa * RLb * (VLb - VLa)) / (VLa * RL... | 21.782609 | 72 | 0.510978 | 107 | 501 | 2.224299 | 0.299065 | 0.05042 | 0.033613 | 0.05042 | 0.12605 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0.04607 | 0.263473 | 501 | 22 | 73 | 22.772727 | 0.598916 | 0.041916 | 0 | 0.153846 | 0 | 0 | 0.006276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcaf64e4dc904d0e605da823372d9174063960c0 | 5,929 | py | Python | trackme/bin/trackme/modalert_trackme_smart_status_helper.py | duanshuaimin/trackme | 78d0ec64e3ae2e40878b282ba2f375f978a28d73 | [
"Apache-2.0"
] | 1 | 2021-06-06T11:51:36.000Z | 2021-06-06T11:51:36.000Z | trackme/bin/trackme/modalert_trackme_smart_status_helper.py | duanshuaimin/trackme | 78d0ec64e3ae2e40878b282ba2f375f978a28d73 | [
"Apache-2.0"
] | null | null | null | trackme/bin/trackme/modalert_trackme_smart_status_helper.py | duanshuaimin/trackme | 78d0ec64e3ae2e40878b282ba2f375f978a28d73 | [
"Apache-2.0"
] | null | null | null |
# encoding = utf-8
def process_event(helper, *args, **kwargs):
"""
# IMPORTANT
# Do not remove the anchor macro:start and macro:end lines.
# These lines are used to generate sample code. If they are
# removed, the sample code will not be updated when configurations
# are updated.
[sample_... | 37.525316 | 127 | 0.671783 | 737 | 5,929 | 5.21981 | 0.294437 | 0.032753 | 0.037172 | 0.020795 | 0.235248 | 0.172082 | 0.155966 | 0.128152 | 0.128152 | 0.102158 | 0 | 0.004061 | 0.210828 | 5,929 | 157 | 128 | 37.764331 | 0.818124 | 0.314724 | 0 | 0.116883 | 1 | 0 | 0.217923 | 0.067719 | 0 | 0 | 0 | 0.006369 | 0 | 1 | 0.012987 | false | 0 | 0.142857 | 0 | 0.168831 | 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 |
bcb0efa3c7ea8106b86ff4457f0762b57bb9e9ea | 2,201 | py | Python | setup.py | gaybro8777/doaj | 27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58 | [
"Apache-2.0"
] | null | null | null | setup.py | gaybro8777/doaj | 27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58 | [
"Apache-2.0"
] | null | null | null | setup.py | gaybro8777/doaj | 27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
import sys
setup(
name='doaj',
version='5.0.3',
packages=find_packages(),
install_requires=[
"Werkzeug==0.16.0",
"Flask==1.1.1",
"Flask-Login==0.4.1",
"WTForms==2.2.1",
"Flask-WTF==0.14.2",
"Flask-Mail==0.9.1",
... | 33.348485 | 133 | 0.542935 | 298 | 2,201 | 3.986577 | 0.540268 | 0.010101 | 0.005051 | 0.013468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096894 | 0.268514 | 2,201 | 65 | 134 | 33.861538 | 0.640994 | 0.128124 | 0 | 0 | 0 | 0 | 0.541841 | 0.084728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 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 |
bcbe820021dcc425c10087ef29b65f43fbcc30b9 | 1,334 | py | Python | deeppavlov/metrics/bleu.py | khakhulin/DeepPavlov | 5f631cc887aa935f2e67b7c65a19c7e777cf7db7 | [
"Apache-2.0"
] | 1 | 2018-07-18T11:50:45.000Z | 2018-07-18T11:50:45.000Z | deeppavlov/metrics/bleu.py | khakhulin/DeepPavlov | 5f631cc887aa935f2e67b7c65a19c7e777cf7db7 | [
"Apache-2.0"
] | null | null | null | deeppavlov/metrics/bleu.py | khakhulin/DeepPavlov | 5f631cc887aa935f2e67b7c65a19c7e777cf7db7 | [
"Apache-2.0"
] | null | null | null | import itertools
from nltk.translate.bleu_score import sentence_bleu
from deeppavlov.core.common.metrics_registry import register_metric
@register_metric('bleu')
def bleu(y_true, y_predicted):
examples_len = len(y_true)
bleu_list = (sentence_bleu([y2.lower().split()], y1.lower().split())\
fo... | 39.235294 | 73 | 0.697151 | 209 | 1,334 | 4.157895 | 0.205742 | 0.09206 | 0.06214 | 0.120829 | 0.66168 | 0.607595 | 0.607595 | 0.607595 | 0.607595 | 0.607595 | 0 | 0.015483 | 0.176912 | 1,334 | 33 | 74 | 40.424242 | 0.775956 | 0 | 0 | 0.518519 | 0 | 0 | 0.030758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
bcbef2b14b04f8d5de289dcb4f09cd234b7d23ab | 423 | py | Python | exercicios/aula022.py | guilalves/Python-Pandas-PySpark | 3f5ccdd12183a72f9a41c7d170caacbd895b165f | [
"MIT"
] | null | null | null | exercicios/aula022.py | guilalves/Python-Pandas-PySpark | 3f5ccdd12183a72f9a41c7d170caacbd895b165f | [
"MIT"
] | null | null | null | exercicios/aula022.py | guilalves/Python-Pandas-PySpark | 3f5ccdd12183a72f9a41c7d170caacbd895b165f | [
"MIT"
] | null | null | null | from time import sleep
nome = str(input('Digite seu nome completo: ')).strip()
print('Analisando seu nome...')
sleep(1)
print('Seu nome em maiúsculas é {}'.format(nome.upper()))
print('Seu nome em minúsculas é {}'.format(nome.lower()))
print('Seu nome tem ao todo {} letras'.format(len(nome)-nome.count(' ')))
separar ... | 35.25 | 87 | 0.683215 | 66 | 423 | 4.378788 | 0.5 | 0.121107 | 0.124567 | 0.096886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.120567 | 423 | 11 | 88 | 38.454545 | 0.768817 | 0 | 0 | 0 | 0 | 0 | 0.413712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
bcbf713583263771d3db3d9eddda44bb2aaf21c8 | 4,068 | py | Python | aws_sg.py | att/openc2-aws | 0275b1e9d1ef1f03acf7d0930ac29f1e1ad174aa | [
"BSD-2-Clause"
] | 5 | 2018-06-20T14:17:54.000Z | 2021-01-22T08:10:34.000Z | aws_sg.py | att/openc2-aws | 0275b1e9d1ef1f03acf7d0930ac29f1e1ad174aa | [
"BSD-2-Clause"
] | null | null | null | aws_sg.py | att/openc2-aws | 0275b1e9d1ef1f03acf7d0930ac29f1e1ad174aa | [
"BSD-2-Clause"
] | 4 | 2018-07-10T13:40:48.000Z | 2019-11-26T20:32:09.000Z | #!/usr/local/bin/python
'''
BSD License
Copyright 2018 AT&T Intellectual Property. All other rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:
1. Redistributions of source code must retain the above co... | 43.741935 | 133 | 0.662242 | 515 | 4,068 | 5.151456 | 0.442718 | 0.027139 | 0.040709 | 0.026008 | 0.292499 | 0.265737 | 0.225405 | 0.18545 | 0.18545 | 0.18545 | 0 | 0.012008 | 0.263029 | 4,068 | 92 | 134 | 44.217391 | 0.872915 | 0.433628 | 0 | 0.48 | 0 | 0 | 0.071806 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0.02 | 0.26 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcc2eff0d4b3676d44edbf6e19a67c0d0b1438df | 1,023 | py | Python | leetcode/python/zigzagConversion.py | yaoxuanw007/forfun | db50bd40852d49bd68bae03ceb43cb4a901c6d37 | [
"MIT"
] | null | null | null | leetcode/python/zigzagConversion.py | yaoxuanw007/forfun | db50bd40852d49bd68bae03ceb43cb4a901c6d37 | [
"MIT"
] | null | null | null | leetcode/python/zigzagConversion.py | yaoxuanw007/forfun | db50bd40852d49bd68bae03ceb43cb4a901c6d37 | [
"MIT"
] | null | null | null | # https://oj.leetcode.com/problems/zigzag-conversion/
# 10:25 - 10:56
class Solution:
# @return a string
def convert(self, s, nRows):
result, sLen = "", len(s)
for i in xrange(0, nRows):
# if nRows == 1, countPerGroup = 0 and we set it to 1
countPerGroup = nRows * 2 -2 or 1
countGroup = ... | 30.088235 | 61 | 0.602151 | 133 | 1,023 | 4.631579 | 0.390977 | 0.058442 | 0.126623 | 0.131494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034713 | 0.26784 | 1,023 | 33 | 62 | 31 | 0.787717 | 0.155425 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcc84b76560ca693522baadbf82b90daa7fc7613 | 940 | py | Python | bubble_sort.py | redrover9/algoviz | 81cd012638c2fda129a9c8a78e9919f25540700a | [
"Unlicense"
] | null | null | null | bubble_sort.py | redrover9/algoviz | 81cd012638c2fda129a9c8a78e9919f25540700a | [
"Unlicense"
] | null | null | null | bubble_sort.py | redrover9/algoviz | 81cd012638c2fda129a9c8a78e9919f25540700a | [
"Unlicense"
] | null | null | null | import random
import matplotlib.pyplot as plt
import matplotlib.animation as animation
keys = []
values = []
for i in range(1, 101):
keys.append(i)
values.append(i)
random.shuffle(values)
coordinates_dict = dict(zip(keys, values))
fig = plt.figure(figsize=(12,8))
ax = fig.add_subplot(1, 1, 1)
def algo(i):
... | 28.484848 | 107 | 0.642553 | 131 | 940 | 4.480916 | 0.328244 | 0.255537 | 0.163543 | 0.086882 | 0.168654 | 0.168654 | 0.168654 | 0.139693 | 0.139693 | 0.139693 | 0 | 0.01958 | 0.239362 | 940 | 32 | 108 | 29.375 | 0.801399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.172414 | 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 |
bccba75262c8312ff7bd31449e2e4690394be188 | 16,991 | py | Python | qmeq/approach/base/neumann1.py | M-Josefsson/qmeq | f4f08864fc778de7c14b198c0ffbaafe33ce18f6 | [
"BSD-2-Clause"
] | 1 | 2021-06-24T13:59:01.000Z | 2021-06-24T13:59:01.000Z | qmeq/approach/base/neumann1.py | M-Josefsson/qmeq | f4f08864fc778de7c14b198c0ffbaafe33ce18f6 | [
"BSD-2-Clause"
] | null | null | null | qmeq/approach/base/neumann1.py | M-Josefsson/qmeq | f4f08864fc778de7c14b198c0ffbaafe33ce18f6 | [
"BSD-2-Clause"
] | null | null | null | """Module containing python functions, which generate first order 1vN kernel."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import itertools
from ...mytypes import complexnp
from ...mytypes import doublenp
from ...specfunc.specfunc ... | 49.973529 | 108 | 0.449826 | 2,013 | 16,991 | 3.678092 | 0.091406 | 0.028363 | 0.045381 | 0.035656 | 0.614398 | 0.587385 | 0.525662 | 0.460697 | 0.458536 | 0.421664 | 0 | 0.032346 | 0.395915 | 16,991 | 339 | 109 | 50.120944 | 0.68901 | 0.135425 | 0 | 0.48374 | 1 | 0 | 0.000346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01626 | false | 0 | 0.04065 | 0 | 0.097561 | 0.004065 | 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 |
bcccbe2a520d1d29221e256f279ae31ddf4090c8 | 601 | py | Python | pages/migrations/0008_auto_20201024_0935.py | yusufom/marlymart | 06088af43e6f78b7385c1cf7ea5b4b68337360d8 | [
"Unlicense"
] | null | null | null | pages/migrations/0008_auto_20201024_0935.py | yusufom/marlymart | 06088af43e6f78b7385c1cf7ea5b4b68337360d8 | [
"Unlicense"
] | null | null | null | pages/migrations/0008_auto_20201024_0935.py | yusufom/marlymart | 06088af43e6f78b7385c1cf7ea5b4b68337360d8 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.2 on 2020-10-24 08:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0007_instagrampost_title'),
]
operations = [
migrations.AddField(
model_name='homesetting',
nam... | 25.041667 | 65 | 0.570715 | 57 | 601 | 5.912281 | 0.649123 | 0.053412 | 0.118694 | 0.142433 | 0.249258 | 0.249258 | 0.249258 | 0.249258 | 0 | 0 | 0 | 0.063725 | 0.321131 | 601 | 23 | 66 | 26.130435 | 0.762255 | 0.071547 | 0 | 0.352941 | 1 | 0 | 0.129456 | 0.045028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcd260295ea2162ea2bece3d503da480d6765c82 | 5,603 | py | Python | web/app/models/gcms_model.py | EMSL-Computing/CoreMS-Portal | 6e85a544bc46b9925f886b0c8a7265ea0855dc48 | [
"BSD-2-Clause"
] | 2 | 2022-02-18T08:36:54.000Z | 2022-02-22T23:06:51.000Z | web/app/models/gcms_model.py | EMSL-Computing/CoreMS-Portal | 6e85a544bc46b9925f886b0c8a7265ea0855dc48 | [
"BSD-2-Clause"
] | null | null | null | web/app/models/gcms_model.py | EMSL-Computing/CoreMS-Portal | 6e85a544bc46b9925f886b0c8a7265ea0855dc48 | [
"BSD-2-Clause"
] | null | null | null | from datetime import datetime
from pathlib import Path
import pytz
import json
import yaml
import pandas as pd
from sqlalchemy.dialects.postgresql import JSONB
from app import db
from sqlalchemy.orm import deferred
class GCMS_DataAccessLink(db.Model):
__tablename__ = 'gcmsDataAccessLink'
__table_args__ = (d... | 30.451087 | 196 | 0.660004 | 711 | 5,603 | 5.012658 | 0.236287 | 0.06734 | 0.06734 | 0.030303 | 0.381874 | 0.322671 | 0.310887 | 0.248878 | 0.248878 | 0.248878 | 0 | 0.002033 | 0.209888 | 5,603 | 183 | 197 | 30.617486 | 0.803027 | 0 | 0 | 0.289256 | 0 | 0 | 0.132786 | 0.009816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140496 | false | 0 | 0.07438 | 0.082645 | 0.735537 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bcd4918836f95922e3063d8bed0d3d7773fb5a52 | 1,937 | py | Python | toontown/parties/ToontownTimeManager.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2020-09-27T22:12:47.000Z | 2020-09-27T22:12:47.000Z | toontown/parties/ToontownTimeManager.py | TrueBlueDogemon/Toontown | ebed7fc3f2ef06a529cf02eda7ab46361aceef9d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | toontown/parties/ToontownTimeManager.py | TrueBlueDogemon/Toontown | ebed7fc3f2ef06a529cf02eda7ab46361aceef9d | [
"MIT"
] | 2 | 2020-11-08T03:38:35.000Z | 2021-09-02T07:03:47.000Z | from datetime import datetime, timedelta
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.distributed import DistributedObject
import time
from toontown.parties.ToontownTimeZone import ToontownTimeZone, UTC
class ToontownTimeManager(DistributedObject.DistributedObject):
notify = direct... | 40.354167 | 87 | 0.694373 | 164 | 1,937 | 8.176829 | 0.371951 | 0.067114 | 0.07308 | 0.035794 | 0.189411 | 0.189411 | 0.189411 | 0.189411 | 0.189411 | 0.105891 | 0 | 0.002656 | 0.222509 | 1,937 | 47 | 88 | 41.212766 | 0.887782 | 0 | 0 | 0.210526 | 0 | 0 | 0.056273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0.052632 | 0.131579 | 0 | 0.447368 | 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 |
bcd5e94ee206beecd5fe7c9481720c68d47d98fa | 478 | py | Python | setup.py | VikasNeha/searcheval | 90f3be8e57dd70179f707ef73241306cdd2ec915 | [
"Apache-2.0"
] | null | null | null | setup.py | VikasNeha/searcheval | 90f3be8e57dd70179f707ef73241306cdd2ec915 | [
"Apache-2.0"
] | null | null | null | setup.py | VikasNeha/searcheval | 90f3be8e57dd70179f707ef73241306cdd2ec915 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name='searcheval',
version='0.2.1',
author='Tobias Guenther',
author_email='searcheval@tobigue.de',
packages=['searcheval', 'searcheval.test'],
scripts=[],
url='https://github.com/tobigue/searcheval',
license='LICENSE.txt',
description='Librar... | 29.875 | 105 | 0.692469 | 55 | 478 | 5.963636 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007444 | 0.156904 | 478 | 15 | 106 | 31.866667 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.460251 | 0.043933 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcd60b6bf8de226c9a2a3c2398a091f19f5a0db0 | 4,795 | py | Python | algorithms/random_restart_hill_climbing.py | MarauderPixie/MethAI_warehouse_task | fa90f0b3b55aa70b22734edc3f4c80b76eddf2f4 | [
"MIT"
] | null | null | null | algorithms/random_restart_hill_climbing.py | MarauderPixie/MethAI_warehouse_task | fa90f0b3b55aa70b22734edc3f4c80b76eddf2f4 | [
"MIT"
] | null | null | null | algorithms/random_restart_hill_climbing.py | MarauderPixie/MethAI_warehouse_task | fa90f0b3b55aa70b22734edc3f4c80b76eddf2f4 | [
"MIT"
] | null | null | null | """
Class generates a neighborhood and explores it using
random restart hill climbing algorithm with configurable number of states.
"""
import random
from warehouse import Warehouse
import numpy as np
class RandomRestart(Warehouse):
def __init__(self, filepath_warehouse, filepath_order, number_states):
... | 34.25 | 124 | 0.595829 | 643 | 4,795 | 4.306376 | 0.222395 | 0.046948 | 0.021668 | 0.020585 | 0.129289 | 0.074756 | 0.04731 | 0.020224 | 0.020224 | 0.020224 | 0 | 0.01771 | 0.316997 | 4,795 | 139 | 125 | 34.496403 | 0.827786 | 0.084672 | 0 | 0.091954 | 1 | 0 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0 | 0.034483 | 0 | 0.218391 | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bcd6a4a8bc290b241726938d97c6caeb1b48ab14 | 469 | py | Python | plexdiscordbot/src/bot.py | bramnijssen/PlexDiscordBot | 8e439088686e73dc23522041f8841c0d9211159c | [
"MIT"
] | 1 | 2021-11-13T20:33:59.000Z | 2021-11-13T20:33:59.000Z | plexdiscordbot/src/bot.py | bramnijssen/PlexDiscordBot | 8e439088686e73dc23522041f8841c0d9211159c | [
"MIT"
] | null | null | null | plexdiscordbot/src/bot.py | bramnijssen/PlexDiscordBot | 8e439088686e73dc23522041f8841c0d9211159c | [
"MIT"
] | 1 | 2021-11-15T13:54:21.000Z | 2021-11-15T13:54:21.000Z | import logging
import discord
from discord.ext import commands
from os import getenv
if __name__ == '__main__':
# Enable logging
logging.basicConfig(level=logging.INFO)
intents = discord.Intents.default()
intents.members = True
# Init bot and link to commands
bot = commands.Bot(command_prefix... | 23.45 | 78 | 0.720682 | 60 | 469 | 5.4 | 0.566667 | 0.101852 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17484 | 469 | 19 | 79 | 24.684211 | 0.837209 | 0.093817 | 0 | 0 | 0 | 0 | 0.085308 | 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 |
bcde182adf2953075af7181f6e85b77e361e2b95 | 367 | py | Python | fullstack/cashstatus/cash/migrations/0003_auto_20200217_0020.py | whywhyy/django-toy-project | ee5c91306605993ef70efa461cb41270ae689d6c | [
"MIT"
] | null | null | null | fullstack/cashstatus/cash/migrations/0003_auto_20200217_0020.py | whywhyy/django-toy-project | ee5c91306605993ef70efa461cb41270ae689d6c | [
"MIT"
] | 8 | 2021-03-10T08:03:03.000Z | 2022-02-26T23:50:01.000Z | fullstack/cashstatus/cash/migrations/0003_auto_20200217_0020.py | whywhyy/django-toy-project | ee5c91306605993ef70efa461cb41270ae689d6c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-17 00:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cash', '0002_cash_owner'),
]
operations = [
migrations.AlterField(
model_name='cash',
name='Data_date',
... | 19.315789 | 47 | 0.580381 | 39 | 367 | 5.358974 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074219 | 0.302452 | 367 | 18 | 48 | 20.388889 | 0.742188 | 0.122616 | 0 | 0 | 1 | 0 | 0.1 | 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 |
bcea8692a6a93d9e9dfc46c91f61494a744416f2 | 2,051 | py | Python | tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py | atfkaka/tensorflow | 5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a | [
"Apache-2.0"
] | 101 | 2016-12-03T11:40:52.000Z | 2017-12-23T02:02:03.000Z | tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py | atfkaka/tensorflow | 5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a | [
"Apache-2.0"
] | 9 | 2016-12-14T03:27:46.000Z | 2017-09-13T02:29:07.000Z | tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py | atfkaka/tensorflow | 5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a | [
"Apache-2.0"
] | 47 | 2016-12-04T12:37:24.000Z | 2018-01-14T18:13:07.000Z | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 35.362069 | 80 | 0.672355 | 287 | 2,051 | 4.665505 | 0.43554 | 0.017924 | 0.020911 | 0.056759 | 0.259895 | 0.228529 | 0.228529 | 0.228529 | 0.228529 | 0.228529 | 0 | 0.021701 | 0.168698 | 2,051 | 57 | 81 | 35.982456 | 0.763636 | 0.336421 | 0 | 0.242424 | 0 | 0 | 0.005948 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.121212 | false | 0.090909 | 0.151515 | 0 | 0.30303 | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bcee82af0aef50724552d260b26ab9aa2d3495d8 | 1,133 | py | Python | fetchers/unpackers/archives/tar.py | KOLANICH/fetchers.py | 82fa17c73d93d01e9d4388a81769ebe813732a27 | [
"Unlicense"
] | 1 | 2020-12-31T13:41:09.000Z | 2020-12-31T13:41:09.000Z | fetchers/unpackers/archives/tar.py | KOLANICH/fetchers.py | 82fa17c73d93d01e9d4388a81769ebe813732a27 | [
"Unlicense"
] | 1 | 2021-05-28T19:14:23.000Z | 2021-05-28T19:14:23.000Z | fetchers/unpackers/archives/tar.py | prebuilder/fetchers.py | 470df45775549e15a727cbc98be143b8be5f4d82 | [
"Unlicense"
] | null | null | null | import typing
import tarfile
from pathlib import Path
from fsutilz import isNestedIn
from ...styles import styles
from ..compression import CompressionT
from . import ArchiveFormat
class Tar(ArchiveFormat):
@staticmethod
def unpack(archPath: Path, extrDir: Path, config: "FetchConfig", compression: typing.Optional... | 34.333333 | 125 | 0.716681 | 141 | 1,133 | 5.702128 | 0.531915 | 0.032338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004206 | 0.160635 | 1,133 | 32 | 126 | 35.40625 | 0.84122 | 0.044131 | 0 | 0 | 0 | 0 | 0.027752 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.038462 | false | 0 | 0.269231 | 0 | 0.346154 | 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 |
bcf33662ecf0408c1445759fd4c71b282e008f00 | 1,925 | py | Python | apps.py | prabhat-123/Deploying_imagenet_pretrained_models_as_flask_web_service | f338a9ad9bebc07a0df38e57eb8a7263be14992b | [
"MIT"
] | 1 | 2020-06-19T10:15:41.000Z | 2020-06-19T10:15:41.000Z | apps.py | prabhat-123/Deploying_imagenet_pretrained_models_as_flask_web_service | f338a9ad9bebc07a0df38e57eb8a7263be14992b | [
"MIT"
] | 6 | 2020-09-25T19:20:54.000Z | 2022-02-09T23:46:34.000Z | apps.py | prabhat-123/Deploying_imagenet_pretrained_models_as_flask_web_service | f338a9ad9bebc07a0df38e57eb8a7263be14992b | [
"MIT"
] | null | null | null | from __future__ import division,print_function
import numpy as np
import tensorflow as tf
import sys
import os
import glob
import re
from tensorflow.keras.applications.imagenet_utils import preprocess_input, decode_predictions
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessi... | 26.736111 | 94 | 0.677922 | 256 | 1,925 | 4.882813 | 0.445313 | 0.0336 | 0.0456 | 0.0288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01004 | 0.223896 | 1,925 | 72 | 95 | 26.736111 | 0.82664 | 0.173506 | 0 | 0 | 0 | 0 | 0.047745 | 0.016578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.302326 | 0.023256 | 0.465116 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bcf673a73c1b99d5b69e610b5605aa30c14cae36 | 2,401 | py | Python | Loan-Approval-Analysis/code.py | pavanmakineni/ga-learner-dsb-repo | 64dc6352bc1f8f223beb32cdf4adf402d8ce67a6 | [
"MIT"
] | null | null | null | Loan-Approval-Analysis/code.py | pavanmakineni/ga-learner-dsb-repo | 64dc6352bc1f8f223beb32cdf4adf402d8ce67a6 | [
"MIT"
] | null | null | null | Loan-Approval-Analysis/code.py | pavanmakineni/ga-learner-dsb-repo | 64dc6352bc1f8f223beb32cdf4adf402d8ce67a6 | [
"MIT"
] | null | null | null | # --------------
# Import packages
import numpy as np
import pandas as pd
from scipy.stats import mode
# code starts here
bank=pd.read_csv(path,sep=',',header='infer')
#print(bank)
categorical_var = bank.select_dtypes(include = 'object')
#print(categorical_var)
numerical_var = bank.select_dtypes(include = 'numb... | 18.612403 | 117 | 0.720117 | 353 | 2,401 | 4.651558 | 0.252125 | 0.073082 | 0.051157 | 0.058465 | 0.319732 | 0.248477 | 0.225335 | 0.18514 | 0.138855 | 0.138855 | 0 | 0.011262 | 0.112453 | 2,401 | 128 | 118 | 18.757813 | 0.759268 | 0.163265 | 0 | 0.240741 | 0 | 0 | 0.088799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.148148 | 0.018519 | 0.185185 | 0.462963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
bcf7cfff380c63b5615b29e0a95bb1ee246f2fc7 | 615 | py | Python | webapp/app.py | hubaa13/peer2profit-heroku | f3e60e4381d9e45fda3a627f15798078f37f4091 | [
"MIT"
] | 3 | 2021-08-29T13:57:42.000Z | 2021-09-06T12:21:36.000Z | webapp/app.py | hubaa13/peer2profit-heroku | f3e60e4381d9e45fda3a627f15798078f37f4091 | [
"MIT"
] | 2 | 2021-08-29T06:41:50.000Z | 2022-03-11T11:59:12.000Z | webapp/app.py | hubaa13/peer2profit-heroku | f3e60e4381d9e45fda3a627f15798078f37f4091 | [
"MIT"
] | 14 | 2021-08-29T12:10:11.000Z | 2022-03-11T02:12:35.000Z | import os
import socket
import subprocess
from flask import Flask
from requests import get
app = Flask(__name__)
@app.route('/')
def hello():
hostname = socket.gethostname()
ip = get('https://api.ipify.org').text
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "test.log")) as f:
... | 27.954545 | 204 | 0.660163 | 89 | 615 | 4.370787 | 0.640449 | 0.046272 | 0.015424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04381 | 0.146341 | 615 | 21 | 205 | 29.285714 | 0.697143 | 0 | 0 | 0 | 0 | 0.066667 | 0.334959 | 0.034146 | 0.066667 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bcfcff80c634a9c2ac061f0875ef71209707c163 | 322 | py | Python | test_create_autoencoder.py | varennes/deep-autoencoder | e96ac4ac850d51d54495a02f9c19c4857afc8189 | [
"MIT"
] | null | null | null | test_create_autoencoder.py | varennes/deep-autoencoder | e96ac4ac850d51d54495a02f9c19c4857afc8189 | [
"MIT"
] | null | null | null | test_create_autoencoder.py | varennes/deep-autoencoder | e96ac4ac850d51d54495a02f9c19c4857afc8189 | [
"MIT"
] | 1 | 2020-10-06T10:52:16.000Z | 2020-10-06T10:52:16.000Z | from module_autoencoder import Autoencoder
from keras.layers import Input
vgg16_weights = 'model_weights/vgg16_initial_encoder_weights.h5'
input_shape = ( 48, 48, 3)
ec_input = Input( input_shape, name='ec_input')
ae = Autoencoder( ec_input)
ae.model.load_weights( vgg16_weights, by_name=True)
print ae.model.summary(... | 26.833333 | 64 | 0.798137 | 49 | 322 | 4.959184 | 0.489796 | 0.08642 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.10559 | 322 | 11 | 65 | 29.272727 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0.167702 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c0967b1d662aca0bb4916d669b727edc68fb383 | 160 | py | Python | exercises/ja/exc_01_07.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 2,085 | 2019-04-17T13:10:40.000Z | 2022-03-30T21:51:46.000Z | exercises/ja/exc_01_07.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 79 | 2019-04-18T14:42:55.000Z | 2022-03-07T08:15:43.000Z | exercises/ja/exc_01_07.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 361 | 2019-04-17T13:34:32.000Z | 2022-03-28T04:42:45.000Z | import spacy
# 「ja_core_news_sm」モデルをロード
nlp = ____
text = "公式発表:Appleが米国の上場企業として初めて時価評価額1兆ドルに到達しました。"
# テキストを処理
doc = ____
# docのテキストをプリント
print(____.____)
| 12.307692 | 50 | 0.76875 | 15 | 160 | 6.933333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.1375 | 160 | 12 | 51 | 13.333333 | 0.746377 | 0.2875 | 0 | 0 | 0 | 0 | 0.372727 | 0.372727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
4c0b2e47e03ba8d4bd47fad9f2f5bdee8ee141d8 | 1,765 | py | Python | cargo/emailing/backend.py | dalou/django-cargo | 633d051ca8647623adbab746c9da9153f46e1e8f | [
"BSD-3-Clause"
] | null | null | null | cargo/emailing/backend.py | dalou/django-cargo | 633d051ca8647623adbab746c9da9153f46e1e8f | [
"BSD-3-Clause"
] | null | null | null | cargo/emailing/backend.py | dalou/django-cargo | 633d051ca8647623adbab746c9da9153f46e1e8f | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.backends.base import BaseEmailBackend
from django.core.mail.message import sanitize_address, DEFAULT_ATTACHMENT_MIME_TYPE
from django.core.mail.backends.smtp import EmailBackend
from ..models import *
class ... | 44.125 | 103 | 0.686686 | 200 | 1,765 | 5.93 | 0.345 | 0.10118 | 0.096121 | 0.131535 | 0.544688 | 0.453626 | 0.335582 | 0.190556 | 0.190556 | 0.190556 | 0 | 0 | 0.200567 | 1,765 | 40 | 104 | 44.125 | 0.840539 | 0.349009 | 0 | 0.190476 | 0 | 0 | 0.071429 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.285714 | 0.095238 | 0.666667 | 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 |
4c1062c18bfe1f75b404a3bb5a37ebb3dffdfaac | 455 | py | Python | setup.py | Jman420/plotplayer | 3a224fc38c2825c4166e7534970a792f0e96bd84 | [
"Apache-2.0"
] | null | null | null | setup.py | Jman420/plotplayer | 3a224fc38c2825c4166e7534970a792f0e96bd84 | [
"Apache-2.0"
] | 7 | 2018-06-20T19:44:45.000Z | 2022-03-11T23:18:57.000Z | setup.py | Jman420/plotplayer | 3a224fc38c2825c4166e7534970a792f0e96bd84 | [
"Apache-2.0"
] | 2 | 2018-04-08T14:36:13.000Z | 2018-06-20T19:41:42.000Z | from setuptools import setup, find_packages
setup(name='plotplayer',
version='6.0.4',
description='Function based animation player for Matplotlib',
long_description=open('Readme.md').read(),
url='https://github.com/Jman420/plotplayer',
author='Justin Giannone',
author_em... | 35 | 69 | 0.652747 | 53 | 455 | 5.509434 | 0.811321 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.208791 | 455 | 12 | 70 | 37.916667 | 0.788889 | 0 | 0 | 0 | 0 | 0 | 0.349451 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
4c1216140e2ac84a2750afb9eb05b5b1922805a5 | 2,040 | py | Python | startup/customer/v1/views.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 1 | 2018-01-19T15:04:36.000Z | 2018-01-19T15:04:36.000Z | startup/customer/v1/views.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 1 | 2020-06-05T17:25:35.000Z | 2020-06-05T17:25:35.000Z | startup/customer/v1/views.py | nimeshkverma/Django-REST-Framework-Boilerplate | fab4187cf06f3af96cc486b1f1ea34da687f3ebe | [
"MIT"
] | 3 | 2017-10-23T05:51:16.000Z | 2020-12-28T11:08:29.000Z | from rest_framework import mixins, generics, status
from rest_framework.response import Response
from . import serializers
from customer import models
from common.v1.decorators import session_authorize, meta_data_response, catch_exception
import logging
LOGGER = logging.getLogger(__name__)
class CustomerList(mixins.L... | 35.172414 | 87 | 0.681863 | 212 | 2,040 | 6.358491 | 0.283019 | 0.074184 | 0.088279 | 0.089021 | 0.63724 | 0.548961 | 0.502967 | 0.47181 | 0.47181 | 0.403561 | 0 | 0.006246 | 0.215196 | 2,040 | 57 | 88 | 35.789474 | 0.835728 | 0 | 0 | 0.479167 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.125 | 0.041667 | 0.520833 | 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 |
4c134a902b71186ef75785f81f5a1fae6584822a | 945 | py | Python | examples/producer_consumer.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | 1 | 2015-05-28T03:12:47.000Z | 2015-05-28T03:12:47.000Z | examples/producer_consumer.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | examples/producer_consumer.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | """
This file demonstrates a simple producer/consumer setup.
The produce goroutine generates some data and sends on a channel,
and the consume goroutine receives on the channel and processes
the data.
This is one of the simplest models of concurrent programming
and very easy with goless.
Code modeled on http://www.go... | 21 | 77 | 0.633862 | 130 | 945 | 4.546154 | 0.492308 | 0.054146 | 0.027073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002837 | 0.253968 | 945 | 44 | 78 | 21.477273 | 0.835461 | 0.385185 | 0 | 0 | 1 | 0 | 0.038394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c13869272af2bb362fc9f7e56e1c793b2ae0157 | 5,133 | py | Python | renren.py | netsharec/xiaohuangji | 89361898eea2ea9b7adc7bbb06e64bcc24f35034 | [
"MIT"
] | 1 | 2015-05-05T12:03:38.000Z | 2015-05-05T12:03:38.000Z | renren.py | netsharec/xiaohuangji | 89361898eea2ea9b7adc7bbb06e64bcc24f35034 | [
"MIT"
] | null | null | null | renren.py | netsharec/xiaohuangji | 89361898eea2ea9b7adc7bbb06e64bcc24f35034 | [
"MIT"
] | null | null | null | #-*-coding:utf-8-*-
import requests
import json
import re
import random
from urlparse import urlparse, parse_qsl
from pyquery import PyQuery
from ntype import NTYPES
from encrypt import encryptString
class RenRen:
def __init__(self, email=None, pwd=None):
self.session = requests.Session()
self.to... | 31.490798 | 104 | 0.559322 | 613 | 5,133 | 4.582382 | 0.28385 | 0.035244 | 0.023496 | 0.019936 | 0.097544 | 0.044856 | 0.044856 | 0 | 0 | 0 | 0 | 0.006327 | 0.291837 | 5,133 | 162 | 105 | 31.685185 | 0.766437 | 0.018313 | 0 | 0.078125 | 0 | 0.007813 | 0.180103 | 0.007744 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015625 | 0.0625 | null | null | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c14cf00922efcd06a12093af981e588c1311055 | 4,533 | py | Python | Util.py | rrinnLLS/hih | fb7b8a3c2c2d482ba05c23638685f6b260ea2801 | [
"MIT"
] | null | null | null | Util.py | rrinnLLS/hih | fb7b8a3c2c2d482ba05c23638685f6b260ea2801 | [
"MIT"
] | null | null | null | Util.py | rrinnLLS/hih | fb7b8a3c2c2d482ba05c23638685f6b260ea2801 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2014-2015 SwiperProxy Team
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy... | 34.603053 | 72 | 0.579969 | 572 | 4,533 | 4.557692 | 0.298951 | 0.032221 | 0.023015 | 0.019563 | 0.306483 | 0.264288 | 0.215957 | 0.205984 | 0.205984 | 0.205984 | 0 | 0.014365 | 0.324289 | 4,533 | 130 | 73 | 34.869231 | 0.836761 | 0.321641 | 0 | 0.588235 | 0 | 0 | 0.023229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.029412 | 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 |
4c1aeed168fc5addc1217ad6e32dff61dcc7d95c | 2,079 | py | Python | books/migrations/0007_auto_20191001_2000.py | Mashex/BookFlix | bdac6dbc56ba0c90f6ee7a2308f93e54dcb759c7 | [
"Unlicense"
] | null | null | null | books/migrations/0007_auto_20191001_2000.py | Mashex/BookFlix | bdac6dbc56ba0c90f6ee7a2308f93e54dcb759c7 | [
"Unlicense"
] | null | null | null | books/migrations/0007_auto_20191001_2000.py | Mashex/BookFlix | bdac6dbc56ba0c90f6ee7a2308f93e54dcb759c7 | [
"Unlicense"
] | 1 | 2019-09-30T20:02:11.000Z | 2019-09-30T20:02:11.000Z | # Generated by Django 2.1.3 on 2019-10-01 20:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('books', '0006_user_book_... | 35.844828 | 148 | 0.613757 | 210 | 2,079 | 5.828571 | 0.338095 | 0.051471 | 0.042484 | 0.062092 | 0.501634 | 0.501634 | 0.409314 | 0.409314 | 0.337418 | 0.337418 | 0 | 0.015831 | 0.270803 | 2,079 | 57 | 149 | 36.473684 | 0.791557 | 0.021645 | 0 | 0.509804 | 1 | 0 | 0.187992 | 0.082185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.117647 | 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 |
4c1b54e5466a4c1c2c372e5269d5a9773a10ab28 | 3,813 | py | Python | app/forms.py | wujiahui62/XCEL | 8b1dec2d597fc1c1f66b01fb2aee9c069c0f2329 | [
"Apache-2.0"
] | null | null | null | app/forms.py | wujiahui62/XCEL | 8b1dec2d597fc1c1f66b01fb2aee9c069c0f2329 | [
"Apache-2.0"
] | null | null | null | app/forms.py | wujiahui62/XCEL | 8b1dec2d597fc1c1f66b01fb2aee9c069c0f2329 | [
"Apache-2.0"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField, RadioField, SelectField, DateTimeField
from wtforms.validators import DataRequired, ValidationError, Email, EqualTo, Length
from app.models import User
from wtforms.fields.html5 import DateField
cl... | 45.939759 | 155 | 0.708891 | 356 | 3,813 | 7.575843 | 0.33427 | 0.163144 | 0.050056 | 0.045977 | 0.408231 | 0.313311 | 0.270671 | 0.249537 | 0.249537 | 0.249537 | 0 | 0.000922 | 0.146341 | 3,813 | 83 | 156 | 45.939759 | 0.82765 | 0 | 0 | 0.338028 | 0 | 0 | 0.163083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.15493 | 0.070423 | 0 | 0.943662 | 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 |
4c1d59726aa7e86ad7a38e93fabefd956c8b4bbb | 588 | py | Python | demo_numpy_continued.py | kywdavis/astr-119-session-4 | 59b76b6f21bfee0e5bfe0217169d8c8767a2252a | [
"MIT"
] | null | null | null | demo_numpy_continued.py | kywdavis/astr-119-session-4 | 59b76b6f21bfee0e5bfe0217169d8c8767a2252a | [
"MIT"
] | null | null | null | demo_numpy_continued.py | kywdavis/astr-119-session-4 | 59b76b6f21bfee0e5bfe0217169d8c8767a2252a | [
"MIT"
] | null | null | null | import numpy as np
x = 1.0 #define a float
y = 2.0 #define another float
#exponents and logarithms
print(np.exp(x)) #e^x
print(np.log(x)) #ln x
print(np.log10(x)) #log_10 x
print(np.log2(x)) #log_2 x
#min/max/misc
print(np.fabs(x)) #absolute value as a float
print(np.fmin(x,y)) #min of x and y
print(np.fmax(x,y)) #... | 22.615385 | 54 | 0.659864 | 134 | 588 | 2.865672 | 0.365672 | 0.164063 | 0.0625 | 0.036458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06012 | 0.151361 | 588 | 26 | 55 | 22.615385 | 0.709419 | 0.421769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.5625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4c1fe74d4acbaacc0d9aff1ff3794d72fa17f928 | 847 | py | Python | dev/test/genrnd.py | Cam2337/snap-python | 0bf722b461f8b5aae3ecb2757313521e9e9e76f1 | [
"BSD-3-Clause"
] | 242 | 2015-01-01T08:40:28.000Z | 2022-03-18T05:22:09.000Z | dev/test/genrnd.py | Cam2337/snap-python | 0bf722b461f8b5aae3ecb2757313521e9e9e76f1 | [
"BSD-3-Clause"
] | 99 | 2015-01-24T07:55:27.000Z | 2021-10-30T18:20:13.000Z | dev/test/genrnd.py | Cam2337/snap-python | 0bf722b461f8b5aae3ecb2757313521e9e9e76f1 | [
"BSD-3-Clause"
] | 105 | 2015-03-03T06:45:17.000Z | 2022-02-24T15:52:40.000Z | import random
import sys
sys.path.append("../swig")
import snap
def GenRndGnm():
Graph = snap.GenRndGnm_PNGraph(1000,10000)
print "Graph", str(type(Graph)), Graph.GetNodes(), Graph.GetEdges()
# save the graph
FName = "test2.graph"
print "Save", FName
FOut = snap.TFOut(snap.TStr(FName))
... | 22.891892 | 76 | 0.631641 | 108 | 847 | 4.861111 | 0.351852 | 0.07619 | 0.074286 | 0.064762 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032689 | 0.205431 | 847 | 36 | 77 | 23.527778 | 0.7474 | 0.249115 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c22384cdf7a93439b5ead98d13a8e8eea77d895 | 26,017 | py | Python | ambari-common/src/main/python/ambari_commons/os_windows.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,664 | 2015-01-03T09:35:21.000Z | 2022-03-31T04:55:24.000Z | ambari-common/src/main/python/ambari_commons/os_windows.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 3,018 | 2015-02-19T20:16:10.000Z | 2021-11-13T20:47:48.000Z | ambari-common/src/main/python/ambari_commons/os_windows.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,673 | 2015-01-06T14:14:42.000Z | 2022-03-31T07:22:30.000Z | # !/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"... | 33.527062 | 183 | 0.694238 | 3,039 | 26,017 | 5.786114 | 0.237578 | 0.005971 | 0.006142 | 0.006369 | 0.209167 | 0.18096 | 0.156449 | 0.144904 | 0.111465 | 0.088888 | 0 | 0.018809 | 0.211208 | 26,017 | 775 | 184 | 33.570323 | 0.838027 | 0.125802 | 0 | 0.228464 | 0 | 0.005618 | 0.101257 | 0.034824 | 0 | 0 | 0 | 0.00129 | 0 | 0 | null | null | 0.033708 | 0.050562 | null | null | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c22ae333854f9dfe1b16379b66cbef58e5e8672 | 3,002 | py | Python | resources/code/train/Python/pixbufcache.py | searene/PLDetector | a8052b1d2ba91bfcc3fd4a5252480cf511d8a210 | [
"MIT"
] | 1 | 2020-11-09T08:24:17.000Z | 2020-11-09T08:24:17.000Z | resources/code/train/Python/pixbufcache.py | searene/PLDetector | a8052b1d2ba91bfcc3fd4a5252480cf511d8a210 | [
"MIT"
] | null | null | null | resources/code/train/Python/pixbufcache.py | searene/PLDetector | a8052b1d2ba91bfcc3fd4a5252480cf511d8a210 | [
"MIT"
] | null | null | null | # This file is part of the Hotwire Shell user interface.
#
# Copyright (C) 2007 Colin Walters <walters@verbum.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | 33.730337 | 82 | 0.63491 | 402 | 3,002 | 4.606965 | 0.427861 | 0.030238 | 0.021058 | 0.030778 | 0.044276 | 0.030238 | 0 | 0 | 0 | 0 | 0 | 0.011436 | 0.271819 | 3,002 | 88 | 83 | 34.113636 | 0.835773 | 0.261492 | 0 | 0.048387 | 0 | 0 | 0.029559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | 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 |
4c237e3835bc78d10431e5dc8a6d3893b41f2991 | 7,103 | py | Python | cctbx/regression/tst_miller_fft_map.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/regression/tst_miller_fft_map.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/regression/tst_miller_fft_map.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from cctbx import miller
from cctbx import maptbx
from cctbx import sgtbx
from cctbx import xray
from cctbx import euclidean_model_matching as emma
from cctbx.development import random_structure
from cctbx.development import debug_utils
from cctbx.development import structure_factor_util... | 36.425641 | 77 | 0.733071 | 1,063 | 7,103 | 4.522107 | 0.204139 | 0.033701 | 0.026212 | 0.021635 | 0.241731 | 0.138132 | 0.118161 | 0.086957 | 0.06657 | 0.06657 | 0 | 0.014035 | 0.157398 | 7,103 | 194 | 78 | 36.613402 | 0.78914 | 0.005068 | 0 | 0.115385 | 0 | 0 | 0.00949 | 0 | 0 | 0 | 0 | 0 | 0.104396 | 0 | null | null | 0 | 0.093407 | null | null | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c27a7b0509813f314ec513a104b7adfde296fc1 | 279 | py | Python | youtubefun.py | seunss/bball | 4357e844160673051a66c9302cdf0c11904bd821 | [
"Unlicense",
"MIT"
] | null | null | null | youtubefun.py | seunss/bball | 4357e844160673051a66c9302cdf0c11904bd821 | [
"Unlicense",
"MIT"
] | null | null | null | youtubefun.py | seunss/bball | 4357e844160673051a66c9302cdf0c11904bd821 | [
"Unlicense",
"MIT"
] | null | null | null | import os
import datetime
import requests
import os
from pytube import YouTube
url = "https://www.youtube.com/watch?v=x2sjEj8TClM&t" # sample url
yt = YouTube(url)
print("Video views:", yt.views)
print("Video title:", yt.title)
print("Video thumbnail url:", yt.thumbnail_url) | 19.928571 | 66 | 0.74552 | 43 | 279 | 4.813953 | 0.511628 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008163 | 0.121864 | 279 | 14 | 67 | 19.928571 | 0.836735 | 0.035842 | 0 | 0.2 | 0 | 0 | 0.33209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4c28c4e17b1b37221674420b16552b203fb276b6 | 13,561 | py | Python | pyleecan/Classes/OutLoss.py | EmileDvs/pyleecan | ad2f5f25c089a981f373557a198da51c62407928 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | pyleecan/Classes/OutLoss.py | thalesmaoa/pyleecan | c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | pyleecan/Classes/OutLoss.py | thalesmaoa/pyleecan | c4fdc6362fdeba3d0766d5d1df3ff9c97c3f9fa3 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Output/OutLoss.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Output/OutLoss
"""
from os import linesep
from sys import getsizeof
fro... | 36.750678 | 106 | 0.555564 | 1,615 | 13,561 | 4.426625 | 0.134985 | 0.073856 | 0.039866 | 0.014547 | 0.364107 | 0.281438 | 0.214855 | 0.146874 | 0.118338 | 0.118338 | 0 | 0.002181 | 0.35757 | 13,561 | 368 | 107 | 36.850543 | 0.818411 | 0.157879 | 0 | 0.240143 | 1 | 0 | 0.088953 | 0.003233 | 0 | 0 | 0 | 0 | 0.003584 | 1 | 0.053763 | false | 0.007168 | 0.078853 | 0 | 0.218638 | 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 |
4c2ec45048e1ba4f6cc6fa7d04856e289a6c6970 | 5,089 | py | Python | testing/performances.py | severin-lemaignan/underworlds | 6ca657b0e72923f6a0c00eb34c435c209bce6712 | [
"BSD-3-Clause"
] | 3 | 2016-08-25T01:00:31.000Z | 2017-03-10T16:25:54.000Z | testing/performances.py | severin-lemaignan/underworlds | 6ca657b0e72923f6a0c00eb34c435c209bce6712 | [
"BSD-3-Clause"
] | 15 | 2016-11-25T16:04:04.000Z | 2018-02-22T20:46:50.000Z | testing/performances.py | underworlds-robot/underworlds | 6ca657b0e72923f6a0c00eb34c435c209bce6712 | [
"BSD-3-Clause"
] | 4 | 2017-03-28T13:00:11.000Z | 2018-01-31T14:09:23.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import time
import uuid
from multiprocessing import Pipe, Pool
import threading
from concurrent.futures import ThreadPoolExecutor
import logging; logger = logging.getLogger("underworlds.testing.performances")
import underworlds
import underworlds.serve... | 31.220859 | 145 | 0.627432 | 656 | 5,089 | 4.77439 | 0.300305 | 0.020115 | 0.032567 | 0.010536 | 0.073755 | 0.069604 | 0.036398 | 0.036398 | 0 | 0 | 0 | 0.014687 | 0.237375 | 5,089 | 162 | 146 | 31.41358 | 0.792322 | 0.083513 | 0 | 0.086538 | 0 | 0 | 0.183797 | 0.012713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.057692 | 0.125 | 0.009615 | 0.192308 | 0.105769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c2fcf75576de46575e7300e53b10916eedfe922 | 567 | py | Python | leetCode/algorithms/medium/add_and_search_word_data_structure.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | leetCode/algorithms/medium/add_and_search_word_data_structure.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | leetCode/algorithms/medium/add_and_search_word_data_structure.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | # TODO: make a trie
from string import lowercase
from itertools import product
class WordDictionary:
def __init__(self):
self.words = set()
def addWord(self, word):
self.words.add(word)
def search(self, word):
return any(
"".join(e) in self.words
for e in ... | 20.25 | 87 | 0.611993 | 82 | 567 | 4.182927 | 0.487805 | 0.081633 | 0.113703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236332 | 567 | 27 | 88 | 21 | 0.792148 | 0.029982 | 0 | 0 | 0 | 0 | 0.040146 | 0 | 0 | 0 | 0 | 0.037037 | 0.2 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c3103a86fabbb5b869d15e80358f36f51379e70 | 6,044 | py | Python | django_core_utils/views.py | ajaniv/django-core-utils | 4ae9fc325f4bc9e3a3e723207d48133f772804c3 | [
"MIT"
] | 1 | 2017-09-18T17:40:37.000Z | 2017-09-18T17:40:37.000Z | django_core_utils/views.py | ajaniv/django-core-utils | 4ae9fc325f4bc9e3a3e723207d48133f772804c3 | [
"MIT"
] | 10 | 2016-04-10T18:38:43.000Z | 2018-09-10T20:59:10.000Z | django_core_utils/views.py | ajaniv/django-core-utils | 4ae9fc325f4bc9e3a3e723207d48133f772804c3 | [
"MIT"
] | null | null | null | """
.. module:: django_core_utils.views
:synopsis: django_core_utils views module.
django_core_utils views module.
There are multiple techniques to handle api requests:
- Function end points
- Class based views derived from APIView
- Usage of mixin classes.
Which technique is best for a given problem is often a ... | 35.763314 | 78 | 0.685639 | 681 | 6,044 | 5.963289 | 0.215859 | 0.051711 | 0.070918 | 0.055159 | 0.63014 | 0.537552 | 0.470574 | 0.431667 | 0.40261 | 0.374046 | 0 | 0.005793 | 0.228822 | 6,044 | 168 | 79 | 35.97619 | 0.86548 | 0.263402 | 0 | 0.417582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131868 | false | 0 | 0.076923 | 0.054945 | 0.538462 | 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 |
4c368dd2fcc773331c64de98d70293f3e266a470 | 6,258 | py | Python | taxa.py | cactuskid/Taxonomy_scripts | d589a0783f613e5af80631445d02d413e61fc6da | [
"MIT"
] | null | null | null | taxa.py | cactuskid/Taxonomy_scripts | d589a0783f613e5af80631445d02d413e61fc6da | [
"MIT"
] | null | null | null | taxa.py | cactuskid/Taxonomy_scripts | d589a0783f613e5af80631445d02d413e61fc6da | [
"MIT"
] | null | null | null | #utility functions for getting taxonomic data
from Bio import Entrez
from Bio import SeqIO
import uniprot as uni
from itertools import islice , chain
Entrez.email = 'dmoi@iibintech.com.ar'
def chunks(l, n):
n = max(1, n)
return [l[i:i + n] for i in range(0, len(l), n)]
def grab_IDs(seqfile):
record_iter... | 27.9375 | 83 | 0.66379 | 831 | 6,258 | 4.960289 | 0.203369 | 0.009704 | 0.014556 | 0.034935 | 0.430131 | 0.408782 | 0.303493 | 0.233867 | 0.183891 | 0.183891 | 0 | 0.014096 | 0.19511 | 6,258 | 224 | 84 | 27.9375 | 0.804249 | 0.121125 | 0 | 0.364641 | 0 | 0 | 0.064904 | 0.007657 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005525 | 0.022099 | null | null | 0.082873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c37cb89d1766707caeae43144dd959c4c95065e | 8,837 | py | Python | test/classes.py | williamstein/jpython | 31175f97f42381f612b0b9661beb6b5e5c356d5c | [
"BSD-2-Clause"
] | null | null | null | test/classes.py | williamstein/jpython | 31175f97f42381f612b0b9661beb6b5e5c356d5c | [
"BSD-2-Clause"
] | null | null | null | test/classes.py | williamstein/jpython | 31175f97f42381f612b0b9661beb6b5e5c356d5c | [
"BSD-2-Clause"
] | null | null | null | # globals: assrt
# empty classes are allowed
class Blank:
pass
blank = Blank()
assrt.ok(isinstance(blank, Blank))
# basic class
class Human:
HAIRS = 23
def __init__(self, name):
self.name = name
def greet(self):
return "Hello, I'm " + self.name
@staticmethod
def getTypicalW... | 19.507726 | 110 | 0.605635 | 1,328 | 8,837 | 3.924699 | 0.194277 | 0.109363 | 0.021105 | 0.008058 | 0.159248 | 0.093822 | 0.070798 | 0.054682 | 0.043937 | 0.030123 | 0 | 0.022259 | 0.242503 | 8,837 | 452 | 111 | 19.550885 | 0.756349 | 0.166346 | 0 | 0.198083 | 0 | 0 | 0.072258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019169 | 0.003195 | 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 |
4c3977c824889f05e9654deb75ddd62f16345ce4 | 16,700 | py | Python | scripts/lib/autostring.py | julemai/EEE-DA | 34cd74de8019c6b7721d18f44d613d0e565ea580 | [
"MIT"
] | null | null | null | scripts/lib/autostring.py | julemai/EEE-DA | 34cd74de8019c6b7721d18f44d613d0e565ea580 | [
"MIT"
] | null | null | null | scripts/lib/autostring.py | julemai/EEE-DA | 34cd74de8019c6b7721d18f44d613d0e565ea580 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import numpy as np
def autostring(num, prec=0, zero=False, set_printoptions=False, pp=False, join=False, joinall=False, sep=' '):
"""
Format number (array) with given decimal precision.
Definition
----------
def autostrin... | 38.7471 | 126 | 0.504551 | 2,512 | 16,700 | 3.291799 | 0.139729 | 0.096263 | 0.136413 | 0.176079 | 0.547225 | 0.51167 | 0.478292 | 0.445882 | 0.433063 | 0.430161 | 0 | 0.101064 | 0.319222 | 16,700 | 430 | 127 | 38.837209 | 0.626264 | 0.486946 | 0 | 0.435028 | 0 | 0.011299 | 0.057943 | 0.008238 | 0 | 0 | 0.002472 | 0 | 0 | 1 | 0.011299 | false | 0 | 0.022599 | 0 | 0.062147 | 0.050847 | 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 |
4c3ea93a6f23661ac3b234e08daf0d07ac5fc7aa | 430 | py | Python | Softuni Assignments/Lecture 07/count_substring_occurences.py | peter-stoyanov/Python | 52ddb70537c05caa0d87740493b7b1f974191984 | [
"MIT"
] | null | null | null | Softuni Assignments/Lecture 07/count_substring_occurences.py | peter-stoyanov/Python | 52ddb70537c05caa0d87740493b7b1f974191984 | [
"MIT"
] | null | null | null | Softuni Assignments/Lecture 07/count_substring_occurences.py | peter-stoyanov/Python | 52ddb70537c05caa0d87740493b7b1f974191984 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Docstring"""
__author__ = "Petar Stoyanov"
def main():
"""Docstring"""
text = input().lower()
search_term = input().lower()
counter = 0
index = 0
while True:
if text.find(search_term, index) == -1:
break
else:
counter += 1
... | 16.538462 | 53 | 0.532558 | 48 | 430 | 4.458333 | 0.5625 | 0.140187 | 0.130841 | 0.168224 | 0.224299 | 0.224299 | 0 | 0 | 0 | 0 | 0 | 0.017065 | 0.318605 | 430 | 25 | 54 | 17.2 | 0.713311 | 0.093023 | 0 | 0 | 0 | 0 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.066667 | 0.066667 | 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 |
4c4a3202db1151d111cfc3d233a86081b5f8e198 | 49,517 | py | Python | src/control_panel.py | adipdas11/WaiterBot1 | 2bb225bd83c410647442f7858295b3230abd5783 | [
"MIT"
] | null | null | null | src/control_panel.py | adipdas11/WaiterBot1 | 2bb225bd83c410647442f7858295b3230abd5783 | [
"MIT"
] | null | null | null | src/control_panel.py | adipdas11/WaiterBot1 | 2bb225bd83c410647442f7858295b3230abd5783 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'control.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import rospy
from geometry_msgs.msg import Twist
from std_... | 45.849074 | 147 | 0.656986 | 6,170 | 49,517 | 5.094327 | 0.07342 | 0.065284 | 0.045241 | 0.040532 | 0.651915 | 0.572347 | 0.431662 | 0.311752 | 0.268484 | 0.175172 | 0 | 0.042856 | 0.219642 | 49,517 | 1,080 | 148 | 45.849074 | 0.77058 | 0.004604 | 0 | 0.284855 | 1 | 0 | 0.084392 | 0.024532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05015 | false | 0.001003 | 0.016048 | 0 | 0.070211 | 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 |
4c5125d085be1b87b4b31494a39e8c357786449c | 2,787 | py | Python | flask-crm/backend/authentication.py | MichaelDacanay/Complete.It | 9356e73092db3efd0c7aeacd76d14bebbd8fb056 | [
"MIT"
] | null | null | null | flask-crm/backend/authentication.py | MichaelDacanay/Complete.It | 9356e73092db3efd0c7aeacd76d14bebbd8fb056 | [
"MIT"
] | null | null | null | flask-crm/backend/authentication.py | MichaelDacanay/Complete.It | 9356e73092db3efd0c7aeacd76d14bebbd8fb056 | [
"MIT"
] | 2 | 2020-07-02T04:08:01.000Z | 2020-07-04T02:12:49.000Z | # import necessary packages
from flask import Flask, request
import json
from pymongo import MongoClient
import hashlib
import ssl
# import flask app
from main import app
# obtain connection string for database
CONN_STRING = ""
with open("credentials.json", "r") as data:
# save connection string variable
CON... | 28.731959 | 87 | 0.681019 | 367 | 2,787 | 5.035422 | 0.299728 | 0.030303 | 0.027056 | 0.056277 | 0.342532 | 0.266234 | 0.266234 | 0.22619 | 0.22619 | 0.174242 | 0 | 0.009141 | 0.214926 | 2,787 | 96 | 88 | 29.03125 | 0.835466 | 0.345174 | 0 | 0.181818 | 0 | 0 | 0.160452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.090909 | 0.136364 | 0 | 0.272727 | 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 |
4c5669fd111a19fcaf1a905c2b71452f89d6240c | 3,289 | py | Python | recorder.py | terence-bigtt/ir-record-playback | 0644c91d99bef3fbf88f738d7c240a2d42bd21dc | [
"MIT"
] | null | null | null | recorder.py | terence-bigtt/ir-record-playback | 0644c91d99bef3fbf88f738d7c240a2d42bd21dc | [
"MIT"
] | null | null | null | recorder.py | terence-bigtt/ir-record-playback | 0644c91d99bef3fbf88f738d7c240a2d42bd21dc | [
"MIT"
] | null | null | null | import numpy as np
import pigpio
class IrRecorder(object):
def __init__(self, gpio, pi, tol= .1,verbose = False):
""""
gpio: pin attached to IR sensor
pi: pigpio instance
tol : tolerance for same signal length (0<= tol <=1)
verbose: outputs edge callback values
""""
self._gpio = gpi... | 31.32381 | 91 | 0.576771 | 426 | 3,289 | 4.295775 | 0.234742 | 0.034973 | 0.042623 | 0.037158 | 0.231694 | 0.151913 | 0.151913 | 0.151913 | 0.151913 | 0.110383 | 0 | 0.00692 | 0.297051 | 3,289 | 104 | 92 | 31.625 | 0.784602 | 0 | 0 | 0.214286 | 0 | 0.011905 | 0.019243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c56e6fd78c00e40f339ee58710ef8b0c3093b75 | 257 | py | Python | Geekie/Core/views.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | 1 | 2018-08-21T12:26:02.000Z | 2018-08-21T12:26:02.000Z | Geekie/Core/views.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | null | null | null | Geekie/Core/views.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from .models import Cadastro
def index(request):
pessoa = Cadastro.objects.all()
x=pessoa
context = {'pessoa':pessoa,
'x':x,}
return render(request,'core/index.html',context)
# Create your views here.
| 25.7 | 52 | 0.700389 | 34 | 257 | 5.294118 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175097 | 257 | 9 | 53 | 28.555556 | 0.849057 | 0.089494 | 0 | 0 | 0 | 0 | 0.094828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c5c7e5614512606534a3a34bdb5b0437841ba35 | 404 | py | Python | app/grandchallenge/cases/migrations/0022_auto_20200325_1151.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/cases/migrations/0022_auto_20200325_1151.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/cases/migrations/0022_auto_20200325_1151.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-03-25 11:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("cases", "0021_rawimageuploadsession_archive"),
]
operations = [
migrations.AlterField(
model_name="rawimagefile",
na... | 21.263158 | 56 | 0.616337 | 41 | 404 | 5.97561 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075085 | 0.274752 | 404 | 18 | 57 | 22.444444 | 0.761092 | 0.111386 | 0 | 0 | 1 | 0 | 0.165266 | 0.095238 | 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 |
4c5e62a55e4054b4ea2992bd213401ba7cab7b33 | 2,277 | py | Python | src/handlers/user_handler.py | thisischandanmishra/flight-information | d6c05939bd7d3568b81f1a213776ccf1941d88ef | [
"MIT"
] | 2 | 2021-02-08T15:12:56.000Z | 2021-02-08T15:12:58.000Z | src/handlers/user_handler.py | thisischandanmishra/flight-information | d6c05939bd7d3568b81f1a213776ccf1941d88ef | [
"MIT"
] | null | null | null | src/handlers/user_handler.py | thisischandanmishra/flight-information | d6c05939bd7d3568b81f1a213776ccf1941d88ef | [
"MIT"
] | 1 | 2021-02-08T13:10:47.000Z | 2021-02-08T13:10:47.000Z | from flask import request
from flask_restful import Resource
import src.error.errors as error
from src import logger
from src.conf.auth import auth
from src.database.database import db
from src.models.models import User, Blacklist
class Index(Resource):
@staticmethod
def get():
return {"status": "Fli... | 32.070423 | 75 | 0.605182 | 267 | 2,277 | 5.116105 | 0.29588 | 0.048316 | 0.051245 | 0.06735 | 0.372621 | 0.261347 | 0.190337 | 0.190337 | 0.140556 | 0.087848 | 0 | 0.001227 | 0.284146 | 2,277 | 70 | 76 | 32.528571 | 0.83681 | 0 | 0 | 0.344262 | 0 | 0 | 0.109794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0.147541 | 0.114754 | 0.016393 | 0.42623 | 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 |
4c64e6b90eb0c0de83c701248d4bcdd2f59bd703 | 3,692 | py | Python | ADaM/python/dataset.py | phuse-org/CSS2020-Hackathon | f9538ee425fe7eb0573757cdd2346d1f8c7998c1 | [
"MIT"
] | 1 | 2020-10-06T15:12:01.000Z | 2020-10-06T15:12:01.000Z | ADaM/python/dataset.py | phuse-org/CSS2020-Hackathon | f9538ee425fe7eb0573757cdd2346d1f8c7998c1 | [
"MIT"
] | null | null | null | ADaM/python/dataset.py | phuse-org/CSS2020-Hackathon | f9538ee425fe7eb0573757cdd2346d1f8c7998c1 | [
"MIT"
] | 2 | 2020-09-24T14:28:49.000Z | 2020-11-27T05:42:34.000Z |
from podr_connection import podr_connection
from cdisc_library import CDISCConnector
from load_specifications import load_usecase_specification
from dotenv import load_dotenv
from yaml import load
import re
import os
# load the environment variables
load_dotenv(dotenv_path=os.path.join(os.path.dirname(__file__), '..'... | 31.288136 | 111 | 0.592633 | 402 | 3,692 | 5.208955 | 0.251244 | 0.030564 | 0.051576 | 0.021012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00079 | 0.314193 | 3,692 | 118 | 112 | 31.288136 | 0.826224 | 0.046587 | 0 | 0.121951 | 0 | 0 | 0.099825 | 0.006421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158537 | false | 0.060976 | 0.085366 | 0 | 0.317073 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c6904e78cebdf9e321049e78e664360dae6f532 | 1,399 | py | Python | scripts/planes-loop.py | kraj/libplanes | ba4cc0d7b08efecd2b2bfb04c7a70187d7056304 | [
"MIT"
] | null | null | null | scripts/planes-loop.py | kraj/libplanes | ba4cc0d7b08efecd2b2bfb04c7a70187d7056304 | [
"MIT"
] | null | null | null | scripts/planes-loop.py | kraj/libplanes | ba4cc0d7b08efecd2b2bfb04c7a70187d7056304 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from mpio import *
import glob
import os
import signal
from threading import Thread
from subprocess import *
abort = False
os.chdir("/usr/share/planes/")
def run():
global child_pid
global abort
if cpu() == 'at91sam9x5':
configs = ["default.config", "alpha.config", "sprite.config... | 21.19697 | 79 | 0.572552 | 172 | 1,399 | 4.587209 | 0.488372 | 0.060837 | 0.035488 | 0.050697 | 0.18251 | 0.119138 | 0.119138 | 0.119138 | 0.119138 | 0.119138 | 0 | 0.013279 | 0.300214 | 1,399 | 65 | 80 | 21.523077 | 0.792646 | 0.015011 | 0 | 0.339623 | 0 | 0 | 0.114016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018868 | 0.113208 | 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 |
4c6b092a45e2907a376ec93fec2eb90b1286b51e | 2,252 | py | Python | utest/controller/test_all_files_can_be_seen.py | ludovicurbain/SWIFT-RIDE | ab72df08a57101c433bfa5ad44949d9983e4e611 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-30T21:24:19.000Z | 2021-11-30T21:24:19.000Z | utest/controller/test_all_files_can_be_seen.py | ludovicurbain/SWIFT-RIDE | ab72df08a57101c433bfa5ad44949d9983e4e611 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-07-16T19:27:56.000Z | 2019-07-16T19:27:56.000Z | utest/controller/test_all_files_can_be_seen.py | ludovicurbain/SWIFT-RIDE | ab72df08a57101c433bfa5ad44949d9983e4e611 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 36.918033 | 78 | 0.6754 | 287 | 2,252 | 5.090592 | 0.414634 | 0.049281 | 0.030801 | 0.021903 | 0.145106 | 0.031485 | 0 | 0 | 0 | 0 | 0 | 0.011047 | 0.236234 | 2,252 | 60 | 79 | 37.533333 | 0.838372 | 0.272202 | 0 | 0.117647 | 0 | 0 | 0.083795 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.205882 | false | 0 | 0.058824 | 0.029412 | 0.323529 | 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 |
4c6cac6cfec3d5e839b1bed0add2c6c7890bfd11 | 674 | py | Python | TestInterface/login.py | luoyefeiwu/learn_python | e888537c538309d2600a302c0c6e92456dd785c0 | [
"Apache-2.0"
] | null | null | null | TestInterface/login.py | luoyefeiwu/learn_python | e888537c538309d2600a302c0c6e92456dd785c0 | [
"Apache-2.0"
] | null | null | null | TestInterface/login.py | luoyefeiwu/learn_python | e888537c538309d2600a302c0c6e92456dd785c0 | [
"Apache-2.0"
] | null | null | null | # 保存
import requests
import json
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36',
# 'Content-Type': 'application/json; charset=UTF-8'
}
data = {
'username': '121213',
'password': '123123'
}
cookies = {... | 28.083333 | 142 | 0.611276 | 86 | 674 | 4.767442 | 0.767442 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.221068 | 674 | 23 | 143 | 29.304348 | 0.695238 | 0.077151 | 0 | 0 | 0 | 0.055556 | 0.355412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.111111 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4c6cc0aeabf2cc691f20d12bae34b4d5e97e9485 | 50,572 | py | Python | flopy/mbase.py | GWSci/flopy | 5a17b879f46610f96a77e3be5da47965295dd20d | [
"BSD-3-Clause"
] | null | null | null | flopy/mbase.py | GWSci/flopy | 5a17b879f46610f96a77e3be5da47965295dd20d | [
"BSD-3-Clause"
] | null | null | null | flopy/mbase.py | GWSci/flopy | 5a17b879f46610f96a77e3be5da47965295dd20d | [
"BSD-3-Clause"
] | null | null | null | """
mbase module
This module contains the base model class from which
all of the other models inherit from.
"""
from __future__ import print_function
import sys
import os
import subprocess as sp
import shutil
import threading
if sys.version_info > (3, 0):
import queue as Queue
else:
impo... | 34.216509 | 127 | 0.504172 | 5,598 | 50,572 | 4.450161 | 0.109146 | 0.021275 | 0.012645 | 0.00578 | 0.333654 | 0.297166 | 0.26975 | 0.240888 | 0.221741 | 0.206206 | 0 | 0.003152 | 0.410385 | 50,572 | 1,477 | 128 | 34.239675 | 0.832316 | 0.068061 | 0 | 0.364544 | 0 | 0.001248 | 0.072309 | 0.003469 | 0 | 0 | 0 | 0 | 0.002497 | 0 | null | null | 0.013733 | 0.019975 | null | null | 0.031211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c7002f2e25272dfa034671bae8d4718aa409a06 | 503 | py | Python | viewer_examples/plugins/collection_overlay.py | thewtex/scikit-image | 22bb6b94698b8889cbdf26b25d9e4fdb8b968d97 | [
"BSD-3-Clause"
] | 8 | 2016-03-11T13:23:51.000Z | 2021-12-19T10:43:26.000Z | viewer_examples/plugins/collection_overlay.py | thewtex/scikit-image | 22bb6b94698b8889cbdf26b25d9e4fdb8b968d97 | [
"BSD-3-Clause"
] | 5 | 2016-05-23T22:14:40.000Z | 2022-02-25T21:10:23.000Z | viewer_examples/plugins/collection_overlay.py | thewtex/scikit-image | 22bb6b94698b8889cbdf26b25d9e4fdb8b968d97 | [
"BSD-3-Clause"
] | 4 | 2020-06-19T00:04:34.000Z | 2021-02-23T07:24:00.000Z | """
==============================================
``CollectionViewer`` with an ``OverlayPlugin``
==============================================
Demo of a CollectionViewer for viewing collections of images with an
overlay plugin.
"""
from skimage import data
from skimage.viewer import CollectionViewer
from skimage.v... | 22.863636 | 68 | 0.628231 | 49 | 503 | 6.408163 | 0.55102 | 0.105096 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10338 | 503 | 21 | 69 | 23.952381 | 0.696231 | 0.449304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4c700ac1c4922f55e001fadd0fe7cd5913a28af6 | 368 | py | Python | cowait/utils/uuid.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | 51 | 2020-06-04T06:08:14.000Z | 2022-03-28T06:59:53.000Z | cowait/utils/uuid.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | 121 | 2020-06-01T12:09:32.000Z | 2022-03-31T20:47:57.000Z | cowait/utils/uuid.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | 6 | 2020-06-11T16:05:20.000Z | 2022-03-23T06:30:17.000Z | import string
import random
def uuid(length=8, lower=True):
"""sebbe-approved UUID"""
# risk of collision
# mixed case: 8 characters -> 1 in 54 trillion
# lower case: 8 characters -> 1 in 208 billion
letters = string.ascii_letters
if lower:
letters = letters.lower()
return ''.join... | 24.533333 | 65 | 0.660326 | 51 | 368 | 4.745098 | 0.627451 | 0.041322 | 0.123967 | 0.132231 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.233696 | 368 | 14 | 66 | 26.285714 | 0.822695 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 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 |
4c7139bc5268b8dd10bfef90071dda29db1e65b4 | 283 | py | Python | scipy/sparse/linalg/isolve/__init__.py | eugenhu/scipy | 807e455c3d82b775b07fcc16e177f7407cac07d0 | [
"BSD-3-Clause"
] | null | null | null | scipy/sparse/linalg/isolve/__init__.py | eugenhu/scipy | 807e455c3d82b775b07fcc16e177f7407cac07d0 | [
"BSD-3-Clause"
] | null | null | null | scipy/sparse/linalg/isolve/__init__.py | eugenhu/scipy | 807e455c3d82b775b07fcc16e177f7407cac07d0 | [
"BSD-3-Clause"
] | null | null | null | "Iterative Solvers for Sparse Linear Systems"
#from info import __doc__
from .iterative import *
from .minres import minres
from .lgmres import lgmres
from .lsqr import lsqr
from .lsmr import lsmr
from ._gcrotmk import gcrotmk
__all__ = [s for s in dir() if not s.startswith('_')]
| 23.583333 | 53 | 0.766784 | 43 | 283 | 4.813953 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162544 | 283 | 11 | 54 | 25.727273 | 0.873418 | 0.240283 | 0 | 0 | 0 | 0 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4c71d9b6d671eb24fbeb8fb376845e57c52feee2 | 8,179 | py | Python | data/Maurano_et_al_func_var/UnifyMotifsGeneName.py | hw538/cfDNA | 779c290586fac73529a5fbe4d01a6d7767dbb23c | [
"MIT"
] | 38 | 2016-03-11T23:21:44.000Z | 2022-03-10T14:45:03.000Z | data/Maurano_et_al_func_var/UnifyMotifsGeneName.py | hw538/cfDNA | 779c290586fac73529a5fbe4d01a6d7767dbb23c | [
"MIT"
] | 6 | 2016-04-14T06:13:40.000Z | 2020-10-26T10:47:58.000Z | data/Maurano_et_al_func_var/UnifyMotifsGeneName.py | hw538/cfDNA | 779c290586fac73529a5fbe4d01a6d7767dbb23c | [
"MIT"
] | 30 | 2016-03-12T01:37:47.000Z | 2022-02-25T22:54:29.000Z | #!/usr/bin/env python
"""
:Author: Martin Kircher
:Contact: mkircher@uw.edu
:Date: *10.03.2015
"""
import sys, os
from optparse import OptionParser
parser = OptionParser("%prog [options]")
parser.add_option("--PWM_mapping", dest="PWM_mapping", help="PWM mapping file (def pwm.gene.mapping.V3.withclusters.txt)",defau... | 43.973118 | 185 | 0.604719 | 1,019 | 8,179 | 4.750736 | 0.235525 | 0.034704 | 0.046271 | 0.038009 | 0.505061 | 0.492667 | 0.426771 | 0.38649 | 0.330304 | 0.254906 | 0 | 0.118729 | 0.288422 | 8,179 | 185 | 186 | 44.210811 | 0.713058 | 0.654359 | 0 | 0.157895 | 0 | 0 | 0.07605 | 0.02762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035088 | null | null | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.