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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65fb1c17ed16a1bcbf3588ea0f9d37aed7647d1d | 916 | py | Python | python/least_subset_solver.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | 3 | 2015-11-24T17:06:58.000Z | 2018-05-01T14:03:57.000Z | python/least_subset_solver.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | python/least_subset_solver.py | josephlewis42/personal_codebase | aa0fff9a908ab90bc78d24aa69d1b91163c35314 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# Apache License 2011-11 Joseph Lewis <joehms22@gmail.com>
import re
while True:
f_name = raw_input("Enter the name of the file or q to quit: ")
if f_name == 'q':
exit()
with open(f_name) as f:
tmp = map(float, re.sub('[^0-9 -.]','',f.read()).split(' ')) # Read the file (removing garba... | 26.941176 | 143 | 0.600437 | 159 | 916 | 3.433962 | 0.528302 | 0.027473 | 0.040293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020319 | 0.247817 | 916 | 33 | 144 | 27.757576 | 0.772134 | 0.319869 | 0 | 0.173913 | 0 | 0 | 0.169903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65ff03f7dbeb10f99fb84d78d6f82402f8bf6a7c | 1,472 | py | Python | patients/migrations/0001_initial.py | betaflag/urgenceqc | c501e96189902489f8a09b728aa1c826d9bc4742 | [
"MIT"
] | null | null | null | patients/migrations/0001_initial.py | betaflag/urgenceqc | c501e96189902489f8a09b728aa1c826d9bc4742 | [
"MIT"
] | null | null | null | patients/migrations/0001_initial.py | betaflag/urgenceqc | c501e96189902489f8a09b728aa1c826d9bc4742 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-09 19:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='HourlyData',
fields=[
('id', models.BigAuto... | 46 | 130 | 0.627717 | 161 | 1,472 | 5.571429 | 0.42236 | 0.100334 | 0.049052 | 0.120401 | 0.428094 | 0.365663 | 0.343367 | 0.343367 | 0.343367 | 0.147157 | 0 | 0.026009 | 0.242527 | 1,472 | 31 | 131 | 47.483871 | 0.778475 | 0.030571 | 0 | 0 | 1 | 0 | 0.206316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.208333 | 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 |
5a011df501ca4e84f13defb6dbfada8ece4801e5 | 300 | py | Python | psyrun/tests/tasks/task_square_load_balanced.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 2 | 2017-07-03T20:03:08.000Z | 2018-04-19T20:36:17.000Z | psyrun/tests/tasks/task_square_load_balanced.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 67 | 2015-02-19T02:11:14.000Z | 2018-04-20T15:51:57.000Z | psyrun/tests/tasks/task_square_load_balanced.py | jgosmann/psyrun | 42f58223f864005c9ba427fcc0ccf44bd94df1e8 | [
"MIT"
] | 1 | 2015-11-13T16:54:16.000Z | 2015-11-13T16:54:16.000Z | from psyrun import Param
from psyrun.backend import LoadBalancingBackend
pspace = Param(x=range(4))
max_jobs = 2
backend = LoadBalancingBackend
exclude_from_result = ['z']
def setup(proc_id):
assert proc_id in (0, 1)
return {'p': 2}
def execute(x, p):
return {'y': x ** p, 'z': -1}
| 16.666667 | 47 | 0.67 | 46 | 300 | 4.26087 | 0.608696 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.193333 | 300 | 17 | 48 | 17.647059 | 0.785124 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a182b14f8a84aeae911e23911c828c60982af02 | 662 | py | Python | tests/conftest.py | alexis-tonnoir/spacy-lefff | a06ab91e936101ed241b57dde8d20f6a776e888d | [
"MIT"
] | null | null | null | tests/conftest.py | alexis-tonnoir/spacy-lefff | a06ab91e936101ed241b57dde8d20f6a776e888d | [
"MIT"
] | null | null | null | tests/conftest.py | alexis-tonnoir/spacy-lefff | a06ab91e936101ed241b57dde8d20f6a776e888d | [
"MIT"
] | null | null | null | import pytest
import spacy
from spacy_lefff import POSTagger, LefffLemmatizer
@pytest.fixture(scope='session')
def nlp():
nlp = spacy.load('fr')
french_lemmatizer = LefffLemmatizer()
nlp.add_pipe(french_lemmatizer, after='parser')
return nlp
@pytest.fixture(scope='session')
def nlp_pos():
nlp = ... | 24.518519 | 69 | 0.73716 | 87 | 662 | 5.37931 | 0.310345 | 0.136752 | 0.115385 | 0.160256 | 0.472222 | 0.277778 | 0.205128 | 0.205128 | 0.205128 | 0 | 0 | 0 | 0.145015 | 662 | 26 | 70 | 25.461538 | 0.826855 | 0 | 0 | 0.35 | 0 | 0 | 0.083082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0 | 0.45 | 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 |
5a19c081f538a6ffc89297cb63d37f498905de5d | 660 | py | Python | app/core/migrations/0002_auto_20210912_0234.py | JvitorS23/label_checker | 3a37e726b767c94c9677dc0fdb60df95a2c7c46c | [
"MIT"
] | null | null | null | app/core/migrations/0002_auto_20210912_0234.py | JvitorS23/label_checker | 3a37e726b767c94c9677dc0fdb60df95a2c7c46c | [
"MIT"
] | null | null | null | app/core/migrations/0002_auto_20210912_0234.py | JvitorS23/label_checker | 3a37e726b767c94c9677dc0fdb60df95a2c7c46c | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-09-12 02:34
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='... | 25.384615 | 106 | 0.613636 | 70 | 660 | 5.714286 | 0.642857 | 0.05 | 0.125 | 0.145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075157 | 0.274242 | 660 | 25 | 107 | 26.4 | 0.759916 | 0.065152 | 0 | 0.210526 | 1 | 0 | 0.104065 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 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 |
5a1db028863f95a57a82c62896f33e64dd5c85cf | 4,766 | py | Python | mainapp/views.py | mmiyaji/Dansible | 06d5ea1fce1345388e7101db33f23e6460e3c3cf | [
"MIT"
] | null | null | null | mainapp/views.py | mmiyaji/Dansible | 06d5ea1fce1345388e7101db33f23e6460e3c3cf | [
"MIT"
] | null | null | null | mainapp/views.py | mmiyaji/Dansible | 06d5ea1fce1345388e7101db33f23e6460e3c3cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
'''
views.py
Created by mmiyaji on 2016-07-10.
Copyright (c) 2016 ruhenheim.org. All rights reserved.
'''
from django.shortcuts import render
from django.http import HttpResponse
import os, re, sys, commands, time, datetime, random, logging
from django.http import HttpResponse... | 31.773333 | 74 | 0.61645 | 527 | 4,766 | 5.413662 | 0.256167 | 0.066597 | 0.037855 | 0.035752 | 0.403084 | 0.306344 | 0.285314 | 0.259376 | 0.189975 | 0.160533 | 0 | 0.008757 | 0.281158 | 4,766 | 149 | 75 | 31.986577 | 0.823993 | 0.08099 | 0 | 0.423423 | 0 | 0 | 0.090025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036036 | false | 0.126126 | 0.189189 | 0 | 0.288288 | 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 |
5a2391e49452fa8baaabfc903fb7dbe0c2c3cc5f | 8,722 | py | Python | VulScritp/forward/dnsteal.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 8 | 2019-02-17T20:11:46.000Z | 2019-10-18T06:27:16.000Z | VulScritp/forward/dnsteal.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | null | null | null | VulScritp/forward/dnsteal.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 4 | 2019-02-17T23:00:18.000Z | 2019-10-18T06:27:14.000Z | #!/usr/bin/env python
# ~ \x90
########################
#
# TODO (in order of priority):
#
# * Windows PowerShell command variant (This will be 2.1 coming soon).
# * fix bugs when no filename is entered (i know it exists just cba atm)
# * possibly implement hex transfer
#
import socket
import sys
import binascii
imp... | 34.338583 | 329 | 0.533593 | 1,499 | 8,722 | 3.042028 | 0.228819 | 0.013158 | 0.007895 | 0.010526 | 0.285965 | 0.250439 | 0.211623 | 0.20636 | 0.201096 | 0.183553 | 0 | 0.049488 | 0.216923 | 8,722 | 253 | 330 | 34.474308 | 0.618155 | 0.085416 | 0 | 0.239362 | 0 | 0.053191 | 0.457165 | 0.041234 | 0 | 0 | 0 | 0.003953 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.297872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a370375bfd25ae9825a982d5010a6c79aea4868 | 6,404 | py | Python | tests/test_archs.py | IanYeung/ReCp | 1a7ace0e1ca3c262e24a222f3f0ab0d5674e9410 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/test_archs.py | IanYeung/ReCp | 1a7ace0e1ca3c262e24a222f3f0ab0d5674e9410 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/test_archs.py | IanYeung/ReCp | 1a7ace0e1ca3c262e24a222f3f0ab0d5674e9410 | [
"Apache-2.0",
"MIT"
] | null | null | null | import cv2
import flow_vis
import numpy as np
import matplotlib.pyplot as plt
import torch
from basicsr.archs import build_network
from basicsr.utils.matlab_functions import bgr2ycbcr, ycbcr2bgr
def get_encoderdecoder():
opt = {'type': 'EncoderDecoder', 'depth': 2, 'nf': 64, 'num_in_ch': 3, 'num_out_ch': 3, 'co... | 32.180905 | 146 | 0.619769 | 973 | 6,404 | 3.873587 | 0.135663 | 0.038206 | 0.043778 | 0.052534 | 0.733882 | 0.724861 | 0.664633 | 0.649509 | 0.615813 | 0.587689 | 0 | 0.042199 | 0.193317 | 6,404 | 198 | 147 | 32.343434 | 0.687379 | 0.380856 | 0 | 0.357143 | 0 | 0 | 0.171178 | 0.010828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130952 | false | 0 | 0.083333 | 0 | 0.345238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a38351128b8421188c46a287f2721769fec13b4 | 780 | py | Python | common/appenginepatch/ragendja/auth/hybrid_models.py | lstoll/tetherme | 8b0bf6d80498bd365830728674a3024a83b7eb04 | [
"MIT"
] | 2 | 2017-07-25T17:53:01.000Z | 2018-06-27T10:16:10.000Z | app2/common/appenginepatch/ragendja/auth/hybrid_models.py | nurey/disclosed | 4b55fb082720b602168ce1e2d9f4699d970ae309 | [
"MIT"
] | null | null | null | app2/common/appenginepatch/ragendja/auth/hybrid_models.py | nurey/disclosed | 4b55fb082720b602168ce1e2d9f4699d970ae309 | [
"MIT"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from google.appengine.ext import db
from ragendja.auth.google_models import GoogleUserTraits
class User(GoogleUserTraits):
"""User class that provides support for Django and Google Accounts."""
user = db.UserProperty()
username = db.StringProperty(req... | 39 | 75 | 0.728205 | 96 | 780 | 5.697917 | 0.489583 | 0.120658 | 0.073126 | 0.09872 | 0.113346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158974 | 780 | 19 | 76 | 41.052632 | 0.833841 | 0.082051 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0.066667 | 0.8 | 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 |
5a393cc789d85b9fce438cfbe316700501ee5f71 | 1,155 | py | Python | olc_webportalv2/data/migrations/0001_initial.py | OLC-Bioinformatics/olc_genomics_portal | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 3 | 2019-01-03T21:22:21.000Z | 2019-04-23T15:47:29.000Z | olc_webportalv2/data/migrations/0001_initial.py | lowandrew/olc_webportalv2 | e75ba1b7af85bb25b59138d31e268ecde6616208 | [
"MIT"
] | 49 | 2019-01-03T18:15:12.000Z | 2022-03-11T23:37:20.000Z | olc_webportalv2/data/migrations/0001_initial.py | OLC-Bioinformatics/olc_webportalv2 | d70ec669a3a49106f8290fff5dee089726259a23 | [
"MIT"
] | 58 | 2019-01-03T21:21:59.000Z | 2021-11-02T18:00:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-09-04 15:25
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations... | 38.5 | 157 | 0.638961 | 129 | 1,155 | 5.55814 | 0.527132 | 0.104603 | 0.087866 | 0.112971 | 0.376569 | 0.376569 | 0.284519 | 0.284519 | 0.284519 | 0.284519 | 0 | 0.031215 | 0.223377 | 1,155 | 29 | 158 | 39.827586 | 0.768116 | 0.058874 | 0 | 0 | 1 | 0 | 0.080258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
5a3dfd5e71172e58f74c15394e2186ec4598d998 | 2,263 | py | Python | backend/investment/views.py | doanguyen/technical-test | a10214d94d8aa24cb16cdd152314facb3ebc93c5 | [
"MIT"
] | null | null | null | backend/investment/views.py | doanguyen/technical-test | a10214d94d8aa24cb16cdd152314facb3ebc93c5 | [
"MIT"
] | null | null | null | backend/investment/views.py | doanguyen/technical-test | a10214d94d8aa24cb16cdd152314facb3ebc93c5 | [
"MIT"
] | null | null | null | from django.db.models import Q
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView
from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response
from rest_framework.views import APIView
from investment.models import Investment
from investment.se... | 36.5 | 112 | 0.759169 | 267 | 2,263 | 6.172285 | 0.303371 | 0.039442 | 0.118325 | 0.048544 | 0.083738 | 0.055825 | 0.055825 | 0.055825 | 0.055825 | 0.055825 | 0 | 0.002622 | 0.157313 | 2,263 | 61 | 113 | 37.098361 | 0.861563 | 0.109589 | 0 | 0.114286 | 0 | 0 | 0.045155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.2 | 0 | 0.657143 | 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 |
5a4087a304069e77d2140de1afeac067e34cd72e | 1,944 | py | Python | sdk/python/pulumi_aws/get_caller_identity.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/get_caller_identity.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/get_caller_identity.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from . import utilities, tables
class GetCallerIdentityResult:
"""... | 35.345455 | 111 | 0.644547 | 255 | 1,944 | 4.647059 | 0.392157 | 0.068354 | 0.054008 | 0.084388 | 0.162025 | 0.124051 | 0 | 0 | 0 | 0 | 0 | 0.000698 | 0.26286 | 1,944 | 54 | 112 | 36 | 0.826239 | 0.119342 | 0 | 0 | 1 | 0 | 0.175797 | 0.036795 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.296296 | 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 |
5a45888d293452b1c795c86c713398a26aa80643 | 415 | py | Python | apps/blog/migrations/0005_blogentry_is_active.py | deniskrumko/deniskrumko | 613c0c3eac953d2e8482a2e66fce7d3570770b2c | [
"MIT"
] | 2 | 2019-07-09T01:42:04.000Z | 2020-04-09T16:44:59.000Z | apps/blog/migrations/0005_blogentry_is_active.py | deniskrumko/deniskrumko | 613c0c3eac953d2e8482a2e66fce7d3570770b2c | [
"MIT"
] | 5 | 2019-12-30T22:16:38.000Z | 2020-09-11T18:13:14.000Z | apps/blog/migrations/0005_blogentry_is_active.py | deniskrumko/deniskrumko | 613c0c3eac953d2e8482a2e66fce7d3570770b2c | [
"MIT"
] | 1 | 2019-07-09T01:42:07.000Z | 2019-07-09T01:42:07.000Z | # Generated by Django 2.0.5 on 2018-09-03 09:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20180828_2007'),
]
operations = [
migrations.AddField(
model_name='blogentry',
name='is_active',
... | 21.842105 | 78 | 0.612048 | 46 | 415 | 5.391304 | 0.782609 | 0.048387 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102649 | 0.272289 | 415 | 18 | 79 | 23.055556 | 0.718543 | 0.108434 | 0 | 0 | 1 | 0 | 0.146739 | 0.0625 | 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 |
5a4e7c9ca3614822202276a5c202a928a2385592 | 996 | py | Python | ProblemSolving/array.py | pavi-ninjaac/HackerRank | 1808c8ee8fb475e453aa1c19feb3734fa2be6325 | [
"MIT"
] | null | null | null | ProblemSolving/array.py | pavi-ninjaac/HackerRank | 1808c8ee8fb475e453aa1c19feb3734fa2be6325 | [
"MIT"
] | null | null | null | ProblemSolving/array.py | pavi-ninjaac/HackerRank | 1808c8ee8fb475e453aa1c19feb3734fa2be6325 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 23 12:22:37 2020
@author: ninjaac
"""
#############################################################################################
#Array manupulation
"""def matchingStrings(s, q):
for query in q:
lenth = 0
for strings in s:
... | 15.809524 | 95 | 0.383534 | 128 | 996 | 2.984375 | 0.492188 | 0.02356 | 0.099476 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04463 | 0.28012 | 996 | 62 | 96 | 16.064516 | 0.488145 | 0.11747 | 0 | 0 | 0 | 0 | 0.066826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a4f421ac716fd7e4e20b67156f00400b6dfaf62 | 1,385 | py | Python | test/reflection/test_exception.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | null | null | null | test/reflection/test_exception.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | 25 | 2021-10-03T06:19:05.000Z | 2022-03-27T12:48:57.000Z | test/reflection/test_exception.py | HansBug/hbutils | 6872311c8a441c5955572e0093b10189a2b90708 | [
"Apache-2.0"
] | null | null | null | import pytest
from hbutils.reflection import str_traceback
@pytest.mark.unittest
class TestReflectionException:
def test_str_traceback(self):
def func1(x):
return func2(x * 3 + 1)
def func2(x):
if x % 2 == 0:
return func3(x)
else:
... | 28.265306 | 57 | 0.532852 | 168 | 1,385 | 4.255952 | 0.255952 | 0.111888 | 0.215385 | 0.097902 | 0.447552 | 0.397203 | 0.397203 | 0.388811 | 0.226573 | 0.226573 | 0 | 0.027879 | 0.404332 | 1,385 | 48 | 58 | 28.854167 | 0.838788 | 0 | 0 | 0.25 | 0 | 0 | 0.155957 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.125 | false | 0 | 0.05 | 0.025 | 0.275 | 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 |
5a516a195fce2517b66e675e6817a6a74167eeaf | 5,353 | py | Python | utilities/makegraph.py | apepkuss/TSTL-Extensions | e87bb0a0a2dfb886f9cd31739911a247a8928b3e | [
"Apache-2.0"
] | null | null | null | utilities/makegraph.py | apepkuss/TSTL-Extensions | e87bb0a0a2dfb886f9cd31739911a247a8928b3e | [
"Apache-2.0"
] | null | null | null | utilities/makegraph.py | apepkuss/TSTL-Extensions | e87bb0a0a2dfb886f9cd31739911a247a8928b3e | [
"Apache-2.0"
] | null | null | null | import sut
import sys
from graphviz import Digraph
import random
def breakByNumber(s):
breaks = []
curr = ""
for c in xrange(0,len(s)):
if curr == "":
curr += s[c]
elif (s[c] in ['0','1','2','3','4','5','6','7','8','9']) == (curr[-1] in ['0','1','2','3','4','5','6','7','8','9'])... | 27.880208 | 124 | 0.424061 | 616 | 5,353 | 3.685065 | 0.219156 | 0.048458 | 0.043172 | 0.023789 | 0.087225 | 0.059912 | 0.038767 | 0.038767 | 0.038767 | 0.014097 | 0 | 0.05783 | 0.424995 | 5,353 | 191 | 125 | 28.026178 | 0.679662 | 0.010461 | 0 | 0.267442 | 0 | 0 | 0.026833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.005814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a52b7d232cdfd4d4a879db5a6acc500e7f7083c | 3,718 | py | Python | api/namex/services/name_request/auto_analyse/__init__.py | riyazuddinsyed/namex | c100ef4378794f509b738d38276e3b902d26067a | [
"Apache-2.0"
] | null | null | null | api/namex/services/name_request/auto_analyse/__init__.py | riyazuddinsyed/namex | c100ef4378794f509b738d38276e3b902d26067a | [
"Apache-2.0"
] | null | null | null | api/namex/services/name_request/auto_analyse/__init__.py | riyazuddinsyed/namex | c100ef4378794f509b738d38276e3b902d26067a | [
"Apache-2.0"
] | null | null | null | from enum import Enum
from nltk.stem import PorterStemmer
from namex.constants import EntityTypes, DesignationPositionCodes
porter = PorterStemmer()
# Limit number of words to analyse
# TODO: We can set this to three later (in PROD), but this is way easier to test with a higher max limit
# eg. I can easily test for ... | 36.45098 | 120 | 0.698763 | 453 | 3,718 | 5.560706 | 0.441501 | 0.069075 | 0.0131 | 0.044065 | 0.162763 | 0.084954 | 0.057166 | 0.057166 | 0.057166 | 0.057166 | 0 | 0.000696 | 0.227273 | 3,718 | 101 | 121 | 36.811881 | 0.876088 | 0.285637 | 0 | 0.181818 | 0 | 0 | 0.135032 | 0.028528 | 0 | 0 | 0 | 0.009901 | 0 | 1 | 0.060606 | false | 0 | 0.045455 | 0 | 0.681818 | 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 |
5a563c670f6a0996124760432a25ca5058b92169 | 726 | py | Python | tests/sentry/interfaces/query/tests.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | 2 | 2015-10-14T12:45:32.000Z | 2016-01-27T03:24:43.000Z | tests/sentry/interfaces/query/tests.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/interfaces/query/tests.py | NickPresta/sentry | ed3e6034ef560e18f392ba30071de860557b7b43 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from sentry.testutils import TestCase, fixture
from sentry.interfaces import Query
class QueryTest(TestCase):
@fixture
def interface(self):
return Query(query='SELECT 1', engine='psycopg2')
def test_serialize_behavior(self):
... | 26.888889 | 66 | 0.658402 | 83 | 726 | 5.554217 | 0.409639 | 0.197397 | 0.091106 | 0.149675 | 0.112798 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005338 | 0.225895 | 726 | 26 | 67 | 27.923077 | 0.814947 | 0.028926 | 0 | 0 | 0 | 0 | 0.044097 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.222222 | false | 0 | 0.166667 | 0.055556 | 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 |
5a59a628c7d1fba37a16ca131f138e797e859e53 | 2,456 | py | Python | libzip/Stat.py | KOLANICH-libs/libzip.py | e7610424e06ea336c5f3a02be3f81141e9e42540 | [
"Unlicense"
] | null | null | null | libzip/Stat.py | KOLANICH-libs/libzip.py | e7610424e06ea336c5f3a02be3f81141e9e42540 | [
"Unlicense"
] | null | null | null | libzip/Stat.py | KOLANICH-libs/libzip.py | e7610424e06ea336c5f3a02be3f81141e9e42540 | [
"Unlicense"
] | null | null | null | import platform
import typing
from collections.abc import ByteString
from ctypes import CDLL, POINTER, byref, c_byte, c_char_p, c_int8, c_int16, c_int32, cast
from enum import _decompose
from datetime import datetime
from icecream import ic
from . import functions as f
from ._inttypes import *
from .callbacks import... | 24.078431 | 130 | 0.736564 | 336 | 2,456 | 5.238095 | 0.297619 | 0.047727 | 0.051136 | 0.071591 | 0.150568 | 0.043182 | 0.043182 | 0 | 0 | 0 | 0 | 0.003837 | 0.151059 | 2,456 | 101 | 131 | 24.316832 | 0.840288 | 0 | 0 | 0.131579 | 0 | 0 | 0.02728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.210526 | 0.026316 | 0.592105 | 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 |
5a5e31315176838796495e471d0dad8894f082ec | 493 | py | Python | test/programytest/extensions/test_base.py | cdoebler1/AIML2 | ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | test/programytest/extensions/test_base.py | MikeyBeez/program-y | 00d7a0c7d50062f18f0ab6f4a041068e119ef7f0 | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | test/programytest/extensions/test_base.py | VProgramMist/modified-program-y | f32efcafafd773683b3fe30054d5485fe9002b7d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | import unittest
import unittest.mock
from programy.extensions.base import Extension
class MockExtension(Extension):
def execute(self,context, data):
raise NotImplementedError()
class ExtensionTests(unittest.TestCase):
def test_ensure_not_implemented(self):
bot = unittest.mock.Mock()
... | 22.409091 | 57 | 0.707911 | 50 | 493 | 6.92 | 0.6 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20284 | 493 | 22 | 57 | 22.409091 | 0.880407 | 0 | 0 | 0 | 0 | 0 | 0.030364 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a618f5bc24436ac9c6065e63a60f529430c9d88 | 588 | py | Python | meiling/rule_engine/models.py | kennydo/nginx-meiling-proxy | a0b7dc115da1e86be03f068013ffa6bf5b58664f | [
"MIT"
] | 1 | 2016-11-12T19:23:31.000Z | 2016-11-12T19:23:31.000Z | meiling/rule_engine/models.py | kennydo/nginx-meiling-proxy | a0b7dc115da1e86be03f068013ffa6bf5b58664f | [
"MIT"
] | null | null | null | meiling/rule_engine/models.py | kennydo/nginx-meiling-proxy | a0b7dc115da1e86be03f068013ffa6bf5b58664f | [
"MIT"
] | 1 | 2019-07-26T09:04:01.000Z | 2019-07-26T09:04:01.000Z | import re
from typing import (
List,
NamedTuple,
)
class RequestContext(NamedTuple):
# The e-mail address of the user sending the request.
user_email: str
# The hostname of the original request
host: str
# The method of the original request
request_method: str
# The full URI of th... | 18.967742 | 59 | 0.67517 | 78 | 588 | 5.025641 | 0.435897 | 0.05102 | 0.09949 | 0.153061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 588 | 30 | 60 | 19.6 | 0.888889 | 0.30102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.105263 | 0 | 0.842105 | 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 |
5a6be2ea758099ca6239e93fdc7679c53552be94 | 2,738 | py | Python | app/controllers/routes.py | ylgnerbecton/api_luiza_labs | 60b54b3006c72ba9f1cc86a7d1b937cd794baa87 | [
"MIT"
] | null | null | null | app/controllers/routes.py | ylgnerbecton/api_luiza_labs | 60b54b3006c72ba9f1cc86a7d1b937cd794baa87 | [
"MIT"
] | 1 | 2021-06-02T00:51:12.000Z | 2021-06-02T00:51:12.000Z | app/controllers/routes.py | ylgnerbecton/api_luiza_labs | 60b54b3006c72ba9f1cc86a7d1b937cd794baa87 | [
"MIT"
] | null | null | null | from app import app
from flask import request, jsonify
from app.models.clients import post, put, delete, get, getAll
from app.models.products import addProduct, deleteProduct, getProducts
@app.route("/client/", methods=["GET"])
def getClient():
if "id" in request.args:
client_id = request.args.get("id")
... | 25.351852 | 70 | 0.632579 | 328 | 2,738 | 5.176829 | 0.155488 | 0.116608 | 0.148999 | 0.168433 | 0.580094 | 0.567138 | 0.562426 | 0.562426 | 0.522968 | 0.501178 | 0 | 0.018705 | 0.238495 | 2,738 | 107 | 71 | 25.588785 | 0.795683 | 0 | 0 | 0.478873 | 0 | 0 | 0.182615 | 0.0084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126761 | false | 0 | 0.056338 | 0.028169 | 0.464789 | 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 |
5a6c50bdcc3909f57880027c34aa3dfd331e0d4b | 1,691 | py | Python | spark/pyspark/arctern_pyspark/gis_func.py | jeffoverflow/arctern | 69e8a7549fffb88db06f188ac93e3aea4d432d8f | [
"Apache-2.0"
] | 68 | 2020-03-02T03:09:10.000Z | 2020-05-27T06:26:55.000Z | spark/pyspark/arctern_pyspark/gis_func.py | jeffoverflow/arctern | 69e8a7549fffb88db06f188ac93e3aea4d432d8f | [
"Apache-2.0"
] | 382 | 2020-02-29T07:48:52.000Z | 2020-06-01T02:43:17.000Z | spark/pyspark/arctern_pyspark/gis_func.py | jeffoverflow/arctern | 69e8a7549fffb88db06f188ac93e3aea4d432d8f | [
"Apache-2.0"
] | 47 | 2020-03-02T09:01:37.000Z | 2020-06-01T03:07:27.000Z | # Copyright (C) 2019-2020 Zilliz. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 35.229167 | 74 | 0.721467 | 252 | 1,691 | 4.623016 | 0.428571 | 0.048069 | 0.038627 | 0.043777 | 0.139056 | 0.139056 | 0.139056 | 0.116738 | 0.061803 | 0 | 0 | 0.014514 | 0.185098 | 1,691 | 47 | 75 | 35.978723 | 0.830914 | 0.339444 | 0 | 0 | 0 | 0 | 0.031732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.185185 | 0.037037 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a7069eaddba47cd2f5c7316172fb9119e1488cf | 2,049 | py | Python | src/pygl_tetrix/__main__.py | Woldstn/PyGL-Tetrix | b40ae730adb4ca7aef5c6d168d6f949540ad88db | [
"MIT"
] | null | null | null | src/pygl_tetrix/__main__.py | Woldstn/PyGL-Tetrix | b40ae730adb4ca7aef5c6d168d6f949540ad88db | [
"MIT"
] | null | null | null | src/pygl_tetrix/__main__.py | Woldstn/PyGL-Tetrix | b40ae730adb4ca7aef5c6d168d6f949540ad88db | [
"MIT"
] | null | null | null | """Generates a pyglet window and starts a Tetrix session."""
import pyglet
from .colors import COLORS
from .trxconst import batch, background, side_frames
from .controller import Controller
from .grid import Grid
window = pyglet.window.Window(width=600, height=600, caption="Tetrix")
window_border = batch.add(12, pygl... | 30.132353 | 75 | 0.634944 | 278 | 2,049 | 4.604317 | 0.320144 | 0.075 | 0.084375 | 0.098438 | 0.273438 | 0.157813 | 0.1375 | 0.1375 | 0.1375 | 0.1375 | 0 | 0.078233 | 0.226452 | 2,049 | 68 | 76 | 30.132353 | 0.729338 | 0.026354 | 0 | 0.140351 | 1 | 0 | 0.019095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.087719 | 0 | 0.140351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a709b01e7e41b22089f98bdb05d565ac12a9e2e | 1,308 | py | Python | uq360/utils/transformers/one_class_svm.py | Sclare87/UQ360 | 2378bfa4a8d61f813afbf6854341888434c9eb11 | [
"Apache-2.0"
] | 148 | 2021-05-27T20:52:51.000Z | 2022-03-16T22:49:48.000Z | uq360/utils/transformers/one_class_svm.py | Sclare87/UQ360 | 2378bfa4a8d61f813afbf6854341888434c9eb11 | [
"Apache-2.0"
] | 9 | 2021-06-21T18:45:07.000Z | 2021-11-08T14:42:30.000Z | uq360/utils/transformers/one_class_svm.py | Sclare87/UQ360 | 2378bfa4a8d61f813afbf6854341888434c9eb11 | [
"Apache-2.0"
] | 27 | 2021-06-01T18:29:02.000Z | 2022-03-02T06:56:03.000Z | from sklearn.svm import OneClassSVM
from uq360.utils.transformers.feature_transformer import FeatureTransformer
class OneClassSVMTransformer(FeatureTransformer):
"""One-class SVM outlier-classifier based derived feature.
This transformer fits an SVM decision boundary enclosing the
full training set. This ... | 37.371429 | 83 | 0.723242 | 163 | 1,308 | 5.570552 | 0.460123 | 0.079295 | 0.138767 | 0.145374 | 0.072687 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.191896 | 1,308 | 34 | 84 | 38.470588 | 0.852412 | 0.175076 | 0 | 0.086957 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.26087 | false | 0 | 0.086957 | 0.086957 | 0.478261 | 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 |
5a713fd572f4e1cb68d76a03814c3be9eb9287d9 | 1,403 | py | Python | linter.py | Adarma/SublimeLinter-contrib-dxl | 378da58c303350ab3ad8a1faa759eb644d23cd72 | [
"MIT"
] | 1 | 2021-01-07T04:32:20.000Z | 2021-01-07T04:32:20.000Z | linter.py | Adarma/SublimeLinter-contrib-dxl | 378da58c303350ab3ad8a1faa759eb644d23cd72 | [
"MIT"
] | null | null | null | linter.py | Adarma/SublimeLinter-contrib-dxl | 378da58c303350ab3ad8a1faa759eb644d23cd72 | [
"MIT"
] | null | null | null | #
# linter.py
# Linter for SublimeLinter, a code checking framework for Sublime Text 3
#
# Written by Adam Cadamally
# Copyright (c) 2014 Adam Cadamally
#
# License: MIT
#
"""This module exports the Dxl plugin class."""
from SublimeLinter.lint import Linter, util
from os.path import abspath, dirname, join, isfile
de... | 30.5 | 219 | 0.630791 | 178 | 1,403 | 4.91573 | 0.573034 | 0.020571 | 0.016 | 0.018286 | 0.070857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.201711 | 1,403 | 45 | 220 | 31.177778 | 0.775 | 0.320741 | 0 | 0 | 0 | 0 | 0.189679 | 0.09205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.52381 | 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 |
5a71bc1afcc4f5eeb583b0f5d3e94c06d8cd4e00 | 320 | py | Python | api/order/urls.py | nschhina/Shopify-Dev-Challenge-2019-Winter | d471297788031709883b1ff097503c2cd04595b0 | [
"MIT"
] | 1 | 2019-06-10T17:21:14.000Z | 2019-06-10T17:21:14.000Z | api/order/urls.py | nschhina/Shopify-Dev-Challenge-2019-Winter | d471297788031709883b1ff097503c2cd04595b0 | [
"MIT"
] | 4 | 2020-02-11T23:13:30.000Z | 2021-06-10T20:49:42.000Z | api/order/urls.py | nschhina/Shopify-Dev-Challenge-2019-Winter | d471297788031709883b1ff097503c2cd04595b0 | [
"MIT"
] | 1 | 2020-09-07T01:57:09.000Z | 2020-09-07T01:57:09.000Z | #!/usr/bin/python
from django.contrib import admin
from django.urls import path, include
from .views import OrderList,OrderDetail
from django.conf.urls import url
urlpatterns = [
path('', OrderList.as_view(), name= "orderview"),
url(r'^(?P<order_name>[\w]+)/$', OrderDetail.as_view(), name='order_details'),
]
| 26.666667 | 82 | 0.7125 | 44 | 320 | 5.090909 | 0.590909 | 0.133929 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121875 | 320 | 11 | 83 | 29.090909 | 0.797153 | 0.05 | 0 | 0 | 0 | 0 | 0.151815 | 0.079208 | 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 |
5a73e06084c835eefcefb3763bfe416d6bd11c4c | 439 | py | Python | app/migrations/0004_alter_profile_profile_photo.py | kennedybabu/instagram-clone | d92c3dcfd80b5108497365a35848751cef8a45b5 | [
"Unlicense"
] | null | null | null | app/migrations/0004_alter_profile_profile_photo.py | kennedybabu/instagram-clone | d92c3dcfd80b5108497365a35848751cef8a45b5 | [
"Unlicense"
] | null | null | null | app/migrations/0004_alter_profile_profile_photo.py | kennedybabu/instagram-clone | d92c3dcfd80b5108497365a35848751cef8a45b5 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-04 14:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_comment_image'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='profile_photo',
... | 23.105263 | 104 | 0.615034 | 49 | 439 | 5.387755 | 0.795918 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058462 | 0.259681 | 439 | 18 | 105 | 24.388889 | 0.753846 | 0.102506 | 0 | 0 | 1 | 0 | 0.140306 | 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 |
5a74fd1f0befb150ff30870dc4d7a50baa7af117 | 1,018 | py | Python | web/github_helpers.py | Jucyio/Jucy | a187985cf076f889e5eb348367099d30dfd3d7f4 | [
"Apache-2.0"
] | 3 | 2015-03-28T06:18:16.000Z | 2018-04-04T21:47:32.000Z | web/github_helpers.py | db0WIP/Jucy | a187985cf076f889e5eb348367099d30dfd3d7f4 | [
"Apache-2.0"
] | 23 | 2015-03-30T04:30:32.000Z | 2016-03-11T05:20:44.000Z | web/github_helpers.py | db0WIP/Jucy | a187985cf076f889e5eb348367099d30dfd3d7f4 | [
"Apache-2.0"
] | 1 | 2015-03-31T02:01:48.000Z | 2015-03-31T02:01:48.000Z | E_HOOK_ALREADY_EXISTS = u'Hook already exists on this repository'
def matches_github_exception(e, description, code=422):
"""Returns True if a GithubException was raised for a single error
matching the provided dict.
The error code needs to be equal to `code`, unless code is
None. For each field in `... | 35.103448 | 76 | 0.685658 | 155 | 1,018 | 4.43871 | 0.419355 | 0.02907 | 0.049419 | 0.06686 | 0.209302 | 0.209302 | 0.209302 | 0.209302 | 0.209302 | 0.209302 | 0 | 0.00641 | 0.233792 | 1,018 | 28 | 77 | 36.357143 | 0.875641 | 0.420432 | 0 | 0.230769 | 0 | 0 | 0.115596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a7d222d537b6a6e6d3cf0941ebc823108d77ce2 | 1,227 | py | Python | src/pyams_scheduler/zmi/interfaces.py | Py-AMS/pyams-scheduler | 58333798a43ca2f8af33cae4ec8f80c6c9a7ce9f | [
"ZPL-2.1"
] | null | null | null | src/pyams_scheduler/zmi/interfaces.py | Py-AMS/pyams-scheduler | 58333798a43ca2f8af33cae4ec8f80c6c9a7ce9f | [
"ZPL-2.1"
] | null | null | null | src/pyams_scheduler/zmi/interfaces.py | Py-AMS/pyams-scheduler | 58333798a43ca2f8af33cae4ec8f80c6c9a7ce9f | [
"ZPL-2.1"
] | null | null | null | #
# Copyright (c) 2015-2021 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | 34.083333 | 90 | 0.762836 | 157 | 1,227 | 5.834395 | 0.535032 | 0.049127 | 0.056769 | 0.075328 | 0.150655 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.156479 | 1,227 | 35 | 91 | 35.057143 | 0.875362 | 0.446618 | 0 | 0 | 0 | 0 | 0.129032 | 0.104455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.583333 | 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 |
5a887d5c776d2eb14c579787e5da17e8cb0527c5 | 12,964 | py | Python | Blender/DeepDenoiserRender.py | DeepBlender/DeepDenoiser | ba4cee09ea3dbd7b2d1505fcb232bdb81323122f | [
"Apache-2.0"
] | 99 | 2018-05-06T02:10:37.000Z | 2022-02-03T20:28:39.000Z | Blender/DeepDenoiserRender.py | DeepBlender/DeepDenoiser | ba4cee09ea3dbd7b2d1505fcb232bdb81323122f | [
"Apache-2.0"
] | 3 | 2018-05-06T23:42:09.000Z | 2019-05-19T11:38:21.000Z | Blender/DeepDenoiserRender.py | DeepBlender/DeepDenoiser | ba4cee09ea3dbd7b2d1505fcb232bdb81323122f | [
"Apache-2.0"
] | 8 | 2018-10-26T14:52:12.000Z | 2021-04-10T15:32:11.000Z |
# The RenderPasses and UI code are kept in this file to make it executable in Blender without the need to install it as addon.
import bpy
import os
import sys
import random
from mathutils import Vector
class RenderPasses:
COMBINED = 'Combined'
ALPHA = 'Alpha'
DEPTH = 'Depth'
MIST = 'Mist'
NORMAL = 'Normal... | 37.686047 | 137 | 0.755785 | 1,578 | 12,964 | 5.863118 | 0.166667 | 0.045179 | 0.039343 | 0.048422 | 0.432879 | 0.377648 | 0.304367 | 0.297017 | 0.277994 | 0.273671 | 0 | 0.002027 | 0.162604 | 12,964 | 344 | 138 | 37.686047 | 0.850221 | 0.022601 | 0 | 0.25188 | 0 | 0 | 0.10597 | 0.016109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.327068 | 0.018797 | 0 | 0.266917 | 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 |
5a8b10cbbfadbb818fb8ffb8b44d744ef4d36701 | 6,213 | py | Python | src/oci/log_analytics/models/violation.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/log_analytics/models/violation.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/log_analytics/models/violation.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 29.445498 | 245 | 0.629648 | 755 | 6,213 | 4.970861 | 0.184106 | 0.055955 | 0.09992 | 0.047962 | 0.531575 | 0.45004 | 0.343192 | 0.292566 | 0.253131 | 0.179057 | 0 | 0.004113 | 0.29567 | 6,213 | 210 | 246 | 29.585714 | 0.853519 | 0.502817 | 0 | 0.074627 | 0 | 0 | 0.094527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0 | 0.029851 | 0.029851 | 0.41791 | 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 |
ce4a17d20127767c74f81034a707042309b98ed5 | 1,536 | py | Python | tests/documentationTests/testDocXes1.py | edugonza/pm4py-source | b5ae5ea40799155d6540692f94be0444c16fd9d3 | [
"Apache-2.0"
] | null | null | null | tests/documentationTests/testDocXes1.py | edugonza/pm4py-source | b5ae5ea40799155d6540692f94be0444c16fd9d3 | [
"Apache-2.0"
] | null | null | null | tests/documentationTests/testDocXes1.py | edugonza/pm4py-source | b5ae5ea40799155d6540692f94be0444c16fd9d3 | [
"Apache-2.0"
] | null | null | null | import unittest
import os, sys, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
parentdir2 = os.path.dirname(parentdir)
sys.path.insert(0, parentdir)
sys.path.insert(0, parentdir2)
class XES1DocumentationTest(unittest.TestCase):
... | 34.133333 | 101 | 0.678385 | 197 | 1,536 | 5.050761 | 0.309645 | 0.080402 | 0.080402 | 0.060302 | 0.192965 | 0.106533 | 0 | 0 | 0 | 0 | 0 | 0.012285 | 0.205078 | 1,536 | 44 | 102 | 34.909091 | 0.802621 | 0.177734 | 0 | 0.074074 | 0 | 0 | 0.073132 | 0.023847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.222222 | 0 | 0.296296 | 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 |
ce4c7ba254ba227fc41b0f219f82467432c72fc7 | 4,717 | py | Python | src/services/tts.py | x2012x/conductor | ee1bfefd3dcd369efd2363e4c203c63dd97e2fb8 | [
"MIT"
] | 4 | 2021-06-14T15:11:26.000Z | 2022-03-15T12:34:17.000Z | src/services/tts.py | x2012x/conductor | ee1bfefd3dcd369efd2363e4c203c63dd97e2fb8 | [
"MIT"
] | 7 | 2021-06-14T10:38:54.000Z | 2021-08-19T22:30:17.000Z | src/services/tts.py | x2012x/conductor | ee1bfefd3dcd369efd2363e4c203c63dd97e2fb8 | [
"MIT"
] | null | null | null | '''
Created on Apr 3, 2021
@author: x2012x
'''
import logging
from google.cloud import texttospeech
import hashlib
import os
from errors.exceptions import TTSFailure
from services.base import BaseService
from errors.reasons import get_general_failure
from services.audio import PlayRequest
from pathlib import Path
log... | 51.271739 | 132 | 0.664617 | 574 | 4,717 | 5.317073 | 0.34669 | 0.032438 | 0.034404 | 0.015727 | 0.056356 | 0.02097 | 0.02097 | 0.02097 | 0.02097 | 0 | 0 | 0.00608 | 0.267755 | 4,717 | 91 | 133 | 51.835165 | 0.877533 | 0.373543 | 0 | 0 | 0 | 0 | 0.097579 | 0.0206 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.288889 | 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 |
ce52cbd593cddbbb7f034b0f397593e69ae69aca | 23,818 | py | Python | ucloud/services/uk8s/client.py | ucloud/ucloud-sdk-python3 | b96a079a5e747228049129d83f03a8067a05e881 | [
"Apache-2.0"
] | 37 | 2019-06-19T09:41:34.000Z | 2022-02-18T08:06:00.000Z | ucloud/services/uk8s/client.py | ucloud/ucloud-sdk-python3 | b96a079a5e747228049129d83f03a8067a05e881 | [
"Apache-2.0"
] | 90 | 2019-08-09T09:27:33.000Z | 2022-03-30T15:54:55.000Z | ucloud/services/uk8s/client.py | ucloud/ucloud-sdk-python3 | b96a079a5e747228049129d83f03a8067a05e881 | [
"Apache-2.0"
] | 19 | 2019-06-13T02:46:01.000Z | 2021-11-01T07:22:18.000Z | """ Code is generated by ucloud-model, DO NOT EDIT IT. """
import typing
from ucloud.core.client import Client
from ucloud.services.uk8s.schemas import apis
class UK8SClient(Client):
def __init__(
self, config: dict, transport=None, middleware=None, logger=None
):
super(UK8SClient, self).__... | 46.793713 | 284 | 0.6066 | 2,387 | 23,818 | 6.003351 | 0.297026 | 0.020656 | 0.037683 | 0.042708 | 0.487858 | 0.456804 | 0.435729 | 0.422261 | 0.411584 | 0.387788 | 0 | 0.019836 | 0.223193 | 23,818 | 508 | 285 | 46.885827 | 0.754675 | 0.696238 | 0 | 0.52459 | 1 | 0 | 0.073195 | 0.004154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090164 | false | 0 | 0.02459 | 0 | 0.204918 | 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 |
ce53aa005aa67c19a5f9ad3fb6e57165d9ab1c7e | 678 | py | Python | leagues/migrations/0006_auto_20211006_2247.py | wjh18/mtc-football | dda49ec66458c9a837bcad4df3d87f7742b80c54 | [
"RSA-MD"
] | 1 | 2021-12-03T05:58:36.000Z | 2021-12-03T05:58:36.000Z | leagues/migrations/0006_auto_20211006_2247.py | wjh18/mtc-football | dda49ec66458c9a837bcad4df3d87f7742b80c54 | [
"RSA-MD"
] | null | null | null | leagues/migrations/0006_auto_20211006_2247.py | wjh18/mtc-football | dda49ec66458c9a837bcad4df3d87f7742b80c54 | [
"RSA-MD"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-07 02:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leagues', '0005_rename_is_preseason_matchup_is_postseason'),
]
operations = [
migrations.AlterModelOptions(
name='conference',
... | 25.111111 | 74 | 0.573746 | 63 | 678 | 6.047619 | 0.714286 | 0.141732 | 0.16273 | 0.152231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046316 | 0.29941 | 678 | 26 | 75 | 26.076923 | 0.755789 | 0.066372 | 0 | 0.35 | 1 | 0 | 0.167987 | 0.0729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 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 |
ce566558b70d57705cb0b844e4a8fa1810fd6eb5 | 3,082 | py | Python | thing/models/corporation.py | Gillingham/evething | e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4 | [
"BSD-2-Clause"
] | 33 | 2015-02-18T00:07:57.000Z | 2020-06-09T15:19:05.000Z | thing/models/corporation.py | Gillingham/evething | e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4 | [
"BSD-2-Clause"
] | 19 | 2015-03-09T19:51:43.000Z | 2019-10-19T12:04:23.000Z | thing/models/corporation.py | Gillingham/evething | e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4 | [
"BSD-2-Clause"
] | 20 | 2015-02-20T17:53:17.000Z | 2022-02-11T06:29:11.000Z | # ------------------------------------------------------------------------------
# Copyright (c) 2010-2013, EVEthing team
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of... | 41.648649 | 88 | 0.681051 | 379 | 3,082 | 5.443272 | 0.448549 | 0.065439 | 0.078526 | 0.104702 | 0.213766 | 0.177896 | 0.065923 | 0.065923 | 0.065923 | 0.065923 | 0 | 0.013269 | 0.193056 | 3,082 | 73 | 89 | 42.219178 | 0.816244 | 0.476963 | 0 | 0 | 0 | 0 | 0.017013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.111111 | 0.055556 | 0.638889 | 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 |
ce62c23eb5609f644d97ddedb75b76209d5c7cec | 3,388 | py | Python | cogs/utils/images.py | maslychm/mighty | 0d3a51b5d4cd69df36dd83195c24bdfdfd0c0309 | [
"MIT"
] | 1 | 2019-02-05T21:37:25.000Z | 2019-02-05T21:37:25.000Z | cogs/utils/images.py | maslychm/mighty | 0d3a51b5d4cd69df36dd83195c24bdfdfd0c0309 | [
"MIT"
] | null | null | null | cogs/utils/images.py | maslychm/mighty | 0d3a51b5d4cd69df36dd83195c24bdfdfd0c0309 | [
"MIT"
] | null | null | null | from PIL import Image, ImageFont, ImageDraw
import requests
from io import BytesIO
import os
MAXPICSIZE = 300
def generate_onjoin_pic(namestr: str, member_id: int, url):
"""
Generates an image with user name and image
and retuns the absolute path to the file
"""
# Check if dir exists
if not o... | 28.233333 | 75 | 0.645218 | 478 | 3,388 | 4.476987 | 0.269874 | 0.029439 | 0.033645 | 0.04486 | 0.461682 | 0.435981 | 0.307009 | 0.279907 | 0.233178 | 0.206075 | 0 | 0.029333 | 0.225207 | 3,388 | 119 | 76 | 28.470588 | 0.785905 | 0.138725 | 0 | 0.342857 | 1 | 0 | 0.102635 | 0.052358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.057143 | 0 | 0.157143 | 0.042857 | 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 |
ce678a8b4cf8981a905a89f016cfb2c68c54f3f6 | 1,821 | py | Python | concat_with_softmax.py | matpalm/snli_nn | 2b34f79bbd7a05466d5f27b3ba525ab6a25099b0 | [
"MIT"
] | 16 | 2015-10-22T11:30:45.000Z | 2021-01-15T03:43:10.000Z | concat_with_softmax.py | matpalm/snli_nn | 2b34f79bbd7a05466d5f27b3ba525ab6a25099b0 | [
"MIT"
] | 1 | 2016-03-16T08:55:46.000Z | 2016-03-18T03:39:28.000Z | concat_with_softmax.py | matpalm/snli_nn | 2b34f79bbd7a05466d5f27b3ba525ab6a25099b0 | [
"MIT"
] | 11 | 2015-11-24T14:57:25.000Z | 2021-01-29T08:48:16.000Z | from dropout import dropout
import math
import theano
import theano.tensor as T
import util
class ConcatWithSoftmax(object):
def __init__(self, inp, n_labels, n_hidden_previous, update_fn,
training=None, keep_prob=None):
if type(inp) == list:
self.input = T.concatenate(inp)
... | 35.019231 | 79 | 0.631521 | 256 | 1,821 | 4.292969 | 0.3125 | 0.050955 | 0.036397 | 0.043676 | 0.038217 | 0.038217 | 0 | 0 | 0 | 0 | 0 | 0.002948 | 0.254805 | 1,821 | 51 | 80 | 35.705882 | 0.806927 | 0.04503 | 0 | 0 | 0 | 0 | 0.039769 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0 | null | null | 0 | 0.128205 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce6c1d2d2c36a02e9007b0d338d121e9149700dc | 1,644 | py | Python | src/db/models.py | DimaZimin/interpol_red_notice_parser | 45a8132d933d324cbc059a3fb8009244bb1d4df1 | [
"MIT"
] | null | null | null | src/db/models.py | DimaZimin/interpol_red_notice_parser | 45a8132d933d324cbc059a3fb8009244bb1d4df1 | [
"MIT"
] | null | null | null | src/db/models.py | DimaZimin/interpol_red_notice_parser | 45a8132d933d324cbc059a3fb8009244bb1d4df1 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import declarative_base
from sqlalchemy import Column, String, Integer, Sequence, Date, ForeignKey, Text
from sqlalchemy.orm import sessionmaker, relationship
engine = create_engine('sqlite:///data.db', echo=True)
Base = declarative_base()
class Country(Base):... | 34.25 | 89 | 0.708029 | 201 | 1,644 | 5.567164 | 0.288557 | 0.035746 | 0.050045 | 0.050938 | 0.078642 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012213 | 0.153285 | 1,644 | 47 | 90 | 34.978723 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.153893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0.028571 | 0.771429 | 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 |
ce71d7c458b140daef3d16247fdd5241fb416f65 | 3,825 | py | Python | console/config/mock/section.py | Acidburn0zzz/qpid-dispatch | e494da0a957d3cbbb5daaa802dd13e73e0ca4774 | [
"Apache-2.0"
] | 1 | 2017-11-29T09:19:21.000Z | 2017-11-29T09:19:21.000Z | console/config/mock/section.py | Acidburn0zzz/qpid-dispatch | e494da0a957d3cbbb5daaa802dd13e73e0ca4774 | [
"Apache-2.0"
] | null | null | null | console/config/mock/section.py | Acidburn0zzz/qpid-dispatch | e494da0a957d3cbbb5daaa802dd13e73e0ca4774 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 34.151786 | 111 | 0.629804 | 452 | 3,825 | 5.165929 | 0.367257 | 0.020985 | 0.032976 | 0.030835 | 0.153747 | 0.153747 | 0.108779 | 0.075375 | 0.075375 | 0.075375 | 0 | 0.008276 | 0.24183 | 3,825 | 111 | 112 | 34.459459 | 0.796897 | 0.204706 | 0 | 0.266667 | 0 | 0 | 0.083085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce73c910cf2a40e17ce8d5c05841cadcbee9714b | 1,654 | py | Python | sdk/storage/azure-storage-blob/tests/perfstress_tests/list_blobs.py | ankitarorabit/azure-sdk-for-python | dd90281cbad9400f8080754a5ef2f56791a5a88f | [
"MIT"
] | 3 | 2020-06-23T02:25:27.000Z | 2021-09-07T18:48:11.000Z | sdk/storage/azure-storage-blob/tests/perfstress_tests/list_blobs.py | ankitarorabit/azure-sdk-for-python | dd90281cbad9400f8080754a5ef2f56791a5a88f | [
"MIT"
] | 510 | 2019-07-17T16:11:19.000Z | 2021-08-02T08:38:32.000Z | sdk/storage/azure-storage-blob/tests/perfstress_tests/list_blobs.py | ankitarorabit/azure-sdk-for-python | dd90281cbad9400f8080754a5ef2f56791a5a88f | [
"MIT"
] | 5 | 2019-09-04T12:51:37.000Z | 2020-09-16T07:28:40.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 41.35 | 145 | 0.579807 | 179 | 1,654 | 5.195531 | 0.530726 | 0.029032 | 0.03871 | 0.051613 | 0.146237 | 0.086022 | 0.086022 | 0 | 0 | 0 | 0 | 0.007048 | 0.227932 | 1,654 | 39 | 146 | 42.410256 | 0.721222 | 0.236397 | 0 | 0.074074 | 0 | 0 | 0.046142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.074074 | 0.111111 | 0 | 0.222222 | 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 |
ce74351bc8c33871e3fa4b1c419da57aa1d5aacd | 1,364 | py | Python | RecoLocalCalo/Configuration/python/ecalLocalRecoSequenceCosmics_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | RecoLocalCalo/Configuration/python/ecalLocalRecoSequenceCosmics_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | RecoLocalCalo/Configuration/python/ecalLocalRecoSequenceCosmics_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
# Calo geometry service model
#
# removed by tommaso
#
#ECAL conditions
# include "CalibCalorimetry/EcalTrivialCondModules/data/EcalTrivialCondRetriever.cfi"
#
#TPG condition needed by ecalRecHit producer if TT recovery is ON
from RecoLocalCalo.EcalRecProducers.ecalRecHitTPGCo... | 38.971429 | 149 | 0.834311 | 103 | 1,364 | 10.990291 | 0.592233 | 0.090106 | 0.174912 | 0.091873 | 0.14841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002437 | 0.097507 | 1,364 | 34 | 150 | 40.117647 | 0.917141 | 0.167889 | 0 | 0 | 0 | 0 | 0.184 | 0.117333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.291667 | 0 | 0.291667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce78fb314426ecd66c88be238ae959bbc2e19491 | 44,336 | py | Python | trunk/bin/lscsn.py | drmegannewsome/lcogtsnpipe | f00afa7aa68fb0e7aa35aab57c201e54e293b20b | [
"MIT"
] | null | null | null | trunk/bin/lscsn.py | drmegannewsome/lcogtsnpipe | f00afa7aa68fb0e7aa35aab57c201e54e293b20b | [
"MIT"
] | 60 | 2020-05-11T22:57:18.000Z | 2022-03-29T19:40:22.000Z | trunk/bin/lscsn.py | drmegannewsome/lcogtsnpipe | f00afa7aa68fb0e7aa35aab57c201e54e293b20b | [
"MIT"
] | 6 | 2020-09-01T17:32:08.000Z | 2022-02-23T13:44:29.000Z | #!/usr/bin/env python
description = ">> New automated sn measurement"
usage = "%prog image [options] "
import time
from numpy import array,log10
import numpy as np
import lsc
import glob
import os
import sys
import shutil
import string
import re
from astropy.io.fits import getheader
from astropy.io import fits
from op... | 54.002436 | 144 | 0.389774 | 4,003 | 44,336 | 4.191856 | 0.136148 | 0.02503 | 0.016269 | 0.013409 | 0.467938 | 0.429082 | 0.396841 | 0.370679 | 0.348689 | 0.329261 | 0 | 0.034679 | 0.460168 | 44,336 | 820 | 145 | 54.068293 | 0.666416 | 0.032096 | 0 | 0.449664 | 0 | 0.002685 | 0.147917 | 0.012891 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002685 | 0.024161 | null | null | 0.077852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce7d37d8130a2d48607d464017b03c3985e4439b | 1,555 | py | Python | exim-transient.py | Criena/exim-transient | 3b3dbc06e84384434b928b3d532bc05972349360 | [
"Unlicense"
] | null | null | null | exim-transient.py | Criena/exim-transient | 3b3dbc06e84384434b928b3d532bc05972349360 | [
"Unlicense"
] | null | null | null | exim-transient.py | Criena/exim-transient | 3b3dbc06e84384434b928b3d532bc05972349360 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env -S python3 -B
#-*- coding: utf8 -*-
#
__author__ = 'Karel W. Dingeldey '
__copyright__ = 'Copyright (c) Criena Network'
########################################################################
### Imports
########################################################################
import datetime, re, sys... | 27.767857 | 100 | 0.427653 | 153 | 1,555 | 4.20915 | 0.45098 | 0.043478 | 0.037267 | 0.049689 | 0.099379 | 0.099379 | 0.099379 | 0 | 0 | 0 | 0 | 0.016588 | 0.185852 | 1,555 | 55 | 101 | 28.272727 | 0.492101 | 0.141479 | 0 | 0.130435 | 0 | 0.043478 | 0.267494 | 0.039503 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.043478 | 0.043478 | 0 | 0.043478 | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce7fb025ec9d5100574d4cfa4334182494b49769 | 170 | py | Python | python/np-linear-algebra.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 340 | 2018-06-17T19:45:56.000Z | 2022-03-22T02:26:15.000Z | python/np-linear-algebra.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 3 | 2021-02-02T17:17:29.000Z | 2021-05-18T10:06:04.000Z | python/np-linear-algebra.py | gajubadge11/HackerRank-1 | 7b136ccaa1ed47ae737467ace6b494c720ccb942 | [
"MIT"
] | 229 | 2019-04-20T08:28:49.000Z | 2022-03-31T04:23:52.000Z | import numpy as np
n = int(input().strip())
array = np.array([[float(x) for x in input().strip().split()] for _ in range(n)], dtype = float)
print(np.linalg.det(array)) | 28.333333 | 96 | 0.652941 | 30 | 170 | 3.666667 | 0.633333 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135294 | 170 | 6 | 97 | 28.333333 | 0.748299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
ce8279a302ba394d4fefa13e3b9a9cf5b470ae9e | 1,111 | py | Python | server.py | vivekaditya/LeafImageClassifier | 67ff124bbd3fa801724b7d61ca6768c4335feac7 | [
"Apache-2.0"
] | 11 | 2017-05-26T17:27:34.000Z | 2021-02-05T08:37:20.000Z | server.py | DharmeshPatel33/LeafImageClassifier | 67ff124bbd3fa801724b7d61ca6768c4335feac7 | [
"Apache-2.0"
] | null | null | null | server.py | DharmeshPatel33/LeafImageClassifier | 67ff124bbd3fa801724b7d61ca6768c4335feac7 | [
"Apache-2.0"
] | 3 | 2017-09-22T00:49:33.000Z | 2018-11-22T05:56:16.000Z | import os
from flask import Flask, render_template, request, redirect, url_for, send_from_directory
from PIL import Image
from io import BytesIO
import base64
import datetime
import time
# Initialize the Flask application
app = Flask(__name__)
# This is the path to the upload directory
app.config['UPLOAD_FOLDER'] = ... | 33.666667 | 176 | 0.659766 | 145 | 1,111 | 4.931034 | 0.627586 | 0.008392 | 0.041958 | 0.058741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021906 | 0.178218 | 1,111 | 33 | 177 | 33.666667 | 0.761227 | 0.065707 | 0 | 0 | 0 | 0.076923 | 0.34556 | 0.073359 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.269231 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce91f152e51e126f6fbdae1121f31eee2edc6483 | 24,981 | py | Python | networking_lagopus/agent/lagosh.py | hichihara/networking-lagopus | aedc69db8d42d5581225f7ca46d4ecdb48e46ff6 | [
"Apache-2.0"
] | null | null | null | networking_lagopus/agent/lagosh.py | hichihara/networking-lagopus | aedc69db8d42d5581225f7ca46d4ecdb48e46ff6 | [
"Apache-2.0"
] | null | null | null | networking_lagopus/agent/lagosh.py | hichihara/networking-lagopus | aedc69db8d42d5581225f7ca46d4ecdb48e46ff6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2014-2015 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 30.651534 | 87 | 0.462992 | 2,599 | 24,981 | 4.395152 | 0.143902 | 0.01961 | 0.02101 | 0.011556 | 0.45067 | 0.407774 | 0.370393 | 0.342555 | 0.323645 | 0.309814 | 0 | 0.007023 | 0.407229 | 24,981 | 814 | 88 | 30.689189 | 0.764384 | 0.044514 | 0 | 0.487844 | 0 | 0 | 0.082041 | 0.005733 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001621 | 0.017828 | null | null | 0.04376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce938de82b450642e338a946b9ba34d1496b596a | 521 | py | Python | setup.py | cwerner/pylogic | 46b6cfecca7ccb74b8caae054464d8092b40c97b | [
"CC-BY-3.0"
] | 27 | 2015-06-15T13:40:31.000Z | 2021-11-09T12:46:42.000Z | setup.py | cwerner/pylogic | 46b6cfecca7ccb74b8caae054464d8092b40c97b | [
"CC-BY-3.0"
] | 1 | 2015-03-20T20:53:41.000Z | 2015-03-20T21:11:57.000Z | setup.py | cwerner/pylogic | 46b6cfecca7ccb74b8caae054464d8092b40c97b | [
"CC-BY-3.0"
] | 9 | 2017-03-03T11:49:24.000Z | 2021-05-30T00:11:33.000Z | #!/usr/bin/env python
# vim: set fileencoding=utf-8 sw=4 ts=4 et :
from setuptools import setup
from distutils.core import setup
setup(name='pylogic',
version='1.0.0',
description='Python Module for Logical Validation',
author='Rob Truxler',
author_email='rtruxler [ at ] gmail.com',
lice... | 24.809524 | 57 | 0.587332 | 59 | 521 | 5.118644 | 0.79661 | 0.072848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015584 | 0.261036 | 521 | 20 | 58 | 26.05 | 0.768831 | 0.120921 | 0 | 0 | 0 | 0 | 0.252193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
ce94ce23c35cc726d5d66e9fecb73914f8fb3dc3 | 3,659 | py | Python | multiTufte-makeProbs-fromPredicted.py | mfenner1/py_coloc_utils | 1d98c8e9934928ced9d92f8dcef64471aa4b9dbc | [
"Unlicense",
"BSD-3-Clause"
] | 6 | 2016-02-13T05:41:25.000Z | 2019-04-08T16:48:42.000Z | multiTufte-makeProbs-fromPredicted.py | mfenner1/py_coloc_utils | 1d98c8e9934928ced9d92f8dcef64471aa4b9dbc | [
"Unlicense",
"BSD-3-Clause"
] | 1 | 2021-05-26T22:55:30.000Z | 2021-05-26T22:55:30.000Z | multiTufte-makeProbs-fromPredicted.py | mfenner1/py_coloc_utils | 1d98c8e9934928ced9d92f8dcef64471aa4b9dbc | [
"Unlicense",
"BSD-3-Clause"
] | 4 | 2015-08-07T04:13:03.000Z | 2021-08-15T18:36:30.000Z | #!/usr/bin/env python
#
# system imports
#
import cPickle, Image, glob
from scipy.misc import fromimage
import numpy as np
#
# user defined imports
#
from DefinitionsAndUtils import *
from ImageProcessing import thresholdNDArray
from GraphAndHistogramUtilities import timeToIdx, toProbs, countQuantil... | 34.847619 | 80 | 0.551517 | 343 | 3,659 | 5.880466 | 0.48688 | 0.017848 | 0.02231 | 0.015865 | 0.021815 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027494 | 0.304181 | 3,659 | 104 | 81 | 35.182692 | 0.764729 | 0.146488 | 0 | 0.033898 | 0 | 0 | 0.091312 | 0.033049 | 0 | 0 | 0 | 0.009615 | 0 | 0 | null | null | 0 | 0.118644 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce9616058505261260d257e2116f8745dd4494ed | 477 | py | Python | setup.py | originell/django-geonames | 24674895e1ab71b539e029a520b6000e2c2ffe73 | [
"BSD-3-Clause"
] | 1 | 2016-02-26T09:09:44.000Z | 2016-02-26T09:09:44.000Z | setup.py | originell/django-geonames | 24674895e1ab71b539e029a520b6000e2c2ffe73 | [
"BSD-3-Clause"
] | null | null | null | setup.py | originell/django-geonames | 24674895e1ab71b539e029a520b6000e2c2ffe73 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='django-geonames',
version='1.0',
description='Fork of official GeoDjango geonames application refactored and adopted for Django 1.2.1',
author='Justin Bronn',
author_email='jbronn@geodjango.org',
url='https://github.com/r... | 31.8 | 108 | 0.687631 | 57 | 477 | 5.719298 | 0.754386 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012438 | 0.157233 | 477 | 14 | 109 | 34.071429 | 0.798507 | 0.041929 | 0 | 0 | 0 | 0 | 0.545055 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce96e030ce17ae164630a8dde4b3d8ef68f22630 | 1,825 | py | Python | pybot/ml/data_utils.py | spillai/pybot | df6989d90860e88de42a3183d3af6c4c1c06336a | [
"MIT"
] | 78 | 2016-12-02T16:20:54.000Z | 2022-01-28T06:57:41.000Z | pybot/ml/data_utils.py | spillai/pybot | df6989d90860e88de42a3183d3af6c4c1c06336a | [
"MIT"
] | 3 | 2017-07-04T11:13:05.000Z | 2021-06-01T22:11:12.000Z | pybot/ml/data_utils.py | spillai/pybot | df6989d90860e88de42a3183d3af6c4c1c06336a | [
"MIT"
] | 20 | 2016-12-08T08:10:25.000Z | 2020-04-28T02:45:25.000Z | import six
from collections import deque, defaultdict
import numpy as np
from pybot.utils.itertools_recipes import chunks
def concat_chunked_dicts(dlist):
"""
Concatenate individual arrays in dictionary
TODO: defaultdict is the right way to do it, except for
conversion to dict in the final retur... | 31.465517 | 106 | 0.587397 | 245 | 1,825 | 4.314286 | 0.367347 | 0.046358 | 0.034059 | 0.060549 | 0.212867 | 0.198676 | 0.119205 | 0.066225 | 0.066225 | 0.066225 | 0 | 0.016104 | 0.285479 | 1,825 | 57 | 107 | 32.017544 | 0.794479 | 0.234521 | 0 | 0 | 0 | 0 | 0.054587 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.103448 | false | 0 | 0.137931 | 0 | 0.310345 | 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 |
ce99bbe459e95a5abf61f870b3a513c2baeea0f5 | 3,833 | py | Python | tests/integration/test_conditional_stmt.py | vladiibine/pygolang | da0f8d7aea32850ad685ffcc06a84285a3c384ca | [
"MIT"
] | null | null | null | tests/integration/test_conditional_stmt.py | vladiibine/pygolang | da0f8d7aea32850ad685ffcc06a84285a3c384ca | [
"MIT"
] | 1 | 2020-11-19T08:51:16.000Z | 2021-11-30T10:16:11.000Z | tests/integration/test_conditional_stmt.py | vladiibine/pygolang | da0f8d7aea32850ad685ffcc06a84285a3c384ca | [
"MIT"
] | null | null | null | from pygolang import ast
from pygolang.interpreter import main
from tests.integration.io_callback_fixture import FakeIO
def test_simple_conditional():
io = FakeIO([
'var x int = 0',
'if true { x = 2 }',
'x'
])
main(io)
assert not io.stderr, io.format_stderr_for_debugging()
... | 21.06044 | 89 | 0.52335 | 542 | 3,833 | 3.47048 | 0.134686 | 0.013822 | 0.076555 | 0.095694 | 0.716108 | 0.690058 | 0.628921 | 0.628921 | 0.615098 | 0.602871 | 0 | 0.028593 | 0.31568 | 3,833 | 181 | 90 | 21.176796 | 0.688525 | 0 | 0 | 0.651515 | 0 | 0.030303 | 0.196191 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.022727 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cea4db4909e1b67a509e2d2a26eb73a02ca85848 | 1,022 | py | Python | scraper/storage_spiders/dealshopvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/dealshopvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/dealshopvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='motachu']/div[@class='nhommota']/span",
'price' : "//div[@class='giachu']/div[@class='nhomgoc']/span | //div[@class='gia... | 37.851852 | 118 | 0.619374 | 125 | 1,022 | 4.96 | 0.576 | 0.129032 | 0.045161 | 0.054839 | 0.070968 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003352 | 0.124266 | 1,022 | 26 | 119 | 39.307692 | 0.689385 | 0.117417 | 0 | 0 | 1 | 0.086957 | 0.516129 | 0.355951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
ceacfc9a32c7ea94ba44cedc69cb80af3427f340 | 2,500 | py | Python | sheet-to-doc.py | langdon/sheet-to-doc | 5129baa414b683028d77f155e2b0e73f1a5a463f | [
"MIT"
] | null | null | null | sheet-to-doc.py | langdon/sheet-to-doc | 5129baa414b683028d77f155e2b0e73f1a5a463f | [
"MIT"
] | null | null | null | sheet-to-doc.py | langdon/sheet-to-doc | 5129baa414b683028d77f155e2b0e73f1a5a463f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
You can use this script to generate a file consolidating a spreadsheet
"""
import csv
import pprint
from datetime import datetime
import argparse
import os.path
import re
import collections
import random
import numpy as np
import pandas as pd
from tabulate import tabulate
from jinja2 import T... | 26.041667 | 86 | 0.6472 | 328 | 2,500 | 4.832317 | 0.35061 | 0.055521 | 0.035331 | 0.037855 | 0.217666 | 0.217666 | 0.178549 | 0.178549 | 0.141325 | 0.141325 | 0 | 0.001971 | 0.1884 | 2,500 | 95 | 87 | 26.315789 | 0.779202 | 0.1064 | 0 | 0.257143 | 1 | 0 | 0.367733 | 0.022533 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.171429 | 0 | 0.2 | 0.042857 | 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 |
ceafe06744d479c9709b33141a059c7d807c53dc | 2,953 | py | Python | src/cpu/testers/memtest/MemTest.py | aferr/LatticeMemCtl | 2f9d24050dd9923db5366f5b469cf409d97ae043 | [
"BSD-3-Clause"
] | null | null | null | src/cpu/testers/memtest/MemTest.py | aferr/LatticeMemCtl | 2f9d24050dd9923db5366f5b469cf409d97ae043 | [
"BSD-3-Clause"
] | 4 | 2015-01-13T18:27:31.000Z | 2015-01-13T18:27:57.000Z | src/cpu/testers/memtest/MemTest.py | aferr/TimingCompartments | 8c826a55fd5ed95b24a13489d97cb62a9586ee25 | [
"BSD-3-Clause"
] | 1 | 2021-07-05T18:05:54.000Z | 2021-07-05T18:05:54.000Z | # Copyright (c) 2005-2007 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this ... | 50.913793 | 83 | 0.74873 | 405 | 2,953 | 5.424691 | 0.48642 | 0.02731 | 0.019117 | 0.028675 | 0.154301 | 0.094675 | 0.094675 | 0.061903 | 0.061903 | 0.061903 | 0 | 0.014529 | 0.184219 | 2,953 | 57 | 84 | 51.807018 | 0.897468 | 0.516424 | 0 | 0 | 0 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
ceb94fb3614d083bea057299fa43be2044fc1777 | 797 | py | Python | tests/server_test.py | Adrijaned/weechat-matrix | 950d912c8289bc79304bf3faac8520f007d1707d | [
"Python-2.0",
"OLDAP-2.3"
] | 773 | 2018-04-02T16:55:57.000Z | 2022-03-30T11:46:37.000Z | tests/server_test.py | Adrijaned/weechat-matrix | 950d912c8289bc79304bf3faac8520f007d1707d | [
"Python-2.0",
"OLDAP-2.3"
] | 261 | 2018-04-02T05:51:16.000Z | 2022-03-31T11:58:09.000Z | tests/server_test.py | Adrijaned/weechat-matrix | 950d912c8289bc79304bf3faac8520f007d1707d | [
"Python-2.0",
"OLDAP-2.3"
] | 104 | 2018-02-28T15:52:51.000Z | 2022-03-17T17:22:40.000Z | from matrix.server import MatrixServer
from matrix._weechat import MockConfig
import matrix.globals as G
G.CONFIG = MockConfig()
class TestClass(object):
def test_address_parsing(self):
homeserver = MatrixServer._parse_url("example.org", 8080)
assert homeserver.hostname == "example.org"
as... | 36.227273 | 71 | 0.68005 | 88 | 797 | 6.011364 | 0.340909 | 0.170132 | 0.113422 | 0.170132 | 0.63327 | 0.63327 | 0.500945 | 0.500945 | 0.500945 | 0.500945 | 0 | 0.025 | 0.196989 | 797 | 21 | 72 | 37.952381 | 0.801563 | 0 | 0 | 0.294118 | 0 | 0 | 0.218319 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 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 |
cebe81323c93b3097681f64f9bcff9920a3f2dc2 | 6,399 | py | Python | ansible/azure_inv.py | Sitra-Isaacus/HUS-tietoallas-main | 7a5a5ab6d681d7bfbaa0efedd9f92e1cd29ee748 | [
"Apache-2.0"
] | null | null | null | ansible/azure_inv.py | Sitra-Isaacus/HUS-tietoallas-main | 7a5a5ab6d681d7bfbaa0efedd9f92e1cd29ee748 | [
"Apache-2.0"
] | null | null | null | ansible/azure_inv.py | Sitra-Isaacus/HUS-tietoallas-main | 7a5a5ab6d681d7bfbaa0efedd9f92e1cd29ee748 | [
"Apache-2.0"
] | 1 | 2021-11-24T06:11:25.000Z | 2021-11-24T06:11:25.000Z | '''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 39.018293 | 190 | 0.583372 | 768 | 6,399 | 4.701823 | 0.330729 | 0.028801 | 0.021601 | 0.019108 | 0.159513 | 0.101911 | 0.060925 | 0.042647 | 0.042647 | 0.042647 | 0 | 0.013276 | 0.305516 | 6,399 | 163 | 191 | 39.257669 | 0.79928 | 0.028598 | 0 | 0.045455 | 0 | 0.027273 | 0.202035 | 0.011656 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081818 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cec0acde3769c05857fe116c3407bdabcc3ba51e | 1,486 | py | Python | chat/migrations/0003_chatgroupmember_remove_chatgroup_members_and_more.py | wencakisa/django-meetup-sql-joins | 8e77ac473cecb884b29a84258f7f32377f3854cf | [
"MIT"
] | null | null | null | chat/migrations/0003_chatgroupmember_remove_chatgroup_members_and_more.py | wencakisa/django-meetup-sql-joins | 8e77ac473cecb884b29a84258f7f32377f3854cf | [
"MIT"
] | null | null | null | chat/migrations/0003_chatgroupmember_remove_chatgroup_members_and_more.py | wencakisa/django-meetup-sql-joins | 8e77ac473cecb884b29a84258f7f32377f3854cf | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-01 10:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
migrations.swappable_dependency(se... | 34.55814 | 144 | 0.629206 | 151 | 1,486 | 5.993377 | 0.437086 | 0.035359 | 0.046409 | 0.072928 | 0.304972 | 0.254144 | 0.152486 | 0.152486 | 0.152486 | 0.152486 | 0 | 0.020758 | 0.254374 | 1,486 | 42 | 145 | 35.380952 | 0.796029 | 0.030283 | 0 | 0.333333 | 1 | 0 | 0.159138 | 0.041001 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cec2255d0e3f845ec512760080b04b382d3d094e | 396 | py | Python | airbnb/rooms/migrations/0009_room_type.py | jaehyoungyoo/airbnb_clone | b37325f63eccb646d7d04e7ddbc1a6c7b0f0f252 | [
"MIT"
] | null | null | null | airbnb/rooms/migrations/0009_room_type.py | jaehyoungyoo/airbnb_clone | b37325f63eccb646d7d04e7ddbc1a6c7b0f0f252 | [
"MIT"
] | 6 | 2020-06-05T21:24:48.000Z | 2021-09-08T01:04:40.000Z | airbnb/rooms/migrations/0009_room_type.py | kenshinhm/airbnb_clone | b37325f63eccb646d7d04e7ddbc1a6c7b0f0f252 | [
"MIT"
] | 1 | 2019-07-21T06:22:27.000Z | 2019-07-21T06:22:27.000Z | # Generated by Django 2.1.8 on 2019-06-02 06:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rooms', '0008_room_location'),
]
operations = [
migrations.AddField(
model_name='room',
name='type',
fie... | 20.842105 | 73 | 0.593434 | 45 | 396 | 5.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074205 | 0.285354 | 396 | 18 | 74 | 22 | 0.742049 | 0.113636 | 0 | 0 | 1 | 0 | 0.088825 | 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 |
cec8cd6122bd4f9f917cba653479c9c081ce4acf | 2,731 | py | Python | src/irummy.py | QuintonWeenink/distributed-system | a0792ad96748e116de498693227ad69c4b7c94c5 | [
"MIT"
] | null | null | null | src/irummy.py | QuintonWeenink/distributed-system | a0792ad96748e116de498693227ad69c4b7c94c5 | [
"MIT"
] | null | null | null | src/irummy.py | QuintonWeenink/distributed-system | a0792ad96748e116de498693227ad69c4b7c94c5 | [
"MIT"
] | 1 | 2019-05-21T14:40:58.000Z | 2019-05-21T14:40:58.000Z | import json
import subprocess
execfile("member.py")
class Clue:
def __init__(self, id, data):
self.data = data
self.id = id
class iRummy:
def __init__(self, crewSize, port):
print json.dumps(self.wake())
print json.dumps(self.prepare())
self.images = 20
self.... | 25.287037 | 63 | 0.559868 | 308 | 2,731 | 4.935065 | 0.256494 | 0.072368 | 0.084211 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001065 | 0.31234 | 2,731 | 108 | 64 | 25.287037 | 0.808307 | 0.009886 | 0 | 0.025 | 0 | 0 | 0.114645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ceca5b7ca8eb8aeff3703cfef74559f8daa5ccf6 | 1,323 | py | Python | kb/tests/article/integration_tests.py | movermeyer/django-kb | 3c3246761f4f6d60221049f46ce9702fd56384a8 | [
"BSD-3-Clause"
] | 7 | 2015-04-17T12:01:29.000Z | 2021-06-21T01:54:15.000Z | kb/tests/article/integration_tests.py | movermeyer/django-kb | 3c3246761f4f6d60221049f46ce9702fd56384a8 | [
"BSD-3-Clause"
] | null | null | null | kb/tests/article/integration_tests.py | movermeyer/django-kb | 3c3246761f4f6d60221049f46ce9702fd56384a8 | [
"BSD-3-Clause"
] | 3 | 2015-04-17T16:21:42.000Z | 2018-06-06T13:34:03.000Z | from model_mommy import mommy
from kb.tests import test
class LiveTestArticleDetailView(test.BaseLiveServer):
def test_upvote_and_downvote_article(self):
article = mommy.make_recipe('kb.tests.published_article', slug='eggs')
url = '/article/eggs/'
self.visit(url)
self.assertEqu... | 33.075 | 89 | 0.690098 | 168 | 1,323 | 5.25 | 0.297619 | 0.099773 | 0.124717 | 0.153061 | 0.558957 | 0.501134 | 0.44898 | 0.44898 | 0.44898 | 0.44898 | 0 | 0.005592 | 0.188964 | 1,323 | 39 | 90 | 33.923077 | 0.816403 | 0 | 0 | 0.32 | 0 | 0 | 0.139078 | 0.019652 | 0 | 0 | 0 | 0 | 0.52 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cecedfb2158736cdfe3b75826203973c8417f951 | 668 | py | Python | stubs/m5stack_flowui-1_4_0-beta/flowlib/units/_adc.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 38 | 2020-10-18T21:59:44.000Z | 2022-03-17T03:03:28.000Z | stubs/m5stack_flowui-1_4_0-beta/flowlib/units/_adc.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 176 | 2020-10-18T14:31:03.000Z | 2022-03-30T23:22:39.000Z | stubs/m5stack_flowui-1_4_0-beta/flowlib/units/_adc.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 6 | 2020-12-28T21:11:12.000Z | 2022-02-06T04:07:50.000Z | """
Module: 'flowlib.units._adc' on M5 FlowUI v1.4.0-beta
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32')
# Stubber: 1.3.1
ADDRESS = 72
class Adc:
''
def _available():
pass
def _read_u16():
pa... | 15.534884 | 141 | 0.616766 | 105 | 668 | 3.742857 | 0.638095 | 0.071247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138833 | 0.255988 | 668 | 42 | 142 | 15.904762 | 0.651911 | 0.312874 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.266667 | 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 |
ced19f71f461157b0627860d1cae90c5c0f85717 | 162 | py | Python | lexical/sub.py | xmeng17/Malicious-URL-Detection | f286aeb50570455486b470cbc2db9aa0fae99b8f | [
"MIT"
] | null | null | null | lexical/sub.py | xmeng17/Malicious-URL-Detection | f286aeb50570455486b470cbc2db9aa0fae99b8f | [
"MIT"
] | null | null | null | lexical/sub.py | xmeng17/Malicious-URL-Detection | f286aeb50570455486b470cbc2db9aa0fae99b8f | [
"MIT"
] | null | null | null | with open('lexical.csv') as f:
string=f.read()
arr=string.split('\n')
arr=arr[:10000]
result='\n'.join(arr)
with open('sub.csv','w') as f:
f.write(result) | 23.142857 | 30 | 0.62963 | 30 | 162 | 3.4 | 0.566667 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035211 | 0.123457 | 162 | 7 | 31 | 23.142857 | 0.683099 | 0 | 0 | 0 | 0 | 0 | 0.141104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ced1dd84bc03c24496221608c758f02d1b3ffae7 | 1,944 | py | Python | ppf/date_time/year_fraction.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | 2 | 2019-10-26T17:18:41.000Z | 2020-06-05T11:26:10.000Z | ppf/date_time/year_fraction.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | null | null | null | ppf/date_time/year_fraction.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | 5 | 2019-01-24T16:44:07.000Z | 2020-09-14T06:56:55.000Z | from ppf_date_time \
import date, gregorian_calendar_base
from day_count_basis import *
is_leap_year = gregorian_calendar_base.is_leap_year
def year_fraction(start, until, basis):
'''Compute accruals
>>> from ppf_date_time import *
>>> from day_count_basis import *
>>> add_months = month_functor
>>> N... | 31.354839 | 67 | 0.623457 | 276 | 1,944 | 4.101449 | 0.235507 | 0.063604 | 0.103357 | 0.111307 | 0.449647 | 0.363074 | 0.233216 | 0.233216 | 0.123675 | 0 | 0 | 0.085317 | 0.222222 | 1,944 | 61 | 68 | 31.868852 | 0.66336 | 0 | 0 | 0.05 | 0 | 0 | 0.017218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | 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 |
ced25cb0aeb9a520bdcd8fab92969748e10b64bf | 551 | py | Python | foundation.py | reggy0/ethereum-nft-activity-main | a19a0ff5adc482e1db7b3b4e9ddba05ab3e5e5eb | [
"MIT"
] | null | null | null | foundation.py | reggy0/ethereum-nft-activity-main | a19a0ff5adc482e1db7b3b4e9ddba05ab3e5e5eb | [
"MIT"
] | null | null | null | foundation.py | reggy0/ethereum-nft-activity-main | a19a0ff5adc482e1db7b3b4e9ddba05ab3e5e5eb | [
"MIT"
] | null | null | null | import json
from etherscan import Etherscan
from utils import load_etherscan_api_key
from utils import valid_hash, prefix_contracts
api_key = load_etherscan_api_key()
etherscan = Etherscan(api_key, read_only=True)
deployer = '0x3b612a5b49e025a6e4ba4ee4fb1ef46d13588059'
transactions = etherscan.fetch_transactions_inte... | 36.733333 | 76 | 0.814882 | 70 | 551 | 6.214286 | 0.514286 | 0.055172 | 0.103448 | 0.087356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054326 | 0.098004 | 551 | 15 | 77 | 36.733333 | 0.820926 | 0 | 0 | 0 | 0 | 0 | 0.177536 | 0.130435 | 0 | 0 | 0.076087 | 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 |
ced833ec78da123450c4c697813017e5866b5ae9 | 2,069 | py | Python | frontend/pb/common_pb2.py | acasi-ctf/ctf | 1136185c359252d80f5dd4ebd4ce4cc404cd4ea3 | [
"Apache-2.0"
] | 4 | 2021-03-13T04:45:23.000Z | 2022-03-22T06:45:04.000Z | frontend/pb/common_pb2.py | acasi-ctf/ctf | 1136185c359252d80f5dd4ebd4ce4cc404cd4ea3 | [
"Apache-2.0"
] | 207 | 2021-03-09T22:36:46.000Z | 2022-03-28T13:49:50.000Z | frontend/pb/common_pb2.py | acasi-ctf/ctf | 1136185c359252d80f5dd4ebd4ce4cc404cd4ea3 | [
"Apache-2.0"
] | 2 | 2021-03-13T01:07:37.000Z | 2021-12-23T00:01:40.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf... | 28.736111 | 184 | 0.752537 | 264 | 2,069 | 5.609848 | 0.416667 | 0.036462 | 0.048616 | 0.064821 | 0.072924 | 0.072924 | 0 | 0 | 0 | 0 | 0 | 0.029622 | 0.118898 | 2,069 | 71 | 185 | 29.140845 | 0.782776 | 0.121798 | 0 | 0.156863 | 1 | 0.039216 | 0.183832 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078431 | 0 | 0.078431 | 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 |
cedc07757b163c2fb51683dd25a53f435b846e03 | 8,311 | py | Python | src/striga/service/sproaster/_sproasersvc_process.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | src/striga/service/sproaster/_sproasersvc_process.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | src/striga/service/sproaster/_sproasersvc_process.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | import sys, os, time, copy, subprocess, itertools, logging
###
L = logging.getLogger('sproaster')
###
class ProcessRunResult(object):
def __init__(self):
self.Pid = None
self.ReturnCode = None
self.RunningTime = None
def __repr__(self):
return "<{0} Pid={1} ReturnCode={2} RunningTime={3}>".format(self.... | 25.572308 | 239 | 0.686079 | 1,078 | 8,311 | 5.118738 | 0.220779 | 0.029358 | 0.015223 | 0.024103 | 0.269482 | 0.216564 | 0.201704 | 0.18195 | 0.160203 | 0.131569 | 0 | 0.005036 | 0.187703 | 8,311 | 324 | 240 | 25.651235 | 0.812324 | 0.061485 | 0 | 0.371981 | 0 | 0 | 0.188657 | 0 | 0 | 0 | 0 | 0.003086 | 0.028986 | 0 | null | null | 0 | 0.004831 | 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 |
0c6e2edb27dc2c7fe5b49727e6d296d3c0ef48d5 | 4,518 | py | Python | build_system_image.py | RecodeFei/perso_tools | 3ed066b028f6062dee2406656bd5904a3acbea2e | [
"Apache-2.0"
] | null | null | null | build_system_image.py | RecodeFei/perso_tools | 3ed066b028f6062dee2406656bd5904a3acbea2e | [
"Apache-2.0"
] | null | null | null | build_system_image.py | RecodeFei/perso_tools | 3ed066b028f6062dee2406656bd5904a3acbea2e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
import glob
import commands
import re
import subprocess
import tempfile
def chdir(path, log=''):
oldDir = os.getcwd()
os.chdir(path)
return oldDir
def pushdir(path, log=''):
global __dirStack
oldDir = chdir(path, log)
__dirStack.insert(0, oldDir)
return oldDir
def po... | 29.723684 | 290 | 0.716467 | 652 | 4,518 | 4.641104 | 0.263804 | 0.068407 | 0.058163 | 0.039326 | 0.351289 | 0.300727 | 0.227032 | 0.104428 | 0.104428 | 0.104428 | 0 | 0.006648 | 0.134351 | 4,518 | 151 | 291 | 29.92053 | 0.767067 | 0.009296 | 0 | 0.227273 | 0 | 0.009091 | 0.303866 | 0.092245 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | null | null | 0.081818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0c72176c344a07e58a360c4b360b184354c5bb2b | 1,638 | py | Python | tests/domain/test_user_technology.py | ciandt/tech-gallery-chat-bot | f4c83ab626d829b8c8ce6dd549156224a034aa6d | [
"MIT"
] | 1 | 2020-02-19T14:03:25.000Z | 2020-02-19T14:03:25.000Z | tests/domain/test_user_technology.py | ciandt/tech-gallery-chat-bot | f4c83ab626d829b8c8ce6dd549156224a034aa6d | [
"MIT"
] | null | null | null | tests/domain/test_user_technology.py | ciandt/tech-gallery-chat-bot | f4c83ab626d829b8c8ce6dd549156224a034aa6d | [
"MIT"
] | 1 | 2020-03-31T15:11:35.000Z | 2020-03-31T15:11:35.000Z | import pytest
from tech_gallery_bot.domain.user_technology import UserTechnology
@pytest.mark.parametrize(
"args", [("java", 4, 3), ("python", 5, 0), ("ruby", 0, 0), ("nodejs", 30, 5000)]
)
def test_user_technology_init(args):
(name, skills, endorsements) = args
user_technology = UserTechnology(name, sk... | 26.852459 | 84 | 0.699634 | 181 | 1,638 | 6.038674 | 0.226519 | 0.307411 | 0.128088 | 0.096066 | 0.472095 | 0.433669 | 0.397072 | 0.31107 | 0.219579 | 0.219579 | 0 | 0.031579 | 0.188034 | 1,638 | 60 | 85 | 27.3 | 0.790226 | 0 | 0 | 0.195122 | 0 | 0 | 0.114774 | 0.017705 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.121951 | false | 0 | 0.04878 | 0 | 0.170732 | 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 |
0c8c33609bbf8093001d393fc38d2160853b6323 | 16,952 | py | Python | deepchem/models/tests/test_layers_from_config.py | martonlanga/deepchem | af2db874484603ade489fa513eac193b38ce6d56 | [
"MIT"
] | 1 | 2020-05-04T06:42:56.000Z | 2020-05-04T06:42:56.000Z | deepchem/models/tests/test_layers_from_config.py | martonlanga/deepchem | af2db874484603ade489fa513eac193b38ce6d56 | [
"MIT"
] | 1 | 2020-07-13T18:59:49.000Z | 2020-07-13T18:59:49.000Z | deepchem/models/tests/test_layers_from_config.py | fenomeinc/deepchem | 1c007fbae899a49fe3c40f41e7273ed21867fef9 | [
"MIT"
] | 1 | 2021-02-24T04:58:32.000Z | 2021-02-24T04:58:32.000Z | import os
import unittest
import deepchem as dc
import numpy as np
import tensorflow as tf
from tensorflow.python.eager import context
class TestLayer(unittest.TestCase):
def test_interatomic_l2_distance(self):
N_atoms = 10
M_nbrs = 15
ndim = 20
layer = dc.models.layers.InteratomicL2Distances(
... | 35.243243 | 90 | 0.712128 | 2,280 | 16,952 | 4.978947 | 0.089912 | 0.155039 | 0.181202 | 0.052326 | 0.584038 | 0.54475 | 0.48018 | 0.451815 | 0.434813 | 0.348837 | 0 | 0.013072 | 0.205757 | 16,952 | 480 | 91 | 35.316667 | 0.830065 | 0 | 0 | 0.396465 | 0 | 0 | 0.013155 | 0 | 0 | 0 | 0 | 0 | 0.305556 | 1 | 0.075758 | false | 0.007576 | 0.015152 | 0 | 0.093434 | 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 |
0c9c4a8d0c842b90f13b14ccc346d3497046bb07 | 1,577 | py | Python | ork.build/template/ork.build.ext_env.py | tweakoz/micro_ork | 66f69d5866ca30dc6066c2dacdb7bbc5b8aa73e7 | [
"MIT"
] | 25 | 2015-02-21T04:21:21.000Z | 2022-01-20T05:19:27.000Z | ork.build/template/ork.build.ext_env.py | tweakoz/micro_ork | 66f69d5866ca30dc6066c2dacdb7bbc5b8aa73e7 | [
"MIT"
] | 113 | 2019-08-23T04:52:14.000Z | 2021-09-13T04:04:11.000Z | ork.build/template/ork.build.ext_env.py | tweakoz/micro_ork | 66f69d5866ca30dc6066c2dacdb7bbc5b8aa73e7 | [
"MIT"
] | 4 | 2017-02-20T18:17:55.000Z | 2020-06-28T03:47:55.000Z | #!/usr/bin/python
import os
import sys
as_main = (__name__ == '__main__')
###########################################
file_dir = os.path.realpath(__file__)
par1_dir = os.path.dirname(file_dir)
root_dir = par1_dir
obt_dir = "%s/ork.build"%root_dir
scripts_dir = "%s/scripts" % obt_dir
bin_dir = "%s/bin" % obt_dir
pr... | 24.640625 | 66 | 0.620165 | 231 | 1,577 | 3.961039 | 0.294372 | 0.053552 | 0.071038 | 0.028415 | 0.119126 | 0.048087 | 0.048087 | 0 | 0 | 0 | 0 | 0.001409 | 0.10019 | 1,577 | 63 | 67 | 25.031746 | 0.643411 | 0.051997 | 0 | 0.05 | 0 | 0 | 0.257837 | 0.03605 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ca2be447a14006b827c38228805542fd7174048 | 2,392 | py | Python | application/__init__.py | tikibeni/windsurf-ranking | a20ccc6b9bf924032c94fff8a1bba65ecfc1f1d4 | [
"MIT"
] | null | null | null | application/__init__.py | tikibeni/windsurf-ranking | a20ccc6b9bf924032c94fff8a1bba65ecfc1f1d4 | [
"MIT"
] | 2 | 2019-11-26T15:27:28.000Z | 2020-10-19T15:15:40.000Z | application/__init__.py | tikibeni/windsurf-ranking | a20ccc6b9bf924032c94fff8a1bba65ecfc1f1d4 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
# Tietokanta ja Heroku
from flask_sqlalchemy import SQLAlchemy
import os
if os.environ.get("HEROKU"):
app.config["SQLALCHEMY_DATABASE_URI"] = os.environ.get("DATABASE_URL")
else:
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///ranking.db"
app.config["SQLAL... | 26.285714 | 74 | 0.716137 | 285 | 2,392 | 5.863158 | 0.34386 | 0.13465 | 0.05386 | 0.093357 | 0.035907 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001062 | 0.212375 | 2,392 | 91 | 75 | 26.285714 | 0.885881 | 0.08612 | 0 | 0.083333 | 0 | 0 | 0.073003 | 0.02112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.016667 | 0.35 | 0.016667 | 0.533333 | 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 |
0ca8ebbcc3738d346f1526ee299dae2e8daefdee | 808 | py | Python | bind9_parser/isc_clause_managed_keys.py | egberts/bind9_parser | ee7b845a4319acfa6bb924e3aec853cf6a28b61c | [
"MIT"
] | 5 | 2020-04-24T14:03:18.000Z | 2021-08-12T15:38:55.000Z | bind9_parser/isc_clause_managed_keys.py | egberts/bind9_parser | ee7b845a4319acfa6bb924e3aec853cf6a28b61c | [
"MIT"
] | 15 | 2020-03-05T09:39:33.000Z | 2022-03-05T08:36:44.000Z | bind9_parser/isc_clause_managed_keys.py | egberts/bind9_parser | ee7b845a4319acfa6bb924e3aec853cf6a28b61c | [
"MIT"
] | 2 | 2020-07-26T08:24:42.000Z | 2022-03-24T17:55:14.000Z | #!/usr/bin/env python3
"""
File: isc_clause_managed_keys.py
Clause: managed-keys
Title: Clause statement for managed keys
Description: Provides managed-key-related grammar in
PyParsing engine for ISC-configuration style
"""
from pyparsing import Optional, OneOrMore, ZeroOrMore
from bind9_parser.isc_man... | 26.064516 | 75 | 0.782178 | 107 | 808 | 5.682243 | 0.514019 | 0.235197 | 0.131579 | 0.148026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002933 | 0.155941 | 808 | 30 | 76 | 26.933333 | 0.888563 | 0.571782 | 0 | 0 | 0 | 0 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
0cacfe6fe8f5e92ae29cc46693ada627ac5336cd | 4,861 | py | Python | DARPAScripts/NucSegInParallel/write_input_images.py | tostathaina/farsight | 7e9d6d15688735f34f7ca272e4e715acd11473ff | [
"Apache-2.0"
] | 8 | 2016-07-22T11:24:19.000Z | 2021-04-10T04:22:31.000Z | DARPAScripts/NucSegInParallel/write_input_images.py | YanXuHappygela/Farsight | 1711b2a1458c7e035edd21fe0019a1f7d23fcafa | [
"Apache-2.0"
] | null | null | null | DARPAScripts/NucSegInParallel/write_input_images.py | YanXuHappygela/Farsight | 1711b2a1458c7e035edd21fe0019a1f7d23fcafa | [
"Apache-2.0"
] | 7 | 2016-07-21T07:39:17.000Z | 2020-01-29T02:03:27.000Z | #!/usr/bin/python
import fnmatch
import os
import shutil
import re
import sqlite3
import subprocess
import multiprocessing
import time
from string import maketrans
print "Hello, World!"
rootPath = os.getcwd()
rootPath = rootPath + '/'
patternN = 'Tile*' # Can include any UNIX shell-style wildcards
patternGFP = ... | 29.107784 | 145 | 0.653775 | 704 | 4,861 | 4.289773 | 0.245739 | 0.025828 | 0.043046 | 0.060265 | 0.237417 | 0.192053 | 0.06755 | 0.017219 | 0 | 0 | 0 | 0.025464 | 0.224439 | 4,861 | 166 | 146 | 29.283133 | 0.775597 | 0.148323 | 0 | 0 | 0 | 0 | 0.079114 | 0.031159 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072 | null | null | 0.016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0caf941000a03bec6f73ee4e61b987a219e7a0d4 | 3,231 | py | Python | openinterests/loaders/experts.py | civicdataeu/openinterests.eu | b692a9804f3ea5c7c72431392ea5370146415c6b | [
"MIT"
] | 9 | 2015-07-13T09:41:20.000Z | 2016-10-10T14:50:27.000Z | openinterests/loaders/experts.py | pudo-attic/openinterests.eu | b692a9804f3ea5c7c72431392ea5370146415c6b | [
"MIT"
] | 2 | 2015-02-13T08:49:25.000Z | 2015-03-19T11:26:42.000Z | openinterests/loaders/experts.py | pudo/openinterests.eu | b692a9804f3ea5c7c72431392ea5370146415c6b | [
"MIT"
] | 2 | 2015-09-11T10:21:17.000Z | 2016-06-28T00:06:24.000Z | import logging
from pprint import pprint
from hashlib import sha1
from openinterests.loaders.util import make_loader
from monnet.experts.util import engine
from monnet.experts.util import exp_group, exp_sub_group, exp_group_type
from monnet.experts.util import exp_group_task, exp_group_associated_dg
from monnet.exper... | 33.309278 | 98 | 0.649335 | 443 | 3,231 | 4.496614 | 0.223476 | 0.072289 | 0.052711 | 0.063253 | 0.320281 | 0.27761 | 0.27761 | 0.175703 | 0.175703 | 0.094378 | 0 | 0.000777 | 0.203343 | 3,231 | 96 | 99 | 33.65625 | 0.773116 | 0.021665 | 0 | 0.123288 | 0 | 0.027397 | 0.246753 | 0.030725 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.027397 | false | 0 | 0.123288 | 0 | 0.150685 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0cb071deb1d61a068910d716c9e2967a6f2c0044 | 307 | py | Python | penetration/simple_client.py | rudolfvavra/network | c161661d3c1837417cbf5ce6b2caa05afe4803f2 | [
"MIT"
] | 2 | 2016-07-12T18:29:46.000Z | 2017-03-27T21:32:35.000Z | penetration/simple_client.py | rudolfvavra/network | c161661d3c1837417cbf5ce6b2caa05afe4803f2 | [
"MIT"
] | null | null | null | penetration/simple_client.py | rudolfvavra/network | c161661d3c1837417cbf5ce6b2caa05afe4803f2 | [
"MIT"
] | 1 | 2019-12-28T07:57:47.000Z | 2019-12-28T07:57:47.000Z | import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = "192.168.11.252" # server address
port =12345 #server port
#buf = bytearray("-" * 30) # buffer created
#print "Number of Bytes ",s.recv_into(buf)
#print buf
s.connect((host,port))
print s.recv(1024)
s.send("Hello Server")
s.close()
| 25.583333 | 53 | 0.716612 | 51 | 307 | 4.254902 | 0.627451 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 0.120521 | 307 | 11 | 54 | 27.909091 | 0.722222 | 0.37785 | 0 | 0 | 0 | 0 | 0.141304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cb230a19cb6a0bf7be325f4839a737b9928a84d | 3,211 | py | Python | MyPyQt5LearnExamples/FirstPyQy5/FirstPyQtui.py | prayjourney/on_the_way_ing | 88d04752b7b18c6d60d74b18357f6b2c09c9748e | [
"MIT"
] | null | null | null | MyPyQt5LearnExamples/FirstPyQy5/FirstPyQtui.py | prayjourney/on_the_way_ing | 88d04752b7b18c6d60d74b18357f6b2c09c9748e | [
"MIT"
] | null | null | null | MyPyQt5LearnExamples/FirstPyQy5/FirstPyQtui.py | prayjourney/on_the_way_ing | 88d04752b7b18c6d60d74b18357f6b2c09c9748e | [
"MIT"
] | 1 | 2020-09-29T14:17:39.000Z | 2020-09-29T14:17:39.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'FirstPyQtui.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_mainWindow(object):
def setupUi(self, mainWindow):
... | 47.925373 | 74 | 0.685145 | 331 | 3,211 | 6.570997 | 0.280967 | 0.036782 | 0.057931 | 0.029425 | 0.137011 | 0.111264 | 0 | 0 | 0 | 0 | 0 | 0.035285 | 0.196823 | 3,211 | 66 | 75 | 48.651515 | 0.808065 | 0.05668 | 0 | 0 | 1 | 0 | 0.075465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.018519 | 0 | 0.074074 | 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 |
0cb7424531dcfaef36d3adb0be0700a591876509 | 3,180 | py | Python | utils.py | dendisuhubdy/ALAE | 471301aa671928748ffbd9cc191278e1ec8f29c4 | [
"Apache-2.0"
] | 3,477 | 2020-04-18T21:49:33.000Z | 2022-03-29T01:10:45.000Z | utils.py | aohan237/ALAE | 471301aa671928748ffbd9cc191278e1ec8f29c4 | [
"Apache-2.0"
] | 73 | 2020-04-23T12:34:45.000Z | 2022-03-16T13:39:52.000Z | utils.py | aohan237/ALAE | 471301aa671928748ffbd9cc191278e1ec8f29c4 | [
"Apache-2.0"
] | 592 | 2020-04-19T07:47:52.000Z | 2022-03-26T07:13:57.000Z | # Copyright 2019-2020 Stanislav Pidhorskyi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 30.873786 | 110 | 0.62956 | 395 | 3,180 | 4.903797 | 0.364557 | 0.051626 | 0.036138 | 0.023232 | 0.101704 | 0.069179 | 0.069179 | 0.069179 | 0.069179 | 0.069179 | 0 | 0.006227 | 0.242453 | 3,180 | 102 | 111 | 31.176471 | 0.797841 | 0.200629 | 0 | 0.173913 | 0 | 0 | 0.005936 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 1 | 0.202899 | false | 0 | 0.086957 | 0.028986 | 0.478261 | 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 |
0cbb04ec125880d4fcde04402a69d7f5af150368 | 445 | py | Python | Hitachi/HCP/get_hcpdir_list.py | yogeshagrawal11/cloud | fb2264e470c3ef3dc229d0fe6258140ce1bf1e9b | [
"Apache-2.0"
] | 1 | 2021-11-25T10:29:23.000Z | 2021-11-25T10:29:23.000Z | Hitachi/HCP/get_hcpdir_list.py | yogeshagrawal11/cloud | fb2264e470c3ef3dc229d0fe6258140ce1bf1e9b | [
"Apache-2.0"
] | null | null | null | Hitachi/HCP/get_hcpdir_list.py | yogeshagrawal11/cloud | fb2264e470c3ef3dc229d0fe6258140ce1bf1e9b | [
"Apache-2.0"
] | 3 | 2021-02-13T01:02:50.000Z | 2022-03-28T21:47:59.000Z | import pycurl
import os
namespacename = "namespace_name.tenantname.hcpname.domain.com"
access_token = "tokenid"
curl = pycurl.Curl()
curl.setopt(pycurl.URL, "http://" + namespacename + "/rest/")
curl.setopt(pycurl.HTTPHEADER, ["Authorization: HCP " + access_token ])
curl.setopt(pycurl.SSL_VERIFYPEER, 0)
curl.setopt(p... | 26.176471 | 71 | 0.757303 | 58 | 445 | 5.706897 | 0.568966 | 0.120846 | 0.193353 | 0.114804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004963 | 0.094382 | 445 | 16 | 72 | 27.8125 | 0.816377 | 0.051685 | 0 | 0 | 0 | 0 | 0.198565 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 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 |
0cc0258d1650a5cf17973de419afeb1ac82b5774 | 3,686 | py | Python | setpasswd/src/plugin.py | FoxyRabbit67/enigma2-plugins | f6b94012726931fdf28e80a26226aec612b350de | [
"Linux-OpenIB"
] | 41 | 2016-01-21T17:54:44.000Z | 2021-06-26T05:54:41.000Z | setpasswd/src/plugin.py | FoxyRabbit67/enigma2-plugins | f6b94012726931fdf28e80a26226aec612b350de | [
"Linux-OpenIB"
] | 22 | 2016-11-16T11:25:26.000Z | 2021-12-13T09:13:06.000Z | setpasswd/src/plugin.py | FoxyRabbit67/enigma2-plugins | f6b94012726931fdf28e80a26226aec612b350de | [
"Linux-OpenIB"
] | 62 | 2016-02-05T22:55:48.000Z | 2022-03-12T21:48:22.000Z | from enigma import eConsoleAppContainer
from Screens.Screen import Screen
from Screens.MessageBox import MessageBox
from Screens.ChoiceBox import ChoiceBox
from Screens.InputBox import InputBox
from Tools.Log import Log
from Plugins.Plugin import PluginDescriptor
import string
from random import Random
class Chan... | 33.509091 | 262 | 0.720022 | 456 | 3,686 | 5.629386 | 0.304825 | 0.034281 | 0.024542 | 0.024932 | 0.108687 | 0.042852 | 0.024932 | 0 | 0 | 0 | 0 | 0.002241 | 0.15274 | 3,686 | 109 | 263 | 33.816514 | 0.819725 | 0 | 0 | 0.106383 | 0 | 0.010638 | 0.206457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.393617 | 0.095745 | 0.010638 | 0.329787 | 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 |
0cc8b392c5dc91fa087e2e73fb6ea6bb4ba05ece | 18,333 | py | Python | pylibusb/pylibusb.py | proDOOMman/KDT4Lin | 4ceefcc9be480bc91f2f172f48d323a7f6d39644 | [
"MIT"
] | 1 | 2020-06-06T15:58:36.000Z | 2020-06-06T15:58:36.000Z | pylibusb/pylibusb.py | proDOOMman/KDT4Lin | 4ceefcc9be480bc91f2f172f48d323a7f6d39644 | [
"MIT"
] | null | null | null | pylibusb/pylibusb.py | proDOOMman/KDT4Lin | 4ceefcc9be480bc91f2f172f48d323a7f6d39644 | [
"MIT"
] | null | null | null | import sys
import ctypes
__all__ = ['USBError','USBNoDataAvailableError','bulk_read','bulk_write',
'claim_interface', 'close', 'find_busses','find_devices','get_busses',
'get_string_simple', 'init','interrupt_read','interrupt_write','open',
'set_configuration','set_debug']
... | 33.700368 | 100 | 0.685267 | 2,175 | 18,333 | 5.472184 | 0.106667 | 0.035624 | 0.04117 | 0.049908 | 0.503025 | 0.410015 | 0.364309 | 0.312973 | 0.290791 | 0.225928 | 0 | 0.005534 | 0.211531 | 18,333 | 543 | 101 | 33.762431 | 0.817849 | 0.017182 | 0 | 0.292237 | 0 | 0 | 0.100477 | 0.01295 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004566 | 0.004566 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cc9d3e79b1b667156a62e16f4a52f295d39285e | 916 | py | Python | applications/pychat/init.py | nmittal18/working_open_lambda | a6b280d107a01ad1366a2ca0ccbb6f4dce736f52 | [
"Apache-2.0"
] | null | null | null | applications/pychat/init.py | nmittal18/working_open_lambda | a6b280d107a01ad1366a2ca0ccbb6f4dce736f52 | [
"Apache-2.0"
] | null | null | null | applications/pychat/init.py | nmittal18/working_open_lambda | a6b280d107a01ad1366a2ca0ccbb6f4dce736f52 | [
"Apache-2.0"
] | 1 | 2020-01-08T18:00:04.000Z | 2020-01-08T18:00:04.000Z | #!/usr/bin/env python
import os, sys, argparse
import rethinkdb as r
from lambda_func import *
from common import *
def main():
print 'Initializing %s table' % CHAT
parser = argparse.ArgumentParser()
parser.add_argument('--cluster', '-c', default='cluster')
args = parser.parse_args()
root_dir = o... | 27.757576 | 62 | 0.638646 | 133 | 916 | 4.24812 | 0.511278 | 0.021239 | 0.053097 | 0.046018 | 0.084956 | 0.084956 | 0.084956 | 0 | 0 | 0 | 0 | 0.011034 | 0.208515 | 916 | 32 | 63 | 28.625 | 0.768276 | 0.066594 | 0 | 0 | 0 | 0 | 0.128957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.16 | null | null | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ccd000985c4cfad88358089de879cc6e4abe169 | 10,008 | py | Python | app/users/views.py | ShinJam/airbnb-clone | 5f79c6ff38d268e41e1b99ba1b1ccca65da746a3 | [
"MIT"
] | null | null | null | app/users/views.py | ShinJam/airbnb-clone | 5f79c6ff38d268e41e1b99ba1b1ccca65da746a3 | [
"MIT"
] | 10 | 2020-03-03T16:15:51.000Z | 2022-02-10T09:25:15.000Z | app/users/views.py | ShinJam/airbnb-clone | 5f79c6ff38d268e41e1b99ba1b1ccca65da746a3 | [
"MIT"
] | null | null | null | import json
import os
import requests
from django.utils import translation
from django.http import HttpResponse
from django.contrib.auth.views import PasswordChangeView
from django.views.generic import FormView, DetailView, UpdateView
from django.urls import reverse_lazy, reverse
from django.shortcuts import redirect
f... | 34.75 | 142 | 0.610711 | 1,125 | 10,008 | 5.277333 | 0.185778 | 0.023581 | 0.013643 | 0.018528 | 0.38218 | 0.340239 | 0.280782 | 0.275392 | 0.268991 | 0.231093 | 0 | 0.001953 | 0.283573 | 10,008 | 287 | 143 | 34.87108 | 0.826081 | 0.006695 | 0 | 0.358333 | 0 | 0.0125 | 0.175606 | 0.011472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.075 | 0.0625 | 0.008333 | 0.283333 | 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 |
0cd2f9a50e14a3efa5dbab68692c687ad68d7eb2 | 689 | py | Python | setup.py | tsuru/tsuru-circus | 676b26105433a08fba3468095642f73f9166abe1 | [
"BSD-3-Clause"
] | 3 | 2015-11-08T15:32:05.000Z | 2020-09-02T20:27:31.000Z | setup.py | tsuru/tsuru-circus | 676b26105433a08fba3468095642f73f9166abe1 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T13:04:31.000Z | 2015-06-17T13:54:32.000Z | setup.py | tsuru/tsuru-circus | 676b26105433a08fba3468095642f73f9166abe1 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T09:47:29.000Z | 2016-08-26T06:13:26.000Z | # Copyright 2015 tsuru-circus authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from setuptools import setup, find_packages
from tsuru import __version__
setup(
name="tsuru-circus",
url="https://github.com/tsuru/tsuru-circus",
... | 31.318182 | 91 | 0.718433 | 93 | 689 | 5.150538 | 0.72043 | 0.068894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018836 | 0.152395 | 689 | 21 | 92 | 32.809524 | 0.80137 | 0.224964 | 0 | 0 | 0 | 0 | 0.356604 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 |
0ce106448b8e8ba1cdc4af9146fcca26244fef05 | 2,393 | py | Python | nn_patterns/utils/tests/dryrun.py | pikinder/nn-patterns | 50c9d9d23512707d2adb2bd7b2cd528f5cb1aaff | [
"MIT"
] | 15 | 2017-09-15T10:04:54.000Z | 2020-07-08T09:16:37.000Z | nn_patterns/utils/tests/dryrun.py | pikinder/nn-patterns | 50c9d9d23512707d2adb2bd7b2cd528f5cb1aaff | [
"MIT"
] | 2 | 2018-03-28T19:45:53.000Z | 2018-08-13T08:00:53.000Z | nn_patterns/utils/tests/dryrun.py | pikinder/nn-patterns | 50c9d9d23512707d2adb2bd7b2cd528f5cb1aaff | [
"MIT"
] | 2 | 2018-03-07T08:09:13.000Z | 2020-06-19T14:54:04.000Z | # Begin: Python 2/3 compatibility header small
# Get Python 3 functionality:
from __future__ import\
absolute_import, print_function, division, unicode_literals
from future.utils import raise_with_traceback, raise_from
# catch exception with: except Exception as e
from builtins import range, map, zip, filter
from i... | 27.825581 | 64 | 0.660677 | 283 | 2,393 | 5.44523 | 0.381625 | 0.092797 | 0.077223 | 0.061648 | 0.372485 | 0.331603 | 0.247891 | 0.247891 | 0.202466 | 0.202466 | 0 | 0.007752 | 0.245299 | 2,393 | 85 | 65 | 28.152941 | 0.845515 | 0.168826 | 0 | 0.333333 | 0 | 0 | 0.061412 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 1 | 0.156863 | false | 0.098039 | 0.235294 | 0 | 0.45098 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ce2a577b1758c884be75253800eb39f00f38445 | 8,307 | py | Python | scripts/python/road_segments/add_rwis_road_seg.py | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2020-06-03T15:59:50.000Z | 2020-12-21T11:11:57.000Z | scripts/python/road_segments/add_rwis_road_seg.py | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | null | null | null | scripts/python/road_segments/add_rwis_road_seg.py | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2019-10-02T06:47:23.000Z | 2020-02-02T18:32:23.000Z | #!/usr/bin/env python
""""""
# ============================================================================== #
# #
# (c) Copyright, 2013 University Corporation for Atmospheric Research (UCAR). #
# All rights reserved. ... | 35.652361 | 135 | 0.606476 | 1,200 | 8,307 | 3.819167 | 0.164167 | 0.041894 | 0.039712 | 0.029457 | 0.272529 | 0.116954 | 0.051931 | 0.01571 | 0.01571 | 0.01571 | 0 | 0.008965 | 0.261466 | 8,307 | 232 | 136 | 35.806034 | 0.73806 | 0.151077 | 0 | 0.052632 | 0 | 0 | 0.085442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046053 | null | null | 0.019737 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0ce74cf20bd450facbee0bd4a33c961bdc349413 | 2,379 | py | Python | api/reservation_api/views.py | vmariiechko/sport-club | 613c35b35526b1d69fb5f1ae48140db25f371bf6 | [
"MIT"
] | null | null | null | api/reservation_api/views.py | vmariiechko/sport-club | 613c35b35526b1d69fb5f1ae48140db25f371bf6 | [
"MIT"
] | null | null | null | api/reservation_api/views.py | vmariiechko/sport-club | 613c35b35526b1d69fb5f1ae48140db25f371bf6 | [
"MIT"
] | null | null | null | from django.utils import timezone
from django.shortcuts import get_object_or_404
from rest_framework import status, viewsets
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from drf_yasg.utils import swagger_auto_schema
from .serializers import CreateReservationSeri... | 38.370968 | 113 | 0.74401 | 266 | 2,379 | 6.466165 | 0.330827 | 0.048837 | 0.055814 | 0.045349 | 0.32093 | 0.238372 | 0.180233 | 0.111628 | 0.111628 | 0.054651 | 0 | 0.018311 | 0.173602 | 2,379 | 61 | 114 | 39 | 0.856562 | 0.082808 | 0 | 0.157895 | 0 | 0 | 0.019645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.210526 | 0 | 0.578947 | 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 |
0cfb76e1f1c4424b1527c94e37ad6f35fc2a767a | 12,950 | py | Python | bayesrate/BayesRate1.py | schnitzler-j/BayesRate | 86fb252df8589c89fce1c42699c69c5e2bbccb6f | [
"MIT"
] | 3 | 2016-11-10T00:04:47.000Z | 2018-02-01T17:39:09.000Z | bayesrate/BayesRate1.py | schnitzler-j/BayesRate | 86fb252df8589c89fce1c42699c69c5e2bbccb6f | [
"MIT"
] | null | null | null | bayesrate/BayesRate1.py | schnitzler-j/BayesRate | 86fb252df8589c89fce1c42699c69c5e2bbccb6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Created by Daniele Silvestro on 27/08/2010. => dsilvestro@senckenberg.de
import sys
import os
import os.path
import platform
from math import *
from numpy import *
import random
import time
import csv
from likelihood import *
from prior import *
from help import *
from files import *
from mcmc_... | 39.361702 | 202 | 0.653436 | 2,256 | 12,950 | 3.602837 | 0.136525 | 0.009843 | 0.015994 | 0.018824 | 0.363927 | 0.318406 | 0.260827 | 0.245448 | 0.226255 | 0.203986 | 0 | 0.029266 | 0.176757 | 12,950 | 328 | 203 | 39.481707 | 0.733139 | 0.087568 | 0 | 0.131086 | 0 | 0.048689 | 0.238391 | 0.039363 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022472 | 0.052434 | null | null | 0.071161 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
49031dabbb056611149d24afde0c0ea49175e2c4 | 733 | py | Python | python--learnings/coding-practice/pairs_of_socks.py | jekhokie/scriptbox | 93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70 | [
"MIT"
] | 11 | 2020-03-29T09:12:25.000Z | 2022-03-24T01:01:50.000Z | python--learnings/coding-practice/pairs_of_socks.py | jekhokie/scriptbox | 93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70 | [
"MIT"
] | 5 | 2021-06-02T03:41:51.000Z | 2022-02-26T03:48:50.000Z | python--learnings/coding-practice/pairs_of_socks.py | jekhokie/scriptbox | 93c03d8ab9b7e7cd9c5c6a65b444392ffe92fd70 | [
"MIT"
] | 8 | 2019-02-01T13:33:14.000Z | 2021-12-14T20:16:03.000Z | #!/usr/bin/env python
#
# Given an array of integers, count how many pairs of socks exist.
#
import math
import os
import random
import re
import sys
# Complete the sockMerchant function below.
def sockMerchant(n, ar):
keys = set(ar)
vals = [ar.count(i) for i in keys]
socks = dict(zip(keys, vals))
pai... | 20.942857 | 66 | 0.60573 | 111 | 733 | 3.918919 | 0.585586 | 0.089655 | 0.103448 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037234 | 0.230559 | 733 | 34 | 67 | 21.558824 | 0.734043 | 0.173261 | 0 | 0 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
490400cf68bbfdfe08937bd9c217f9d7a266e59f | 2,804 | py | Python | tinder/monitor.py | elbaro/tinder | 68f8d61ccfddade3276e8081820cb32269af572f | [
"MIT"
] | 6 | 2018-01-08T11:23:14.000Z | 2019-05-15T11:42:34.000Z | tinder/monitor.py | elbaro/tinder | 68f8d61ccfddade3276e8081820cb32269af572f | [
"MIT"
] | 2 | 2018-07-11T06:17:19.000Z | 2018-07-24T11:54:13.000Z | tinder/monitor.py | elbaro/tinder | 68f8d61ccfddade3276e8081820cb32269af572f | [
"MIT"
] | null | null | null | from types import SimpleNamespace
class Stat(object):
"""A small class that calculates the statistics for a scalar metric.
This is useful to calcaulate accuracies and losses across minibatches.
Args:
alpha (float): Defaults to 1. Weight(0~1) used for exponential moving average.
A smal... | 27.490196 | 86 | 0.562767 | 352 | 2,804 | 4.357955 | 0.295455 | 0.027379 | 0.032595 | 0.045632 | 0.159061 | 0.159061 | 0.159061 | 0.159061 | 0.159061 | 0.159061 | 0 | 0.007361 | 0.321683 | 2,804 | 101 | 87 | 27.762376 | 0.799159 | 0.311698 | 0 | 0.2 | 0 | 0 | 0.013363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.02 | 0 | 0.38 | 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 |
4905fc873befe30d2439658fb02d5726f30a504c | 576 | py | Python | Easy/1304 Find N Unique Integers Sum up to Zero.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | Easy/1304 Find N Unique Integers Sum up to Zero.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | Easy/1304 Find N Unique Integers Sum up to Zero.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | # https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero/
class Solution:
def sumZero(self, n: int) -> List[int]:
res = []
if n % 2 == 0:
for i in range(1, (n // 2) + 1):
res.append(i)
for i in range(-(n // 2), 0):
res.... | 21.333333 | 70 | 0.399306 | 76 | 576 | 3.026316 | 0.407895 | 0.043478 | 0.104348 | 0.191304 | 0.513043 | 0.504348 | 0.504348 | 0.504348 | 0.504348 | 0.504348 | 0 | 0.041401 | 0.454861 | 576 | 26 | 71 | 22.153846 | 0.691083 | 0.118056 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 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 |
0b23431ea7c1eb560f083c9574dd830a99b72157 | 5,063 | py | Python | py3dep/print_versions.py | DavidChoi76/py3dep | b1e0df64a453aad6607873e422b5448ce9658003 | [
"MIT"
] | null | null | null | py3dep/print_versions.py | DavidChoi76/py3dep | b1e0df64a453aad6607873e422b5448ce9658003 | [
"MIT"
] | null | null | null | py3dep/print_versions.py | DavidChoi76/py3dep | b1e0df64a453aad6607873e422b5448ce9658003 | [
"MIT"
] | null | null | null | """Utility functions for printing version information.
The original script is from
`xarray <https://github.com/pydata/xarray/blob/master/xarray/util/print_versions.py>`__
"""
import importlib
import locale
import os
import platform
import struct
import subprocess
import sys
def get_sys_info():
"""Return system i... | 31.447205 | 87 | 0.575943 | 546 | 5,063 | 5.029304 | 0.313187 | 0.06555 | 0.142025 | 0.200656 | 0.033503 | 0.033503 | 0.022578 | 0.022578 | 0.022578 | 0 | 0 | 0.007137 | 0.280466 | 5,063 | 160 | 88 | 31.64375 | 0.746637 | 0.123642 | 0 | 0.12069 | 0 | 0 | 0.134765 | 0.010964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.017241 | 0.103448 | 0 | 0.163793 | 0.051724 | 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 |
0b25df9f0f7d3a91cde734a1a2d35ec67ec6f4c3 | 8,121 | py | Python | python3/tests/importing/test_import_statement.py | marekzidek/vim-nayvy | b3699f978e449aa669dd9bd4b13ae7c2d07d76c4 | [
"MIT"
] | 68 | 2020-03-17T07:36:42.000Z | 2022-02-18T13:21:22.000Z | python3/tests/importing/test_import_statement.py | marekzidek/vim-nayvy | b3699f978e449aa669dd9bd4b13ae7c2d07d76c4 | [
"MIT"
] | 2 | 2020-03-17T06:52:44.000Z | 2021-01-03T06:45:13.000Z | python3/tests/importing/test_import_statement.py | marekzidek/vim-nayvy | b3699f978e449aa669dd9bd4b13ae7c2d07d76c4 | [
"MIT"
] | 5 | 2020-03-17T07:42:23.000Z | 2022-01-02T23:02:36.000Z | import unittest
from typing import List
from nayvy.importing.import_statement import (
ImportAsPart,
SingleImport,
ImportStatement
)
class TestImportAsPart(unittest.TestCase):
def test_of(self) -> None:
# named import
res = ImportAsPart.of('tensorflow as tf')
assert res is no... | 28.59507 | 94 | 0.448098 | 694 | 8,121 | 5.129683 | 0.142651 | 0.045506 | 0.047472 | 0.040449 | 0.591011 | 0.524438 | 0.496348 | 0.433146 | 0.361798 | 0.296067 | 0 | 0.006868 | 0.444157 | 8,121 | 283 | 95 | 28.696113 | 0.78179 | 0.032139 | 0 | 0.495902 | 0 | 0 | 0.122355 | 0 | 0 | 0 | 0 | 0 | 0.155738 | 1 | 0.036885 | false | 0 | 0.422131 | 0 | 0.491803 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b2b6feb0eb3416d857b773912a6caabd0002292 | 1,118 | py | Python | train.py | azawalich/flair | f0101ab25381aefa586ecb688d4f412d5fab5de3 | [
"MIT"
] | null | null | null | train.py | azawalich/flair | f0101ab25381aefa586ecb688d4f412d5fab5de3 | [
"MIT"
] | null | null | null | train.py | azawalich/flair | f0101ab25381aefa586ecb688d4f412d5fab5de3 | [
"MIT"
] | null | null | null |
from flair.trainers import ModelTrainer
from flair.models import SequenceTagger
from typing import List
import flair.datasets
from flair.data import Corpus
from flair.embeddings import TokenEmbeddings, WordEmbeddings, StackedEmbeddings, FlairEmbeddings, CharacterEmbeddings
from flair.training_utils import EvaluationMe... | 44.72 | 117 | 0.813953 | 139 | 1,118 | 6.366906 | 0.47482 | 0.061017 | 0.054237 | 0.088136 | 0.061017 | 0.061017 | 0 | 0 | 0 | 0 | 0 | 0.00993 | 0.099284 | 1,118 | 24 | 118 | 46.583333 | 0.868918 | 0 | 0 | 0 | 0 | 0 | 0.104745 | 0.096688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.347826 | 0 | 0.347826 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b3361ed4f2b178271b2214e435bd532d115452d | 1,460 | py | Python | tests/test_table.py | cswilson14/boxnotes2html | 2c17d57002a489f0fcc857fe41cf20a9578c3802 | [
"MIT"
] | 35 | 2019-02-12T03:25:11.000Z | 2022-03-20T13:31:19.000Z | tests/test_table.py | cswilson14/boxnotes2html | 2c17d57002a489f0fcc857fe41cf20a9578c3802 | [
"MIT"
] | 1 | 2020-07-24T13:24:17.000Z | 2020-07-24T13:24:17.000Z | tests/test_table.py | cswilson14/boxnotes2html | 2c17d57002a489f0fcc857fe41cf20a9578c3802 | [
"MIT"
] | 7 | 2019-08-27T09:06:14.000Z | 2022-02-02T19:48:15.000Z | from boxnotes2html.table import Table
class TestTable:
def test_render_markdown(self):
table = Table()
table.add_data(1, 1, "Name")
table.add_data(1, 2, "Country")
table.add_data(1, 3, "Birthdate")
table.add_data(2, 1, "Jill")
table.add_data(2, 2, "Aus... | 33.181818 | 105 | 0.521918 | 181 | 1,460 | 4.088398 | 0.281768 | 0.141892 | 0.227027 | 0.122973 | 0.341892 | 0.228378 | 0.110811 | 0.110811 | 0.110811 | 0.110811 | 0 | 0.061992 | 0.326027 | 1,460 | 43 | 106 | 33.953488 | 0.690041 | 0.062329 | 0 | 0.206897 | 0 | 0.034483 | 0.281041 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.137931 | 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 |
0b35a34716923dcddfa498f6fa06a3c4caff115e | 392 | py | Python | chapter13/hello_another_world.py | AmatsukiUrato/study_python | e06afbc92a6f112ff9d3159bea4abcca6b17d280 | [
"MIT"
] | null | null | null | chapter13/hello_another_world.py | AmatsukiUrato/study_python | e06afbc92a6f112ff9d3159bea4abcca6b17d280 | [
"MIT"
] | null | null | null | chapter13/hello_another_world.py | AmatsukiUrato/study_python | e06afbc92a6f112ff9d3159bea4abcca6b17d280 | [
"MIT"
] | 1 | 2019-04-11T04:08:03.000Z | 2019-04-11T04:08:03.000Z | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "hello world"
if __name__ == '__main__':
app.run()
'''
if you want to open application on localAreaNetwork
'''
# app.run(host='0.0.0.0')
'''
if you want to switch to debug mode
'''
# ap... | 15.076923 | 55 | 0.558673 | 53 | 392 | 3.886792 | 0.509434 | 0.116505 | 0.087379 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.280612 | 392 | 25 | 56 | 15.68 | 0.716312 | 0.178571 | 0 | 0 | 0 | 0 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0b36dd170fb9aa225654eb9dbce342e8106c96b5 | 1,301 | py | Python | integration_tests/initialization/test_initialization.py | gruyaume/my-blockchain | 283f5ef0c8c09eff0478dfead3950c720cda2882 | [
"Apache-2.0"
] | 4 | 2021-11-14T17:16:03.000Z | 2022-03-17T21:01:42.000Z | integration_tests/initialization/test_initialization.py | gruyaume/my-blockchain | 283f5ef0c8c09eff0478dfead3950c720cda2882 | [
"Apache-2.0"
] | null | null | null | integration_tests/initialization/test_initialization.py | gruyaume/my-blockchain | 283f5ef0c8c09eff0478dfead3950c720cda2882 | [
"Apache-2.0"
] | 5 | 2021-07-30T14:27:37.000Z | 2021-12-15T12:08:46.000Z | import time
import pytest
from common.node import Node
from integration_tests.common.blockchain_network import DefaultBlockchainNetwork, NODE00_HOSTNAME, \
NODE01_HOSTNAME, NODE02_HOSTNAME
@pytest.fixture(scope="module")
def node00():
return Node(NODE00_HOSTNAME)
@pytest.fixture(scope="module")
def node01... | 27.104167 | 100 | 0.749424 | 167 | 1,301 | 5.502994 | 0.287425 | 0.065288 | 0.091404 | 0.113166 | 0.319913 | 0.230686 | 0.154516 | 0 | 0 | 0 | 0 | 0.046533 | 0.157571 | 1,301 | 47 | 101 | 27.680851 | 0.791971 | 0 | 0 | 0.176471 | 0 | 0 | 0.11299 | 0.076095 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.147059 | false | 0 | 0.117647 | 0.117647 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0b3a1e8b383f6f2d81fe788415762e5c7c72db43 | 4,766 | py | Python | tests/Transactions/AssociationTest.py | ltonetwork/lto-api.python | 58a5370454f7a73b73a7c803b42c77775fbe27c7 | [
"MIT"
] | 4 | 2021-07-07T14:59:19.000Z | 2022-03-17T11:45:27.000Z | tests/Transactions/AssociationTest.py | ltonetwork/lto-api.python | 58a5370454f7a73b73a7c803b42c77775fbe27c7 | [
"MIT"
] | 23 | 2021-06-24T13:07:54.000Z | 2022-03-30T11:39:49.000Z | tests/Transactions/AssociationTest.py | ltonetwork/lto-api.python | 58a5370454f7a73b73a7c803b42c77775fbe27c7 | [
"MIT"
] | 2 | 2020-10-18T14:01:56.000Z | 2022-03-15T08:39:04.000Z | from LTO.Accounts.AccountFactoryED25519 import AccountED25519 as AccountFactory
from LTO.Transactions.Association import Association
from unittest import mock
from time import time
class TestAssociation:
ACCOUNT_SEED = "df3dd6d884714288a39af0bd973a1771c9f00f168cf040d6abb6a50dd5e055d8"
account = AccountFactory... | 44.962264 | 154 | 0.682753 | 286 | 4,766 | 11.342657 | 0.34965 | 0.041924 | 0.08693 | 0.089396 | 0.232429 | 0.207768 | 0.131011 | 0.082306 | 0.082306 | 0 | 0 | 0.135238 | 0.228913 | 4,766 | 105 | 155 | 45.390476 | 0.747483 | 0.030424 | 0 | 0.159091 | 0 | 0 | 0.354329 | 0.290476 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.079545 | false | 0 | 0.045455 | 0.022727 | 0.159091 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b3a5d3f6135db0b72cf8e4aa99af58e3ac5fe17 | 6,030 | py | Python | kgtk/cli/clean_data.py | nicklein/kgtk | 54a95e6319251a34815053e0c26973f1c91998af | [
"MIT"
] | null | null | null | kgtk/cli/clean_data.py | nicklein/kgtk | 54a95e6319251a34815053e0c26973f1c91998af | [
"MIT"
] | null | null | null | kgtk/cli/clean_data.py | nicklein/kgtk | 54a95e6319251a34815053e0c26973f1c91998af | [
"MIT"
] | null | null | null | """
Copy a KGTK file, validating it and producing a clean KGTK file (no
comments, whitespace lines, etc.) as output.
TODO: Need KgtkWriterOptions.
TODO: Need to plumn the infrastructure so we can report at least
a count of how many repair actions took place (per action type).
Ideally, we'ld like the optino to log ind... | 40.743243 | 126 | 0.639138 | 707 | 6,030 | 5.241867 | 0.257426 | 0.056125 | 0.055046 | 0.038856 | 0.312196 | 0.267404 | 0.184026 | 0.128171 | 0.110092 | 0.04803 | 0 | 0.000693 | 0.281924 | 6,030 | 147 | 127 | 41.020408 | 0.855196 | 0.112604 | 0 | 0.090909 | 0 | 0.010101 | 0.140034 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.030303 | false | 0 | 0.111111 | 0.010101 | 0.161616 | 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 | 1 | 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.