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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ecff2784c2e5f0ffac17e880b9b0d3a23ccaaba | 2,398 | py | Python | Code/SRNN.py | annan007/RSA-SRNN_and_2_key_pair | c1755125aa8d6f5bf028f5d467862116c3eba215 | [
"MIT"
] | null | null | null | Code/SRNN.py | annan007/RSA-SRNN_and_2_key_pair | c1755125aa8d6f5bf028f5d467862116c3eba215 | [
"MIT"
] | null | null | null | Code/SRNN.py | annan007/RSA-SRNN_and_2_key_pair | c1755125aa8d6f5bf028f5d467862116c3eba215 | [
"MIT"
] | null | null | null | pip install pycrypto
from Crypto.Util import number
import math
import random
'''calculates the modular inverse from e and phi'''
def egcd(a, b):
if a == 0:
return (b, 0, 1)
else:
g, y, x = egcd(b % a, a)
return (g, x - (b // a) * y, y)
'''
calculates the gcd of two ints
'''
def gcd(a... | 20.495726 | 70 | 0.516264 | 382 | 2,398 | 3.198953 | 0.272251 | 0.013093 | 0.007365 | 0.00982 | 0.10311 | 0.06383 | 0.042553 | 0.042553 | 0.042553 | 0 | 0 | 0.01896 | 0.318182 | 2,398 | 116 | 71 | 20.672414 | 0.72844 | 0.059633 | 0 | 0.063492 | 0 | 0 | 0.034915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ed5b0ffb45433306c4f3c9362d2b57ba220b8f4 | 483 | py | Python | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Sign.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 5 | 2022-01-28T20:30:34.000Z | 2022-03-17T09:26:52.000Z | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Sign.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 9 | 2022-01-27T03:50:28.000Z | 2022-02-08T18:42:17.000Z | tests/unit_tests/test_nn/test_converters/test_tensorflow/test_Sign.py | samysweb/dnnv | 58fb95b7300914d9da28eed86c39eca473b1aaef | [
"MIT"
] | 2 | 2022-02-03T17:32:43.000Z | 2022-03-24T16:38:49.000Z | import numpy as np
import pytest
from dnnv.nn.converters.tensorflow import *
from dnnv.nn.operations import *
def test_Sign():
x = np.array(range(-5, 6)).astype(np.float32)
y = np.sign(x)
op = Sign(x)
tf_op = TensorflowConverter().visit(op)
result = tf_op().numpy()
assert np.allclose(result,... | 23 | 49 | 0.654244 | 73 | 483 | 4.260274 | 0.438356 | 0.051447 | 0.064309 | 0.180064 | 0.437299 | 0.437299 | 0.257235 | 0.257235 | 0 | 0 | 0 | 0.020513 | 0.192547 | 483 | 20 | 50 | 24.15 | 0.776923 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.333333 | 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 |
6edaf9d3069638a9cb41e5a796aa0c228ba09c31 | 3,137 | py | Python | pyufoled/ld686.py | ErikMayrhofer/pyufoled | ad07d6bc956a8aa685c4408ef99c9ab52628bf83 | [
"MIT"
] | null | null | null | pyufoled/ld686.py | ErikMayrhofer/pyufoled | ad07d6bc956a8aa685c4408ef99c9ab52628bf83 | [
"MIT"
] | null | null | null | pyufoled/ld686.py | ErikMayrhofer/pyufoled | ad07d6bc956a8aa685c4408ef99c9ab52628bf83 | [
"MIT"
] | null | null | null | import socket
import colorsys
from .protocol import send_data, ProtocolType, scan
from .bytecodes import *
from typing import List
LD686_PORT = 5577
class LD686:
def __init__(self, host):
self.host = host
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.connect((sel... | 24.317829 | 117 | 0.607268 | 402 | 3,137 | 4.517413 | 0.21393 | 0.030837 | 0.035793 | 0.037445 | 0.213656 | 0.080396 | 0.080396 | 0.080396 | 0.080396 | 0.080396 | 0 | 0.019806 | 0.275741 | 3,137 | 129 | 118 | 24.317829 | 0.779489 | 0.030284 | 0 | 0.157303 | 0 | 0 | 0.042805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247191 | false | 0 | 0.05618 | 0.089888 | 0.438202 | 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 |
6edd49a583aaea0946348c750a94a39131fdb93c | 365 | py | Python | doc/source/cookbook/particle_xvz_plot.py | tukss/yt | 8bf6fce609cad3d4b291ebd94667019ab2e18377 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-09-15T08:17:43.000Z | 2021-09-15T08:17:43.000Z | doc/source/cookbook/particle_xvz_plot.py | tukss/yt | 8bf6fce609cad3d4b291ebd94667019ab2e18377 | [
"BSD-3-Clause-Clear"
] | 8 | 2020-04-02T16:51:49.000Z | 2022-01-11T14:12:44.000Z | doc/source/cookbook/particle_xvz_plot.py | stonnes/yt | aad3cfa3b4ebab7838352ab467275a27c26ff363 | [
"BSD-3-Clause-Clear"
] | 2 | 2020-08-12T15:46:11.000Z | 2021-02-09T13:09:17.000Z | import yt
# load the dataset
ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")
# create our plot
p = yt.ParticlePlot(ds, "particle_position_x", "particle_velocity_z", ["particle_mass"])
# pick some appropriate units
p.set_unit("particle_position_x", "Mpc")
p.set_unit("particle_velocity_z", "km/s")
p.set_unit("par... | 22.8125 | 88 | 0.745205 | 55 | 365 | 4.709091 | 0.563636 | 0.046332 | 0.092664 | 0.185328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024465 | 0.10411 | 365 | 15 | 89 | 24.333333 | 0.767584 | 0.19726 | 0 | 0 | 0 | 0 | 0.517361 | 0.125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
6eecc8be80bed8cfdebfe538bc5f1aaf407d2ea3 | 1,323 | py | Python | nhl_scraper/tests/test_nhl.py | spilchen/hockey_scraper | 763edd2300860c293338742370a45cacaf369a74 | [
"MIT"
] | null | null | null | nhl_scraper/tests/test_nhl.py | spilchen/hockey_scraper | 763edd2300860c293338742370a45cacaf369a74 | [
"MIT"
] | null | null | null | nhl_scraper/tests/test_nhl.py | spilchen/hockey_scraper | 763edd2300860c293338742370a45cacaf369a74 | [
"MIT"
] | 1 | 2019-11-19T21:39:25.000Z | 2019-11-19T21:39:25.000Z | #!/usb/bin/python
import datetime
import pickle
def test_teams(nhl_scraper):
df = nhl_scraper.teams()
print(df)
assert(len(df.index) == 31)
assert(df[df.abbrev == 'TOR'].iloc(0)[0]['name'] == 'Maple Leafs')
assert(df[df.city == 'San Jose'].iloc(0)[0]['name'] == 'Sharks')
assert(df[df.city == ... | 27.5625 | 71 | 0.580499 | 192 | 1,323 | 3.869792 | 0.302083 | 0.13459 | 0.161507 | 0.169583 | 0.430686 | 0.320323 | 0.320323 | 0.320323 | 0.320323 | 0.320323 | 0 | 0.078607 | 0.240363 | 1,323 | 47 | 72 | 28.148936 | 0.660697 | 0.012094 | 0 | 0.257143 | 0 | 0 | 0.04977 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.142857 | false | 0 | 0.057143 | 0 | 0.2 | 0.114286 | 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 |
6eef771abf4f4eef84d455155b44f0988a769cbf | 4,770 | py | Python | objects/CSCG/_2d/mesh/domain/inputs/cic.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | objects/CSCG/_2d/mesh/domain/inputs/cic.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | objects/CSCG/_2d/mesh/domain/inputs/cic.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null |
from objects.CSCG._2d.mesh.domain.inputs.base import DomainInputBase
import numpy as np
from screws.decorators.classproperty.main import classproperty
class CylinderInChannel(DomainInputBase):
""" Just like the class name say, this is a cylinder in channel domain."""
def __init__(self, h=1.5, r=0.5, li=0.75,... | 42.212389 | 102 | 0.422432 | 468 | 4,770 | 3.369658 | 0.254274 | 0.04312 | 0.041852 | 0.055802 | 0.176918 | 0.163602 | 0.163602 | 0.08624 | 0.08624 | 0.08624 | 0 | 0.025045 | 0.414046 | 4,770 | 113 | 103 | 42.212389 | 0.539177 | 0.368553 | 0 | 0.109091 | 0 | 0 | 0.1485 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.127273 | false | 0 | 0.054545 | 0.109091 | 0.309091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
42b20773e5615930631dc31a2218cafb46aa4274 | 41,941 | py | Python | gui.py | accelsao/doodle-recognition-pytorch | ec026bbacca285d60c6737edf0001a53e6862ff1 | [
"MIT"
] | null | null | null | gui.py | accelsao/doodle-recognition-pytorch | ec026bbacca285d60c6737edf0001a53e6862ff1 | [
"MIT"
] | null | null | null | gui.py | accelsao/doodle-recognition-pytorch | ec026bbacca285d60c6737edf0001a53e6862ff1 | [
"MIT"
] | null | null | null | import ast
import sys
import numpy as np
import cv2 as cv
import torch
from PyQt5.QtCore import QMimeData, QPointF, Qt, QObject, pyqtSlot, QSize, QAbstractListModel, QRectF, QPoint, QRect, \
QTimer, pyqtSignal, QRunnable, QThreadPool
from PyQt5.QtGui import QImage, QPixmap, QDrag, QPainter, QStandardItemModel, QIco... | 59.660028 | 175 | 0.511671 | 4,670 | 41,941 | 4.505567 | 0.236188 | 0.005561 | 0.003327 | 0.004753 | 0.706715 | 0.694976 | 0.683855 | 0.680909 | 0.680909 | 0.67492 | 0 | 0.138792 | 0.313703 | 41,941 | 703 | 176 | 59.660028 | 0.592204 | 0.044515 | 0 | 0.414234 | 0 | 0 | 0.247476 | 0.004573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04927 | false | 0.014599 | 0.032847 | 0.00365 | 0.100365 | 0.014599 | 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 |
42b4e45ce1f3c8fca1ea4f4f4923e9d0593f4ad7 | 1,078 | py | Python | pieces/migrations/0006_make_datetime_default_tz_aware.py | inducer/codery | 007f8128212f9b1dbc15b5ce35a9cd14248ea26b | [
"MIT"
] | 1 | 2022-03-02T19:59:37.000Z | 2022-03-02T19:59:37.000Z | pieces/migrations/0006_make_datetime_default_tz_aware.py | inducer/codery | 007f8128212f9b1dbc15b5ce35a9cd14248ea26b | [
"MIT"
] | null | null | null | pieces/migrations/0006_make_datetime_default_tz_aware.py | inducer/codery | 007f8128212f9b1dbc15b5ce35a9cd14248ea26b | [
"MIT"
] | 1 | 2015-12-19T11:30:41.000Z | 2015-12-19T11:30:41.000Z | # encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('pieces', '0005_add_initial_tag'),
]
operations = [
migrations.AlterField(
model_name='piec... | 29.944444 | 144 | 0.621521 | 105 | 1,078 | 6.219048 | 0.514286 | 0.067381 | 0.116386 | 0.177642 | 0.427259 | 0.427259 | 0.427259 | 0.427259 | 0.427259 | 0.427259 | 0 | 0.010178 | 0.270872 | 1,078 | 35 | 145 | 30.8 | 0.820611 | 0.012987 | 0 | 0.551724 | 0 | 0 | 0.161959 | 0.044256 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 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 |
42bcf8c3ff1550a196d43867afff91ae8e97586b | 20,496 | py | Python | scripts/get_OF_coefficients.py | markuspreston/FeatureExtraction | 73a13e086da1d0550374cd305ab8f91e9881e41a | [
"MIT"
] | 1 | 2021-05-05T09:59:52.000Z | 2021-05-05T09:59:52.000Z | scripts/get_OF_coefficients.py | markuspreston/FeatureExtraction | 73a13e086da1d0550374cd305ab8f91e9881e41a | [
"MIT"
] | null | null | null | scripts/get_OF_coefficients.py | markuspreston/FeatureExtraction | 73a13e086da1d0550374cd305ab8f91e9881e41a | [
"MIT"
] | null | null | null | import numpy as np
from numpy import genfromtxt
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
## Define the lognormal function (for fitting to input data)
def lognormal_fcn(t, A, T0, mu, sigma, baseline):
function = np.zeros(len(t))
for i in range(len(t)):
if (t[i] > T0):
... | 73.726619 | 1,279 | 0.715945 | 3,479 | 20,496 | 4.079046 | 0.15263 | 0.049327 | 0.022197 | 0.018744 | 0.229441 | 0.162075 | 0.132901 | 0.114439 | 0.103164 | 0.099147 | 0 | 0.024059 | 0.203015 | 20,496 | 277 | 1,280 | 73.99278 | 0.844689 | 0.601386 | 0 | 0.125 | 0 | 0 | 0.012056 | 0.003977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019737 | false | 0 | 0.026316 | 0 | 0.065789 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42d1059c203208c5a19b162890501b348c295620 | 1,149 | py | Python | kotti_forum/resources.py | cullerton/kotti_forum | f815a61800c794dc945494a7e55f371890c0a42b | [
"MIT"
] | null | null | null | kotti_forum/resources.py | cullerton/kotti_forum | f815a61800c794dc945494a7e55f371890c0a42b | [
"MIT"
] | null | null | null | kotti_forum/resources.py | cullerton/kotti_forum | f815a61800c794dc945494a7e55f371890c0a42b | [
"MIT"
] | null | null | null | from kotti.resources import get_root
from kotti.resources import Content
from kotti.resources import Document
from kotti.resources import TypeInfo
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
class ForumTypeInfo(TypeInfo):
def addable(self, context, request):
... | 26.113636 | 72 | 0.656223 | 148 | 1,149 | 4.918919 | 0.364865 | 0.049451 | 0.098901 | 0.131868 | 0.065934 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234987 | 1,149 | 43 | 73 | 26.72093 | 0.828214 | 0.02611 | 0 | 0 | 0 | 0 | 0.065589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.21875 | 0 | 0.53125 | 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 |
42d2873921b7c8ebb270225850ce363afafe80ec | 1,217 | py | Python | Chapter12/myproject_docker/apps/viral_videos/migrations/0001_initial.py | PacktPublishing/Django-2-Web-Development-Cookbook-Third-Edition | f129613e2b1d00f5c76649025ae4d568f6286f2c | [
"MIT"
] | 75 | 2018-12-03T02:35:29.000Z | 2021-11-08T13:13:34.000Z | Chapter11/virtualenvs/myproject_env/project/django-myproject/viral_videos/migrations/0001_initial.py | PacktPublishing/Django-2-Web-Development-Cookbook-Third-Edition | f129613e2b1d00f5c76649025ae4d568f6286f2c | [
"MIT"
] | 3 | 2019-08-11T13:35:01.000Z | 2020-09-29T06:52:36.000Z | Chapter12/virtualenvs/myproject_env/project/django-myproject/viral_videos/migrations/0001_initial.py | PacktPublishing/Django-2-Web-Development-Cookbook-Third-Edition | f129613e2b1d00f5c76649025ae4d568f6286f2c | [
"MIT"
] | 45 | 2018-11-03T14:03:22.000Z | 2021-08-25T07:39:33.000Z | # Generated by Django 2.1.2 on 2018-10-07 05:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ViralVideo',
fields=[
('id', models.AutoFie... | 39.258065 | 122 | 0.613804 | 122 | 1,217 | 5.967213 | 0.540984 | 0.135989 | 0.061813 | 0.071429 | 0.137363 | 0.137363 | 0.137363 | 0 | 0 | 0 | 0 | 0.022272 | 0.26212 | 1,217 | 30 | 123 | 40.566667 | 0.788419 | 0.036976 | 0 | 0 | 1 | 0 | 0.211966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42d30b14263e03fdcd6ed48442dccdfa080fb28c | 989 | py | Python | uuid and biosserial.py | Kyogin/PythonGERAL | 1e1be167c698050230fc07a3ddd2a2879fd26208 | [
"MIT"
] | null | null | null | uuid and biosserial.py | Kyogin/PythonGERAL | 1e1be167c698050230fc07a3ddd2a2879fd26208 | [
"MIT"
] | null | null | null | uuid and biosserial.py | Kyogin/PythonGERAL | 1e1be167c698050230fc07a3ddd2a2879fd26208 | [
"MIT"
] | null | null | null | import subprocess
#current_machine_id está recebendo o get uuid da máquina
current_machine_id = str(subprocess.check_output('wmic csproduct get uuid'), 'utf-8').split('\n')[1].strip()
#current_machine_bios está recebendo o get serialnumber da bios
current_machine_bios = str(subprocess.check_output('wmic bios ge... | 41.208333 | 114 | 0.751264 | 148 | 989 | 4.885135 | 0.527027 | 0.15491 | 0.11065 | 0.099585 | 0.271093 | 0.232365 | 0.210235 | 0.210235 | 0.210235 | 0.210235 | 0 | 0.007059 | 0.140546 | 989 | 23 | 115 | 43 | 0.843529 | 0.62184 | 0 | 0 | 0 | 0 | 0.238235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
42d527d0e129e8b27d7162d81681169980042428 | 3,957 | py | Python | widely/diff.py | kmarekspartz/widely | e791697b456f812b69e46a54e1254098ec28ec6b | [
"MIT"
] | 2 | 2018-08-06T13:38:39.000Z | 2022-01-03T01:13:21.000Z | widely/diff.py | kmarekspartz/widely | e791697b456f812b69e46a54e1254098ec28ec6b | [
"MIT"
] | 2 | 2018-07-21T04:09:23.000Z | 2018-07-21T05:18:23.000Z | widely/diff.py | kmarekspartz/widely | e791697b456f812b69e46a54e1254098ec28ec6b | [
"MIT"
] | null | null | null | """
Diffs are used to compare and reconcile local and remote data.
"""
from glob import glob
import hashlib
import os
from prettytable import PrettyTable
class Diff(object):
"""
Diff class. Diff is used to track changes between current
directory and AWS S3.
"""
NotRemote = 'NotRemote'
NotLoca... | 29.977273 | 76 | 0.543594 | 479 | 3,957 | 4.390397 | 0.292276 | 0.038041 | 0.01902 | 0.021398 | 0.114123 | 0.097004 | 0.077033 | 0.040894 | 0.040894 | 0.040894 | 0 | 0.003541 | 0.357594 | 3,957 | 131 | 77 | 30.206107 | 0.823761 | 0.055345 | 0 | 0.1125 | 0 | 0 | 0.067369 | 0 | 0 | 0 | 0 | 0.007634 | 0 | 0 | null | null | 0.0125 | 0.05 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
42d625c923b3ba5cda5fca8658a365484fa0f7cd | 3,024 | py | Python | twargs.py | borisindelman/twu | b0ea871ced49dda9dcbd1e275c38cd1512670bc0 | [
"Apache-2.0"
] | 2 | 2020-05-03T13:03:51.000Z | 2020-08-30T16:02:21.000Z | twargs.py | borisindelman/twu | b0ea871ced49dda9dcbd1e275c38cd1512670bc0 | [
"Apache-2.0"
] | 23 | 2020-02-18T11:32:11.000Z | 2021-02-02T15:42:02.000Z | twargs.py | borisindelman/twu | b0ea871ced49dda9dcbd1e275c38cd1512670bc0 | [
"Apache-2.0"
] | 2 | 2020-08-31T19:19:18.000Z | 2021-03-05T22:02:44.000Z | import argparse
import os
import datetime as dt
import platform
class TWArgs:
def __init__(self):
# TODO add mutually exclusive groups for --month --year and --start/end dates
# TODO add verification class for month and year
self.parser = argparse.ArgumentParser(
d... | 45.818182 | 107 | 0.619048 | 373 | 3,024 | 4.882038 | 0.369973 | 0.03844 | 0.030752 | 0.034596 | 0.121911 | 0.053817 | 0.053817 | 0.053817 | 0.053817 | 0.053817 | 0 | 0.001875 | 0.294643 | 3,024 | 65 | 108 | 46.523077 | 0.851852 | 0.325066 | 0 | 0 | 0 | 0 | 0.175705 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.088235 | false | 0 | 0.147059 | 0 | 0.382353 | 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 |
42dbf31a4b01e27245baeb660e22990e77d9eff4 | 2,664 | py | Python | beers/models.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 2 | 2020-11-21T13:15:53.000Z | 2021-05-18T19:17:41.000Z | beers/models.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 6 | 2021-03-21T19:24:26.000Z | 2021-09-22T19:09:31.000Z | beers/models.py | joarkm/olmonopolet-api | 5fb605f53d6fc87c441ae0f72360c524cb0d3fb7 | [
"MIT"
] | 1 | 2021-05-20T21:52:10.000Z | 2021-05-20T21:52:10.000Z | from django.db import models
from django.templatetags.static import static
from django.core.exceptions import ObjectDoesNotExist
# Create your models here.
class Product(models.Model):
'''
Utility model holding all product id's fetched from Vinmonopolet.
Products include categories other than "øl".
'''... | 41.625 | 120 | 0.698574 | 351 | 2,664 | 5.153846 | 0.37037 | 0.049751 | 0.053068 | 0.066335 | 0.305694 | 0.174682 | 0.147043 | 0.055279 | 0.055279 | 0.055279 | 0 | 0.013621 | 0.200826 | 2,664 | 64 | 121 | 41.625 | 0.836073 | 0.121997 | 0 | 0.205128 | 0 | 0.025641 | 0.170175 | 0.023684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.051282 | 0.846154 | 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 |
42de670bef76452f05d7d767e2368cec58a86ec8 | 410 | py | Python | helper.py | whisk/ccc | b2a4338f7002746a2a987392b846e53594b600e7 | [
"Apache-2.0"
] | null | null | null | helper.py | whisk/ccc | b2a4338f7002746a2a987392b846e53594b600e7 | [
"Apache-2.0"
] | null | null | null | helper.py | whisk/ccc | b2a4338f7002746a2a987392b846e53594b600e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# A a script to print csv field names and sample values (1st and 2nd rows actually)
# Version: 0.1
# Usage: ./helper.py file.csv
import sys
import csv
fname = sys.argv[1]
f = open(fname, 'r')
csv_reader = csv.reader(f, delimiter=',', quotechar='"')
header = csv_reader.next()
data = csv_reader.... | 21.578947 | 83 | 0.656098 | 70 | 410 | 3.8 | 0.642857 | 0.135338 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020528 | 0.168293 | 410 | 18 | 84 | 22.777778 | 0.759531 | 0.34878 | 0 | 0 | 0 | 0 | 0.064639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42e10b1c348228eca730c8c1778b21433404d0ab | 798 | py | Python | config.example.py | ohaz/antiproguard | 94df57413528c569766a35d3fdc96013f609cb1c | [
"Apache-2.0"
] | 8 | 2020-01-22T12:49:48.000Z | 2021-11-08T15:46:49.000Z | config.example.py | ohaz/antiproguard | 94df57413528c569766a35d3fdc96013f609cb1c | [
"Apache-2.0"
] | 1 | 2021-04-04T12:48:09.000Z | 2022-03-04T10:30:06.000Z | config.example.py | ohaz/antiproguard | 94df57413528c569766a35d3fdc96013f609cb1c | [
"Apache-2.0"
] | 2 | 2020-08-18T11:26:34.000Z | 2021-05-27T03:56:41.000Z | import os
__author__ = 'ohaz'
# Database connectivity
mysql = True
if mysql:
engine_url = 'mysql+pymysql://<user>:<pass>@<host>/<db>'
else:
# Example for a sqlite database:
engine_url = 'sqlite:///apkdb.sqlite'
# The path to the apktool
apk_tool_path = 'apktool.jar'
# Working Folder
decompile_folder = '... | 29.555556 | 93 | 0.711779 | 129 | 798 | 4.302326 | 0.542636 | 0.05045 | 0.048649 | 0.043243 | 0.154955 | 0.154955 | 0.154955 | 0.154955 | 0.154955 | 0 | 0 | 0.010495 | 0.16416 | 798 | 27 | 94 | 29.555556 | 0.821589 | 0.525063 | 0 | 0 | 0 | 0 | 0.389189 | 0.17027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
42fa0a6018b9d026eddc6004475bed1fb2ba995e | 216 | py | Python | scripts/prediction/model_inference.py | ts-azure-services/aml-automl-pipeline | 1626724b00f4ed29909d15ab193f5412d197451e | [
"MIT"
] | null | null | null | scripts/prediction/model_inference.py | ts-azure-services/aml-automl-pipeline | 1626724b00f4ed29909d15ab193f5412d197451e | [
"MIT"
] | null | null | null | scripts/prediction/model_inference.py | ts-azure-services/aml-automl-pipeline | 1626724b00f4ed29909d15ab193f5412d197451e | [
"MIT"
] | 1 | 2021-09-28T23:09:29.000Z | 2021-09-28T23:09:29.000Z | import pickle
model_filename = './azureml/77a28722-fcae-4e2c-ab99-9f5a289eb2dd/default_model_Time_Series_Forecasting'
with open(model_filename, "rb" ) as f:
best_model = pickle.load(f)
print( type(best_model))
| 27 | 103 | 0.782407 | 31 | 216 | 5.193548 | 0.741935 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087629 | 0.101852 | 216 | 7 | 104 | 30.857143 | 0.742268 | 0 | 0 | 0 | 0 | 0 | 0.398148 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
42fa57d2e7ef78a319a97ff0efddc78f6031abda | 571 | py | Python | core/models/Periodo.py | roimpacta/exemplos | cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a | [
"Apache-2.0"
] | null | null | null | core/models/Periodo.py | roimpacta/exemplos | cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a | [
"Apache-2.0"
] | null | null | null | core/models/Periodo.py | roimpacta/exemplos | cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a | [
"Apache-2.0"
] | null | null | null |
from django.db import models
from .GradeCurricular import GradeCurricular
class Periodo(models.Model):
gradeCurricular = models.ForeignKey(to='GradeCurricular', related_name="periodos", null=False, blank=False) #onetomany
numero = models.SmallIntegerField(null=False) #tinyint
disciplinas = models.ManyToMa... | 35.6875 | 122 | 0.726795 | 60 | 571 | 6.783333 | 0.533333 | 0.054054 | 0.093366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157618 | 571 | 16 | 123 | 35.6875 | 0.846154 | 0.028021 | 0 | 0 | 0 | 0 | 0.137432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 0.909091 | 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 |
42fe52aa83bb82f09e1573482f3b4378a2833be7 | 1,634 | py | Python | src/numpy_nj.py | JoshuaDavid/Neighbor_Joining | f939d5d7e504ec29a64063477c36ed7509c401b6 | [
"MIT"
] | 11 | 2015-06-05T16:11:15.000Z | 2021-08-03T20:24:07.000Z | src/numpy_nj.py | arifbd2221/Neighbor_Joining | f939d5d7e504ec29a64063477c36ed7509c401b6 | [
"MIT"
] | null | null | null | src/numpy_nj.py | arifbd2221/Neighbor_Joining | f939d5d7e504ec29a64063477c36ed7509c401b6 | [
"MIT"
] | 7 | 2015-12-04T09:52:39.000Z | 2021-05-30T13:00:49.000Z | from numpy import *
from sys import argv
from distancetree import *
readCSV = lambda path: [l.split(",") for l in file(path).read().splitlines()]
head = lambda arr: arr[0]
tail = lambda arr: arr[1:]
rptsum = lambda arr: repeat(sum(arr), size(arr))
map2 = lambda fn, mat: map(lambda arr: map(fn, arr), mat)
map... | 36.311111 | 79 | 0.599755 | 272 | 1,634 | 3.569853 | 0.349265 | 0.020597 | 0.012358 | 0.043254 | 0.024717 | 0.024717 | 0.024717 | 0.024717 | 0.024717 | 0.024717 | 0 | 0.012471 | 0.21481 | 1,634 | 44 | 80 | 37.136364 | 0.744349 | 0.084455 | 0 | 0 | 0 | 0 | 0.006032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e023fcad1b916309ae1882708a9687bd80167c2 | 668 | py | Python | wordcloud_generator.py | shyroserazwani/finalproject434 | e42943b69fa0ac6af27b125754f6e9aaf95b0cc0 | [
"MIT"
] | null | null | null | wordcloud_generator.py | shyroserazwani/finalproject434 | e42943b69fa0ac6af27b125754f6e9aaf95b0cc0 | [
"MIT"
] | null | null | null | wordcloud_generator.py | shyroserazwani/finalproject434 | e42943b69fa0ac6af27b125754f6e9aaf95b0cc0 | [
"MIT"
] | null | null | null | def generate_wordcloud(df):
from wordcloud import WordCloud
import numpy as np
import matplotlib.pyplot as plt
#print(df)
input_dict = {}
l=len(df['entity_name'])
print(l)
for x in range(l):
input_dict[df['entity_name'][x]]=int(df['entity_salience'][x])
#print(input_dict)
... | 33.4 | 174 | 0.679641 | 91 | 668 | 4.824176 | 0.56044 | 0.102506 | 0.05467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018248 | 0.179641 | 668 | 19 | 175 | 35.157895 | 0.782847 | 0.110778 | 0 | 0 | 1 | 0 | 0.112054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e0a63cde35647eb18ab710d84418e34aede2771 | 2,394 | py | Python | directory-snapshot/src/utils.py | jaggi1234/Directory-Snapshot | 86b474ec317d1b2583750783e77d250067393a4f | [
"MIT"
] | 16 | 2015-08-14T11:02:57.000Z | 2022-02-28T12:34:02.000Z | directory-snapshot/src/utils.py | Anmol-Singh-Jaggi/Directory-Snapshot | 86b474ec317d1b2583750783e77d250067393a4f | [
"MIT"
] | 3 | 2021-03-27T13:35:49.000Z | 2021-06-11T18:16:45.000Z | directory-snapshot/src/utils.py | jaggi1234/Directory-Snapshot | 86b474ec317d1b2583750783e77d250067393a4f | [
"MIT"
] | 5 | 2015-11-25T08:26:34.000Z | 2021-10-05T21:53:12.000Z | from collections import deque
from pathlib import Path
from typing import List
import logging
def round_file_size_to_human_friendly_units(num_bytes):
units = ["bytes", "KiB", "MiB", "GiB", "TiB"]
multiplier = 1024
ans, i = num_bytes, 0
while ans > multiplier and i < len(units) - 1:
ans /= mult... | 33.71831 | 110 | 0.616959 | 309 | 2,394 | 4.579288 | 0.401295 | 0.057244 | 0.042403 | 0.055124 | 0.139929 | 0.097527 | 0.05371 | 0 | 0 | 0 | 0 | 0.009081 | 0.263993 | 2,394 | 70 | 111 | 34.2 | 0.793984 | 0.097744 | 0 | 0.075472 | 0 | 0 | 0.085126 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.113208 | false | 0 | 0.075472 | 0 | 0.283019 | 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 |
6e0f4847d231cf6f5e72a1a4794025255d94b6d5 | 698 | py | Python | nablapps/events/migrations/0013_auto_20210909_2046.py | QuangDNguyen2211/nablaweb | 8c5b77e4b21eb8a444878ce589dfb85ce2251db1 | [
"MIT"
] | 17 | 2019-10-07T15:10:58.000Z | 2022-01-21T14:18:07.000Z | nablapps/events/migrations/0013_auto_20210909_2046.py | QuangDNguyen2211/nablaweb | 8c5b77e4b21eb8a444878ce589dfb85ce2251db1 | [
"MIT"
] | 222 | 2019-10-07T15:04:51.000Z | 2022-03-24T12:14:16.000Z | nablapps/events/migrations/0013_auto_20210909_2046.py | QuangDNguyen2211/nablaweb | 8c5b77e4b21eb8a444878ce589dfb85ce2251db1 | [
"MIT"
] | 7 | 2019-10-10T18:53:42.000Z | 2021-10-18T02:13:09.000Z | # Generated by Django 3.1.13 on 2021-09-09 20:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("events", "0012_auto_20201021_2154"),
]
operations = [
migrations.AlterField(
model_name="event",
name="has_queue",
... | 29.083333 | 204 | 0.595989 | 82 | 698 | 4.987805 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067511 | 0.320917 | 698 | 23 | 205 | 30.347826 | 0.795359 | 0.065903 | 0 | 0.117647 | 1 | 0.058824 | 0.356923 | 0.035385 | 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 |
6e11efa5c1008d72ce7c4d0d9e714d8fee70e54a | 663 | py | Python | DoraGamePlaying-m7noskip/makeVideo.py | AlexDoumas/BrPong_1 | 372913513932c95bc502f5d03700ec9ba61c6a9b | [
"CECILL-B"
] | 3 | 2020-06-22T15:02:23.000Z | 2021-05-05T14:03:25.000Z | DoraGamePlaying-m7noskip/makeVideo.py | AlexDoumas/BrPong_1 | 372913513932c95bc502f5d03700ec9ba61c6a9b | [
"CECILL-B"
] | null | null | null | DoraGamePlaying-m7noskip/makeVideo.py | AlexDoumas/BrPong_1 | 372913513932c95bc502f5d03700ec9ba61c6a9b | [
"CECILL-B"
] | null | null | null | import matplotlib.animation as animation
import numpy as np
from pylab import *
#make a video of the given numpy frames with the given name
def makeVideo(frames,filename):
plt.close('all')
fig = plt.figure()
ax = fig.add_subplot(111)
im = ax.imshow(frames[0])
def update_img(n):
im.set_data(frames[n])
... | 27.625 | 71 | 0.713424 | 100 | 663 | 4.61 | 0.63 | 0.034707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035587 | 0.152338 | 663 | 24 | 72 | 27.625 | 0.784698 | 0.087481 | 0 | 0 | 0 | 0 | 0.067769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e14bf06f1450551a4fe75dd59e178430f7dace0 | 1,292 | py | Python | newpy/storage/storage.py | janithPet/newpy | feb264f4e3da371c3f2ddc7633f3fdd5a25db661 | [
"MIT"
] | null | null | null | newpy/storage/storage.py | janithPet/newpy | feb264f4e3da371c3f2ddc7633f3fdd5a25db661 | [
"MIT"
] | 4 | 2021-09-03T06:18:29.000Z | 2021-09-03T08:36:25.000Z | newpy/storage/storage.py | janithPet/newpy | feb264f4e3da371c3f2ddc7633f3fdd5a25db661 | [
"MIT"
] | null | null | null | from functools import partial
import json
import os
from pathlib import Path
from typing import Any, Dict, List
class Storage:
def __init__(self, arguments: Dict, details: Dict) -> None:
self._arguments: List = list(arguments.keys())
self.update(arguments)
self.details = details
def store(self):
data = {a... | 25.333333 | 103 | 0.700464 | 185 | 1,292 | 4.740541 | 0.4 | 0.072976 | 0.038769 | 0.052452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174149 | 1,292 | 50 | 104 | 25.84 | 0.821931 | 0.023994 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0.02 | 0.054054 | 1 | 0.135135 | false | 0 | 0.135135 | 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 |
6e15047b0be297d0461ebd39240bfd4bcfe89e44 | 462 | py | Python | src/webapi/blueprints/errors/__init__.py | VisionTale/StreamHelper | 29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a | [
"MIT"
] | null | null | null | src/webapi/blueprints/errors/__init__.py | VisionTale/StreamHelper | 29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a | [
"MIT"
] | 37 | 2020-12-16T06:30:22.000Z | 2022-03-28T03:04:28.000Z | src/webapi/blueprints/errors/__init__.py | VisionTale/StreamHelper | 29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a | [
"MIT"
] | null | null | null | """
Initializes the errors plugin.
"""
from flask import Blueprint, render_template, request
from libs.config import Config
from libs.log import Logger
description: str = "Http error pages"
bp: Blueprint = None
name: str = None
logger: Logger = None
config: Config = None
def set_blueprint(blueprint: Blueprint):
... | 17.769231 | 53 | 0.703463 | 59 | 462 | 5.474576 | 0.542373 | 0.049536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 462 | 25 | 54 | 18.48 | 0.889807 | 0.199134 | 0 | 0 | 0 | 0 | 0.046647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e1a1493a7b80b0392d9dd053ef79a26ec309f2f | 529 | py | Python | the-python-standard-library-by-example/copy/copy_deep.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | the-python-standard-library-by-example/copy/copy_deep.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | the-python-standard-library-by-example/copy/copy_deep.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | # -*- coding: utf-8 -*-
import copy
class MyClass:
def __init__(self, name):
self.name = name
def __cmp__(self, other):
return cmp(self.name, other.name)
a = MyClass('a')
my_list = [a]
dup = copy.deepcopy(my_list)
print(' my_list:', my_list)
print(' dup:', dup)... | 22.041667 | 54 | 0.553875 | 83 | 529 | 3.289157 | 0.26506 | 0.263736 | 0.161172 | 0.153846 | 0.175824 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0.022613 | 0.247637 | 529 | 23 | 55 | 23 | 0.663317 | 0.039698 | 0 | 0 | 0 | 0 | 0.250988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.066667 | 0.333333 | 0.4 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e2e0e58ea175e49cda7f87a0e1d052daac9a4b6 | 316 | py | Python | bin/fluid_stop_pumps.py | fluiddyn/fluidlab | 77e7ae3129788089814e38eba93802026a07fcf6 | [
"CECILL-B"
] | 4 | 2020-01-19T04:12:12.000Z | 2021-11-09T08:30:25.000Z | bin/fluid_stop_pumps.py | fluiddyn/fluidlab | 77e7ae3129788089814e38eba93802026a07fcf6 | [
"CECILL-B"
] | null | null | null | bin/fluid_stop_pumps.py | fluiddyn/fluidlab | 77e7ae3129788089814e38eba93802026a07fcf6 | [
"CECILL-B"
] | null | null | null | #!/usr/bin/env python
"""fluid_stop_pumps.py: Quickly stop the pumps!"""
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description=__doc__)
args = parser.parse_args()
from fluiddyn.lab.pumps import MasterFlexPumps
pumps = MasterFlexPumps(nb_pumps=2)
| 24.307692 | 58 | 0.696203 | 37 | 316 | 5.513514 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.196203 | 316 | 12 | 59 | 26.333333 | 0.799213 | 0.205696 | 0 | 0 | 0 | 0 | 0.034335 | 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 |
6e31c86e8cdb79a0d10d701b4931df08d228e20f | 313 | py | Python | src/utils.py | neuro-inc/ml-recipe-seismic | 14fedf7ec620bead2bb3697096667916fa2f2032 | [
"Apache-2.0"
] | 1 | 2020-08-05T20:36:40.000Z | 2020-08-05T20:36:40.000Z | src/utils.py | neuro-inc/ml-recipe-seismic | 14fedf7ec620bead2bb3697096667916fa2f2032 | [
"Apache-2.0"
] | 1 | 2020-06-26T22:24:35.000Z | 2020-06-26T22:24:35.000Z | src/utils.py | neuromation/ml-recipe-seismic | 14fedf7ec620bead2bb3697096667916fa2f2032 | [
"Apache-2.0"
] | null | null | null | from src.data_types import Point
def projection(p1, p2, p):
"""Find the projection of a point p on the line [p1, p2]"""
A = (p1.y - p2.y) / (p1.x - p2.x)
B = p1.y - A * p1.x
x = ((p.y - B) * A + p.x) / (1 + A ** 2 )
y = A * x + B
return Point(x, y)
if __name__ == '__main__':
pass
| 20.866667 | 63 | 0.495208 | 60 | 313 | 2.433333 | 0.45 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 0.316294 | 313 | 14 | 64 | 22.357143 | 0.626168 | 0.169329 | 0 | 0 | 0 | 0 | 0.031496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6e374e5c902439961fe286bcea21f911a0cbdb4f | 753 | py | Python | Leetcoding-Actions/my-weekly-DSA-challenge/2020-w42-p0018-4Sum.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | Leetcoding-Actions/my-weekly-DSA-challenge/2020-w42-p0018-4Sum.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | Leetcoding-Actions/my-weekly-DSA-challenge/2020-w42-p0018-4Sum.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
'''
T: O(n log n + n^3)
S: O(1)
'''
n = len(nums)
if n < 4: return []
nums.sort()
results = set()
for x in range(n):
for y in rang... | 28.961538 | 72 | 0.329349 | 89 | 753 | 2.786517 | 0.393258 | 0.024194 | 0.072581 | 0.080645 | 0.16129 | 0.16129 | 0.16129 | 0.16129 | 0 | 0 | 0 | 0.026012 | 0.540505 | 753 | 25 | 73 | 30.12 | 0.690751 | 0.035857 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 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 |
6e395ceaa6e48ef6ed77f373650a9bb776d61fb5 | 475 | py | Python | mxutils.py | chinakook/PointCNN.MX | e3f95ace61eb4ba924eb43966f23af9b19851e7c | [
"MIT"
] | 19 | 2018-03-16T02:35:46.000Z | 2021-01-27T12:30:28.000Z | mxutils.py | chinakook/PointCNN.MX | e3f95ace61eb4ba924eb43966f23af9b19851e7c | [
"MIT"
] | 2 | 2018-08-21T22:12:59.000Z | 2018-08-24T00:09:15.000Z | mxutils.py | chinakook/PointCNN.MX | e3f95ace61eb4ba924eb43966f23af9b19851e7c | [
"MIT"
] | 6 | 2018-03-16T02:35:49.000Z | 2018-06-22T02:36:20.000Z | # coding: utf-8
import mxnet as mx
@mx.init.register
class MyConstant(mx.init.Initializer):
def __init__(self, value):
super(MyConstant, self).__init__(value=value)
self.value = value
def _init_weight(self, _, arr):
arr[:] = mx.nd.array(self.value)
def get_shape(x):
if isinstance... | 25 | 53 | 0.646316 | 68 | 475 | 4.25 | 0.470588 | 0.093426 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00542 | 0.223158 | 475 | 19 | 54 | 25 | 0.777778 | 0.027368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e3b10bb9616d5cd112666fc35da5bd394b1bd1e | 3,567 | py | Python | Kalaba_resolution/parser_fst.nltk3.py | Krolov18/Languages | 549952886f73f0b8e1b9e6393875f5473b591407 | [
"Apache-2.0"
] | 1 | 2019-12-11T14:56:09.000Z | 2019-12-11T14:56:09.000Z | Kalaba_resolution/parser_fst.nltk3.py | Krolov18/Languages | 549952886f73f0b8e1b9e6393875f5473b591407 | [
"Apache-2.0"
] | null | null | null | Kalaba_resolution/parser_fst.nltk3.py | Krolov18/Languages | 549952886f73f0b8e1b9e6393875f5473b591407 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding=utf-8
"""
USAGE: python feature_parser.py FIC_GRAMMAIRE
FIC_GRAMMAIRE est une grammaire CF augmentée de structures de traits (minimales, pas de disjonction, pas de négation)
"""
import sys
import nltk
default_encoding = 'utf-8'
HELP = \
"""
# Commandes disponibles:
# %help: af... | 25.478571 | 124 | 0.651248 | 472 | 3,567 | 4.824153 | 0.372881 | 0.015371 | 0.031621 | 0.038647 | 0.050066 | 0.023715 | 0 | 0 | 0 | 0 | 0 | 0.003305 | 0.236613 | 3,567 | 139 | 125 | 25.661871 | 0.832905 | 0.160359 | 0 | 0.218391 | 0 | 0 | 0.193139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | null | null | 0.241379 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6e3e6e2419f1969514e7eb4706c63286ed08c63a | 2,369 | py | Python | app/routes.py | gabe7murphy/Flask-EC2 | 7362ca90605f990f124527eca6c9b1aa1cb1edb6 | [
"MIT"
] | 2 | 2021-02-17T01:09:43.000Z | 2021-02-17T01:10:07.000Z | app/routes.py | gabe7murphy/Flask-EC2 | 7362ca90605f990f124527eca6c9b1aa1cb1edb6 | [
"MIT"
] | null | null | null | app/routes.py | gabe7murphy/Flask-EC2 | 7362ca90605f990f124527eca6c9b1aa1cb1edb6 | [
"MIT"
] | 1 | 2021-02-20T19:28:46.000Z | 2021-02-20T19:28:46.000Z | from flask import render_template, url_for, flash, redirect
from app import app, db, bcrypt
from app.forms import RegistrationForm, LoginForm, ItemForm
from app.models import Employee, Item
from flask_login import login_user, current_user, logout_user, login_required
@app.route('/', methods=['GET', 'POST'])
@app.rout... | 34.333333 | 91 | 0.688476 | 303 | 2,369 | 5.240924 | 0.244224 | 0.040302 | 0.064232 | 0.075567 | 0.157431 | 0.070529 | 0.070529 | 0.070529 | 0.070529 | 0.070529 | 0 | 0.000506 | 0.166315 | 2,369 | 69 | 92 | 34.333333 | 0.803544 | 0 | 0 | 0.245614 | 0 | 0 | 0.132489 | 0.008861 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122807 | false | 0.070175 | 0.087719 | 0.035088 | 0.421053 | 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 |
6e3eb73c2f52c4adff5a4f89cd097e223c5eb626 | 2,707 | py | Python | util/getDistributionOrbSpreads.py | jeanlucf22/mgmol | 4e79bc32c14c8a47ae18ad0659ea740719c8b77f | [
"BSD-3-Clause-LBNL",
"FSFAP"
] | 25 | 2018-12-29T03:33:01.000Z | 2021-05-08T12:52:27.000Z | util/getDistributionOrbSpreads.py | jeanlucf22/mgmol | 4e79bc32c14c8a47ae18ad0659ea740719c8b77f | [
"BSD-3-Clause-LBNL",
"FSFAP"
] | 121 | 2018-12-19T02:38:21.000Z | 2021-12-20T16:29:24.000Z | util/getDistributionOrbSpreads.py | jeanlucf22/mgmol | 4e79bc32c14c8a47ae18ad0659ea740719c8b77f | [
"BSD-3-Clause-LBNL",
"FSFAP"
] | 15 | 2019-02-17T05:28:43.000Z | 2022-02-28T05:24:11.000Z | # Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
# the Lawrence Livermore National Laboratory.
# LLNL-CODE-743438
# All rights reserved.
# This file is part of MGmol. For details, see https://github.com/llnl/mgmol.
# Please also read this link https://github.com/llnl/mgmol/LICENSE
#
# use: p... | 24.169643 | 80 | 0.581825 | 376 | 2,707 | 4.082447 | 0.31383 | 0.052117 | 0.041694 | 0.070358 | 0.252769 | 0.201954 | 0.201954 | 0.201954 | 0.201954 | 0.138111 | 0 | 0.035682 | 0.18212 | 2,707 | 111 | 81 | 24.387387 | 0.657633 | 0.191725 | 0 | 0.269231 | 0 | 0 | 0.062339 | 0.019062 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e4ccd9f6f2ee4ddf0035009aa26f926f85c908e | 393 | py | Python | backend/migrations/0007_project_created_at.py | bnorbert/debussy | ccfeceeead555c5d33424ff3614404f48eeabc00 | [
"MIT"
] | 1 | 2020-07-18T10:46:25.000Z | 2020-07-18T10:46:25.000Z | backend/migrations/0007_project_created_at.py | bnorbert/debussy | ccfeceeead555c5d33424ff3614404f48eeabc00 | [
"MIT"
] | 14 | 2021-03-10T22:13:36.000Z | 2022-03-12T00:34:53.000Z | backend/migrations/0007_project_created_at.py | bnorbert/debussy | ccfeceeead555c5d33424ff3614404f48eeabc00 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-15 19:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0006_auto_20200614_1241'),
]
operations = [
migrations.AddField(
model_name='project',
name='created_at',... | 20.684211 | 54 | 0.605598 | 43 | 393 | 5.395349 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109929 | 0.282443 | 393 | 18 | 55 | 21.833333 | 0.712766 | 0.114504 | 0 | 0 | 1 | 0 | 0.135838 | 0.066474 | 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 |
6e53d14e426df8aae2e81c2bbaba57c68061ed24 | 282 | py | Python | print_all_contacts.py | alexshepard/aledison | 030c2290441617fccdafee96bfdef3aadff2b5dd | [
"MIT"
] | null | null | null | print_all_contacts.py | alexshepard/aledison | 030c2290441617fccdafee96bfdef3aadff2b5dd | [
"MIT"
] | null | null | null | print_all_contacts.py | alexshepard/aledison | 030c2290441617fccdafee96bfdef3aadff2b5dd | [
"MIT"
] | null | null | null | #!/usr/bin/python
import yaml
config = yaml.safe_load(open("config.yml"))
from contacts import Contacts, Contact
c = Contacts()
# syntax: list_contacts.py
import sys
for contact in c.get_contacts():
print("Name: " + contact.name)
print("Number: " + contact.number)
print
| 16.588235 | 43 | 0.70922 | 40 | 282 | 4.925 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152482 | 282 | 16 | 44 | 17.625 | 0.824268 | 0.14539 | 0 | 0 | 0 | 0 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2807ac4e1a77a0ceef89b3038720f82d84623208 | 617 | py | Python | src/outputmodule/createpdf.py | 0t3k25/image_trimmer | b44ab3a690d09e91f08e2a69edbe05b9c47c426b | [
"MIT"
] | null | null | null | src/outputmodule/createpdf.py | 0t3k25/image_trimmer | b44ab3a690d09e91f08e2a69edbe05b9c47c426b | [
"MIT"
] | null | null | null | src/outputmodule/createpdf.py | 0t3k25/image_trimmer | b44ab3a690d09e91f08e2a69edbe05b9c47c426b | [
"MIT"
] | null | null | null | class OutputData:
def __init__(self, keycap_lines, blank_picture):
self.keycap_lines = keycap_lines
self.blank_picture = blank_picture
# トリミング写真結合
def join_picture(self):
for keycap_line in self.keycap_lines:
trimmed_image_list = []
image_height = keycap_line... | 30.85 | 60 | 0.576985 | 65 | 617 | 5.138462 | 0.461538 | 0.11976 | 0.134731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.358185 | 617 | 19 | 61 | 32.473684 | 0.835859 | 0.056726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2817c502427f2356efbf3297adbb1de19707a5b2 | 2,340 | py | Python | courses/modsim2018/caiolima/exercicio_aula_5.py | regifukuchi/bmc-1 | f4418212664758511bb3f4d4ca2318ac48a55e88 | [
"MIT"
] | null | null | null | courses/modsim2018/caiolima/exercicio_aula_5.py | regifukuchi/bmc-1 | f4418212664758511bb3f4d4ca2318ac48a55e88 | [
"MIT"
] | null | null | null | courses/modsim2018/caiolima/exercicio_aula_5.py | regifukuchi/bmc-1 | f4418212664758511bb3f4d4ca2318ac48a55e88 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[1]:
range(5, 10)
# In[2]:
2+2
# In[3]:
for n in range(2, 10):
for x in range(2, n):
if n % x == 0:
print(n, 'equals', x, '*', n//x)
break
else:
# loop fell through without finding a factor
print(n, 'is a prime number')
# In[4]:
... | 13.072626 | 66 | 0.542308 | 393 | 2,340 | 3.21374 | 0.302799 | 0.019002 | 0.08076 | 0.090261 | 0.368963 | 0.34996 | 0.34996 | 0.29612 | 0.205859 | 0.101346 | 0 | 0.081423 | 0.291453 | 2,340 | 178 | 67 | 13.146067 | 0.680338 | 0.2 | 0 | 0.297297 | 0 | 0 | 0.112644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.094595 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
281d2d118399777c93619dd3415b7add3fc16a53 | 1,095 | py | Python | src/polls/models.py | christyson/Verademo-Python | 3c18f6ab240a480a706aa87fbc8980a4aa02bda7 | [
"MIT"
] | null | null | null | src/polls/models.py | christyson/Verademo-Python | 3c18f6ab240a480a706aa87fbc8980a4aa02bda7 | [
"MIT"
] | 21 | 2022-01-13T21:10:53.000Z | 2022-01-21T22:52:11.000Z | src/polls/models.py | tjarrettveracode/verademo-python | 941b478d565488c56e4842d48fad0fdba40e5c3a | [
"MIT"
] | 3 | 2020-11-12T16:11:44.000Z | 2021-04-15T13:02:41.000Z | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published', default=timezone.now)
def __str__(self):
return self.question_text
def was_published... | 31.285714 | 92 | 0.733333 | 143 | 1,095 | 5.321678 | 0.41958 | 0.070959 | 0.105125 | 0.057819 | 0.134034 | 0.081472 | 0 | 0 | 0 | 0 | 0 | 0.009956 | 0.174429 | 1,095 | 34 | 93 | 32.205882 | 0.831858 | 0 | 0 | 0.083333 | 0 | 0 | 0.057534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.125 | 0.083333 | 0.791667 | 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 |
282140302f26cb2868b693d2b5894d2c27407a20 | 2,155 | py | Python | d4/passport_fields.py | pgreze/adventofcode | 16baf05bc0717ea231e62bc4801b3ea3847df0bb | [
"Apache-2.0"
] | null | null | null | d4/passport_fields.py | pgreze/adventofcode | 16baf05bc0717ea231e62bc4801b3ea3847df0bb | [
"Apache-2.0"
] | null | null | null | d4/passport_fields.py | pgreze/adventofcode | 16baf05bc0717ea231e62bc4801b3ea3847df0bb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import re
"""
Run tests with:
>> python3 -m pip install pytest
>> python3 -m pytest passport-checker-v2.py --doctest-modules
"""
__all__ = ("REQUIRED_FIELDS", "FIELD_VALIDATORS")
def is_in_range(min, max):
"""Validate a number between min and max.
>>> is_in_range(10, 20)("1")
Fa... | 23.944444 | 76 | 0.604176 | 315 | 2,155 | 3.904762 | 0.384127 | 0.096748 | 0.080488 | 0.044715 | 0.176423 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0.074119 | 0.236195 | 2,155 | 89 | 77 | 24.213483 | 0.673147 | 0.4 | 0 | 0.064516 | 0 | 0 | 0.099704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.064516 | 0.032258 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
282161c4ce6560bdec59d4ca0c14611b097b561a | 697 | py | Python | leetcode/squares_of_a_sorted_array/squares_of_a_sorted_array.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | leetcode/squares_of_a_sorted_array/squares_of_a_sorted_array.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | leetcode/squares_of_a_sorted_array/squares_of_a_sorted_array.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | class Solution:
def sortedSquares(self, nums: List[int]) -> List[int]:
positives_and_zero = collections.deque()
negatives = collections.deque()
for x in nums:
if x < 0:
negatives.appendleft(x * x)
else:
positives_and_zero.append(x * x)... | 31.681818 | 66 | 0.555237 | 80 | 697 | 4.6875 | 0.4625 | 0.192 | 0.256 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006652 | 0.352941 | 697 | 22 | 67 | 31.681818 | 0.824834 | 0.063128 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 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 |
2825a6c0207875c963bc0b39f0868b1bf9143192 | 4,316 | py | Python | spar_python/report_generation/common/graphing_test.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | spar_python/report_generation/common/graphing_test.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | spar_python/report_generation/common/graphing_test.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | # *****************************************************************
# Copyright 2013 MIT Lincoln Laboratory
# Project: SPAR
# Authors: MZ
# Description: Class for testing ta1_graphing
#
#
# Modifications:
# Date Name Mo... | 32.451128 | 79 | 0.553985 | 491 | 4,316 | 4.647658 | 0.319756 | 0.068361 | 0.049956 | 0.03681 | 0.22305 | 0.172656 | 0.04908 | 0 | 0 | 0 | 0 | 0.048838 | 0.312095 | 4,316 | 132 | 80 | 32.69697 | 0.719771 | 0.242354 | 0 | 0 | 0 | 0 | 0.079634 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 1 | 0.217391 | false | 0 | 0.043478 | 0.072464 | 0.42029 | 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 |
282648ceda32c5f1151e62253a37880f58e9b347 | 403 | py | Python | api/urls.py | arowla/hourglass | b125462413ec7bfbdbe4a7b6dead8db4aee8af34 | [
"CC0-1.0"
] | null | null | null | api/urls.py | arowla/hourglass | b125462413ec7bfbdbe4a7b6dead8db4aee8af34 | [
"CC0-1.0"
] | null | null | null | api/urls.py | arowla/hourglass | b125462413ec7bfbdbe4a7b6dead8db4aee8af34 | [
"CC0-1.0"
] | null | null | null | from django.conf.urls import patterns, include, url
from rest_framework.urlpatterns import format_suffix_patterns
from api import views
urlpatterns = patterns('',
url(r'^rates/$', views.GetRates.as_view()),
url(r'^rates/csv/$', views.get_rates_csv),
url(r'^search/$', views.GetAutocomplete.as_view()),
)
#... | 31 | 83 | 0.729529 | 53 | 403 | 5.377358 | 0.509434 | 0.042105 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111663 | 403 | 12 | 84 | 33.583333 | 0.796089 | 0.203474 | 0 | 0 | 0 | 0 | 0.090625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
282a08bf30ac15df4c751edee77ea17005c25373 | 2,408 | py | Python | filters.py | SchwarzKatzeZwei/flask-s3-browser | 15c0facec2d629751b6f4697075eae8937200364 | [
"Apache-2.0"
] | 1 | 2021-11-07T01:08:24.000Z | 2021-11-07T01:08:24.000Z | filters.py | SchwarzKatzeZwei/flask-s3-browser | 15c0facec2d629751b6f4697075eae8937200364 | [
"Apache-2.0"
] | 2 | 2021-09-30T06:19:18.000Z | 2021-12-01T02:12:40.000Z | filters.py | SchwarzKatzeZwei/flask-s3-browser | 15c0facec2d629751b6f4697075eae8937200364 | [
"Apache-2.0"
] | null | null | null | import datetime
import mimetypes
import os
from pathlib import Path
import arrow
from db_access import TinyDBAC
from resources import get_bucket
additional_file_types = {".md": "text/markdown"}
def datetimeformat(date_str: str) -> str:
"""日付フォーマット変更
Args:
date_str (str): 時刻文字列(YYYY-MM-DD HH:mm:ss+... | 19.737705 | 80 | 0.594269 | 290 | 2,408 | 4.827586 | 0.365517 | 0.025714 | 0.040714 | 0.021429 | 0.122857 | 0.122857 | 0.112857 | 0.112857 | 0.112857 | 0.06 | 0 | 0.005208 | 0.282392 | 2,408 | 121 | 81 | 19.900826 | 0.804977 | 0.202243 | 0 | 0.107143 | 0 | 0 | 0.078563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0.071429 | 0.125 | 0 | 0.410714 | 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 |
282b5585ac8c3e856eb7ac5648055bca75a50d9d | 2,814 | py | Python | include/qmakeUnity/unity_common.py | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | 16 | 2019-05-23T08:10:39.000Z | 2021-12-21T11:20:37.000Z | include/qmakeUnity/unity_common.py | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | 21 | 2019-07-19T18:36:34.000Z | 2022-03-06T09:59:51.000Z | include/qmakeUnity/unity_common.py | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | 24 | 2019-04-19T12:24:16.000Z | 2022-01-07T13:02:20.000Z | import os
import sys
from unity_config import *
# private config options
LOG_DEV = False
class InlineException(Exception):
def __init__(self, message):
self.message = message
def utf8_file_readlines(file):
try:
return file.readlines()
except UnicodeDecodeError:
raise InlineExcepti... | 29.010309 | 116 | 0.635394 | 327 | 2,814 | 5.348624 | 0.327217 | 0.09777 | 0.015437 | 0.022298 | 0.137221 | 0.096055 | 0.096055 | 0.096055 | 0.096055 | 0.096055 | 0 | 0.002903 | 0.265458 | 2,814 | 96 | 117 | 29.3125 | 0.843251 | 0.086354 | 0 | 0.126761 | 0 | 0 | 0.05731 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 1 | 0.225352 | false | 0 | 0.042254 | 0.042254 | 0.478873 | 0.056338 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
282d6b8818ce1c6288827e2d8402bbdb28e2f699 | 539 | py | Python | hipchat/signals.py | hugorodgerbrown/django-hipchat | d9e7ed388940fd0644490dd771aacb2d95ea6bfd | [
"MIT"
] | null | null | null | hipchat/signals.py | hugorodgerbrown/django-hipchat | d9e7ed388940fd0644490dd771aacb2d95ea6bfd | [
"MIT"
] | null | null | null | hipchat/signals.py | hugorodgerbrown/django-hipchat | d9e7ed388940fd0644490dd771aacb2d95ea6bfd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""hipchat signal definitions."""
from django.dispatch import Signal
# Signal sent when the app receives a data request from HipChat. The signal
# is fired from within the view function (so inside an HTTP request/response)
# so this *is* performance-bound. The signal is used as a mechanism for
... | 44.916667 | 77 | 0.758813 | 84 | 539 | 4.845238 | 0.666667 | 0.066339 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002217 | 0.163265 | 539 | 11 | 78 | 49 | 0.900222 | 0.795918 | 0 | 0 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
28327d28298944ea0fb0683afe2f21b95d4b6df9 | 1,210 | py | Python | src/create_learner.py | dagarshali/mriDenoise | ca551227eeee59d41642a2aefb9306241353f49f | [
"MIT"
] | 2 | 2020-06-05T13:33:17.000Z | 2020-11-04T07:51:10.000Z | src/create_learner.py | dagarshali/mriDenoise | ca551227eeee59d41642a2aefb9306241353f49f | [
"MIT"
] | 3 | 2021-09-08T01:22:45.000Z | 2022-03-12T00:02:58.000Z | src/create_learner.py | dagarshali/mriDenoise | ca551227eeee59d41642a2aefb9306241353f49f | [
"MIT"
] | null | null | null | import cls_for_reading_tif as clsrt
import create_data_bunch as dataFuncs
import fastai
from fastai.vision import *
from fastai.callbacks import *
from fastai.utils.mem import *
from pathlib import Path
import torch
import torchvision
from torch import nn
import models as mymodels
def createLearner(data,model_choice=... | 33.611111 | 181 | 0.738843 | 173 | 1,210 | 4.976879 | 0.485549 | 0.034843 | 0.045296 | 0.037166 | 0.304297 | 0.304297 | 0.304297 | 0.304297 | 0.304297 | 0.304297 | 0 | 0.0107 | 0.150413 | 1,210 | 36 | 182 | 33.611111 | 0.826848 | 0.052066 | 0 | 0.2 | 0 | 0 | 0.062827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.366667 | 0 | 0.566667 | 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 |
2834cffd84182d741e5ffba21e1f768286e98d1c | 8,546 | py | Python | aboutTexts.py | paul-shannon/slexil | cba47d70d7301d1cc74d387e51d93b683b1109de | [
"MIT"
] | null | null | null | aboutTexts.py | paul-shannon/slexil | cba47d70d7301d1cc74d387e51d93b683b1109de | [
"MIT"
] | 53 | 2019-02-14T15:12:21.000Z | 2019-12-04T14:26:13.000Z | aboutTexts.py | paul-shannon/slexil | cba47d70d7301d1cc74d387e51d93b683b1109de | [
"MIT"
] | 1 | 2020-02-08T23:47:47.000Z | 2020-02-08T23:47:47.000Z | # ------------------------------------------------------------------------------------------------------------------------
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------------------------------------------------
import dash_core_components as dcc
import dash_h... | 59.347222 | 136 | 0.635853 | 1,109 | 8,546 | 4.8945 | 0.348061 | 0.009212 | 0.023581 | 0.019344 | 0.114223 | 0.099484 | 0.05748 | 0.05748 | 0 | 0 | 0 | 0.004384 | 0.252633 | 8,546 | 143 | 137 | 59.762238 | 0.845154 | 0.030775 | 0 | 0.059322 | 0 | 0.067797 | 0.659326 | 0.003982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.016949 | 0.008475 | 0.186441 | 0.008475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
283c5c0792fc930e688b6f85b1141c4cae2b5e8a | 1,410 | py | Python | questions/q321_points_in_straight_line/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | questions/q321_points_in_straight_line/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | 1 | 2021-05-15T07:56:51.000Z | 2021-05-15T07:56:51.000Z | questions/q321_points_in_straight_line/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | class Solution:
# @param A : list of integers
# @param B : list of integers
# @return an integer
def computeGCD(self, x, y):
if x > y:
small = y
else:
small = x
gcd = 1
for i in range(1, small + 1):
if ((x % i == 0) and (y % i == 0)):
... | 28.2 | 76 | 0.376596 | 166 | 1,410 | 3.120482 | 0.295181 | 0.081081 | 0.069498 | 0.042471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051128 | 0.528369 | 1,410 | 49 | 77 | 28.77551 | 0.72782 | 0.052482 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.142857 | 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 |
2840de6e405344d99a83b76d2ca647e5839c5156 | 68,078 | py | Python | runtime/tests/test_backend_workflow_dto.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | runtime/tests/test_backend_workflow_dto.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | runtime/tests/test_backend_workflow_dto.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | from copy import deepcopy
from uuid import UUID
import pytest
from hetdesrun.backend.models.io import ConnectorFrontendDto
from hetdesrun.backend.models.workflow import (
WorkflowIoFrontendDto,
WorkflowOperatorFrontendDto,
WorkflowLinkFrontendDto,
WorkflowRevisionFrontendDto,
position_from_input_co... | 39.23804 | 107 | 0.582097 | 6,445 | 68,078 | 5.893251 | 0.118852 | 0.046338 | 0.0565 | 0.039361 | 0.80575 | 0.682639 | 0.600205 | 0.467406 | 0.405508 | 0.354931 | 0 | 0.11892 | 0.301492 | 68,078 | 1,734 | 108 | 39.260669 | 0.67981 | 0.022078 | 0 | 0.439246 | 0 | 0 | 0.207725 | 0.110779 | 0 | 0 | 0 | 0 | 0.14425 | 1 | 0.025341 | false | 0.00065 | 0.003899 | 0 | 0.02924 | 0.001949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
28460d5a218aeda2b72285bada4cdab18d5dd3b1 | 53,885 | py | Python | openbox/configuration_builder/click_blocks.py | shlomos/obsi | b1fccb6cef6c28f39371954f7f98fefa22b4144a | [
"Apache-2.0"
] | null | null | null | openbox/configuration_builder/click_blocks.py | shlomos/obsi | b1fccb6cef6c28f39371954f7f98fefa22b4144a | [
"Apache-2.0"
] | null | null | null | openbox/configuration_builder/click_blocks.py | shlomos/obsi | b1fccb6cef6c28f39371954f7f98fefa22b4144a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2015 Pavel Lazar pavel.lazar (at) gmail.com
#
# The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED.
#####################################################################
import functools
import re
import json
import sys
import transformations
from matching import... | 56.483229 | 120 | 0.480969 | 4,380 | 53,885 | 5.556393 | 0.081279 | 0.023503 | 0.015409 | 0.018983 | 0.52225 | 0.457739 | 0.417595 | 0.352467 | 0.328635 | 0.30694 | 0 | 0.003206 | 0.426891 | 53,885 | 954 | 121 | 56.483229 | 0.784858 | 0.014382 | 0 | 0.399757 | 0 | 0 | 0.141874 | 0.011116 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012151 | 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 |
2849f5e1949814a61df99a3649d5f0358a9472e5 | 665 | py | Python | dataset/data_creation.py | srijankr/petgen | 28705aff5c6f4ed168ffd208dcb6e3b1e4ed104a | [
"MIT"
] | 13 | 2021-08-15T12:37:37.000Z | 2022-02-22T13:22:28.000Z | dataset/data_creation.py | srijankr/petgen | 28705aff5c6f4ed168ffd208dcb6e3b1e4ed104a | [
"MIT"
] | null | null | null | dataset/data_creation.py | srijankr/petgen | 28705aff5c6f4ed168ffd208dcb6e3b1e4ed104a | [
"MIT"
] | null | null | null | #%%
# read the pkl files and generate the correponding text data
#%%
import pickle as pkl
#%%
dir = None # To be specified
#%%
sents2label = pkl.load(open(f"{dir}/Seq2label.pkl", "rb"))
#%%
sents2context = pkl.load(open(f"{dir}/Seq2context.pkl", "rb"))
#%%
#%%
with open("yelp.txt", "w") as f:
with open("yelp_text.t... | 23.75 | 62 | 0.565414 | 93 | 665 | 4 | 0.419355 | 0.064516 | 0.096774 | 0.056452 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015968 | 0.246617 | 665 | 27 | 63 | 24.62963 | 0.726547 | 0.142857 | 0 | 0 | 1 | 0 | 0.161871 | 0.03777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
284b28947a5198106d518869761b1637e8fb9e1d | 11,812 | py | Python | file_info.py | xumm94/Tencent_ad | d6d0acca72ec1881fee5d3317e46405e04e44b36 | [
"MIT"
] | null | null | null | file_info.py | xumm94/Tencent_ad | d6d0acca72ec1881fee5d3317e46405e04e44b36 | [
"MIT"
] | null | null | null | file_info.py | xumm94/Tencent_ad | d6d0acca72ec1881fee5d3317e46405e04e44b36 | [
"MIT"
] | null | null | null | ##################################################
# 原始数据 #
##################################################
# train.csv
# 行数:8798815 (包括标题行)
# 列数:3
trainCols = ['aid', 'uid', 'label']
# test1.csv
# 行数:2265990 (包括标题行)
# 列数:2
test1Cols = ['aid', 'uid']
# adFeatur... | 55.981043 | 122 | 0.615222 | 1,065 | 11,812 | 6.53615 | 0.253521 | 0.099124 | 0.028444 | 0.017095 | 0.138486 | 0.104583 | 0.104583 | 0.104583 | 0.104583 | 0.075277 | 0 | 0.070844 | 0.213681 | 11,812 | 210 | 123 | 56.247619 | 0.678618 | 0.115391 | 0 | 0 | 0 | 0 | 0.630106 | 0.243791 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
284fc747e38a0f7db1ce9bdef007daa48cf3d145 | 817 | py | Python | tshotel/tshotel/custom/Python/Postcode.py | KaviyaPeriyasamy/crm-customize | cd73585dcfef3e26160abe92b26c41e835ff5f52 | [
"MIT"
] | null | null | null | tshotel/tshotel/custom/Python/Postcode.py | KaviyaPeriyasamy/crm-customize | cd73585dcfef3e26160abe92b26c41e835ff5f52 | [
"MIT"
] | null | null | null | tshotel/tshotel/custom/Python/Postcode.py | KaviyaPeriyasamy/crm-customize | cd73585dcfef3e26160abe92b26c41e835ff5f52 | [
"MIT"
] | 2 | 2022-01-28T08:43:14.000Z | 2022-03-05T08:48:03.000Z | import frappe
import re
def post(self, postalcode):
if(self.postal_code == None):
frappe.throw("Please enter the postal code.")
else:
postal_val = r"^[1-9][\d]{5}$"
if(re.match(postal_val, self.postal_code)):
pass
else:
frappe.throw("Please give the corre... | 26.354839 | 80 | 0.563035 | 129 | 817 | 3.511628 | 0.387597 | 0.0883 | 0.15011 | 0.145695 | 0.286976 | 0.1766 | 0.1766 | 0.1766 | 0 | 0 | 0 | 0.043831 | 0.246022 | 817 | 30 | 81 | 27.233333 | 0.691558 | 0.073439 | 0 | 0.304348 | 0 | 0 | 0.320053 | 0.033201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.130435 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2856c1120bcb0f2e09bda6ecde7029953ff23a21 | 3,324 | py | Python | Pon3Ark.py | Arzaroth/Pon3Ark | c62ecbbef6c398c40d97e325dbbfcb3194fe11af | [
"BSD-2-Clause"
] | 1 | 2021-09-08T15:30:31.000Z | 2021-09-08T15:30:31.000Z | Pon3Ark.py | Arzaroth/Pon3Ark | c62ecbbef6c398c40d97e325dbbfcb3194fe11af | [
"BSD-2-Clause"
] | null | null | null | Pon3Ark.py | Arzaroth/Pon3Ark | c62ecbbef6c398c40d97e325dbbfcb3194fe11af | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: Pon3Ark.py
# by Arzaroth Lekva
# arzaroth@arzaroth.com
#
from __future__ import print_function, absolute_import, unicode_literals
import os
import sys
import getpass
try:
PRGM = os.path.basename(__file__)
except NameError:
PRGM = os.path.basename(sys.arg... | 32.271845 | 127 | 0.603791 | 459 | 3,324 | 4.283224 | 0.37037 | 0.049847 | 0.030519 | 0.022889 | 0.08647 | 0.08647 | 0.052899 | 0 | 0 | 0 | 0 | 0.005917 | 0.288207 | 3,324 | 102 | 128 | 32.588235 | 0.825021 | 0.029783 | 0 | 0.060241 | 0 | 0.036145 | 0.56215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0.168675 | 0.108434 | 0 | 0.13253 | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
285d5180fb7fa52216a7df8d65ce89b49d1c341b | 601 | py | Python | extensions/vflib/NetworkGraph/test_graph.py | UnixJunkie/frowns | 427e4c11a8a4dbe865828d18221899478497795e | [
"BSD-3-Clause"
] | null | null | null | extensions/vflib/NetworkGraph/test_graph.py | UnixJunkie/frowns | 427e4c11a8a4dbe865828d18221899478497795e | [
"BSD-3-Clause"
] | null | null | null | extensions/vflib/NetworkGraph/test_graph.py | UnixJunkie/frowns | 427e4c11a8a4dbe865828d18221899478497795e | [
"BSD-3-Clause"
] | null | null | null | from Graph import Graph
from Node import Node
from Edge import Edge
node1 = Node('darkstar.wi.mit.edu')
node2 = Node('fang.harvard.edu')
node3 = Node('www.wi.mit.edu')
edge1 = Edge('t3')
edge2 = Edge('t1')
network = Graph()
network.add_node(node1)
network.add_node(node2)
network.add_node(node3)
network.add_edge(edge1... | 17.676471 | 37 | 0.735441 | 93 | 601 | 4.677419 | 0.301075 | 0.114943 | 0.096552 | 0.068966 | 0.105747 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048872 | 0.114809 | 601 | 33 | 38 | 18.212121 | 0.768797 | 0 | 0 | 0.230769 | 0 | 0 | 0.155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
285f1a949688e63df77daae412f9a51cdf9fb513 | 869 | py | Python | setup.py | Woodstonelee/espa-bulk-downloader | 1c22713a54171e5ab4102a89824f337f911c95e9 | [
"NASA-1.3"
] | null | null | null | setup.py | Woodstonelee/espa-bulk-downloader | 1c22713a54171e5ab4102a89824f337f911c95e9 | [
"NASA-1.3"
] | null | null | null | setup.py | Woodstonelee/espa-bulk-downloader | 1c22713a54171e5ab4102a89824f337f911c95e9 | [
"NASA-1.3"
] | 2 | 2020-07-28T05:20:56.000Z | 2021-03-04T10:48:39.000Z | #!/usr/bin/env python
from setuptools import setup
setup(
# Application name:
name='download_espa_order',
# Version number:
version='2.1.0',
# Application author details:
author='David V. Hill',
license=open('LICENSE.txt').read(),
description='Client for downloading ESPA scenes.',
... | 24.138889 | 78 | 0.643268 | 101 | 869 | 5.435644 | 0.683168 | 0.087432 | 0.123862 | 0.103825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0.23015 | 869 | 35 | 79 | 24.828571 | 0.811659 | 0.3084 | 0 | 0.111111 | 0 | 0 | 0.431703 | 0.074199 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 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 |
2868713250472ca6b8ce238c2e553362d45ea063 | 998 | py | Python | tsp/genetic_algorithm/individual.py | hcugur/tsp-genetic-algorithm | 2a18ec8d200dff21110c37bf612fe7ffbeba98e5 | [
"MIT"
] | null | null | null | tsp/genetic_algorithm/individual.py | hcugur/tsp-genetic-algorithm | 2a18ec8d200dff21110c37bf612fe7ffbeba98e5 | [
"MIT"
] | null | null | null | tsp/genetic_algorithm/individual.py | hcugur/tsp-genetic-algorithm | 2a18ec8d200dff21110c37bf612fe7ffbeba98e5 | [
"MIT"
] | null | null | null | import random
from tsp.tsp.xml_parser import graph_obj_assemble
class Individual:
def __init__(self, graph_obj):
self.fitness = 0
self.graph_obj = graph_obj
self.genes = []
def get_genes_list(self):
return self.genes
def get_fitness(self):
return self.fitness
def create_random_gen... | 21.695652 | 85 | 0.642285 | 148 | 998 | 4.141892 | 0.358108 | 0.091354 | 0.097879 | 0.04894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015894 | 0.243487 | 998 | 45 | 86 | 22.177778 | 0.796026 | 0.077154 | 0 | 0.068966 | 0 | 0 | 0.013072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.068966 | 0.37931 | 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 |
2882c2ef505cdde596cf68f3f841a1a5f2fdcc5f | 2,911 | py | Python | examples/WIP/bpod-qc-sound.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | 38 | 2018-08-07T21:55:29.000Z | 2022-03-21T14:49:03.000Z | examples/WIP/bpod-qc-sound.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | 207 | 2018-07-25T15:10:48.000Z | 2022-03-08T13:23:08.000Z | examples/WIP/bpod-qc-sound.py | nbonacchi/ibllib | 9066c00a8e9a65a1d209144a2ac54d0b87bec0b3 | [
"MIT"
] | 35 | 2018-09-04T14:49:56.000Z | 2022-01-06T21:17:51.000Z | """
TODO MILES CHANGE ALGORITHM
Aim: Assess if spectrogram contains as many goCue as n trials
Workflow:
- Load a session via it's eID and ONE
- Detect goCue on spectrogram and compare with N trials
- Plot spectrogram with markers indicating goCue detected
Script using:
- ONE
- alf for loading TF spectrogram
- matplot... | 31.989011 | 98 | 0.645139 | 420 | 2,911 | 4.316667 | 0.459524 | 0.033094 | 0.019857 | 0.026475 | 0.016547 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044524 | 0.228444 | 2,911 | 90 | 99 | 32.344444 | 0.762689 | 0.259018 | 0 | 0 | 0 | 0.02 | 0.200187 | 0.060337 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2882fb51047b2da53afefc80d3e3f56c2987c5bd | 562 | py | Python | face.py | brijrokad/Facial-Recognition-System | ecca9e4f033330ff17f2e9c223089d0b4ca0cd33 | [
"MIT"
] | null | null | null | face.py | brijrokad/Facial-Recognition-System | ecca9e4f033330ff17f2e9c223089d0b4ca0cd33 | [
"MIT"
] | null | null | null | face.py | brijrokad/Facial-Recognition-System | ecca9e4f033330ff17f2e9c223089d0b4ca0cd33 | [
"MIT"
] | null | null | null | import cv2
import sys
imagePath = sys.argv[1]
cascPath = sys.argv[2]
faceCascade = cv2.CascadeClassifier(cascPath)
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
faces = faceCascade.detectMultiScale(
gray,
scaleFactor=1.2,
minNeighbors=5,
minSize=(30, 30),
flags = cv2.... | 24.434783 | 60 | 0.690391 | 87 | 562 | 4.413793 | 0.528736 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057082 | 0.158363 | 562 | 22 | 61 | 25.545455 | 0.754757 | 0.058719 | 0 | 0 | 0 | 0 | 0.051233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2883b2136b578658f690499c6c7eb37bdaef7381 | 1,336 | py | Python | setup.py | v1c77/gogo | 41e39a303ae2ea6f2ab6f471b35f6787a8ee619c | [
"WTFPL"
] | null | null | null | setup.py | v1c77/gogo | 41e39a303ae2ea6f2ab6f471b35f6787a8ee619c | [
"WTFPL"
] | 4 | 2018-08-07T06:53:32.000Z | 2018-08-07T16:11:07.000Z | setup.py | v1c77/gogo | 41e39a303ae2ea6f2ab6f471b35f6787a8ee619c | [
"WTFPL"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('gogo/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name... | 26.72 | 74 | 0.573353 | 171 | 1,336 | 4.374269 | 0.631579 | 0.010695 | 0.010695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050197 | 0.239521 | 1,336 | 49 | 75 | 27.265306 | 0.686024 | 0.050898 | 0 | 0 | 0 | 0 | 0.44462 | 0.081487 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.093023 | 0 | 0.093023 | 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 |
28a307c7037d955eb35316b9d08d2f6c5d1694f5 | 5,013 | py | Python | venv/lib/python2.7/site-packages/pebble/pool/channel.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | venv/lib/python2.7/site-packages/pebble/pool/channel.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/pebble/pool/channel.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | # This file is part of Pebble.
# Pebble is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
# Pebble is distributed in the hope th... | 28.005587 | 77 | 0.628566 | 611 | 5,013 | 4.954173 | 0.234043 | 0.062768 | 0.044599 | 0.01817 | 0.423522 | 0.389164 | 0.298315 | 0.185002 | 0.185002 | 0.115626 | 0 | 0.004175 | 0.283264 | 5,013 | 178 | 78 | 28.162921 | 0.838297 | 0.13864 | 0 | 0.386555 | 0 | 0 | 0.01767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.252101 | false | 0.008403 | 0.033613 | 0.067227 | 0.470588 | 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 |
95382828db27de10f7fbc9131245c3bc7a613e79 | 2,079 | py | Python | src/bos_consensus/common/faulty_node.py | LuffyEMonkey/isaac-consensus-protocol | 806d967d56ef8862a477b2515c7854af289c10a0 | [
"Apache-2.0"
] | 1 | 2018-04-10T11:00:59.000Z | 2018-04-10T11:00:59.000Z | src/bos_consensus/common/faulty_node.py | LuffyEMonkey/isaac-consensus-protocol | 806d967d56ef8862a477b2515c7854af289c10a0 | [
"Apache-2.0"
] | null | null | null | src/bos_consensus/common/faulty_node.py | LuffyEMonkey/isaac-consensus-protocol | 806d967d56ef8862a477b2515c7854af289c10a0 | [
"Apache-2.0"
] | null | null | null | import enum
from random import randint
from bos_consensus.common import Node
class FaultyNodeKind(enum.Enum):
# failed to connect to the node or failed to get the proper response from
# the node.
NodeUnreachable = enum.auto()
# in single phase of consensus, the node does not send voting messages.
... | 30.130435 | 143 | 0.696008 | 265 | 2,079 | 5.245283 | 0.354717 | 0.071942 | 0.046043 | 0.054676 | 0.086331 | 0.056115 | 0.056115 | 0.056115 | 0.056115 | 0 | 0 | 0.003104 | 0.225108 | 2,079 | 68 | 144 | 30.573529 | 0.859714 | 0.210678 | 0 | 0.04878 | 0 | 0.02439 | 0.07362 | 0.05092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.073171 | 0.02439 | 0.560976 | 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 |
95465f2acaf5cad769ddc7bdda6575643dc9b91f | 568 | py | Python | github/notification.py | pyprism/Hiren-Git-Commit-Reminder | 253ba078f63cc9bf3f39a5b735a783c4846b5ba7 | [
"MIT"
] | null | null | null | github/notification.py | pyprism/Hiren-Git-Commit-Reminder | 253ba078f63cc9bf3f39a5b735a783c4846b5ba7 | [
"MIT"
] | null | null | null | github/notification.py | pyprism/Hiren-Git-Commit-Reminder | 253ba078f63cc9bf3f39a5b735a783c4846b5ba7 | [
"MIT"
] | null | null | null | __author__ = 'prism'
from twilio.rest import TwilioRestClient
from django.conf import settings
def twilio():
"""
Send SMS
"""
account_sid = settings.JSON_DATA['account_sid']
auth_token = settings.JSON_DATA['auth_token']
client = TwilioRestClient(account_sid, auth_token)
message = client.me... | 35.5 | 99 | 0.630282 | 63 | 568 | 5.444444 | 0.555556 | 0.139942 | 0.186589 | 0.110787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269366 | 568 | 15 | 100 | 37.866667 | 0.826506 | 0.014085 | 0 | 0 | 0 | 0 | 0.205882 | 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 |
954a1b7f1511f19ba2a5d7aa3ef2ea06f665d3d5 | 105 | py | Python | Ch.3 Greedy Search/3-1_answer.py | ohikendoit/Coding-Test-Prep | 353c0434a9421b31b5af6ee030c774338478b95e | [
"MIT"
] | null | null | null | Ch.3 Greedy Search/3-1_answer.py | ohikendoit/Coding-Test-Prep | 353c0434a9421b31b5af6ee030c774338478b95e | [
"MIT"
] | null | null | null | Ch.3 Greedy Search/3-1_answer.py | ohikendoit/Coding-Test-Prep | 353c0434a9421b31b5af6ee030c774338478b95e | [
"MIT"
] | null | null | null | n=1260
count=0
list=[500,100,50,10]
for coin in list:
count += n//coin
n %= coin
print(count)
| 9.545455 | 20 | 0.6 | 20 | 105 | 3.15 | 0.65 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0.238095 | 105 | 10 | 21 | 10.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
954a889ecf9efbcf9c447b597a490cf1510a1cc5 | 451 | py | Python | company/migrations/0016_company_is_friend.py | MatPerowicz/pola-backend | ffa4e155fc7b8b7dca26d7537759d1eebfc6beca | [
"BSD-3-Clause"
] | null | null | null | company/migrations/0016_company_is_friend.py | MatPerowicz/pola-backend | ffa4e155fc7b8b7dca26d7537759d1eebfc6beca | [
"BSD-3-Clause"
] | null | null | null | company/migrations/0016_company_is_friend.py | MatPerowicz/pola-backend | ffa4e155fc7b8b7dca26d7537759d1eebfc6beca | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.5 on 2018-06-21 09:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('company', '0015_brand'),
]
operations = [
migrations.AddField(
model_name='company',
name='is_friend',
f... | 23.736842 | 126 | 0.600887 | 49 | 451 | 5.44898 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056886 | 0.259424 | 451 | 18 | 127 | 25.055556 | 0.742515 | 0.099778 | 0 | 0 | 1 | 0 | 0.133663 | 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 |
954d83e61775e29bb4b7238fc9d8729953845850 | 8,302 | py | Python | ovsdb/ovs-client.py | shota-tsuji/experiment | fd086b8ff2f4eaf28373e510e292446d48a52d45 | [
"MIT"
] | 1 | 2019-12-02T10:30:20.000Z | 2019-12-02T10:30:20.000Z | ovsdb/ovs-client.py | shota-tsuji/experiment | fd086b8ff2f4eaf28373e510e292446d48a52d45 | [
"MIT"
] | null | null | null | ovsdb/ovs-client.py | shota-tsuji/experiment | fd086b8ff2f4eaf28373e510e292446d48a52d45 | [
"MIT"
] | 1 | 2020-08-26T11:13:58.000Z | 2020-08-26T11:13:58.000Z | #!/usr/bin/python
#-*- coding: utf-8 -*-
#OVSDB Manipulation library for Python
import socket
import json
import ipaddress
import uuid
from pprint import pprint
RCV_BUF = 8192
class OvsdbClient:
_ovsdb_ip = None
_ovsdb_port = None
_transact_id = 0
def __init__(self, ovsdb_port, ovsdb_... | 28.726644 | 113 | 0.392315 | 688 | 8,302 | 4.531977 | 0.177326 | 0.046183 | 0.032713 | 0.04009 | 0.427518 | 0.338679 | 0.280308 | 0.238935 | 0.194035 | 0.194035 | 0 | 0.012538 | 0.490846 | 8,302 | 288 | 114 | 28.826389 | 0.725101 | 0.04264 | 0 | 0.458937 | 0 | 0 | 0.110391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024155 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95529192d9b3665e17091db4f5c6289135c0231e | 946 | py | Python | controller/controller.py | hasri20/data-interfaces-flask | 0ee150b603879f4cd21be5e252b5d3fcea4c10b9 | [
"MIT"
] | 9 | 2019-02-06T14:06:29.000Z | 2021-05-05T01:33:38.000Z | controller/controller.py | hasri20/data-interfaces-flask | 0ee150b603879f4cd21be5e252b5d3fcea4c10b9 | [
"MIT"
] | 6 | 2019-02-06T06:58:21.000Z | 2022-01-13T02:55:14.000Z | controller/controller.py | hasri20/data-interfaces-flask | 0ee150b603879f4cd21be5e252b5d3fcea4c10b9 | [
"MIT"
] | 7 | 2019-02-06T14:06:15.000Z | 2021-06-20T19:07:54.000Z | from netmiko import ConnectHandler
from textfsm import TextFSM
import os
def connect(device_type,ip,username,password,port):
device = {
'device_type': device_type,
'ip': ip,
'username': username,
'password': password,
'port': port
}
return ConnectHandler(**device)
def get_interfaces_list(device):
o... | 26.277778 | 78 | 0.754757 | 113 | 946 | 6.106195 | 0.415929 | 0.113043 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006068 | 0.128964 | 946 | 36 | 79 | 26.277778 | 0.831311 | 0 | 0 | 0 | 0 | 0 | 0.131996 | 0.036959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.107143 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9552bad3f7a58b4168d32c5092d7f11d203f7cd4 | 1,173 | py | Python | participant_profile/migrations/0026_auto_20210901_0523.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | participant_profile/migrations/0026_auto_20210901_0523.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | participant_profile/migrations/0026_auto_20210901_0523.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | 2 | 2021-08-10T09:09:58.000Z | 2021-08-10T10:54:51.000Z | # Generated by Django 3.2.5 on 2021-09-01 05:23
from django.db import migrations, models
import participant_profile.models
class Migration(migrations.Migration):
dependencies = [
('participant_profile', '0025_auto_20210830_0736'),
]
operations = [
migrations.AlterField(
mode... | 39.1 | 211 | 0.658142 | 135 | 1,173 | 5.518519 | 0.533333 | 0.096644 | 0.096644 | 0.116779 | 0.378523 | 0.300671 | 0.18255 | 0.18255 | 0.18255 | 0.18255 | 0 | 0.041575 | 0.220801 | 1,173 | 29 | 212 | 40.448276 | 0.773523 | 0.038363 | 0 | 0.347826 | 1 | 0 | 0.23357 | 0.039076 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9557120597691919accf670fea4c3a0269ff2b3d | 366 | py | Python | atbr_updater/test/main.py | shelley-barfoot/ATB_repository | bfa680db0009233e0e2b46d45bd12665def35e8a | [
"MIT"
] | null | null | null | atbr_updater/test/main.py | shelley-barfoot/ATB_repository | bfa680db0009233e0e2b46d45bd12665def35e8a | [
"MIT"
] | null | null | null | atbr_updater/test/main.py | shelley-barfoot/ATB_repository | bfa680db0009233e0e2b46d45bd12665def35e8a | [
"MIT"
] | 1 | 2021-12-03T02:20:24.000Z | 2021-12-03T02:20:24.000Z | import os
from atbr_updater.parse_control_files import *
directory = 'test_files'
file_parameters = {}
i = 0
for file in os.listdir(directory):
file_path = os.path.join(directory, file)
current_file = Amber_Data(file_path)
file_parameters[i] = current_file.get_parameters()
i += 1
for key in file_par... | 21.529412 | 54 | 0.73224 | 54 | 366 | 4.703704 | 0.481481 | 0.220472 | 0.11811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.169399 | 366 | 16 | 55 | 22.875 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.027322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 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 |
955827b20af534d2368195f173d95ad3a3d259d9 | 2,599 | py | Python | le_lambda.py | pitrho/s3-to-logentries | 73ba700c9bb3ecf8434d3826996cc7dc609eb179 | [
"MIT"
] | 1 | 2018-08-11T10:59:41.000Z | 2018-08-11T10:59:41.000Z | le_lambda.py | pitrho/s3-to-logentries | 73ba700c9bb3ecf8434d3826996cc7dc609eb179 | [
"MIT"
] | null | null | null | le_lambda.py | pitrho/s3-to-logentries | 73ba700c9bb3ecf8434d3826996cc7dc609eb179 | [
"MIT"
] | null | null | null | import boto3
import socket
import ssl
import datetime
import re
import urllib
import csv
import zlib
import json
from le_config import *
print('Loading function')
s3 = boto3.client('s3')
def lambda_handler(event, context):
host = 'data.logentries.com'
port = 20000
s_ = socket.socket(socket.AF_INET, sock... | 30.940476 | 105 | 0.524432 | 325 | 2,599 | 4.08 | 0.455385 | 0.036199 | 0.015083 | 0.033937 | 0.031674 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028054 | 0.34167 | 2,599 | 83 | 106 | 31.313253 | 0.746932 | 0.088111 | 0 | 0.046875 | 0 | 0.015625 | 0.185624 | 0.030867 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | 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 |
955adebce08320277b0e3988b30e5bc62d6f969b | 657 | py | Python | books/migrations/0005_auto_20170209_0251.py | widodopangestu/mysite | d0fd66a9012337a43edd75fa36050817cf4f0923 | [
"MIT"
] | null | null | null | books/migrations/0005_auto_20170209_0251.py | widodopangestu/mysite | d0fd66a9012337a43edd75fa36050817cf4f0923 | [
"MIT"
] | null | null | null | books/migrations/0005_auto_20170209_0251.py | widodopangestu/mysite | d0fd66a9012337a43edd75fa36050817cf4f0923 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-09 02:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0004_person_birth_date'),
]
operations = [
migrations.AddField(
... | 25.269231 | 89 | 0.605784 | 70 | 657 | 5.5 | 0.671429 | 0.093506 | 0.119481 | 0.14026 | 0.192208 | 0.192208 | 0 | 0 | 0 | 0 | 0 | 0.044025 | 0.273973 | 657 | 25 | 90 | 26.28 | 0.763103 | 0.103501 | 0 | 0.333333 | 1 | 0 | 0.129693 | 0.037543 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
9561833f8615b7a0b13fa514a01782a4f579e60a | 539 | py | Python | va_explorer/va_data_management/migrations/0006_auto_20210430_2258.py | VA-Explorer/va_explorer | e43cfbff0ce5209c12134b7ac4ce439db6fc87a2 | [
"Apache-2.0"
] | null | null | null | va_explorer/va_data_management/migrations/0006_auto_20210430_2258.py | VA-Explorer/va_explorer | e43cfbff0ce5209c12134b7ac4ce439db6fc87a2 | [
"Apache-2.0"
] | 125 | 2020-10-07T12:00:15.000Z | 2022-03-31T21:29:21.000Z | va_explorer/va_data_management/migrations/0006_auto_20210430_2258.py | VA-Explorer/va_explorer | e43cfbff0ce5209c12134b7ac4ce439db6fc87a2 | [
"Apache-2.0"
] | 2 | 2020-10-29T16:08:42.000Z | 2020-12-08T19:03:41.000Z | # Generated by Django 3.1.5 on 2021-04-30 22:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('va_data_management', '0005_vausername'),
]
operations = [
migrations.AlterField(
model_name='ve... | 26.95 | 158 | 0.669759 | 61 | 539 | 5.786885 | 0.672131 | 0.067989 | 0.07932 | 0.124646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044917 | 0.215213 | 539 | 19 | 159 | 28.368421 | 0.789598 | 0.083488 | 0 | 0 | 1 | 0 | 0.195122 | 0.054878 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
956995a1b1657d7d4fcef59a0e35b64e99408948 | 915 | py | Python | scripts/heli_prop_mass_tail_inputs.py | architectureofthings/openmeta-vahana | 81f7590765ccf8b14b6dea5473be6cefb0677284 | [
"MIT"
] | 11 | 2018-04-18T02:53:29.000Z | 2021-11-06T00:53:51.000Z | scripts/heli_prop_mass_tail_inputs.py | architectureofthings/openmeta-vahana | 81f7590765ccf8b14b6dea5473be6cefb0677284 | [
"MIT"
] | 2 | 2017-11-14T21:18:34.000Z | 2017-11-15T16:04:36.000Z | scripts/heli_prop_mass_tail_inputs.py | metamorph-inc/openmeta-vahana | f526f5ad36f735ebf719fd0489e6a707523e1f74 | [
"MIT"
] | 10 | 2018-01-17T01:28:00.000Z | 2021-01-24T05:08:00.000Z | '''
# Name: heli_prop_mass_tail_inputs.py
# Company: MetaMorph, Inc.
# Author(s): Joseph Coombe
# Email: jcoombe@metamorphsoftware.com
# Create Date: 8/7/2017
# Edit Date: 8/7/2017
# Inputs:
# rProp - rotor radius [m]
# hoverOutput_QMax - #TODO
# Outputs:
# R - til rotor radius
# T - tail... | 26.911765 | 77 | 0.648087 | 128 | 915 | 4.375 | 0.492188 | 0.05 | 0.035714 | 0.085714 | 0.203571 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0.037552 | 0.214208 | 915 | 34 | 77 | 26.911765 | 0.741307 | 0.359563 | 0 | 0 | 0 | 0 | 0.088083 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
956b0f727dea59b20a4059ebdbbc041298da2a23 | 2,005 | py | Python | src/mod_3rd-party/psutil_mod.py | liuguanglin/Learn_Python | ad7437c983dae3d3386162f51dd4259a8a6c475a | [
"MIT"
] | null | null | null | src/mod_3rd-party/psutil_mod.py | liuguanglin/Learn_Python | ad7437c983dae3d3386162f51dd4259a8a6c475a | [
"MIT"
] | null | null | null | src/mod_3rd-party/psutil_mod.py | liuguanglin/Learn_Python | ad7437c983dae3d3386162f51dd4259a8a6c475a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import psutil
from datetime import datetime
print('CPU信息')
print('CPU使用时间: ', psutil.cpu_times())
print('逻辑CPU数量: ', psutil.cpu_count())
print('物理CPU核心数: ', psutil.cpu_count(logical=False))
print('每核CPU使用率: ', psutil.cpu_percent(percpu=True))
print('\n内存信息')
... | 29.057971 | 88 | 0.666334 | 271 | 2,005 | 4.804428 | 0.457565 | 0.036866 | 0.02765 | 0.039171 | 0.033794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021135 | 0.103242 | 2,005 | 68 | 89 | 29.485294 | 0.703003 | 0.070324 | 0 | 0 | 0 | 0 | 0.177802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.06 | 0.88 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
956d720f10740a50ba88054c8d700971204f051b | 859 | py | Python | y2022/CargoDetection/python/lib/pipelines/hsv_threshold_pipeline.py | pjreiniger/GirlsOfSteelFRC | 03ab0fb699dfc14985ce3c95b1eacb145288fc7e | [
"BSD-3-Clause"
] | null | null | null | y2022/CargoDetection/python/lib/pipelines/hsv_threshold_pipeline.py | pjreiniger/GirlsOfSteelFRC | 03ab0fb699dfc14985ce3c95b1eacb145288fc7e | [
"BSD-3-Clause"
] | 44 | 2021-11-09T23:23:48.000Z | 2022-03-22T23:44:15.000Z | y2022/CargoDetection/python/lib/pipelines/hsv_threshold_pipeline.py | pjreiniger/GirlsOfSteelFRC | 03ab0fb699dfc14985ce3c95b1eacb145288fc7e | [
"BSD-3-Clause"
] | 1 | 2021-11-19T03:45:21.000Z | 2021-11-19T03:45:21.000Z | from lib.pipelines.pipeline_params import HsvThresholdParams
import cv2
def run_hsv_threshold(image, hsv_params: HsvThresholdParams):
img_hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
if hsv_params.hue_inverted:
bottom_min = (0, hsv_params.s[0], hsv_params.v[0])
bottom_max = (hsv_params.h[0], ... | 37.347826 | 75 | 0.711292 | 134 | 859 | 4.201493 | 0.268657 | 0.207815 | 0.071048 | 0.085258 | 0.156306 | 0.156306 | 0.156306 | 0.156306 | 0 | 0 | 0 | 0.029915 | 0.182771 | 859 | 22 | 76 | 39.045455 | 0.77208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 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 |
956f1c6ee22dfdb56de5fe5ec8c85499eef5fd24 | 494 | py | Python | build/lib/PyQuantTrader/indicators/PriceRatio.py | ivanliu1989/PyQuantTrader | 88021e01ede41d83bc48304ff2b87965e9e687aa | [
"MIT"
] | 1 | 2019-08-15T01:37:19.000Z | 2019-08-15T01:37:19.000Z | build/lib/PyQuantTrader/indicators/PriceRatio.py | ivanliu1989/PyQuantTrader | 88021e01ede41d83bc48304ff2b87965e9e687aa | [
"MIT"
] | null | null | null | build/lib/PyQuantTrader/indicators/PriceRatio.py | ivanliu1989/PyQuantTrader | 88021e01ede41d83bc48304ff2b87965e9e687aa | [
"MIT"
] | 2 | 2020-06-18T07:53:03.000Z | 2022-01-17T19:28:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
"""
Created on Sun Jul 30 11:43:36 2017
@author: Ivan Liu
"""
import backtrader as bt
class PriceRatio(bt.Indicator):
_mindatas = 2
packages = ('math',)
lines = ('PriceRatio',)
def __init__(self):
self.AUDUSDclose = ... | 23.52381 | 88 | 0.623482 | 65 | 494 | 4.661538 | 0.707692 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057592 | 0.226721 | 494 | 21 | 88 | 23.52381 | 0.735602 | 0.236842 | 0 | 0 | 0 | 0 | 0.03794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.7 | 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 |
95741fc8dfba74b4179c680f4c7b47456a776b70 | 11,195 | py | Python | voteagain/primitives/polynomial.py | spring-epfl/voteagain | 628f90a63e699e0f78c930660163a97c56afa9fc | [
"MIT"
] | 7 | 2020-08-13T19:44:57.000Z | 2021-03-16T13:41:15.000Z | voteagain/primitives/polynomial.py | spring-epfl/voteagain | 628f90a63e699e0f78c930660163a97c56afa9fc | [
"MIT"
] | 1 | 2022-03-22T14:18:54.000Z | 2022-03-22T14:18:54.000Z | voteagain/primitives/polynomial.py | spring-epfl/voteagain | 628f90a63e699e0f78c930660163a97c56afa9fc | [
"MIT"
] | 1 | 2020-10-06T16:15:07.000Z | 2020-10-06T16:15:07.000Z | """
Polynomials
"""
from functools import reduce
from petlib.bn import Bn
class Polynomial:
"""
Class to work with polynomials with big numbers from library petlib.
Implemented with a very restricted usage in mind, so incomplete polinomial class for general use. This allows simple
operations of poly... | 42.89272 | 688 | 0.60536 | 1,020 | 11,195 | 6.510784 | 0.163725 | 0.025297 | 0.032525 | 0.007529 | 0.638759 | 0.572203 | 0.540882 | 0.540882 | 0.523716 | 0.514079 | 0 | 0.345703 | 0.299509 | 11,195 | 260 | 689 | 43.057692 | 0.501148 | 0.460205 | 0 | 0.181818 | 0 | 0 | 0.028493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082645 | false | 0 | 0.033058 | 0.008264 | 0.190083 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9579214f1258fc2bd3cb6c36569d8b46c5f64147 | 94,635 | py | Python | APiParser.py | AILab-FOI/APi | 2571c52edf6f296c883d94e2f67fb18b42860b91 | [
"MIT"
] | null | null | null | APiParser.py | AILab-FOI/APi | 2571c52edf6f296c883d94e2f67fb18b42860b91 | [
"MIT"
] | 27 | 2021-03-30T15:19:43.000Z | 2021-04-26T09:29:41.000Z | APiParser.py | AILab-FOI/APi | 2571c52edf6f296c883d94e2f67fb18b42860b91 | [
"MIT"
] | null | null | null | # Generated from APi.g4 by ANTLR 4.9
# encoding: utf-8
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u59... | 34.437773 | 240 | 0.554372 | 11,223 | 94,635 | 4.55814 | 0.076807 | 0.018101 | 0.012022 | 0.013293 | 0.684201 | 0.616291 | 0.558742 | 0.517554 | 0.466065 | 0.41436 | 0 | 0.089292 | 0.32806 | 94,635 | 2,747 | 241 | 34.450309 | 0.715187 | 0.002039 | 0 | 0.498354 | 1 | 0.028209 | 0.108492 | 0.090339 | 0 | 0 | 0.000169 | 0 | 0 | 1 | 0.133521 | false | 0.023977 | 0.014575 | 0.054537 | 0.318289 | 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 |
958ae95a3583af232447db86d491418a42126acd | 1,124 | py | Python | poll/models.py | DXDSpirits/appsbackend | 2c69487c4e4d6dc78091ba8030889a5ddc990836 | [
"MIT"
] | null | null | null | poll/models.py | DXDSpirits/appsbackend | 2c69487c4e4d6dc78091ba8030889a5ddc990836 | [
"MIT"
] | null | null | null | poll/models.py | DXDSpirits/appsbackend | 2c69487c4e4d6dc78091ba8030889a5ddc990836 | [
"MIT"
] | null | null | null | from django.db import models
class Poll(models.Model):
id = models.AutoField(primary_key=True)
title = models.CharField(blank=True, null=True, max_length=255)
message = models.TextField(blank=True, null=True)
select = models.IntegerField(blank=True, null=True)
type = models.IntegerField(blank=True... | 32.114286 | 69 | 0.708185 | 145 | 1,124 | 5.372414 | 0.317241 | 0.06932 | 0.100128 | 0.130937 | 0.562259 | 0.528883 | 0.439024 | 0.439024 | 0.282413 | 0.169448 | 0 | 0.011803 | 0.170819 | 1,124 | 34 | 70 | 33.058824 | 0.824034 | 0 | 0 | 0.269231 | 0 | 0 | 0.008905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9592ce9b16b3fda4f2eb3aed88ad0b4736147501 | 866 | py | Python | fum/tests.py | jsavikko/futurice-ldap-user-manager | a7cbb6037360023ef14ea19cf73715160c71de1d | [
"BSD-3-Clause"
] | 111 | 2015-01-27T22:02:35.000Z | 2021-05-06T07:57:56.000Z | fum/tests.py | jsavikko/futurice-ldap-user-manager | a7cbb6037360023ef14ea19cf73715160c71de1d | [
"BSD-3-Clause"
] | 23 | 2015-01-09T12:30:54.000Z | 2022-01-13T00:43:13.000Z | fum/tests.py | jsavikko/futurice-ldap-user-manager | a7cbb6037360023ef14ea19cf73715160c71de1d | [
"BSD-3-Clause"
] | 17 | 2015-08-06T20:05:36.000Z | 2020-08-24T18:56:10.000Z | import sshpubkeys
import unittest
class UtilTestCase(unittest.TestCase):
def test_ssh_key_bits_and_fingerprint(self):
with self.assertRaises(sshpubkeys.InvalidKeyException):
sshpubkeys.SSHKey('an invalid key string')
valid_ssh_key = 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3uta/x/kAwb... | 54.125 | 416 | 0.801386 | 84 | 866 | 8.119048 | 0.690476 | 0.052786 | 0.029326 | 0.061584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090314 | 0.117783 | 866 | 15 | 417 | 57.733333 | 0.802356 | 0 | 0 | 0 | 0 | 0.181818 | 0.528868 | 0.483834 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
959382244899a945d1030c66be82fad91473216d | 1,739 | py | Python | pages/projetos/home.py | daniloaspk/biocharScience | d3edcc88c0e882f91c2d84b728f2ecf93af25f2a | [
"MIT"
] | null | null | null | pages/projetos/home.py | daniloaspk/biocharScience | d3edcc88c0e882f91c2d84b728f2ecf93af25f2a | [
"MIT"
] | null | null | null | pages/projetos/home.py | daniloaspk/biocharScience | d3edcc88c0e882f91c2d84b728f2ecf93af25f2a | [
"MIT"
] | null | null | null | import streamlit as st
import pages.projetos.projeto01 as PageProjetos01
import pages.projetos.projeto02 as PageProjetos02
import pages.projetos.papers as papers
import pages.projetos.sprints as sprints
def home():
text01 = "<h1 style='text-align: center; line-height: 1.15'> Potencial de uso de biocarvões como co... | 56.096774 | 122 | 0.705578 | 231 | 1,739 | 5.290043 | 0.549784 | 0.036007 | 0.062193 | 0.031915 | 0.05401 | 0.05401 | 0.05401 | 0.05401 | 0 | 0 | 0 | 0.031923 | 0.225417 | 1,739 | 30 | 123 | 57.966667 | 0.874536 | 0 | 0 | 0 | 0 | 0.130435 | 0.648074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.26087 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
959a96f81d65d3f8c8023dcaf18c68596d18bea4 | 5,502 | py | Python | main.py | fabston/Discord-Airdrop-Bot | 4ac97bab85e1f7507bafcd579dda37b6fd4da385 | [
"MIT"
] | 10 | 2021-06-22T03:21:24.000Z | 2022-03-27T05:04:54.000Z | main.py | fabston/Discord-Airdrop-Bot | 4ac97bab85e1f7507bafcd579dda37b6fd4da385 | [
"MIT"
] | null | null | null | main.py | fabston/Discord-Airdrop-Bot | 4ac97bab85e1f7507bafcd579dda37b6fd4da385 | [
"MIT"
] | 13 | 2021-06-22T21:22:47.000Z | 2022-03-27T15:59:21.000Z | # --------------------------------------------- #
# Plugin Name : DiscordAirdropBot #
# Author Name : fabston #
# File Name : main.py #
# --------------------------------------------- #
from io import BytesIO
from time import gmtime, strftime
import disc... | 34.173913 | 128 | 0.52799 | 584 | 5,502 | 4.869863 | 0.268836 | 0.025316 | 0.037975 | 0.044304 | 0.28692 | 0.251406 | 0.193038 | 0.193038 | 0.157173 | 0.157173 | 0 | 0.002979 | 0.32879 | 5,502 | 160 | 129 | 34.3875 | 0.765502 | 0.042348 | 0 | 0.295455 | 0 | 0.015152 | 0.198402 | 0.040708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.075758 | 0.05303 | 0 | 0.113636 | 0.075758 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
959f05bbbd18d067f59ddc87bf651b77788ed8e4 | 320 | py | Python | scripts/detect/multi_processor.py | rheinbaylab/cDNA-detector | 72c9415cea8568c11edf696542b8baa967e392ec | [
"BSD-3-Clause"
] | 1 | 2021-07-30T06:42:23.000Z | 2021-07-30T06:42:23.000Z | scripts/detect/multi_processor.py | rheinbaylab/cDNA-detector | 72c9415cea8568c11edf696542b8baa967e392ec | [
"BSD-3-Clause"
] | null | null | null | scripts/detect/multi_processor.py | rheinbaylab/cDNA-detector | 72c9415cea8568c11edf696542b8baa967e392ec | [
"BSD-3-Clause"
] | 1 | 2021-08-23T20:33:07.000Z | 2021-08-23T20:33:07.000Z | from joblib import Parallel,delayed
import multiprocessing
try:
from . import global_para
except ImportError:
import global_para
def apply_parallel(df_grouped, func):
results = Parallel(n_jobs=global_para.n_threads,require='sharedmem')(delayed(func)(group) for name,group in df_grouped)
return results
| 26.666667 | 123 | 0.784375 | 44 | 320 | 5.522727 | 0.613636 | 0.123457 | 0.131687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 320 | 11 | 124 | 29.090909 | 0.883636 | 0 | 0 | 0 | 0 | 0 | 0.028213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.777778 | 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 |
95a24fd309c00b27b11a7800be4c37702b9f2d12 | 694 | py | Python | connect_database.py | HrishikV/ineuron_inceome_prediction_internship | 4a97a7f29d80198f394fcfd880cc5250fe2a0d1e | [
"MIT"
] | null | null | null | connect_database.py | HrishikV/ineuron_inceome_prediction_internship | 4a97a7f29d80198f394fcfd880cc5250fe2a0d1e | [
"MIT"
] | null | null | null | connect_database.py | HrishikV/ineuron_inceome_prediction_internship | 4a97a7f29d80198f394fcfd880cc5250fe2a0d1e | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import warnings
from cassandra.cluster import Cluster
from cassandra.auth import PlainTextAuthProvider
warnings.filterwarnings(action='ignore')
cloud_config={
'secure_connect_bundle':'secure-connect-adult-census-income-prediction.zip'
}
client_id='eqGJcMRfbvJCggwzlZFrFuar'
cli... | 43.375 | 144 | 0.85879 | 78 | 694 | 7.487179 | 0.551282 | 0.061644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027314 | 0.050432 | 694 | 15 | 145 | 46.266667 | 0.858877 | 0 | 0 | 0 | 0 | 0 | 0.383285 | 0.354467 | 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 |
95a2ebede1341760d4e96ca6a26c5261d0d054b2 | 1,079 | py | Python | e_secretary/migrations/0009_profile.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | null | null | null | e_secretary/migrations/0009_profile.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | null | null | null | e_secretary/migrations/0009_profile.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | 1 | 2020-03-08T16:12:34.000Z | 2020-03-08T16:12:34.000Z | # Generated by Django 2.1.7 on 2019-03-29 20:01
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),
('e_secretary', '0008_auto... | 39.962963 | 136 | 0.663577 | 126 | 1,079 | 5.52381 | 0.444444 | 0.068966 | 0.100575 | 0.158046 | 0.357759 | 0.357759 | 0.314655 | 0.314655 | 0.314655 | 0.314655 | 0 | 0.036257 | 0.2076 | 1,079 | 26 | 137 | 41.5 | 0.777778 | 0.041705 | 0 | 0 | 1 | 0 | 0.130814 | 0.063953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95a6bbee95182b1bd7cc44bfcb90f003f47ea87d | 16,289 | py | Python | capstones/capstone_2/med_simulator/web_server.py | cute64627732/repository1 | 0ac71f03daff71438bded8e01e75f77cb0ad5aa7 | [
"MIT"
] | 13 | 2017-05-12T06:17:53.000Z | 2021-11-14T18:36:41.000Z | capstones/capstone_2/med_simulator/web_server.py | cute64627732/repository1 | 0ac71f03daff71438bded8e01e75f77cb0ad5aa7 | [
"MIT"
] | 7 | 2017-08-09T18:37:24.000Z | 2019-12-13T04:21:20.000Z | capstones/capstone_2/med_simulator/web_server.py | cute64627732/repository1 | 0ac71f03daff71438bded8e01e75f77cb0ad5aa7 | [
"MIT"
] | 13 | 2017-08-08T01:59:47.000Z | 2021-02-25T15:54:54.000Z | #web_server.py
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient as AWS #To connect to AWS IOT
#Initializes AWS IOT client
myAWS = AWS("asus")
#Sets the url that is receiving the data
host = "a3f84gpf4vy7nu.iot.us-west-2.amazonaws.com"
portAWS = 8883
myAWS.configureEndpoint(host, portAWS)
#Configures credentials ... | 26.146067 | 188 | 0.67168 | 2,111 | 16,289 | 5.106111 | 0.204169 | 0.019297 | 0.007793 | 0.012988 | 0.258373 | 0.224418 | 0.170981 | 0.147045 | 0.114946 | 0.111142 | 0 | 0.01065 | 0.193014 | 16,289 | 622 | 189 | 26.188103 | 0.809357 | 0.141629 | 0 | 0.203884 | 0 | 0.007282 | 0.138688 | 0.011409 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029126 | null | null | 0.021845 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95a6e3e82c5b3ee188a510ab49e72891371afa1e | 6,779 | py | Python | part1/Pattern Noise/deep_noise_extract/train_denoise_net.py | 4liharandi/Mythesis | b160fa36a890b96bfa8af0725b74d07723fb3a6c | [
"MIT"
] | null | null | null | part1/Pattern Noise/deep_noise_extract/train_denoise_net.py | 4liharandi/Mythesis | b160fa36a890b96bfa8af0725b74d07723fb3a6c | [
"MIT"
] | 1 | 2022-02-21T12:59:43.000Z | 2022-03-26T16:13:44.000Z | part1/Pattern Noise/deep_noise_extract/train_denoise_net.py | 4liharandi/Mythesis | b160fa36a890b96bfa8af0725b74d07723fb3a6c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Untitled1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1E7m0EoAUNm8hn-rtemotVovsJVUjqLhS
"""
from torchvision.transforms import Normalize
import skimage.io
from skimage.transform import resize
import glob
from sklear... | 23.869718 | 119 | 0.596401 | 924 | 6,779 | 4.205628 | 0.244589 | 0.014153 | 0.023417 | 0.013381 | 0.196603 | 0.142306 | 0.060473 | 0.030365 | 0.019043 | 0.019043 | 0 | 0.025756 | 0.27836 | 6,779 | 284 | 120 | 23.869718 | 0.768602 | 0.036289 | 0 | 0.118644 | 1 | 0 | 0.061456 | 0.013027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00565 | false | 0 | 0.124294 | 0 | 0.135593 | 0.022599 | 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 |
95ae8a2a2510b4acd03faf8296c4074df202a833 | 2,012 | py | Python | albam/lib/half_float.py | BlenderCN-Org/albam | 095b17bc3909ac4bedd283c8de906425aa7d41dd | [
"MIT"
] | 2 | 2019-07-05T05:54:40.000Z | 2021-01-05T22:58:18.000Z | albam_reloaded/lib/half_float.py | HenryOfCarim/albam_reloaded | 6a3644df668808ff4e2aadcc7ac9f161076cd59c | [
"MIT"
] | null | null | null | albam_reloaded/lib/half_float.py | HenryOfCarim/albam_reloaded | 6a3644df668808ff4e2aadcc7ac9f161076cd59c | [
"MIT"
] | 1 | 2019-07-05T05:54:36.000Z | 2019-07-05T05:54:36.000Z | import binascii
import struct
def unpack_half_float(float16):
# A function useful to read half-float (used in the uv coords), not supported by the struct module
# http://davidejones.com/blog/1413-python-precision-floating-point/
# TODO: check limitations on the input and raise exceptions
# http://rea... | 30.484848 | 102 | 0.584493 | 263 | 2,012 | 4.319392 | 0.372624 | 0.077465 | 0.056338 | 0.017606 | 0.075704 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146099 | 0.299205 | 2,012 | 65 | 103 | 30.953846 | 0.659574 | 0.195328 | 0 | 0.137255 | 0 | 0 | 0.002484 | 0 | 0 | 0 | 0.061491 | 0.015385 | 0 | 1 | 0.039216 | false | 0 | 0.039216 | 0 | 0.176471 | 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 |
95afdaeb9884deb06428fb12010b0297c5366a78 | 14,299 | py | Python | cm/services/apps/galaxy.py | almahmoud/cloudman | 41067dfd66c6334313069874f5f26e5a06884b71 | [
"MIT"
] | 1 | 2021-02-28T18:59:50.000Z | 2021-02-28T18:59:50.000Z | cm/services/apps/galaxy.py | almahmoud/cloudman | 41067dfd66c6334313069874f5f26e5a06884b71 | [
"MIT"
] | null | null | null | cm/services/apps/galaxy.py | almahmoud/cloudman | 41067dfd66c6334313069874f5f26e5a06884b71 | [
"MIT"
] | null | null | null | """Service implementation for the Galaxy application."""
import os
import urllib2
import subprocess
from datetime import datetime
from cm.services.apps import ApplicationService
from cm.services import service_states
from cm.services import ServiceRole
from cm.services import ServiceDependency
from cm.util import path... | 47.036184 | 114 | 0.600112 | 1,666 | 14,299 | 4.971789 | 0.210684 | 0.020645 | 0.030907 | 0.042497 | 0.254497 | 0.183871 | 0.140287 | 0.105638 | 0.075818 | 0.052879 | 0 | 0.003281 | 0.317994 | 14,299 | 303 | 115 | 47.191419 | 0.846083 | 0.108609 | 0 | 0.2 | 0 | 0.009524 | 0.135271 | 0.014028 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014286 | 0.085714 | 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 |
95b3b9cee42cca5c9e16f1a29e9fe200fece8d1a | 1,236 | py | Python | python/lexicographical_Numbers.py | shub0/leetcode | 8221d10f201d001abcb15b27c9cf4b8cd5060f1f | [
"BSD-3-Clause"
] | null | null | null | python/lexicographical_Numbers.py | shub0/leetcode | 8221d10f201d001abcb15b27c9cf4b8cd5060f1f | [
"BSD-3-Clause"
] | null | null | null | python/lexicographical_Numbers.py | shub0/leetcode | 8221d10f201d001abcb15b27c9cf4b8cd5060f1f | [
"BSD-3-Clause"
] | null | null | null | '''
Given an integer n, return 1 - n in lexicographical order.
For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9].
Please optimize your algorithm to use less time and space. The input size may be as large as 5,000,000.
'''
class Solution(object):
def lexicalOrder(self, n):
"""
:type ... | 23.320755 | 103 | 0.463592 | 151 | 1,236 | 3.794702 | 0.443709 | 0.052356 | 0.031414 | 0.034904 | 0.108202 | 0.108202 | 0.108202 | 0.108202 | 0.108202 | 0 | 0 | 0.073446 | 0.427184 | 1,236 | 52 | 104 | 23.769231 | 0.735876 | 0.013754 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95b4adaf62d8d37f762420a5db3243a703bebc75 | 12,749 | py | Python | bulk_sms/models.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 23 | 2015-10-28T14:08:23.000Z | 2021-09-11T21:38:41.000Z | bulk_sms/models.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 4 | 2019-12-05T20:36:10.000Z | 2020-06-05T18:41:54.000Z | bulk_sms/models.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 11 | 2015-10-28T15:49:56.000Z | 2021-09-14T14:18:36.000Z | import datetime
import random
from django.db import models
from django.conf import settings
from django.core.exceptions import ValidationError
from django.template.loader import render_to_string
from django.urls import reverse
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_... | 39.348765 | 100 | 0.640442 | 1,399 | 12,749 | 5.639028 | 0.220872 | 0.017746 | 0.014197 | 0.021295 | 0.205096 | 0.169603 | 0.153125 | 0.117252 | 0.097604 | 0.085182 | 0 | 0.003971 | 0.269119 | 12,749 | 323 | 101 | 39.470588 | 0.84267 | 0.167778 | 0 | 0.188341 | 0 | 0 | 0.091243 | 0.005407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121076 | false | 0 | 0.06278 | 0.03139 | 0.502242 | 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 |
95bbf647f812542694ec0e03404a07ffbbef7dda | 114 | py | Python | novabot/permission.py | Nova-Noir/novabot_v2 | 5e2cdd0981f8556a55ba61b62720668f98baef12 | [
"MIT"
] | 3 | 2022-03-21T09:47:32.000Z | 2022-03-22T01:58:43.000Z | novabot/permission.py | Nova-Noir/novabot_v2 | 5e2cdd0981f8556a55ba61b62720668f98baef12 | [
"MIT"
] | 3 | 2022-02-23T16:53:50.000Z | 2022-02-23T16:59:58.000Z | novabot/permission.py | Nova-Noir/novabot_v2 | 5e2cdd0981f8556a55ba61b62720668f98baef12 | [
"MIT"
] | 1 | 2022-03-17T12:27:54.000Z | 2022-03-17T12:27:54.000Z |
BLACK = -999
DEFAULT = 0
NORMAL = 1
PRIVATE = 10
ADMIN = 21
OWNER = 22
WHITE = 51
SUPERUSER = 999
SU = SUPERUSER
| 10.363636 | 15 | 0.666667 | 18 | 114 | 4.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 0.245614 | 114 | 10 | 16 | 11.4 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95c021cb945e4bedd84ed917407009cf50904e41 | 519 | py | Python | Program/input_demo.py | eric1357a/Sentiment-Aware-POI-search | c69f9c7be2cdc534be42486c886f35284feff947 | [
"MIT"
] | null | null | null | Program/input_demo.py | eric1357a/Sentiment-Aware-POI-search | c69f9c7be2cdc534be42486c886f35284feff947 | [
"MIT"
] | null | null | null | Program/input_demo.py | eric1357a/Sentiment-Aware-POI-search | c69f9c7be2cdc534be42486c886f35284feff947 | [
"MIT"
] | null | null | null | import naive_bayes_classifier
sentence = raw_input("Please enter a sentence for classifying : ")
data = {0: [sentence]}
trainingDataFile = 'data/full_training_dataset.csv'
classifierDumpFile = 'data/test/naivebayes_test_model.pickle'
trainingRequired = 0
print 'Started to instantiate Naive Bayes Classifier'
nb = na... | 34.6 | 89 | 0.755299 | 55 | 519 | 6.963636 | 0.618182 | 0.104439 | 0.156658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004577 | 0.157996 | 519 | 15 | 90 | 34.6 | 0.871854 | 0 | 0 | 0 | 0 | 0 | 0.355769 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95c06bac8c0060a7b2eddcbde7f3c44f9e9541fb | 867 | py | Python | compare/migrations/0002_auto_20200511_1717.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | 3 | 2019-02-25T13:00:55.000Z | 2021-02-02T22:10:08.000Z | compare/migrations/0002_auto_20200511_1717.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | 46 | 2017-05-29T10:13:52.000Z | 2021-09-22T18:04:12.000Z | compare/migrations/0002_auto_20200511_1717.py | l0rb/buzzword | 1f12875cfb883be07890b2da5482d3b53d878a09 | [
"MIT"
] | 3 | 2019-11-27T19:14:37.000Z | 2020-10-27T15:34:41.000Z | # Generated by Django 3.0.6 on 2020-05-11 17:17
from django.db import migrations, models
import martor.models
class Migration(migrations.Migration):
dependencies = [
("compare", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Post",
fields=[
... | 26.272727 | 61 | 0.457901 | 67 | 867 | 5.850746 | 0.716418 | 0.091837 | 0.117347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044534 | 0.430219 | 867 | 32 | 62 | 27.09375 | 0.748988 | 0.051903 | 0 | 0.115385 | 1 | 0 | 0.065854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95cb802675f1a67b48163a012bc9103c2785002f | 1,108 | py | Python | package/cloudshell/cp/azure/domain/services/lock_service.py | tim-spiglanin/Azure-Shell | 58c52994f0d6cfd798c5dca33737419ec18363d4 | [
"Apache-2.0"
] | 5 | 2016-09-08T08:33:47.000Z | 2020-02-10T12:31:15.000Z | package/cloudshell/cp/azure/domain/services/lock_service.py | tim-spiglanin/Azure-Shell | 58c52994f0d6cfd798c5dca33737419ec18363d4 | [
"Apache-2.0"
] | 505 | 2016-08-09T07:41:03.000Z | 2021-02-08T20:26:46.000Z | package/cloudshell/cp/azure/domain/services/lock_service.py | tim-spiglanin/Azure-Shell | 58c52994f0d6cfd798c5dca33737419ec18363d4 | [
"Apache-2.0"
] | 5 | 2016-12-21T12:52:55.000Z | 2021-07-08T09:50:42.000Z | from threading import Lock
class GenericLockProvider(object):
def __init__(self):
self.lock_dictionary = {}
self._lock = Lock()
def _allocate_lock(self):
"""
Allocates a new lock
:return:
"""
return Lock()
def get_resource_lock(self, lock_key, log... | 30.777778 | 79 | 0.587545 | 129 | 1,108 | 4.775194 | 0.271318 | 0.168831 | 0.233766 | 0.12987 | 0.482143 | 0.36039 | 0.243506 | 0.196429 | 0.196429 | 0.133117 | 0 | 0 | 0.326715 | 1,108 | 35 | 80 | 31.657143 | 0.825737 | 0.099278 | 0 | 0.3 | 0 | 0 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.4 | 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 |
95d80ffa38477b40f195504cdbf021c0fbb3215c | 488 | py | Python | src/poo_functions/functions_standard.py | alfmorais/poo-python | 78d09ee6fe9595b445c152f270c9dcf6f3e1d242 | [
"MIT"
] | null | null | null | src/poo_functions/functions_standard.py | alfmorais/poo-python | 78d09ee6fe9595b445c152f270c9dcf6f3e1d242 | [
"MIT"
] | null | null | null | src/poo_functions/functions_standard.py | alfmorais/poo-python | 78d09ee6fe9595b445c152f270c9dcf6f3e1d242 | [
"MIT"
] | null | null | null | from random import randint
def random_numbers_for_lotofacil():
numbers = set()
while True:
number = randint(0, 25)
numbers.add(number)
if len(numbers) >= 14:
break
return numbers
def generate_lotofacil_numbers(quantity: int):
game = []
for _ in range(quant... | 16.827586 | 48 | 0.643443 | 57 | 488 | 5.315789 | 0.54386 | 0.158416 | 0.105611 | 0.165017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.270492 | 488 | 28 | 49 | 17.428571 | 0.828652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0.058824 | 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 |
95da6451a8129aff6c2343d0c4e5d259f5913f54 | 425 | py | Python | Bosikov_Garik_dz_08/Task_8_4.py | gbosikov/Python_Course | 79d70dd6cd48dff158310ac82093c8a8c57ea7c4 | [
"MIT"
] | null | null | null | Bosikov_Garik_dz_08/Task_8_4.py | gbosikov/Python_Course | 79d70dd6cd48dff158310ac82093c8a8c57ea7c4 | [
"MIT"
] | null | null | null | Bosikov_Garik_dz_08/Task_8_4.py | gbosikov/Python_Course | 79d70dd6cd48dff158310ac82093c8a8c57ea7c4 | [
"MIT"
] | null | null | null | from functools import wraps
def val_checker(valid_func):
def _checker(func):
@wraps(func)
def valid(param):
if isinstance(param, valid_func) and param >= 0:
return func(param)
raise ValueError(f'wrong val {param}')
return valid
return _checker
... | 19.318182 | 60 | 0.607059 | 53 | 425 | 4.735849 | 0.528302 | 0.079681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.298824 | 425 | 21 | 61 | 20.238095 | 0.83557 | 0.077647 | 0 | 0 | 0 | 0 | 0.044156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95dfb2e3958549c38fd686c0e6428ea0745d936a | 527 | py | Python | demos/flask-hashing-login-demo/badpassword/models.py | demohack/nonpub | e53bcec7115bcb2605687bb272d843e1e8d17ae5 | [
"MIT"
] | null | null | null | demos/flask-hashing-login-demo/badpassword/models.py | demohack/nonpub | e53bcec7115bcb2605687bb272d843e1e8d17ae5 | [
"MIT"
] | null | null | null | demos/flask-hashing-login-demo/badpassword/models.py | demohack/nonpub | e53bcec7115bcb2605687bb272d843e1e8d17ae5 | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
def connect_db(app):
"""Connect to database."""
db.app = app
db.init_app(app)
class BadUser(db.Model):
"Site user."
__tablename__ = "bad_users"
id = db.Column(db.Integer,
primary_key=True,
aut... | 18.821429 | 40 | 0.535104 | 56 | 527 | 4.875 | 0.571429 | 0.087912 | 0.10989 | 0.102564 | 0.197802 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.364326 | 527 | 27 | 41 | 19.518519 | 0.814925 | 0.058824 | 0 | 0 | 0 | 0 | 0.037924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.0625 | 0 | 0.4375 | 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 |
95e75c1509330a9b57a1cd198f8bd718904071c0 | 50,605 | py | Python | lilypondtobvc/src/convertermodules/audiotrackmanager.py | prof-spock/LilypondToBandVideoConverter | c78ff3ef0f052c753842084fbcc8cd2518c79998 | [
"MIT"
] | 6 | 2020-08-01T10:37:25.000Z | 2022-02-24T20:26:24.000Z | lilypondtobvc/src/convertermodules/audiotrackmanager.py | prof-spock/LilypondToBandVideoConverter | c78ff3ef0f052c753842084fbcc8cd2518c79998 | [
"MIT"
] | null | null | null | lilypondtobvc/src/convertermodules/audiotrackmanager.py | prof-spock/LilypondToBandVideoConverter | c78ff3ef0f052c753842084fbcc8cd2518c79998 | [
"MIT"
] | null | null | null | # audiotrackmanager -- generates audio tracks from midi file and provides
# several transformations on it (e.g. instrument
# postprocessing and mixdown
#
# author: Dr. Thomas Tensi, 2006 - 2018
#====================
# IMPORTS
#====================
from numbers import Number
i... | 39.535156 | 79 | 0.543543 | 3,522 | 50,605 | 7.752413 | 0.186542 | 0.037357 | 0.007142 | 0.004981 | 0.165067 | 0.127783 | 0.114196 | 0.100901 | 0.08105 | 0.08105 | 0 | 0.004215 | 0.357652 | 50,605 | 1,279 | 80 | 39.566067 | 0.835753 | 0.145559 | 0 | 0.291718 | 1 | 0 | 0.077696 | 0.003936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046972 | false | 0.00618 | 0.018541 | 0 | 0.096415 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.