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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dba6962f3f61970d0b3a6fa06471cc31dac1dc21 | 1,195 | py | Python | mglg/graphics/drawable.py | aforren1/mglg | a9b703e109a66377dd404929fc0b13ccc12b5214 | [
"MIT"
] | null | null | null | mglg/graphics/drawable.py | aforren1/mglg | a9b703e109a66377dd404929fc0b13ccc12b5214 | [
"MIT"
] | 9 | 2019-08-05T21:11:09.000Z | 2021-11-18T18:19:33.000Z | mglg/graphics/drawable.py | aforren1/mglg | a9b703e109a66377dd404929fc0b13ccc12b5214 | [
"MIT"
] | null | null | null | import abc
import numpy as np
from mglg.graphics.object import Object2D
class Drawable(abc.ABC):
def __init__(self, window, visible=True, *args, **kwargs):
# window should have moderngl context, width/height, and view*projection matrix
super().__init__(*args, **kwargs)
self.win = window
... | 29.875 | 87 | 0.648536 | 158 | 1,195 | 4.803797 | 0.563291 | 0.052701 | 0.028986 | 0.050066 | 0.105402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003386 | 0.258577 | 1,195 | 39 | 88 | 30.641026 | 0.853273 | 0.396653 | 0 | 0.285714 | 0 | 0 | 0.009845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.095238 | 0.142857 | 0 | 0.47619 | 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 |
dba722776fa5abff760623fbc429eb0a21ebf3bc | 3,249 | py | Python | total vol2.py | Hmaksu/Zoom-Duration-Calculator | 118dbc17997b54f398914fb399ca2c882b0d0969 | [
"MIT"
] | null | null | null | total vol2.py | Hmaksu/Zoom-Duration-Calculator | 118dbc17997b54f398914fb399ca2c882b0d0969 | [
"MIT"
] | null | null | null | total vol2.py | Hmaksu/Zoom-Duration-Calculator | 118dbc17997b54f398914fb399ca2c882b0d0969 | [
"MIT"
] | null | null | null | import xlrd
import xlsxwriter
inputWorkbook = xlrd.open_workbook("Tüm Edit.xls")
attendees = []
inputWorksheet = inputWorkbook.sheet_by_index(0)
for t in range(inputWorksheet.nrows-1):
t += 1
attendee = []
attendee.append(inputWorksheet.cell_value(t,0))
attendee.append(inputWorksheet.... | 34.56383 | 93 | 0.481687 | 355 | 3,249 | 4.332394 | 0.169014 | 0.20156 | 0.078674 | 0.061769 | 0.630689 | 0.622887 | 0.518856 | 0.518856 | 0.486346 | 0.486346 | 0 | 0.034131 | 0.395814 | 3,249 | 93 | 94 | 34.935484 | 0.748854 | 0 | 0 | 0.628205 | 0 | 0 | 0.025982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 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 |
dba7e99316740dead44139742a147a7cc4336292 | 1,533 | py | Python | hard-gists/c70fb69eef42d40bed06/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/c70fb69eef42d40bed06/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/c70fb69eef42d40bed06/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/env python
try:
# for python newer than 2.7
from collections import OrderedDict
except ImportError:
# use backport from pypi
from ordereddict import OrderedDict
import yaml
# try to use LibYAML bindings if possible
try:
from yaml import CLoader as Loader, CDumper as Dumper
excep... | 25.55 | 76 | 0.724723 | 201 | 1,533 | 5.38806 | 0.402985 | 0.025854 | 0.055402 | 0.058172 | 0.060942 | 0.060942 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.178082 | 1,533 | 59 | 77 | 25.983051 | 0.853968 | 0.213307 | 0 | 0.129032 | 0 | 0 | 0.010897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.290323 | null | null | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbad5fb6244ab7c3778b65b09107df332b7c848d | 664 | py | Python | cloudrunner_server/db/versions/231b38dd9bab_added_index_to_task_script_name.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | 2 | 2016-03-31T08:45:29.000Z | 2021-04-28T15:18:45.000Z | cloudrunner_server/db/versions/231b38dd9bab_added_index_to_task_script_name.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | cloudrunner_server/db/versions/231b38dd9bab_added_index_to_task_script_name.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | """Added index to Task.script_name
Revision ID: 231b38dd9bab
Revises: 3113a8db2582
Create Date: 2015-04-30 15:18:46.908954
"""
# revision identifiers, used by Alembic.
revision = '231b38dd9bab'
down_revision = '3113a8db2582'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto gener... | 24.592593 | 89 | 0.707831 | 88 | 664 | 5.204545 | 0.534091 | 0.087336 | 0.098253 | 0.100437 | 0.30131 | 0.30131 | 0.30131 | 0.19214 | 0 | 0 | 0 | 0.089606 | 0.159639 | 664 | 26 | 90 | 25.538462 | 0.731183 | 0.465361 | 0 | 0 | 0 | 0 | 0.263975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbb92bf126db795d5b2b7202dc4590066830bccf | 4,513 | py | Python | purchasing/conductor/upload/views.py | hamhands/pittsburgh-purchasing-suite | a79aa77c00c95da8f0b3e2f5f7f7143d5857de35 | [
"BSD-3-Clause"
] | 2 | 2016-02-05T16:32:42.000Z | 2019-07-15T18:52:29.000Z | purchasing/conductor/upload/views.py | hamhands/pittsburgh-purchasing-suite | a79aa77c00c95da8f0b3e2f5f7f7143d5857de35 | [
"BSD-3-Clause"
] | 66 | 2015-12-08T13:38:30.000Z | 2017-07-19T13:27:56.000Z | purchasing/conductor/upload/views.py | CityofPittsburgh/pittsburgh-purchasing-suite | d676ed9c137e5aaa100992a798acd60ac464a2c1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from flask import (
request, current_app, render_template,
jsonify, redirect, url_for, flash, session
)
from werkzeug import secure_filename
from purchasing.database import db
from purchasing.data.contracts import ContractBase, ContractType
from purchasing.data.importer.cost... | 34.715385 | 98 | 0.689563 | 524 | 4,513 | 5.828244 | 0.312977 | 0.027505 | 0.027505 | 0.035363 | 0.234774 | 0.219057 | 0.134905 | 0.071382 | 0.071382 | 0.036018 | 0 | 0.008317 | 0.200753 | 4,513 | 129 | 99 | 34.984496 | 0.83837 | 0.017062 | 0 | 0.184211 | 0 | 0 | 0.168508 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.144737 | null | null | 0.065789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbb94ac041635197493a448d04c159a1b11394c4 | 463 | py | Python | spacq/devices/agilent/__init__.py | bleutooth65/SpanishAcquisition3 | 50d1445c57f7ecf3bbf03a2cb28befedba1bd57a | [
"BSD-2-Clause"
] | 1 | 2020-09-30T15:52:48.000Z | 2020-09-30T15:52:48.000Z | spacq/devices/agilent/__init__.py | bleutooth65/SpanishAcquisition3 | 50d1445c57f7ecf3bbf03a2cb28befedba1bd57a | [
"BSD-2-Clause"
] | null | null | null | spacq/devices/agilent/__init__.py | bleutooth65/SpanishAcquisition3 | 50d1445c57f7ecf3bbf03a2cb28befedba1bd57a | [
"BSD-2-Clause"
] | 3 | 2019-06-13T20:59:13.000Z | 2021-02-07T03:23:11.000Z | import logging
log = logging.getLogger(__name__)
name = 'Agilent'
from . import dm34410a, dm34401a, nwa8753et
models = [dm34410a, dm34401a, nwa8753et]
log.debug('Found models for "{0}": {1}'.format(name, ''.join(str(x) for x in models)))
from .mock import mock_dm34410a, mock_dm34401a, mock_nwa8753et
mock_models = [... | 33.071429 | 96 | 0.732181 | 68 | 463 | 4.808824 | 0.323529 | 0.091743 | 0.152905 | 0.134557 | 0.440367 | 0.440367 | 0.214067 | 0.214067 | 0.214067 | 0.214067 | 0 | 0.147059 | 0.118791 | 463 | 13 | 97 | 35.615385 | 0.654412 | 0 | 0 | 0 | 0 | 0 | 0.142549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dbbaccc92b33cbbbd6b81aa0503780003bbd9696 | 1,774 | py | Python | tests/microbenchmarks/09_for_dynamic/run_dr_opt.py | rutgers-apl/omp-racer | a8a32e186950997b8eee7864f766819129a5ee06 | [
"BSD-2-Clause"
] | 2 | 2020-09-17T15:18:49.000Z | 2021-03-06T10:21:23.000Z | tests/microbenchmarks/09_for_dynamic/run_dr_opt.py | rutgers-apl/omp-racer | a8a32e186950997b8eee7864f766819129a5ee06 | [
"BSD-2-Clause"
] | 1 | 2020-09-08T18:36:24.000Z | 2020-09-17T15:18:27.000Z | tests/microbenchmarks/09_for_dynamic/run_dr_opt.py | rutgers-apl/omp-racer | a8a32e186950997b8eee7864f766819129a5ee06 | [
"BSD-2-Clause"
] | 1 | 2021-01-19T15:28:15.000Z | 2021-01-19T15:28:15.000Z | #!/usr/bin/python
import sys, string, os, popen2, shutil, platform, subprocess, pprint, time
import util, commands
from math import sqrt
def usage():
print("Usage: run_dr <microbenchmark.cpp>")
configs = []
entry = { "NAME" : "RUN_ALL_BENCHMARKS",
"NUM_RUNS" : 1,
"CLEAN_LINE" : " make clean... | 33.471698 | 177 | 0.674746 | 240 | 1,774 | 4.758333 | 0.395833 | 0.094571 | 0.048161 | 0.042032 | 0.186515 | 0.164623 | 0.112084 | 0.112084 | 0.112084 | 0.112084 | 0 | 0.014132 | 0.162345 | 1,774 | 52 | 178 | 34.115385 | 0.754374 | 0.064262 | 0 | 0 | 0 | 0.052632 | 0.311594 | 0.100845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.052632 | 0.078947 | 0 | 0.105263 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbbae5ad4c213b63d7922ccda03085fd8580fe34 | 2,191 | py | Python | tests/test_static.py | mfkiwl/PyGPSClient | 07b8f53325f64c473d89e1aad5f16ebd29b9c614 | [
"BSD-3-Clause"
] | 51 | 2020-12-01T17:44:48.000Z | 2022-03-28T14:15:43.000Z | tests/test_static.py | mfkiwl/PyGPSClient | 07b8f53325f64c473d89e1aad5f16ebd29b9c614 | [
"BSD-3-Clause"
] | 6 | 2021-03-18T16:10:48.000Z | 2022-03-25T16:46:02.000Z | tests/test_static.py | mfkiwl/PyGPSClient | 07b8f53325f64c473d89e1aad5f16ebd29b9c614 | [
"BSD-3-Clause"
] | 16 | 2020-10-31T16:02:13.000Z | 2022-03-04T16:43:03.000Z | """
Created on 3 Oct 2020
Static method tests for pygpsclient.helpers
@author: semuadmin
"""
import unittest
from pygpsclient.helpers import *
class StaticTest(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def testdeg2rad(self):
res = deg2rad(147)
... | 24.617978 | 58 | 0.597444 | 280 | 2,191 | 4.657143 | 0.467857 | 0.069785 | 0.147239 | 0.095859 | 0.108896 | 0.044479 | 0 | 0 | 0 | 0 | 0 | 0.156095 | 0.266089 | 2,191 | 88 | 59 | 24.897727 | 0.651119 | 0.05979 | 0 | 0.034483 | 0 | 0 | 0.03655 | 0.012183 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.293103 | false | 0.034483 | 0.034483 | 0 | 0.344828 | 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 |
dbbb82f521e3c03a036d6a93d0ca89d30481248c | 2,693 | py | Python | monoalphabetic_substitution_cipher_tool.py | Highwind360/rusty_toolbin | 478ebe673991b77375342fd4286175e5217230bc | [
"MIT"
] | null | null | null | monoalphabetic_substitution_cipher_tool.py | Highwind360/rusty_toolbin | 478ebe673991b77375342fd4286175e5217230bc | [
"MIT"
] | null | null | null | monoalphabetic_substitution_cipher_tool.py | Highwind360/rusty_toolbin | 478ebe673991b77375342fd4286175e5217230bc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
A tool for encrypting and decrypting substitution ciphers.
Currently only ecrypts.
TODO: write a decrypt method
"""
from string import ascii_uppercase, ascii_lowercase
from argparse import ArgumentParser
def encrypt(plaintext, key):
"""Encrypts a plaintext using the key.
key - th... | 32.059524 | 78 | 0.6658 | 343 | 2,693 | 5.093294 | 0.41691 | 0.032055 | 0.044648 | 0.032055 | 0.12822 | 0.096165 | 0 | 0 | 0 | 0 | 0 | 0.004397 | 0.239881 | 2,693 | 83 | 79 | 32.445783 | 0.849047 | 0.29261 | 0 | 0.066667 | 0 | 0 | 0.152257 | 0 | 0 | 0 | 0 | 0.024096 | 0 | 1 | 0.066667 | false | 0 | 0.044444 | 0 | 0.155556 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
dbc5e2bf9269fc7bb10e9afe23eceefca2ccf5b5 | 21,136 | py | Python | Classes/AppTourneydrawDE.py | Somnifuguist/wiki-tennis | 9358c4d3592b9809b675eb92277d48a55ab9dc06 | [
"MIT"
] | null | null | null | Classes/AppTourneydrawDE.py | Somnifuguist/wiki-tennis | 9358c4d3592b9809b675eb92277d48a55ab9dc06 | [
"MIT"
] | null | null | null | Classes/AppTourneydrawDE.py | Somnifuguist/wiki-tennis | 9358c4d3592b9809b675eb92277d48a55ab9dc06 | [
"MIT"
] | null | null | null | # Name: Tournament draw generator (dewiki)
# Author: Somnifuguist
# Date: 10-10-2020
# Content: Generates wikitext for tennis tournament draws
import itertools
from nameparser import HumanName
from num2words import num2words
import re
import sys
sys.path.append('data')
from ClassSupportFunctions import *
f... | 55.041667 | 247 | 0.531321 | 2,736 | 21,136 | 4.033991 | 0.15095 | 0.022651 | 0.008154 | 0.006524 | 0.156564 | 0.104195 | 0.061611 | 0.054725 | 0.026819 | 0.019933 | 0 | 0.02252 | 0.30881 | 21,136 | 383 | 248 | 55.185379 | 0.732562 | 0.114402 | 0 | 0.110119 | 1 | 0.008929 | 0.108641 | 0.010982 | 0.002976 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.020833 | 0.002976 | 0.098214 | 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 |
dbcb8104a49e122f2c3e132ebab719e1af974219 | 355 | py | Python | mayan/apps/templating/classes.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | null | null | null | mayan/apps/templating/classes.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | 10 | 2021-03-20T00:01:17.000Z | 2022-03-12T00:48:43.000Z | mayan/apps/templating/classes.py | sophiawa/Mayan-EDMS | 42f20576d0c690b645a60bf53c5169cda4264231 | [
"Apache-2.0"
] | 1 | 2020-12-17T02:35:09.000Z | 2020-12-17T02:35:09.000Z | from django.template import Context, Template as DjangoTemplate
class Template(object):
def __init__(self, template_string):
self.template = DjangoTemplate(template_string=template_string)
def render(self, context=None):
context_object = Context(dict_=context or {})
return self.templ... | 29.583333 | 71 | 0.743662 | 41 | 355 | 6.195122 | 0.439024 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171831 | 355 | 11 | 72 | 32.272727 | 0.863946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbd3676485105126d54ff7ca9d0efe85b7cf8772 | 1,925 | py | Python | rolepermissions/tests/test_template_tags.py | doordash/django-role-permissions | 0dda692e3bae699ff7f35791d9ead9491de7b6a7 | [
"MIT"
] | null | null | null | rolepermissions/tests/test_template_tags.py | doordash/django-role-permissions | 0dda692e3bae699ff7f35791d9ead9491de7b6a7 | [
"MIT"
] | null | null | null | rolepermissions/tests/test_template_tags.py | doordash/django-role-permissions | 0dda692e3bae699ff7f35791d9ead9491de7b6a7 | [
"MIT"
] | null | null | null |
from django.test import TestCase
from django.contrib.auth import get_user_model
from django.template import Context, Template
from model_mommy import mommy
from rolepermissions.roles import RolesManager, AbstractUserRole
from rolepermissions.templatetags.permission_tags import has_role_template_tag
class TemRole1(... | 23.47561 | 82 | 0.633766 | 211 | 1,925 | 5.559242 | 0.303318 | 0.054561 | 0.040921 | 0.040921 | 0.359761 | 0.359761 | 0.283035 | 0.283035 | 0.283035 | 0.283035 | 0 | 0.010534 | 0.26026 | 1,925 | 81 | 83 | 23.765432 | 0.813202 | 0 | 0 | 0.314815 | 0 | 0 | 0.154366 | 0.049376 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.092593 | false | 0.092593 | 0.111111 | 0 | 0.351852 | 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 |
dbddd9fc1e1003d141720301881a71ee866bcdbc | 522 | py | Python | PLC/Methods/GetNetworkTypes.py | dreibh/planetlab-lxc-plcapi | 065dfc54a2b668e99eab343d113f1a31fb154b13 | [
"BSD-3-Clause"
] | null | null | null | PLC/Methods/GetNetworkTypes.py | dreibh/planetlab-lxc-plcapi | 065dfc54a2b668e99eab343d113f1a31fb154b13 | [
"BSD-3-Clause"
] | null | null | null | PLC/Methods/GetNetworkTypes.py | dreibh/planetlab-lxc-plcapi | 065dfc54a2b668e99eab343d113f1a31fb154b13 | [
"BSD-3-Clause"
] | null | null | null | from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.NetworkTypes import NetworkType, NetworkTypes
from PLC.Auth import Auth
class GetNetworkTypes(Method):
"""
Returns a list of all valid network types.
"""
roles = ['admin', 'pi', 'user', 'tech', '... | 22.695652 | 80 | 0.66092 | 64 | 522 | 5.359375 | 0.5625 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 522 | 22 | 81 | 23.727273 | 0.844828 | 0.08046 | 0 | 0 | 0 | 0 | 0.05819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0.076923 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
915e02f415c06ddc2c14d8440be5c99ad7024f6c | 2,305 | py | Python | run/task/converter.py | run-hub/run | 67072c4e837982aca4962f006c7eb180337e8ebc | [
"Unlicense"
] | 1 | 2016-01-14T19:37:31.000Z | 2016-01-14T19:37:31.000Z | run/task/converter.py | roll/run | 67072c4e837982aca4962f006c7eb180337e8ebc | [
"Unlicense"
] | null | null | null | run/task/converter.py | roll/run | 67072c4e837982aca4962f006c7eb180337e8ebc | [
"Unlicense"
] | null | null | null | import inspect
from ..helpers import Function
from .exception import ConvertError
from .method import MethodTask
from .prototype import Prototype
from .skip import skip
from .task import Task
class task(Function):
"""Decorate method to make task with default kwargs to invoke.
Examples
--------
There ... | 25.054348 | 78 | 0.593059 | 260 | 2,305 | 5.130769 | 0.334615 | 0.031484 | 0.02024 | 0.031484 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324078 | 2,305 | 91 | 79 | 25.32967 | 0.856226 | 0.252061 | 0 | 0.176471 | 0 | 0 | 0.06477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.137255 | 0.058824 | 0.627451 | 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 |
91637fa1a78819b176dc81080d5a5a181b1a719a | 2,172 | py | Python | instagramy/plugins/manual_loading.py | luizfloripa/instagramy | 0c082dfe1098f3540ff775cf1bf37a348c422c37 | [
"MIT"
] | 94 | 2020-09-08T05:33:02.000Z | 2022-03-30T08:13:33.000Z | instagramy/plugins/manual_loading.py | luizfloripa/instagramy | 0c082dfe1098f3540ff775cf1bf37a348c422c37 | [
"MIT"
] | 14 | 2020-09-06T16:33:40.000Z | 2022-03-30T08:12:56.000Z | instagramy/plugins/manual_loading.py | luizfloripa/instagramy | 0c082dfe1098f3540ff775cf1bf37a348c422c37 | [
"MIT"
] | 29 | 2020-11-20T07:30:53.000Z | 2022-03-30T08:13:46.000Z | """
instagramy.plugins.manual_loading
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Parse data of Instagram with manual feeding of Instagram Data in offline mode.
This classes are more useful for data analysis purpose. Store the data in json
file and Parse this data by using this classes instead of sending mul... | 26.814815 | 87 | 0.661602 | 264 | 2,172 | 5.280303 | 0.265152 | 0.10043 | 0.05165 | 0.068867 | 0.312769 | 0.077475 | 0.077475 | 0 | 0 | 0 | 0 | 0 | 0.233425 | 2,172 | 80 | 88 | 27.15 | 0.837237 | 0.627993 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9164612d8f6d2156398184fa819e2708943e694f | 1,008 | py | Python | homework.py | python-cox-class/router-homework | 87929a3157669ccf894864b5c276e94adc999f95 | [
"Apache-2.0"
] | null | null | null | homework.py | python-cox-class/router-homework | 87929a3157669ccf894864b5c276e94adc999f95 | [
"Apache-2.0"
] | null | null | null | homework.py | python-cox-class/router-homework | 87929a3157669ccf894864b5c276e94adc999f95 | [
"Apache-2.0"
] | null | null | null | import sqlalchemy as sa
from sqlalchemy.orm import sessionmaker
import hw_model as M
engine = sa.create_engine('sqlite:///test.db')
# For mysql, use something like 'mysql+mysqldb://root:foo@127.0.0.1:3306/test'
Session = sessionmaker(bind=engine)
def create_database():
M.Base.metadata.create_all(bind=engine, ch... | 22.4 | 78 | 0.684524 | 147 | 1,008 | 4.619048 | 0.421769 | 0.008837 | 0.038292 | 0.044183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040621 | 0.169643 | 1,008 | 44 | 79 | 22.909091 | 0.770609 | 0.075397 | 0 | 0.1875 | 0 | 0 | 0.105376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
916b6e82d67c6d28c8d17b8b86ec53d7182ac3df | 536 | py | Python | lininterp.py | jstac/production_chains | 8e68ffab1902fa31f0bd839de142bd7cb4361777 | [
"MIT"
] | 4 | 2018-01-29T19:20:59.000Z | 2019-11-24T01:37:12.000Z | lininterp.py | jstac/production_chains | 8e68ffab1902fa31f0bd839de142bd7cb4361777 | [
"MIT"
] | null | null | null | lininterp.py | jstac/production_chains | 8e68ffab1902fa31f0bd839de142bd7cb4361777 | [
"MIT"
] | 2 | 2017-12-03T07:04:05.000Z | 2019-12-27T17:22:47.000Z |
from scipy import interp
class linInterp:
"Provides linear interpolation in one dimension."
def __init__(self, X, Y):
"""Parameters: X and Y are sequences or arrays
containing the (x,y) interpolation points.
"""
self.X, self.Y = X, Y
def __call__(self, z):
"""Para... | 26.8 | 62 | 0.613806 | 75 | 536 | 4.28 | 0.626667 | 0.046729 | 0.056075 | 0.062305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29291 | 536 | 19 | 63 | 28.210526 | 0.846966 | 0.529851 | 0 | 0 | 0 | 0 | 0.191837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
916e0515d45bda54cd24b25150e228997e59fa4b | 2,030 | py | Python | example/hello_bro_pb2_grpc.py | v1c77/gogo | 41e39a303ae2ea6f2ab6f471b35f6787a8ee619c | [
"WTFPL"
] | 5 | 2018-09-29T10:55:17.000Z | 2022-03-13T22:10:49.000Z | example/hello_bro_pb2_grpc.py | v1c77/py_grpc_validator | 6445061320993f2c26716ab4657eeb71ef2e8910 | [
"MIT"
] | 4 | 2018-10-08T10:16:47.000Z | 2018-10-10T05:38:09.000Z | example/hello_bro_pb2_grpc.py | v1c77/gogo | 41e39a303ae2ea6f2ab6f471b35f6787a8ee619c | [
"WTFPL"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import hello_bro_pb2 as hello__bro__pb2
class BroStub(object):
"""The bro service definition.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.SayHello = channel.una... | 31.71875 | 75 | 0.728079 | 219 | 2,030 | 6.388128 | 0.310502 | 0.057184 | 0.078628 | 0.060043 | 0.627591 | 0.587563 | 0.541816 | 0.487491 | 0.487491 | 0.487491 | 0 | 0.006024 | 0.182266 | 2,030 | 63 | 76 | 32.222222 | 0.836747 | 0.126601 | 0 | 0.4 | 1 | 0 | 0.09206 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.025 | 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 |
916f10a64a1a817479e2fdd6eb61c7c9923296e8 | 3,058 | py | Python | test/calibration/test_hand_eye.py | Skylion007/zivid-python | 28b16a2f260e5d060e4fb5a3436a3f1c7d659954 | [
"BSD-3-Clause"
] | 23 | 2019-07-01T09:50:04.000Z | 2022-03-06T23:54:28.000Z | test/calibration/test_hand_eye.py | Skylion007/zivid-python | 28b16a2f260e5d060e4fb5a3436a3f1c7d659954 | [
"BSD-3-Clause"
] | 100 | 2019-07-02T07:49:13.000Z | 2022-02-16T21:05:39.000Z | test/calibration/test_hand_eye.py | Skylion007/zivid-python | 28b16a2f260e5d060e4fb5a3436a3f1c7d659954 | [
"BSD-3-Clause"
] | 13 | 2019-10-01T07:26:05.000Z | 2022-02-16T20:21:56.000Z | def test_handeye_input_init_failure(checkerboard_frames, transform):
import pytest
import zivid.calibration
frame = checkerboard_frames[0]
detection_result = zivid.calibration.detect_feature_points(frame.point_cloud())
with pytest.raises(TypeError):
# Should fail because pose should come a... | 37.292683 | 84 | 0.749836 | 349 | 3,058 | 6.329513 | 0.240688 | 0.123133 | 0.050702 | 0.039384 | 0.22182 | 0.174287 | 0.116342 | 0.086917 | 0 | 0 | 0 | 0.003976 | 0.177567 | 3,058 | 81 | 85 | 37.753086 | 0.874354 | 0.079137 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.157895 | 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 |
9175b355bc6b1b39f14e0d93a07f852cdb1d6789 | 1,591 | py | Python | code/analyse_eval.py | accept-project/automatic-post-editing | 1adb21e6ad78f6ccbd4474bcc74fccd7f52b7c8e | [
"MIT"
] | 1 | 2017-06-04T12:15:02.000Z | 2017-06-04T12:15:02.000Z | code/analyse_eval.py | accept-project/automatic-post-editing | 1adb21e6ad78f6ccbd4474bcc74fccd7f52b7c8e | [
"MIT"
] | null | null | null | code/analyse_eval.py | accept-project/automatic-post-editing | 1adb21e6ad78f6ccbd4474bcc74fccd7f52b7c8e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Analyse results of human evaluation
#
import csv
def main():
data_dir = "../data/"
seed_str = "seed"
for annotator in "0","1":
eval_stem = data_dir + "eval." + seed_str + "." + annotator
key_file = eval_stem + ".key.csv"
eval_file = eval_stem + ".csv.out"
ref_file = ... | 30.018868 | 109 | 0.57511 | 219 | 1,591 | 3.958904 | 0.292237 | 0.092272 | 0.05075 | 0.051903 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01602 | 0.254557 | 1,591 | 52 | 110 | 30.596154 | 0.715008 | 0.037712 | 0 | 0 | 0 | 0.02439 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
91821ae9dc9a0f882fc11c0f9521d08f1acea7e7 | 3,773 | py | Python | milking_cowmask/util.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-02-25T05:34:44.000Z | 2022-02-25T05:34:44.000Z | milking_cowmask/util.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | milking_cowmask/util.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | 27.143885 | 80 | 0.705804 | 564 | 3,773 | 4.583333 | 0.324468 | 0.04178 | 0.025145 | 0.024758 | 0.10793 | 0.105609 | 0.051838 | 0.051838 | 0.030174 | 0.030174 | 0 | 0.008522 | 0.19136 | 3,773 | 138 | 81 | 27.34058 | 0.838741 | 0.404453 | 0 | 0 | 0 | 0 | 0.027959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.109091 | 0.018182 | 0.509091 | 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 |
91826e44a7bb84c90055dc369539e27c62df129c | 480 | py | Python | ci_tests/run_tests.py | hbchain/hbcore | 649c67d91cf950e0fc4102a6e0ea82e5f7abd17f | [
"MIT"
] | 10 | 2020-09-26T12:00:03.000Z | 2021-07-27T06:41:40.000Z | ci_tests/run_tests.py | wuhua103/Whitecoin-core | 9225520dcdc8404022f29acdc3c17ebeb5e9cb67 | [
"MIT"
] | 23 | 2020-05-31T13:08:03.000Z | 2021-12-08T09:07:30.000Z | ci_tests/run_tests.py | wuhua103/Whitecoin-core | 9225520dcdc8404022f29acdc3c17ebeb5e9cb67 | [
"MIT"
] | 4 | 2019-12-05T15:32:08.000Z | 2021-09-21T17:53:41.000Z | #!/usr/bin/python3
import os
import sys
ci_tests_dir = os.path.dirname(__file__)
project_dir = os.path.dirname(ci_tests_dir)
witness_node_path = os.path.join(project_dir, 'programs', 'witness_node', 'witness_node')
cli_wallet_path = os.path.join(project_dir, 'programs', 'cli_wallet', 'cli_wallet')
def main():
if no... | 26.666667 | 89 | 0.739583 | 74 | 480 | 4.378378 | 0.418919 | 0.203704 | 0.061728 | 0.098765 | 0.197531 | 0.197531 | 0.197531 | 0 | 0 | 0 | 0 | 0.004728 | 0.11875 | 480 | 17 | 90 | 28.235294 | 0.761229 | 0.035417 | 0 | 0 | 0 | 0 | 0.251082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.153846 | 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 |
918444cc8cf5bde0217a8ee5aef13547152f7933 | 541 | py | Python | kube/services/jupyterhub/test-jupyterhub_config.py | BrianDehlinger/cloud-automation | ff8061069a9180bb4db85c04b35f81a36610f59c | [
"Apache-2.0"
] | 34 | 2017-12-05T17:06:05.000Z | 2022-02-27T14:32:25.000Z | kube/services/jupyterhub/test-jupyterhub_config.py | BrianDehlinger/cloud-automation | ff8061069a9180bb4db85c04b35f81a36610f59c | [
"Apache-2.0"
] | 364 | 2017-07-21T15:23:10.000Z | 2022-03-16T16:15:47.000Z | kube/services/jupyterhub/test-jupyterhub_config.py | BrianDehlinger/cloud-automation | ff8061069a9180bb4db85c04b35f81a36610f59c | [
"Apache-2.0"
] | 62 | 2018-01-23T20:24:42.000Z | 2022-03-20T23:56:25.000Z | import os
class MockNull:
pass
class MockConfig:
def __init__(self):
self.JupyterHub=MockNull()
self.KubeSpawner=MockNull()
self.RemoteUserAuthenticator=MockNull()
# read jupyterhub-config.py - for later eval
filePath=os.path.dirname(__file__) + '/jupyterhub_config.py'
with open(filePath) as f:
con... | 22.541667 | 60 | 0.733826 | 68 | 541 | 5.647059 | 0.588235 | 0.0625 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.142329 | 541 | 23 | 61 | 23.521739 | 0.825431 | 0.077634 | 0 | 0 | 0 | 0 | 0.142857 | 0.042254 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.111111 | false | 0.055556 | 0.055556 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
91862021f39282c2de82dfc0bd5571e76e811c82 | 1,237 | py | Python | IGTI - Bootcamp Desenvolvedor Python/04/cap4/pygame/Cap3 - Movendo objetos/04 - movimentos_em_diagonal.py | ruginski/DS | 7183b4845ddfd1d5a369959c0d465f838252c372 | [
"MIT"
] | null | null | null | IGTI - Bootcamp Desenvolvedor Python/04/cap4/pygame/Cap3 - Movendo objetos/04 - movimentos_em_diagonal.py | ruginski/DS | 7183b4845ddfd1d5a369959c0d465f838252c372 | [
"MIT"
] | null | null | null | IGTI - Bootcamp Desenvolvedor Python/04/cap4/pygame/Cap3 - Movendo objetos/04 - movimentos_em_diagonal.py | ruginski/DS | 7183b4845ddfd1d5a369959c0d465f838252c372 | [
"MIT"
] | null | null | null | import pygame
from pygame.locals import *
from sys import exit
background_image_filename = 'foto-igti.jpg'
sprite_image_filename = 'selo-bootcamp.png'
pygame.init()
screen = pygame.display.set_mode((640, 480), 0, 32)
background = pygame.image.load(background_image_filename).convert()
sprite = pygame.image.load(spr... | 22.907407 | 67 | 0.632983 | 181 | 1,237 | 4.138122 | 0.359116 | 0.048064 | 0.044059 | 0.034713 | 0.165554 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.256265 | 1,237 | 53 | 68 | 23.339623 | 0.76413 | 0.068715 | 0 | 0.111111 | 0 | 0 | 0.026132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.083333 | 0 | 0.083333 | 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 |
91896a023b379155e65d828be899dd361855013b | 11,020 | py | Python | graphing/rallyplot.py | jtaleric/browbeat | 88f1762a73eeb8d86825a1b5d08fa51cb57f8559 | [
"Apache-2.0"
] | 23 | 2016-02-09T18:56:45.000Z | 2017-10-06T19:34:21.000Z | graphing/rallyplot.py | jtaleric/browbeat | 88f1762a73eeb8d86825a1b5d08fa51cb57f8559 | [
"Apache-2.0"
] | 6 | 2015-12-06T18:53:13.000Z | 2016-05-20T14:47:31.000Z | graphing/rallyplot.py | jtaleric/browbeat | 88f1762a73eeb8d86825a1b5d08fa51cb57f8559 | [
"Apache-2.0"
] | 15 | 2015-09-23T13:35:07.000Z | 2019-05-28T07:44:35.000Z | #!/usr/bin/env python
from datetime import datetime
from collections import OrderedDict
import argparse
import csv
import os
import re
import subprocess
import sys
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
# Saved Measurements:
measurements = ['Min', 'Median', '90%ile', '95%ile', 'Max', '... | 62.613636 | 186 | 0.544102 | 1,141 | 11,020 | 5.072743 | 0.208589 | 0.07982 | 0.136835 | 0.148238 | 0.392882 | 0.36472 | 0.324983 | 0.281963 | 0.261057 | 0.20197 | 0 | 0.008386 | 0.307441 | 11,020 | 175 | 187 | 62.971429 | 0.75 | 0.051633 | 0 | 0.06338 | 0 | 0 | 0.126369 | 0.03719 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070423 | null | null | 0.133803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
918eb056b2cb759f259889e19c28fd6adb19843f | 622,652 | py | Python | src/solidityobf/T/solParser.py | ZhouBoXiao/SolidityObfuscator | 5a1e374fed2718a5e749e99ac7740b714636aa51 | [
"Apache-2.0"
] | 2 | 2020-04-25T08:03:26.000Z | 2020-09-09T11:16:06.000Z | src/solidityobf/T/solParser.py | ZhouBoXiao/SolidityObfuscator | 5a1e374fed2718a5e749e99ac7740b714636aa51 | [
"Apache-2.0"
] | 1 | 2020-10-30T07:42:55.000Z | 2020-10-30T09:40:31.000Z | src/solidityobf/T/solParser.py | ZhouBoXiao/SolidityObfuscator | 5a1e374fed2718a5e749e99ac7740b714636aa51 | [
"Apache-2.0"
] | 1 | 2020-10-30T02:57:56.000Z | 2020-10-30T02:57:56.000Z | # $ANTLR 3.1.3 Mar 18, 2009 10:09:25 D:\\PycharmProjects\\SolidityObfuscator\\src\\solidityobf\\T\\sol.g 2019-04-11 18:34:54
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
T__50=50
NonEsca... | 36.812818 | 762 | 0.551944 | 64,571 | 622,652 | 5.161264 | 0.028836 | 0.046962 | 0.05218 | 0.052192 | 0.708985 | 0.660721 | 0.609419 | 0.56075 | 0.516365 | 0.444357 | 0 | 0.091934 | 0.334553 | 622,652 | 16,913 | 763 | 36.814994 | 0.712397 | 0.141734 | 0 | 0.52201 | 0 | 0.01403 | 0.027216 | 0.020089 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037706 | 0.006927 | 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 |
919175843420166f868e44c984b1331a9850898e | 952 | py | Python | src/localshop/apps/packages/migrations/0009_package_name.py | tranarthur/localshop | fd6056561851c6a40df56375d106c81864b77c26 | [
"MIT"
] | 162 | 2015-01-03T07:59:18.000Z | 2022-02-04T12:37:14.000Z | src/localshop/apps/packages/migrations/0009_package_name.py | tranarthur/localshop | fd6056561851c6a40df56375d106c81864b77c26 | [
"MIT"
] | 110 | 2015-01-06T00:58:21.000Z | 2022-02-10T07:16:54.000Z | src/localshop/apps/packages/migrations/0009_package_name.py | tranarthur/localshop | fd6056561851c6a40df56375d106c81864b77c26 | [
"MIT"
] | 67 | 2015-01-15T18:12:18.000Z | 2021-09-27T09:45:55.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-25 14:16
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import re
class Migration(migrations.Migration):
dependencies = [
('packages', '0008_auto_20171116_2112'),
]
op... | 34 | 211 | 0.65021 | 114 | 952 | 5.280702 | 0.622807 | 0.033223 | 0.066445 | 0.096346 | 0.10299 | 0.10299 | 0 | 0 | 0 | 0 | 0 | 0.057105 | 0.209034 | 952 | 27 | 212 | 35.259259 | 0.742364 | 0.071429 | 0 | 0.2 | 1 | 0 | 0.257662 | 0.049943 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
919226d99715754d5e1c8f2f36ade65f7ed02b81 | 2,364 | py | Python | j5/components/servo.py | j5api/j5 | d3158cfd3d0d19ed33aba0c5c2c1f17a38fe12c7 | [
"MIT"
] | 10 | 2019-01-19T13:09:37.000Z | 2021-06-18T13:40:10.000Z | j5/components/servo.py | j5api/j5 | d3158cfd3d0d19ed33aba0c5c2c1f17a38fe12c7 | [
"MIT"
] | 681 | 2019-01-22T18:12:23.000Z | 2022-03-25T14:14:31.000Z | j5/components/servo.py | j5api/j5 | d3158cfd3d0d19ed33aba0c5c2c1f17a38fe12c7 | [
"MIT"
] | 8 | 2019-02-22T21:45:47.000Z | 2021-11-17T19:43:33.000Z | """Classes for supporting Servomotors."""
from abc import abstractmethod
from typing import Type, Union
from j5.components.component import Component, Interface
# A servo can be powered down by setting its position to None.
ServoPosition = Union[float, None]
class ServoInterface(Interface):
"""An interface con... | 27.488372 | 74 | 0.630288 | 257 | 2,364 | 5.700389 | 0.299611 | 0.066894 | 0.046416 | 0.07372 | 0.281911 | 0.111263 | 0.111263 | 0.064164 | 0.064164 | 0.064164 | 0 | 0.001788 | 0.290186 | 2,364 | 85 | 75 | 27.811765 | 0.871275 | 0.349408 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0 | 0.441176 | 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 |
9193817cff4b9e98e09a8d4103a308ac16f43959 | 584 | py | Python | campaign/migrations/0001_initial.py | tomas1207/BackendArmaGTI | 16274eb761e7f55900b1e6585dfb4b21abf25377 | [
"MIT"
] | null | null | null | campaign/migrations/0001_initial.py | tomas1207/BackendArmaGTI | 16274eb761e7f55900b1e6585dfb4b21abf25377 | [
"MIT"
] | null | null | null | campaign/migrations/0001_initial.py | tomas1207/BackendArmaGTI | 16274eb761e7f55900b1e6585dfb4b21abf25377 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-02-25 16:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='campaign',
fields=[
('id', models.AutoField... | 24.333333 | 114 | 0.554795 | 54 | 584 | 5.944444 | 0.740741 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0.315068 | 584 | 23 | 115 | 25.391304 | 0.765 | 0.077055 | 0 | 0 | 1 | 0 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9196698f98f876d9ab37ada7bc51dc35ca816e2e | 662 | py | Python | web/app/syzygy/view_history/schema.py | aaronSchanck/SepTech | 323b7db183928b43576b0f13477fccdd192fd3fa | [
"Apache-2.0"
] | 1 | 2021-09-10T17:51:40.000Z | 2021-09-10T17:51:40.000Z | web/app/syzygy/view_history/schema.py | ItsmeCurly/SepTech | 323b7db183928b43576b0f13477fccdd192fd3fa | [
"Apache-2.0"
] | 2 | 2021-04-30T15:57:12.000Z | 2021-05-01T17:55:51.000Z | web/app/syzygy/view_history/schema.py | ItsmeCurly/SepTech | 323b7db183928b43576b0f13477fccdd192fd3fa | [
"Apache-2.0"
] | 1 | 2021-09-10T17:51:10.000Z | 2021-09-10T17:51:10.000Z | """/web/app/syzygy/view_history/schema.py
Author: Adam Green (adam.green1@maine.edu)
Ashley Drexler (ashley.drexler@maine.edu)
[Description]
Classes:
[ClassesList]
Functions:
[FunctionsList]
"""
import logging
from marshmallow import Schema, fields
from ..items.schema import ItemLightSchema
l... | 16.974359 | 59 | 0.726586 | 79 | 662 | 5.949367 | 0.582278 | 0.068085 | 0.102128 | 0.085106 | 0.119149 | 0.119149 | 0 | 0 | 0 | 0 | 0 | 0.001802 | 0.161631 | 662 | 38 | 60 | 17.421053 | 0.845045 | 0.31571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9196b363da630c9836da4cf2bc8c7565274d9b24 | 12,378 | py | Python | autoscale/aws/NGFWv6.6.0/autoscale_manager/utility.py | aSauerwein/cisco-ftdv | 0d56d88a76ef32046e6c46c9fc7c1a46df209e48 | [
"Apache-2.0"
] | 8 | 2020-06-01T13:53:12.000Z | 2021-07-12T12:17:40.000Z | autoscale/aws/NGFWv6.6.0/autoscale_manager/utility.py | aSauerwein/cisco-ftdv | 0d56d88a76ef32046e6c46c9fc7c1a46df209e48 | [
"Apache-2.0"
] | 3 | 2020-07-07T20:54:05.000Z | 2021-03-10T19:32:37.000Z | autoscale/aws/NGFWv6.6.0/autoscale_manager/utility.py | aSauerwein/cisco-ftdv | 0d56d88a76ef32046e6c46c9fc7c1a46df209e48 | [
"Apache-2.0"
] | 13 | 2020-07-07T18:15:06.000Z | 2022-02-08T13:40:16.000Z | """
Copyright (c) 2020 Cisco Systems Inc or its affiliates.
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 appl... | 42.682759 | 120 | 0.588706 | 1,288 | 12,378 | 5.582298 | 0.252329 | 0.045202 | 0.015299 | 0.013908 | 0.274409 | 0.247427 | 0.210848 | 0.192211 | 0.129346 | 0.129346 | 0 | 0.011148 | 0.260785 | 12,378 | 289 | 121 | 42.83045 | 0.774645 | 0.117063 | 0 | 0.220588 | 0 | 0.014706 | 0.33355 | 0.053227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02451 | false | 0.088235 | 0.044118 | 0 | 0.093137 | 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 |
91a2ce29d636d1b990ca42dc1e62d5af31ec0633 | 308 | py | Python | lang/Python/sieve-of-eratosthenes-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | lang/Python/sieve-of-eratosthenes-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/sieve-of-eratosthenes-2.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | def primes_upto(limit):
is_prime = [False] * 2 + [True] * (limit - 1)
for n in range(int(limit**0.5 + 1.5)): # stop at ``sqrt(limit)``
if is_prime[n]:
for i in range(n*n, limit+1, n):
is_prime[i] = False
return [i for i, prime in enumerate(is_prime) if prime]
| 38.5 | 68 | 0.545455 | 53 | 308 | 3.075472 | 0.45283 | 0.171779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.295455 | 308 | 7 | 69 | 44 | 0.718894 | 0.074675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
91a9c73e028e1743034e48456787cba652063c4c | 1,238 | py | Python | transfer/apache/wsgi.py | jaredtritz/dbexplorer | 787cd7c8aa0d8e6f3913c8dc18b7e17cc8364647 | [
"Apache-2.0"
] | null | null | null | transfer/apache/wsgi.py | jaredtritz/dbexplorer | 787cd7c8aa0d8e6f3913c8dc18b7e17cc8364647 | [
"Apache-2.0"
] | null | null | null | transfer/apache/wsgi.py | jaredtritz/dbexplorer | 787cd7c8aa0d8e6f3913c8dc18b7e17cc8364647 | [
"Apache-2.0"
] | null | null | null | import sys
import os
import site
import tempfile
import socket
host = socket.gethostname()
if host == "testing-domain.edu": # testing
os.environ['ORACLE_HOME'] = '/path/to/oracle/instantclient_11_2'
os.environ['TNS_ADMIN'] = '/path/to/oracle/instantclient_11_2'
elif host == "production-domain.edu": # produc... | 36.411765 | 82 | 0.760905 | 183 | 1,238 | 5.005464 | 0.448087 | 0.045852 | 0.065502 | 0.136463 | 0.248908 | 0.248908 | 0.248908 | 0.248908 | 0.200873 | 0.200873 | 0 | 0.01577 | 0.129241 | 1,238 | 33 | 83 | 37.515152 | 0.833952 | 0.333603 | 0 | 0.210526 | 0 | 0 | 0.471095 | 0.365314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
91ae24f2d7b221803e3d5674d57112dc887cde70 | 2,950 | py | Python | entrypoint.py | KyleJFischer/MergeBranchToLabeledPRs | 4fd4968b98ec15932ba5cde602b04d2bc8eedf11 | [
"MIT"
] | null | null | null | entrypoint.py | KyleJFischer/MergeBranchToLabeledPRs | 4fd4968b98ec15932ba5cde602b04d2bc8eedf11 | [
"MIT"
] | 5 | 2021-10-06T13:27:14.000Z | 2022-03-25T13:25:15.000Z | entrypoint.py | KyleJFischer/MergeBranchToLabeledPRs | 4fd4968b98ec15932ba5cde602b04d2bc8eedf11 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import git
import os
from github import Github
DEFAULT_MESSAGE = "Hey, I Tried to Merge with Master, but encountered a merge conflict. Can you please resolve it? I am taking off the label in the meanwhile. Please put the label back on when I should try again! And Have a Great Day!"
P... | 30.729167 | 235 | 0.675254 | 372 | 2,950 | 5.303763 | 0.430108 | 0.031931 | 0.013685 | 0.04663 | 0.052712 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006066 | 0.217627 | 2,950 | 95 | 236 | 31.052632 | 0.848787 | 0.122712 | 0 | 0 | 0 | 0.016129 | 0.151668 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.112903 | false | 0 | 0.064516 | 0 | 0.241935 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
91b0829b4af08d7a06e0c4b01a9d49dcd9ce2861 | 386 | py | Python | 016/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | 1 | 2015-01-28T09:15:30.000Z | 2015-01-28T09:15:30.000Z | 016/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | null | null | null | 016/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | null | null | null | """ Project Euler problem #16. """
def problem():
""" Solve the problem.
What is the sum of the digits of the number 2**1000?.
The shift operator '<<' is used to shift each binary digit to the left,
each shift being equivalent to a multiply by two.
Answer: 1366
"""
return sum(map(int, ... | 19.3 | 75 | 0.624352 | 57 | 386 | 4.087719 | 0.701754 | 0.042918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 0.259067 | 386 | 19 | 76 | 20.315789 | 0.758741 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91b08ce93a963172cd8686854cf9d3199dd736c3 | 275 | py | Python | readJSON.py | KururuSouchou/BullshitGenerator | 9841b414dd2fd865acb9bde8ce9a28e46ad59768 | [
"MIT"
] | null | null | null | readJSON.py | KururuSouchou/BullshitGenerator | 9841b414dd2fd865acb9bde8ce9a28e46ad59768 | [
"MIT"
] | null | null | null | readJSON.py | KururuSouchou/BullshitGenerator | 9841b414dd2fd865acb9bde8ce9a28e46ad59768 | [
"MIT"
] | null | null | null | def read_json(fileName=""):
import json
if fileName != '':
strList = fileName.split(".")
if strList[len(strList)-1].lower() == "json":
with open(fileName, mode='r', encoding="utf-8") as file:
return json.loads(file.read())
| 34.375 | 68 | 0.549091 | 33 | 275 | 4.545455 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.272727 | 275 | 7 | 69 | 39.285714 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
91b09bda9ca3e09589a6d106052eb8b98a9a6e47 | 588 | py | Python | examples/demo/demo/urls.py | amrhgh/django-grpc-framework | 158e1d9001bd426410ca962e2f72b14ee3e2f935 | [
"Apache-2.0"
] | 269 | 2020-05-06T03:22:43.000Z | 2022-03-26T21:05:24.000Z | examples/demo/demo/urls.py | amrhgh/django-grpc-framework | 158e1d9001bd426410ca962e2f72b14ee3e2f935 | [
"Apache-2.0"
] | 19 | 2020-06-03T03:46:39.000Z | 2022-03-30T20:24:55.000Z | examples/demo/demo/urls.py | amrhgh/django-grpc-framework | 158e1d9001bd426410ca962e2f72b14ee3e2f935 | [
"Apache-2.0"
] | 39 | 2020-05-27T07:23:12.000Z | 2022-03-27T13:10:24.000Z | from django.contrib.auth.models import User
from django_grpc_framework import generics, proto_serializers
import demo_pb2
import demo_pb2_grpc
class UserProtoSerializer(proto_serializers.ModelProtoSerializer):
class Meta:
model = User
proto_class = demo_pb2.User
fields = ['id', 'username',... | 25.565217 | 89 | 0.768707 | 67 | 588 | 6.492537 | 0.567164 | 0.064368 | 0.05977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.153061 | 588 | 23 | 89 | 25.565217 | 0.865462 | 0 | 0 | 0 | 0 | 0 | 0.025467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
91b43dd90a1af8535e945c3a77a34c7f236742ed | 339 | py | Python | cap4/c4e4.6.py | JoseArtur/phyton-exercices | f3da4447044e445222233960f991fb2e36311131 | [
"MIT"
] | null | null | null | cap4/c4e4.6.py | JoseArtur/phyton-exercices | f3da4447044e445222233960f991fb2e36311131 | [
"MIT"
] | null | null | null | cap4/c4e4.6.py | JoseArtur/phyton-exercices | f3da4447044e445222233960f991fb2e36311131 | [
"MIT"
] | null | null | null | # Write a program that ask the distance that a passsager desire run in km.Calculate the trip price, charging $0.5per km for trips until 200km and $0.45 for longer trips.
dist=int(input("What is the total distance of your trip: "))
if dist<=200:
price=0.5*dist
else:
price=0.45*dist
print(f"The price of your trip... | 48.428571 | 169 | 0.728614 | 65 | 339 | 3.8 | 0.630769 | 0.024292 | 0.080972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.174041 | 339 | 7 | 170 | 48.428571 | 0.825 | 0.492625 | 0 | 0 | 0 | 0 | 0.467836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
91b6f01411283f11463793b747545c97b90674cb | 5,902 | py | Python | py/testdir_single_jvm/test_KMeans_basic_fvec.py | jeffreybreen/h2o | 1d1bc87c13ca81e67f333fa6146959dc70af4d6c | [
"Apache-2.0"
] | 1 | 2017-12-14T04:57:51.000Z | 2017-12-14T04:57:51.000Z | py/testdir_single_jvm/test_KMeans_basic_fvec.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | null | null | null | py/testdir_single_jvm/test_KMeans_basic_fvec.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | 1 | 2018-12-18T06:18:55.000Z | 2018-12-18T06:18:55.000Z | import unittest, time, sys, random
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_kmeans, h2o_hosts, h2o_import as h2i, h2o_jobs
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
global SEED
SEED = h2o.se... | 41.56338 | 122 | 0.590817 | 715 | 5,902 | 4.732867 | 0.337063 | 0.030733 | 0.052009 | 0.008865 | 0.538121 | 0.538121 | 0.520095 | 0.500591 | 0.484634 | 0.413121 | 0 | 0.110637 | 0.284819 | 5,902 | 141 | 123 | 41.858156 | 0.691068 | 0.15859 | 0 | 0.43617 | 0 | 0 | 0.108322 | 0.019842 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.095745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
91b7d932b57d4dfd21c9db161bdaaf3304eff848 | 1,771 | py | Python | python/example/serverdemo.py | fsksf/harpc | 8cc8128a3b42d1bbbc527daa9edf0ec9ab326468 | [
"Apache-2.0"
] | 270 | 2015-10-15T11:06:09.000Z | 2021-11-07T20:30:22.000Z | python/example/serverdemo.py | ilove523/harpc | 8cc8128a3b42d1bbbc527daa9edf0ec9ab326468 | [
"Apache-2.0"
] | 12 | 2016-03-02T06:35:29.000Z | 2022-03-31T19:08:33.000Z | python/example/serverdemo.py | ilove523/harpc | 8cc8128a3b42d1bbbc527daa9edf0ec9ab326468 | [
"Apache-2.0"
] | 150 | 2015-10-15T11:08:21.000Z | 2021-04-28T01:11:13.000Z | # -*- coding: utf-8 -*-
import logging
import os
from tutorial import TutorialService # 导入thrift生成的service
from bfd.harpc import server # 导入harpc 的server
from bfd.harpc.common import config # 导入harpc 的配置库
# 设置日志级别,格式,以及文件路径
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(n... | 41.186047 | 109 | 0.669113 | 194 | 1,771 | 5.979381 | 0.546392 | 0.036207 | 0.067241 | 0.051724 | 0.143103 | 0.143103 | 0.143103 | 0.143103 | 0.143103 | 0.143103 | 0 | 0.016209 | 0.198758 | 1,771 | 42 | 110 | 42.166667 | 0.801269 | 0.257482 | 0 | 0.193548 | 0 | 0 | 0.233205 | 0.05251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0.16129 | 0.032258 | 0.322581 | 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 |
91c2d893ccbd686f4b4c397defe946c487f78a82 | 2,614 | py | Python | jserrorlogging/migrations/0002_auto__add_field_log_remote_addr__add_field_log_session_key__add_field_.py | moqada/django-js-error-logging | c9ac21051a4e598b5f9b37585c671fd834fbe46e | [
"BSD-3-Clause"
] | 1 | 2015-12-03T06:53:29.000Z | 2015-12-03T06:53:29.000Z | jserrorlogging/migrations/0002_auto__add_field_log_remote_addr__add_field_log_session_key__add_field_.py | moqada/django-js-error-logging | c9ac21051a4e598b5f9b37585c671fd834fbe46e | [
"BSD-3-Clause"
] | null | null | null | jserrorlogging/migrations/0002_auto__add_field_log_remote_addr__add_field_log_session_key__add_field_.py | moqada/django-js-error-logging | c9ac21051a4e598b5f9b37585c671fd834fbe46e | [
"BSD-3-Clause"
] | 4 | 2015-04-16T07:19:17.000Z | 2020-03-19T14:24:42.000Z | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Log.remote_addr'
db.add_column('jserrorlogging_log', 'remote_addr',
se... | 45.859649 | 129 | 0.579954 | 284 | 2,614 | 5.179577 | 0.246479 | 0.092454 | 0.152277 | 0.217539 | 0.696805 | 0.424881 | 0.399048 | 0.362339 | 0.150918 | 0.084296 | 0 | 0.012929 | 0.230681 | 2,614 | 57 | 130 | 45.859649 | 0.718548 | 0.078424 | 0 | 0.078947 | 0 | 0 | 0.426728 | 0.22856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.236842 | 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 |
91c5108503aefb7c4a67bbcadd589386b6d6ba82 | 918 | py | Python | bootstrap/mara/passes/collect_locals.py | dacjames/mara-lang | 4f09e600f8b6907b9f610c7be0814365adad4fdf | [
"MIT"
] | 1 | 2016-09-21T23:19:41.000Z | 2016-09-21T23:19:41.000Z | bootstrap/mara/passes/collect_locals.py | dacjames/mara-lang | 4f09e600f8b6907b9f610c7be0814365adad4fdf | [
"MIT"
] | null | null | null | bootstrap/mara/passes/collect_locals.py | dacjames/mara-lang | 4f09e600f8b6907b9f610c7be0814365adad4fdf | [
"MIT"
] | null | null | null | '''
Collect all the local variables (including parameters),
attaching them to the containing defintion.
'''
from ..util.dispatch import method_store, multimethod
from .. import node
class CollectLocals(object):
_store = method_store()
def __init__(self):
self.definition = None
@multimethod(_sto... | 18.734694 | 55 | 0.590414 | 110 | 918 | 4.754545 | 0.4 | 0.057361 | 0.076482 | 0.091778 | 0.152964 | 0.152964 | 0.114723 | 0.114723 | 0.114723 | 0 | 0 | 0 | 0.278867 | 918 | 48 | 56 | 19.125 | 0.79003 | 0.107843 | 0 | 0.241379 | 0 | 0 | 0.032059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0.034483 | 0.068966 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91c921f3ef1e23c41efcee703a06c69511854f9d | 335 | py | Python | lang/py/pylib/01/re/re_email_look_behind.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/pylib/01/re/re_email_look_behind.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/pylib/01/re/re_email_look_behind.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:UTF-8 -*-
import re
twitter = re.compile(
'''
(?<=@)
([\w\d_]+)
''',
re.UNICODE | re.VERBOSE)
text = '''
This text includes two twitter handles.
One for @ThePSF, and one for the author,@doughellmann.
'''
print text
for match in twitter.findall(text):
print'... | 15.952381 | 54 | 0.602985 | 45 | 335 | 4.466667 | 0.711111 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.21194 | 335 | 20 | 55 | 16.75 | 0.757576 | 0.122388 | 0 | 0 | 0 | 0 | 0.403922 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91cb126a4aa5a924b27ea3bd2e3013b55512a10f | 408 | py | Python | jeopardy_backend/jeopardy/migrations/0007_game_show_full_question.py | daniel-weisdorf/jeopardy | 509e7fe23276c7311492e23690e9b9ee9c7083ff | [
"Apache-2.0"
] | null | null | null | jeopardy_backend/jeopardy/migrations/0007_game_show_full_question.py | daniel-weisdorf/jeopardy | 509e7fe23276c7311492e23690e9b9ee9c7083ff | [
"Apache-2.0"
] | null | null | null | jeopardy_backend/jeopardy/migrations/0007_game_show_full_question.py | daniel-weisdorf/jeopardy | 509e7fe23276c7311492e23690e9b9ee9c7083ff | [
"Apache-2.0"
] | 1 | 2021-04-04T04:56:34.000Z | 2021-04-04T04:56:34.000Z | # Generated by Django 3.1.4 on 2020-12-20 04:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jeopardy', '0006_remove_question_is_buzzed_on'),
]
operations = [
migrations.AddField(
model_name='game',
name='show... | 21.473684 | 58 | 0.620098 | 45 | 408 | 5.444444 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063973 | 0.272059 | 408 | 18 | 59 | 22.666667 | 0.760943 | 0.110294 | 0 | 0 | 1 | 0 | 0.174515 | 0.091413 | 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 |
91cb88eed209c24d4110c2033d614c2bcde4d5b0 | 14,250 | py | Python | instaclient/client/auth.py | pthalin/instaclient | 7800c641db3b5f81d0b171b6c131752502023fc5 | [
"MIT"
] | null | null | null | instaclient/client/auth.py | pthalin/instaclient | 7800c641db3b5f81d0b171b6c131752502023fc5 | [
"MIT"
] | null | null | null | instaclient/client/auth.py | pthalin/instaclient | 7800c641db3b5f81d0b171b6c131752502023fc5 | [
"MIT"
] | null | null | null | from instaclient.client import *
from instaclient.client.checker import Checker
from instaclient.client.component import Component
if TYPE_CHECKING:
from instaclient.client.instaclient import InstaClient
class Auth(Checker):
@Component._driver_required
def login(self:'InstaClient', username:str, password... | 46.116505 | 243 | 0.653333 | 1,708 | 14,250 | 5.247073 | 0.153396 | 0.022651 | 0.038831 | 0.059362 | 0.45559 | 0.409284 | 0.373354 | 0.328833 | 0.29056 | 0.279848 | 0 | 0.003848 | 0.270596 | 14,250 | 308 | 244 | 46.266234 | 0.85838 | 0.277404 | 0 | 0.398876 | 0 | 0 | 0.064121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0.073034 | 0.022472 | 0 | 0.11236 | 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 |
91d224f207939db445124324a653413d140c2aab | 4,219 | py | Python | src/volt_histogram.py | niklasj-h/crtomo_tools | 57a577ff2925c137fcc387ad49e3c9fe30025831 | [
"MIT"
] | null | null | null | src/volt_histogram.py | niklasj-h/crtomo_tools | 57a577ff2925c137fcc387ad49e3c9fe30025831 | [
"MIT"
] | null | null | null | src/volt_histogram.py | niklasj-h/crtomo_tools | 57a577ff2925c137fcc387ad49e3c9fe30025831 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Plot a histogram of a given volt.dat file (mod/volt.dat).
If a command line parameter is provided, this file we be used for plotting.
Examples
--------
# volt_histogram volt_01_f_0.000.crt
loading file: volt_01_f_0.000.crt
minimum/maximum magnitude: 0.000399 / 4.500319 Ohm
minimum/maximum p... | 30.352518 | 75 | 0.654658 | 610 | 4,219 | 4.460656 | 0.306557 | 0.132672 | 0.020581 | 0.049982 | 0.14333 | 0.087468 | 0.034546 | 0.034546 | 0 | 0 | 0 | 0.228965 | 0.191515 | 4,219 | 138 | 76 | 30.572464 | 0.568748 | 0.543968 | 0 | 0.183333 | 0 | 0 | 0.169021 | 0.012559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.066667 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91d9aeb95d12feafae6ba81f38f73c8f19ec3776 | 305 | py | Python | tests/unit/test_get_uri.py | ralphribeiro/facilita-DOU | e695ac0f58369d61fad2723bd5e52ecd80d0b33f | [
"MIT"
] | null | null | null | tests/unit/test_get_uri.py | ralphribeiro/facilita-DOU | e695ac0f58369d61fad2723bd5e52ecd80d0b33f | [
"MIT"
] | null | null | null | tests/unit/test_get_uri.py | ralphribeiro/facilita-DOU | e695ac0f58369d61fad2723bd5e52ecd80d0b33f | [
"MIT"
] | null | null | null | from datetime import date
import pytest
from src.app.config import get_uri
def test_get_uri_given_date_and_name():
today = date.today().isoformat()
name = 'DO3'
expected = f'https://inlabs.in.gov.br/index.php?p={today}&dl={today}-{name}.zip'
assert get_uri(today, name) == expected
| 25.416667 | 84 | 0.698361 | 48 | 305 | 4.270833 | 0.645833 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.160656 | 305 | 12 | 85 | 25.416667 | 0.796875 | 0 | 0 | 0 | 0 | 0.125 | 0.22549 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 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 |
91dbefb67159778f9fa820c4da40f5b4ffcf4792 | 2,007 | py | Python | test-11-HER-vs-WR/10/z-allzero/amk.py | rgarcia87/automk | 398e502fae007dc2a274f78797506cc34c6df205 | [
"MIT"
] | null | null | null | test-11-HER-vs-WR/10/z-allzero/amk.py | rgarcia87/automk | 398e502fae007dc2a274f78797506cc34c6df205 | [
"MIT"
] | null | null | null | test-11-HER-vs-WR/10/z-allzero/amk.py | rgarcia87/automk | 398e502fae007dc2a274f78797506cc34c6df205 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Created by Rodrigo Garcia-Muelas
# Rev.2020Jan28
#
"""This package generates the Input of microkinetic models for Maple.
Possible expansions:
* Put is and fs as lists, to support H2 dissociative adsorption for instance.
* Non-isothermal reactors, T depende... | 37.867925 | 96 | 0.729447 | 273 | 2,007 | 5.318681 | 0.553114 | 0.024105 | 0.020661 | 0.017906 | 0.048209 | 0.048209 | 0 | 0 | 0 | 0 | 0 | 0.005999 | 0.169407 | 2,007 | 52 | 97 | 38.596154 | 0.865027 | 0.698057 | 0 | 0 | 1 | 0 | 0.058722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91df0c2404a71029e000d1a255db33935944b2e3 | 300 | py | Python | habitat/biolab/tests.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | 1 | 2021-02-01T19:04:39.000Z | 2021-02-01T19:04:39.000Z | habitat/biolab/tests.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | habitat/biolab/tests.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | from habitat.tests import Test
class BiolabTest(Test):
assert_http_200 = [
'/biolab/',
'/biolab/experiment/',
'/biolab/experiment/add/',
'/biolab/observation/',
'/biolab/observation/add/',
'/biolab/plant/',
'/biolab/plant/add/',
]
| 17.647059 | 35 | 0.543333 | 27 | 300 | 5.962963 | 0.555556 | 0.198758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014019 | 0.286667 | 300 | 16 | 36 | 18.75 | 0.738318 | 0 | 0 | 0 | 0 | 0 | 0.42 | 0.156667 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91e1341f6b90d8cd8833cdeee62d23a4ca4edbb4 | 529 | py | Python | core_admin/des/migrations/0022_auto_20200917_1322.py | linea-it/tno | f973381280504ceb1b606b5b3ccc79b6b8c2aa4f | [
"MIT"
] | null | null | null | core_admin/des/migrations/0022_auto_20200917_1322.py | linea-it/tno | f973381280504ceb1b606b5b3ccc79b6b8c2aa4f | [
"MIT"
] | 112 | 2018-04-24T19:10:55.000Z | 2022-02-26T16:55:02.000Z | core_admin/des/migrations/0022_auto_20200917_1322.py | linea-it/tno | f973381280504ceb1b606b5b3ccc79b6b8c2aa4f | [
"MIT"
] | null | null | null | # Generated by Django 2.0.12 on 2020-09-17 13:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('des', '0021_remove_skybotjob_exposures_analyzed'),
]
operations = [
migrations.AlterField(
model_name='skybotjob',
... | 27.842105 | 176 | 0.601134 | 58 | 529 | 5.37931 | 0.810345 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.234405 | 529 | 18 | 177 | 29.388889 | 0.703704 | 0.086957 | 0 | 0 | 1 | 0 | 0.216216 | 0.08316 | 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 |
91e276c4e9c39af7d45897a48c1a755240202657 | 1,983 | py | Python | utils/create_tree_from_metadata.py | maryae/monkeybrains | 2ad8b93be02fb3cd3f8e9a191bda8a5f0ffe49f5 | [
"Apache-2.0"
] | null | null | null | utils/create_tree_from_metadata.py | maryae/monkeybrains | 2ad8b93be02fb3cd3f8e9a191bda8a5f0ffe49f5 | [
"Apache-2.0"
] | null | null | null | utils/create_tree_from_metadata.py | maryae/monkeybrains | 2ad8b93be02fb3cd3f8e9a191bda8a5f0ffe49f5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
A utility to create a Girder hierarchy from metadata.json.
Useful in testing the monkeybrains plugin to set up a hierarchy,
then set_metadata.py can be run to add the metadata.
"""
import argparse
import json
import requests.packages.urllib3
from girder_client import GirderClient
requests... | 34.789474 | 78 | 0.736762 | 266 | 1,983 | 5.244361 | 0.338346 | 0.045878 | 0.070251 | 0.086022 | 0.226523 | 0.206452 | 0.166308 | 0 | 0 | 0 | 0 | 0.001801 | 0.159859 | 1,983 | 56 | 79 | 35.410714 | 0.835534 | 0.132123 | 0 | 0 | 0 | 0 | 0.096019 | 0.014637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.194444 | 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 |
91ee1c24c1960fbc73cafa410ed6e90be5b02a6a | 616 | py | Python | templates/with_no_block.py | diramazioni/blend-sonic | 71f8782aea9e743383324f079dd1b49b31528f44 | [
"RSA-MD"
] | 2 | 2022-01-06T14:47:22.000Z | 2022-02-02T01:55:49.000Z | templates/with_no_block.py | diramazioni/blend-sonic | 71f8782aea9e743383324f079dd1b49b31528f44 | [
"RSA-MD"
] | null | null | null | templates/with_no_block.py | diramazioni/blend-sonic | 71f8782aea9e743383324f079dd1b49b31528f44 | [
"RSA-MD"
] | null | null | null | {% extends "base.py" %}
{% block extra_create %}
self.newInput("Text", "prefix", "prefix_")
self.newInput("Text", "postfix", "postfix_")
{%- endblock %}
{% block post_create %}
{{ macro.hideInput(count_args, post_args ) }}
{%- endblock %}
{%- block extra_input %}
if s["prefix"].isUse... | 23.692308 | 59 | 0.566558 | 64 | 616 | 5.28125 | 0.453125 | 0.153846 | 0.094675 | 0.159763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002105 | 0.228896 | 616 | 26 | 60 | 23.692308 | 0.709474 | 0 | 0 | 0.263158 | 0 | 0 | 0.213938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37d3d86f3442ba13edbb3d021c805ac9f192b9e9 | 391 | py | Python | setup.py | jtambasco/python-gnuplot | 0e67fa0b839f94981f8e18dfd42c30f98b68f500 | [
"MIT"
] | null | null | null | setup.py | jtambasco/python-gnuplot | 0e67fa0b839f94981f8e18dfd42c30f98b68f500 | [
"MIT"
] | null | null | null | setup.py | jtambasco/python-gnuplot | 0e67fa0b839f94981f8e18dfd42c30f98b68f500 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='gnuplotpy',
version='0.4',
description='Basic Python interface to Gnuplot.',
url='https://github.com/jtambasco/gnuplotpy.git',
author='Jean-Luc Tambasco',
author_email='an.obscurity@gmail.com',
license='MIT',
install_requires=[
... | 26.066667 | 55 | 0.621483 | 43 | 391 | 5.581395 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006689 | 0.235294 | 391 | 14 | 56 | 27.928571 | 0.795987 | 0 | 0 | 0 | 0 | 0 | 0.368286 | 0.056266 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
37df3b2a922259a2b89b0a691641d0aecf149d28 | 563 | py | Python | examples/nodes/simple_action_node.py | kkopus/ExternalNodes | 342f5e4151fc4b72839eef06c28ce20bf1746c0d | [
"MIT"
] | null | null | null | examples/nodes/simple_action_node.py | kkopus/ExternalNodes | 342f5e4151fc4b72839eef06c28ce20bf1746c0d | [
"MIT"
] | null | null | null | examples/nodes/simple_action_node.py | kkopus/ExternalNodes | 342f5e4151fc4b72839eef06c28ce20bf1746c0d | [
"MIT"
] | null | null | null | # import ActionNodeBase class
from mh_en_exec.nodes import ActionNodeBase
# import integer input port
from mh_en_exec.nodes.ports import IntegerNodeInput
# import integer output port
from mh_en_exec.nodes.ports import IntegerNodeOutput
# create new node class
class SimpleActionNode(ActionNodeBase):
# set a display n... | 25.590909 | 52 | 0.760213 | 73 | 563 | 5.767123 | 0.493151 | 0.042755 | 0.057007 | 0.085511 | 0.192399 | 0.152019 | 0.152019 | 0.152019 | 0 | 0 | 0 | 0 | 0.172291 | 563 | 22 | 53 | 25.590909 | 0.903433 | 0.332149 | 0 | 0 | 0 | 0 | 0.035326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37e35881c2c5d425b574f28de6df3f3aa78d03ab | 653 | py | Python | dnstwister/storage/interfaces.py | peterwallhead/dnstwister | 9c162282bbe48fcfda08f0deb6eadcfd8cf980b4 | [
"Unlicense"
] | null | null | null | dnstwister/storage/interfaces.py | peterwallhead/dnstwister | 9c162282bbe48fcfda08f0deb6eadcfd8cf980b4 | [
"Unlicense"
] | 1 | 2015-12-10T00:01:36.000Z | 2015-12-10T00:11:05.000Z | dnstwister/storage/interfaces.py | peterwallhead/dnstwister | 9c162282bbe48fcfda08f0deb6eadcfd8cf980b4 | [
"Unlicense"
] | null | null | null | """Storage implementations are expected to implement this interface."""
import zope.interface.verify
class IKeyValueDB(zope.interface.Interface):
"""Interface for a key-value storage."""
def set(self, key, value):
"""Set the value for key"""
def get(self, key):
"""Get a value for key or N... | 28.391304 | 76 | 0.664625 | 82 | 653 | 5.280488 | 0.512195 | 0.090069 | 0.08776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203675 | 653 | 22 | 77 | 29.681818 | 0.832692 | 0.422665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.625 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37e5f4a04ef7b8af7530856d74947fe722607434 | 883 | py | Python | script/doroom.py | xontik/domotiktamere | e51cd74e69f6192d78f0f010d68a7d6d63886eaf | [
"MIT"
] | null | null | null | script/doroom.py | xontik/domotiktamere | e51cd74e69f6192d78f0f010d68a7d6d63886eaf | [
"MIT"
] | null | null | null | script/doroom.py | xontik/domotiktamere | e51cd74e69f6192d78f0f010d68a7d6d63886eaf | [
"MIT"
] | null | null | null | import MySQLdb
import sys
import serial
db = MySQLdb.connect(host="localhost", # your host, usually localhost
user="root", # your username
passwd="root", # your password
db="domotik") # name of the data base
# you must create a Cursor o... | 30.448276 | 106 | 0.571914 | 135 | 883 | 3.740741 | 0.592593 | 0.047525 | 0.041584 | 0.059406 | 0.059406 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.287656 | 883 | 29 | 107 | 30.448276 | 0.775835 | 0.257078 | 0 | 0 | 0 | 0.047619 | 0.200617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.047619 | 0.142857 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37ea2273981360a9eeb2027a16a320d65600810f | 4,291 | py | Python | app/index/views.py | yohan394/adverstisement_backend | 79335ab17e0039673afe72c091a1598041e3506e | [
"MIT"
] | null | null | null | app/index/views.py | yohan394/adverstisement_backend | 79335ab17e0039673afe72c091a1598041e3506e | [
"MIT"
] | null | null | null | app/index/views.py | yohan394/adverstisement_backend | 79335ab17e0039673afe72c091a1598041e3506e | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect
from django.contrib.auth.models import User
from .forms import SignUpForm, ProfileForm
from .models import Profile
from client.models import Settings
from django.shortcu... | 33.523438 | 114 | 0.698206 | 541 | 4,291 | 5.332717 | 0.192237 | 0.057192 | 0.04714 | 0.033969 | 0.393414 | 0.32201 | 0.288735 | 0.258232 | 0.258232 | 0.258232 | 0 | 0.006727 | 0.203216 | 4,291 | 127 | 115 | 33.787402 | 0.837087 | 0.005127 | 0 | 0.293478 | 0 | 0 | 0.123259 | 0.04817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0.076087 | 0.108696 | 0 | 0.467391 | 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 |
37eb327c057483536c2d1c870762d1454006c9e1 | 5,242 | py | Python | draw3.py | Ozen7/vSketch | 065c40bd4d815d2a749948769b2d33d4edee5bf7 | [
"MIT"
] | null | null | null | draw3.py | Ozen7/vSketch | 065c40bd4d815d2a749948769b2d33d4edee5bf7 | [
"MIT"
] | null | null | null | draw3.py | Ozen7/vSketch | 065c40bd4d815d2a749948769b2d33d4edee5bf7 | [
"MIT"
] | 1 | 2021-03-04T15:30:37.000Z | 2021-03-04T15:30:37.000Z | import tkinter as tk
class Example(tk.Frame):
def __init__(self, root):
tk.Frame.__init__(self, root)
# create a canvas where we can demonstrate the technique
self.canvas = tk.Canvas(self)
self.canvas.pack(side="top", fill="both", expand=True)
# text items with the tag "e... | 36.402778 | 85 | 0.557993 | 643 | 5,242 | 4.44479 | 0.227061 | 0.202939 | 0.06718 | 0.053534 | 0.429671 | 0.311057 | 0.235829 | 0.216235 | 0.216235 | 0.188244 | 0 | 0.009634 | 0.306944 | 5,242 | 144 | 86 | 36.402778 | 0.777044 | 0.115414 | 0 | 0.35 | 0 | 0 | 0.107135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11 | false | 0 | 0.01 | 0 | 0.13 | 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 |
37f1c4f5569c1fb0d2c1921b46e00927628048e3 | 619 | py | Python | server/edd/profile/factory.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 13 | 2016-11-15T07:33:40.000Z | 2021-09-22T12:19:13.000Z | server/edd/profile/factory.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 40 | 2017-04-04T15:20:14.000Z | 2022-03-31T04:34:37.000Z | server/edd/profile/factory.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | 10 | 2017-09-21T07:27:01.000Z | 2022-03-10T17:02:19.000Z | import factory
from django.contrib.auth import get_user_model
from django.contrib.auth import models as auth_models
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = get_user_model()
django_get_or_create = ("username",)
username = factory.Faker("user_name")
email =... | 26.913043 | 54 | 0.71567 | 77 | 619 | 5.519481 | 0.350649 | 0.141176 | 0.112941 | 0.098824 | 0.338824 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182553 | 619 | 22 | 55 | 28.136364 | 0.839921 | 0 | 0 | 0.125 | 0 | 0 | 0.087237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37f394a9efab4ac1a5c44403d009b5a802eb6377 | 1,392 | py | Python | cfgov/v1/models/story_page.py | adebisi-aden/consumerfinance.gov | 8c0f5afac341823c59f73b0c6bd60592e0f5eaca | [
"CC0-1.0"
] | 37 | 2020-08-18T19:52:39.000Z | 2022-03-23T08:08:41.000Z | cfgov/v1/models/story_page.py | adebisi-aden/consumerfinance.gov | 8c0f5afac341823c59f73b0c6bd60592e0f5eaca | [
"CC0-1.0"
] | 338 | 2020-08-14T20:46:36.000Z | 2022-03-31T20:49:32.000Z | cfgov/v1/models/story_page.py | adebisi-aden/consumerfinance.gov | 8c0f5afac341823c59f73b0c6bd60592e0f5eaca | [
"CC0-1.0"
] | 14 | 2020-10-21T15:27:03.000Z | 2022-03-17T03:16:36.000Z | from wagtail.admin.edit_handlers import (
ObjectList, StreamFieldPanel, TabbedInterface
)
from wagtail.core.blocks import StreamBlock
from wagtail.core.fields import StreamField
from wagtail.core.models import PageManager
from v1.atomic_elements import molecules, organisms
from v1.models.base import CFGOVPage
cl... | 29 | 71 | 0.722701 | 133 | 1,392 | 7.413534 | 0.496241 | 0.044625 | 0.045639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003521 | 0.183908 | 1,392 | 47 | 72 | 29.617021 | 0.864437 | 0 | 0 | 0 | 0 | 0 | 0.046695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37f4de2aa438e89ba57aead3b4beb31517847169 | 3,059 | py | Python | samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzerTest.py | romanchyla/pylucene-trunk | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | [
"Apache-2.0"
] | null | null | null | samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzerTest.py | romanchyla/pylucene-trunk | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | [
"Apache-2.0"
] | 1 | 2021-09-30T03:59:43.000Z | 2021-09-30T03:59:43.000Z | samples/LuceneInAction/lia/analysis/positional/PositionalPorterStopAnalyzerTest.py | romanchyla/pylucene-trunk | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | [
"Apache-2.0"
] | null | null | null | # ====================================================================
# 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 re... | 35.16092 | 76 | 0.624387 | 304 | 3,059 | 6.269737 | 0.447368 | 0.03148 | 0.023085 | 0.054565 | 0.271773 | 0.271773 | 0.271773 | 0.241868 | 0.241868 | 0.133788 | 0 | 0.008254 | 0.247466 | 3,059 | 86 | 77 | 35.569767 | 0.819722 | 0.221314 | 0 | 0.166667 | 0 | 0 | 0.104307 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | null | null | 0 | 0.083333 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
37fe094cc24e629db9787f4a63ae00dbfe3d28f6 | 1,116 | py | Python | vendor/github.com/elastic/beats/packetbeat/tests/system/test_0024_http_query.py | luckydonald/dockbeat | 806a70b38d4220a21b1de029443da25f77749c90 | [
"Apache-2.0"
] | 201 | 2016-09-14T10:35:16.000Z | 2022-02-26T12:03:03.000Z | vendor/github.com/elastic/beats/packetbeat/tests/system/test_0024_http_query.py | luckydonald/dockbeat | 806a70b38d4220a21b1de029443da25f77749c90 | [
"Apache-2.0"
] | 107 | 2015-09-30T12:30:49.000Z | 2016-09-05T11:36:41.000Z | vendor/github.com/elastic/beats/packetbeat/tests/system/test_0024_http_query.py | luckydonald/dockbeat | 806a70b38d4220a21b1de029443da25f77749c90 | [
"Apache-2.0"
] | 69 | 2016-09-20T20:42:02.000Z | 2021-12-06T02:21:57.000Z | from pbtests.packetbeat import TestCase
"""
Tests for checking that HTTP query is filled.
"""
class Test(TestCase):
def test_http_post(self):
"""
Should be able to parse the parameters from the HTTP POST request.
"""
self.render_config_template()
self.run_packetbeat(pcap=... | 29.368421 | 74 | 0.572581 | 133 | 1,116 | 4.669173 | 0.413534 | 0.056361 | 0.035427 | 0.05153 | 0.663446 | 0.663446 | 0.663446 | 0.663446 | 0.663446 | 0.663446 | 0 | 0.016688 | 0.301971 | 1,116 | 37 | 75 | 30.162162 | 0.780488 | 0.119176 | 0 | 0.571429 | 0 | 0 | 0.198188 | 0.066818 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
5301b47e9e3c766bb0cbbd9cc3e36c2b89550f32 | 811 | py | Python | rfvision/utils/export.py | tycoer/rfvision-1 | db6e28746d8251d1f394544c32b9e0af388d9964 | [
"Apache-2.0"
] | 6 | 2021-09-25T03:53:06.000Z | 2022-02-19T03:25:11.000Z | rfvision/utils/export.py | tycoer/rfvision-1 | db6e28746d8251d1f394544c32b9e0af388d9964 | [
"Apache-2.0"
] | 1 | 2021-07-21T13:14:54.000Z | 2021-07-21T13:14:54.000Z | rfvision/utils/export.py | tycoer/rfvision-1 | db6e28746d8251d1f394544c32b9e0af388d9964 | [
"Apache-2.0"
] | 2 | 2021-07-16T03:25:04.000Z | 2021-11-22T06:04:01.000Z | import torch
def get_k_for_topk(k, size):
"""Get k of TopK for onnx exporting.
The K of TopK in TensorRT should not be a Tensor, while in ONNX Runtime
it could be a Tensor.Due to dynamic shape feature, we have to decide
whether to do TopK and what K it should be while exporting to ONNX.
If ret... | 30.037037 | 75 | 0.610358 | 141 | 811 | 3.453901 | 0.460993 | 0.041068 | 0.032854 | 0.057495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.331689 | 811 | 27 | 76 | 30.037037 | 0.891144 | 0.694205 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.4 | 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 |
530d3a8e052bef78e20ba962cd2b1604c3b2b44e | 994 | py | Python | rest_framework_simplejwt/exceptions.py | xrmx/django-rest-framework-simplejwt | c684e8396f8446cc289ed73a0740ca222c85470d | [
"BSD-2-Clause",
"MIT"
] | 4 | 2021-01-17T22:10:18.000Z | 2021-02-09T18:36:35.000Z | rest_framework_simplejwt/exceptions.py | xrmx/django-rest-framework-simplejwt | c684e8396f8446cc289ed73a0740ca222c85470d | [
"BSD-2-Clause",
"MIT"
] | 21 | 2021-02-04T01:37:44.000Z | 2022-03-12T01:00:55.000Z | rest_framework_simplejwt/exceptions.py | xrmx/django-rest-framework-simplejwt | c684e8396f8446cc289ed73a0740ca222c85470d | [
"BSD-2-Clause",
"MIT"
] | 2 | 2021-01-17T22:08:38.000Z | 2021-01-19T02:53:25.000Z | from django.utils.translation import gettext_lazy as _
from rest_framework import exceptions, status
class TokenError(Exception):
pass
class TokenBackendError(Exception):
pass
class DetailDictMixin:
def __init__(self, detail=None, code=None):
"""
Builds a detail dictionary for the erro... | 24.85 | 80 | 0.686117 | 112 | 994 | 5.857143 | 0.491071 | 0.091463 | 0.073171 | 0.045732 | 0.057927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003947 | 0.235412 | 994 | 39 | 81 | 25.487179 | 0.859211 | 0.079477 | 0 | 0.136364 | 0 | 0 | 0.070215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.136364 | 0.090909 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
530dd767e1ae9893fe50f299d734bbcd41a663a7 | 870 | py | Python | ucp_intro/22_try_catch_erros.py | matiasmasca/python | 7631583820d51e3132bdb793fed28cc83f4877a2 | [
"MIT"
] | null | null | null | ucp_intro/22_try_catch_erros.py | matiasmasca/python | 7631583820d51e3132bdb793fed28cc83f4877a2 | [
"MIT"
] | null | null | null | ucp_intro/22_try_catch_erros.py | matiasmasca/python | 7631583820d51e3132bdb793fed28cc83f4877a2 | [
"MIT"
] | null | null | null |
# Que hacemos cuando hay errores en nuestros programas?
# cuando potencialmente tenemos más errores?
# lista completa en https://docs.python.org/3/library/exceptions.html
""" v1
numero = int(input("Ingrese un numero:"))
print(numero)
"""
#fin v1
# v2 atrapemos ese error potencial
"""
try:
numero = int(input("In... | 21.219512 | 98 | 0.712644 | 127 | 870 | 4.88189 | 0.614173 | 0.043548 | 0.067742 | 0.101613 | 0.303226 | 0.303226 | 0.212903 | 0.212903 | 0.148387 | 0 | 0 | 0.012587 | 0.178161 | 870 | 40 | 99 | 21.75 | 0.854545 | 0.617241 | 0 | 0 | 0 | 0 | 0.315271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
530f4290aaa3b290998722b54b83ee43a2a66b71 | 14,329 | py | Python | code_base/layers_bkp.py | dixantmittal/CS5242-CNN-implementation | 2c54df47aa3b0775487e0b0bf74a2806ff9bd29e | [
"Apache-2.0"
] | null | null | null | code_base/layers_bkp.py | dixantmittal/CS5242-CNN-implementation | 2c54df47aa3b0775487e0b0bf74a2806ff9bd29e | [
"Apache-2.0"
] | null | null | null | code_base/layers_bkp.py | dixantmittal/CS5242-CNN-implementation | 2c54df47aa3b0775487e0b0bf74a2806ff9bd29e | [
"Apache-2.0"
] | null | null | null | import numpy as np
import datetime
from code_base.matrix_transformation import *
from code_base.im2col import *
from code_base.classifiers import *
def affine_forward(x, w, b):
"""
Computes the forward pass for an affine (fully-connected) layer.
The input x has shape (N, d_1, ..., d_k) and contains a min... | 36.835476 | 119 | 0.457673 | 1,748 | 14,329 | 3.661899 | 0.142449 | 0.019684 | 0.012498 | 0.026246 | 0.441494 | 0.382753 | 0.311045 | 0.227308 | 0.172317 | 0.165755 | 0 | 0.006755 | 0.297439 | 14,329 | 388 | 120 | 36.930412 | 0.629085 | 0.477005 | 0 | 0.377953 | 0 | 0 | 0.022231 | 0 | 0 | 0 | 0 | 0.015464 | 0 | 1 | 0.086614 | false | 0 | 0.03937 | 0 | 0.212598 | 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 |
531285ccbd8da124b234b214e4379e1c2164133a | 9,776 | py | Python | data/world/are_to_json.py | tsal/ataxia-go | b3943307227cb82327891424181a8d52b87b0808 | [
"BSD-3-Clause"
] | 67 | 2015-01-01T02:57:52.000Z | 2022-01-21T05:58:32.000Z | data/world/are_to_json.py | tsal/ataxia-go | b3943307227cb82327891424181a8d52b87b0808 | [
"BSD-3-Clause"
] | 3 | 2018-01-30T19:36:13.000Z | 2021-01-29T04:00:02.000Z | data/world/are_to_json.py | tsal/ataxia-go | b3943307227cb82327891424181a8d52b87b0808 | [
"BSD-3-Clause"
] | 6 | 2018-02-06T01:59:00.000Z | 2022-01-28T02:50:43.000Z | import json
import shlex
text = ''
last_str = ''
def read_char():
global text
global last_str
text = text.lstrip()
c = text[0]
text = text[1:]
last_str = c
return c
def read_word():
global text
global last_str
text = text.lstrip()
if text[0] == "'":
last_str, text = text[1:].split("'", 1)
return "'" ... | 19.869919 | 56 | 0.603723 | 1,359 | 9,776 | 4.172921 | 0.146431 | 0.054311 | 0.026979 | 0.022571 | 0.240346 | 0.180744 | 0.154294 | 0.119908 | 0.106859 | 0.106859 | 0 | 0.010973 | 0.207651 | 9,776 | 491 | 57 | 19.910387 | 0.721146 | 0.049304 | 0 | 0.321782 | 0 | 0 | 0.132118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002475 | 0.009901 | null | null | 0.022277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5319b6a23d70936559f935653b0eca8e288de24c | 488 | py | Python | videocall/asgi.py | MPradeepRaj02/MPR-Vrout-WebRTC | c8cd113c8182553347e64201b79dafa17daf0a96 | [
"MIT"
] | null | null | null | videocall/asgi.py | MPradeepRaj02/MPR-Vrout-WebRTC | c8cd113c8182553347e64201b79dafa17daf0a96 | [
"MIT"
] | null | null | null | videocall/asgi.py | MPradeepRaj02/MPR-Vrout-WebRTC | c8cd113c8182553347e64201b79dafa17daf0a96 | [
"MIT"
] | null | null | null | import os
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application
import call.routing
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "videocall.settings")
# application = get_asgi_application()
application = ProtocolT... | 25.684211 | 69 | 0.764344 | 49 | 488 | 7.428571 | 0.469388 | 0.057692 | 0.148352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151639 | 488 | 18 | 70 | 27.111111 | 0.879227 | 0.07377 | 0 | 0 | 0 | 0 | 0.117778 | 0.048889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 |
53233b7eddff6ccef98dfec80f0c0dbb19499e35 | 1,356 | py | Python | Dynamic Programming/minimal_studying.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | 1 | 2021-04-17T17:33:30.000Z | 2021-04-17T17:33:30.000Z | Dynamic Programming/minimal_studying.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | null | null | null | Dynamic Programming/minimal_studying.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | null | null | null | """
Minimal Studying
In order to graduate from State University, Angie Warner needs to pass at least one of the three subjects she is taking
this semester. She is now enrolled in Algebra, Calculus, and Statistics. Angie’s busy schedule of extra-curricular
activities allows her to spend only 4 hours per week on studying... | 32.285714 | 119 | 0.533186 | 210 | 1,356 | 3.442857 | 0.42381 | 0.011065 | 0.012448 | 0.016598 | 0.019364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100928 | 0.364307 | 1,356 | 41 | 120 | 33.073171 | 0.737819 | 0.644543 | 0 | 0 | 0 | 0 | 0.035941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.176471 | 0 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5325edcba9f474baa5f4050c9f1900ee65fe7662 | 822 | py | Python | allauth/socialaccount/providers/hubspot/provider.py | NickNaskida/django-allauth | 5c302ef0b5ca983d62023bc1041eaeac535b2f87 | [
"MIT"
] | null | null | null | allauth/socialaccount/providers/hubspot/provider.py | NickNaskida/django-allauth | 5c302ef0b5ca983d62023bc1041eaeac535b2f87 | [
"MIT"
] | 9 | 2022-02-04T17:03:01.000Z | 2022-03-30T08:44:48.000Z | allauth/socialaccount/providers/hubspot/provider.py | stungkit/django-allauth | 7c50e111078e481aa65804f88f2366a3c013b909 | [
"MIT"
] | null | null | null | from allauth.account.models import EmailAddress
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
class HubspotAccount(ProviderAccount):
pass
class HubspotProvider(OAuth2Provider):
id = "hubspot"
name = "Hubspot"
... | 24.909091 | 78 | 0.699513 | 91 | 822 | 6.208791 | 0.483516 | 0.058407 | 0.084956 | 0.116814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004594 | 0.205596 | 822 | 32 | 79 | 25.6875 | 0.860643 | 0 | 0 | 0 | 0 | 0 | 0.041363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.045455 | 0.136364 | 0.136364 | 0.727273 | 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 |
53270daa338b36f6a5c3a38f47a30c271d63fc77 | 854 | py | Python | concent/ptcl_info.py | Max-astro/A2Project | 5d40263742133f214936b06b622d08092e694aed | [
"MIT"
] | null | null | null | concent/ptcl_info.py | Max-astro/A2Project | 5d40263742133f214936b06b622d08092e694aed | [
"MIT"
] | null | null | null | concent/ptcl_info.py | Max-astro/A2Project | 5d40263742133f214936b06b622d08092e694aed | [
"MIT"
] | null | null | null | from struct import *
def dumpToBin(path, N, Mass, rs, coor, vel):
f = open(path, 'wb')
f.write(pack('i', N))
f.write(pack('d', Mass))
f.write(pack('f', rs))
for i in coor:
for j in i:
f.write(pack('f', j))
for i in vel:
for j in i:
f.write(pac... | 27.548387 | 53 | 0.489461 | 133 | 854 | 3.142857 | 0.270677 | 0.129187 | 0.215311 | 0.131579 | 0.267943 | 0.22488 | 0.22488 | 0.22488 | 0.090909 | 0 | 0 | 0.007105 | 0.340749 | 854 | 31 | 54 | 27.548387 | 0.735346 | 0.044496 | 0 | 0.423077 | 0 | 0 | 0.016582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.115385 | 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 |
53274737a09022cb8640d34372964f52d326d4a8 | 1,072 | py | Python | 2017/quals/2017-re-johnny-boy/visualize_flag.py | tonghuaroot/google-ctf | 46cb7676b4f8e1957bec352e76fa8f335cee1bd5 | [
"Apache-2.0"
] | 2,757 | 2018-04-28T21:41:36.000Z | 2022-03-29T06:33:36.000Z | 2017/quals/2017-re-johnny-boy/visualize_flag.py | tonghuaroot/google-ctf | 46cb7676b4f8e1957bec352e76fa8f335cee1bd5 | [
"Apache-2.0"
] | 20 | 2019-07-23T15:29:32.000Z | 2022-01-21T12:53:04.000Z | 2017/quals/2017-re-johnny-boy/visualize_flag.py | tonghuaroot/google-ctf | 46cb7676b4f8e1957bec352e76fa8f335cee1bd5 | [
"Apache-2.0"
] | 449 | 2018-05-09T05:54:05.000Z | 2022-03-30T14:54:18.000Z | #!/usr/bin/python
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 28.210526 | 74 | 0.668843 | 170 | 1,072 | 4.182353 | 0.582353 | 0.084388 | 0.036568 | 0.045007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027187 | 0.210821 | 1,072 | 37 | 75 | 28.972973 | 0.813239 | 0.527052 | 0 | 0 | 0 | 0 | 0.038618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
532fc040ad3622ea4e254b87930ef47ec3c4585c | 995 | py | Python | Python/299_Bulls_and_Cows.py | comicxmz001/LeetCode | 6878fe4cad7daf7067014029d7aae303ad4c1182 | [
"MIT"
] | 2 | 2016-07-03T06:18:37.000Z | 2016-07-03T06:22:55.000Z | Python/299_Bulls_and_Cows.py | comicxmz001/LeetCode | 6878fe4cad7daf7067014029d7aae303ad4c1182 | [
"MIT"
] | null | null | null | Python/299_Bulls_and_Cows.py | comicxmz001/LeetCode | 6878fe4cad7daf7067014029d7aae303ad4c1182 | [
"MIT"
] | null | null | null | class Solution(object):
def getHint(self, secret, guess):
"""
:type secret: str
:type guess: str
:rtype: str
"""
secretTable = {}
guessTable = {}
bulls = 0
cows = 0
for i in xrange(len(secret)):
if secret[i] == guess[i]:
... | 26.184211 | 55 | 0.516583 | 120 | 995 | 4.216667 | 0.375 | 0.055336 | 0.071146 | 0.075099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.356784 | 995 | 38 | 56 | 26.184211 | 0.775 | 0.052261 | 0 | 0.071429 | 0 | 0 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53301daa89e4cef50c963d45b151499694b92527 | 305 | py | Python | review/urls.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 16 | 2021-09-22T19:08:28.000Z | 2022-03-18T18:57:02.000Z | review/urls.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 6 | 2021-09-30T12:36:02.000Z | 2022-03-18T22:18:00.000Z | review/urls.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 6 | 2021-12-06T02:04:51.000Z | 2022-03-13T14:38:14.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.customerReviewHistory, name='customer_review_history'),
path('pending/', views.toBeReviewed, name='customer_to_be_reviewed'),
path('write-review/', views.writeReview, name='customer_product_review'),
]
| 30.5 | 78 | 0.721311 | 34 | 305 | 6.264706 | 0.588235 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144262 | 305 | 9 | 79 | 33.888889 | 0.816092 | 0 | 0 | 0 | 0 | 0 | 0.304054 | 0.233108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
5336eb182a80dc01c659aee367cd0e8a54b182fb | 3,950 | py | Python | skyportal/enum_types.py | avngzy/skyportal | 81986b69cc2f1f1c6f94b6c5d3e15319387a7add | [
"BSD-3-Clause"
] | null | null | null | skyportal/enum_types.py | avngzy/skyportal | 81986b69cc2f1f1c6f94b6c5d3e15319387a7add | [
"BSD-3-Clause"
] | null | null | null | skyportal/enum_types.py | avngzy/skyportal | 81986b69cc2f1f1c6f94b6c5d3e15319387a7add | [
"BSD-3-Clause"
] | null | null | null | import astropy.units as u
import inspect
import numpy as np
import sncosmo
from sncosmo.bandpasses import _BANDPASSES
from sncosmo.magsystems import _MAGSYSTEMS
import sqlalchemy as sa
from enum import Enum
from baselayer.app.env import load_env
from baselayer.log import make_log
from . import facility_apis
log = mak... | 29.924242 | 92 | 0.733165 | 489 | 3,950 | 5.654397 | 0.265849 | 0.065099 | 0.054973 | 0.009403 | 0.099819 | 0.067269 | 0.05208 | 0.05208 | 0.05208 | 0.05208 | 0 | 0.002117 | 0.163038 | 3,950 | 131 | 93 | 30.152672 | 0.834241 | 0.03519 | 0 | 0.072072 | 0 | 0 | 0.144958 | 0.011292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0.162162 | 0.099099 | 0.009009 | 0.117117 | 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 |
5338bfc15ab353cfd3a6b0acdc1ecef4d7278b62 | 251 | py | Python | src/models/heads/none.py | takedarts/skipresnet | d6f1e16042f8433a287355009e17e4e5768ad319 | [
"MIT"
] | 3 | 2022-02-03T13:25:12.000Z | 2022-02-04T16:12:23.000Z | src/models/heads/none.py | takedarts/skipresnet | d6f1e16042f8433a287355009e17e4e5768ad319 | [
"MIT"
] | null | null | null | src/models/heads/none.py | takedarts/skipresnet | d6f1e16042f8433a287355009e17e4e5768ad319 | [
"MIT"
] | 1 | 2022-02-04T12:28:02.000Z | 2022-02-04T12:28:02.000Z | import torch.nn as nn
class NoneHead(nn.Sequential):
'''
This head module does nothing.
'''
def __init__(
self,
in_channels: int,
out_channels: int,
**kwargs
) -> None:
super().__init__()
| 15.6875 | 34 | 0.533865 | 27 | 251 | 4.592593 | 0.814815 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.350598 | 251 | 15 | 35 | 16.733333 | 0.760736 | 0.119522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5338f8bb5f6bca0eb0e3cdabcdf5637515fdcaf2 | 1,099 | py | Python | arjuna-samples/arjex/lib/gns_adv/app_page_section/pages/home.py | ChandraMouliDisturbs/arjuna | 4965622fbb01a5e5b6459110c413accc5c483424 | [
"Apache-2.0"
] | null | null | null | arjuna-samples/arjex/lib/gns_adv/app_page_section/pages/home.py | ChandraMouliDisturbs/arjuna | 4965622fbb01a5e5b6459110c413accc5c483424 | [
"Apache-2.0"
] | null | null | null | arjuna-samples/arjex/lib/gns_adv/app_page_section/pages/home.py | ChandraMouliDisturbs/arjuna | 4965622fbb01a5e5b6459110c413accc5c483424 | [
"Apache-2.0"
] | null | null | null | # This file is a part of Arjuna
# Copyright 2015-2020 Rahul Verma
# Website: www.RahulVerma.net
# 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... | 28.179487 | 74 | 0.708826 | 164 | 1,099 | 4.731707 | 0.573171 | 0.07732 | 0.033505 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013841 | 0.211101 | 1,099 | 38 | 75 | 28.921053 | 0.8812 | 0.55414 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.642857 | 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 |
533c49aab259370d31f30d14c7a7a893af65c4ab | 1,682 | py | Python | test/posix/integration/udp/test.py | KristianJerpetjon/IncludeOS | 367a1dcefafd6f9618e5373c9133839f9ee2d675 | [
"Apache-2.0"
] | 1 | 2019-09-14T09:58:20.000Z | 2019-09-14T09:58:20.000Z | test/posix/integration/udp/test.py | KristianJerpetjon/IncludeOS | 367a1dcefafd6f9618e5373c9133839f9ee2d675 | [
"Apache-2.0"
] | 1 | 2016-06-28T13:30:26.000Z | 2016-06-28T13:30:26.000Z | test/posix/integration/udp/test.py | KristianJerpetjon/IncludeOS | 367a1dcefafd6f9618e5373c9133839f9ee2d675 | [
"Apache-2.0"
] | 1 | 2019-09-14T09:58:31.000Z | 2019-09-14T09:58:31.000Z | #! /usr/bin/env python
import sys
import os
import subprocess
import atexit
includeos_src = os.environ.get('INCLUDEOS_SRC',
os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0])
print 'includeos_src: {0}'.format(includeos_src)
sys.path.insert(0,includ... | 25.104478 | 120 | 0.70214 | 261 | 1,682 | 4.371648 | 0.386973 | 0.094654 | 0.056091 | 0.026293 | 0.260298 | 0.20596 | 0.14461 | 0.14461 | 0.110429 | 0.110429 | 0 | 0.031359 | 0.146849 | 1,682 | 66 | 121 | 25.484848 | 0.763763 | 0.086801 | 0 | 0.093023 | 0 | 0 | 0.150229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.139535 | null | null | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
533dd828d45bbe87fe758a802d49e0e12656a2fc | 4,600 | py | Python | transformers/scripts/train_transformer_v1.py | FRI-Energy-Analytics/2021_summer_fellows | 712bfea534a2558ed5712b07df92f08f198b1edd | [
"MIT"
] | 2 | 2021-08-17T16:01:42.000Z | 2021-09-14T20:07:40.000Z | transformers/scripts/train_transformer_v1.py | FRI-Energy-Analytics/2021_summer_fellows | 712bfea534a2558ed5712b07df92f08f198b1edd | [
"MIT"
] | 9 | 2021-08-11T14:32:53.000Z | 2022-01-14T15:55:06.000Z | transformers/scripts/train_transformer_v1.py | FRI-Energy-Analytics/2021_summer_fellows | 712bfea534a2558ed5712b07df92f08f198b1edd | [
"MIT"
] | null | null | null | """
Training model and forward passes
"""
import math
import time
import torch
from torch import nn
def generate_square_subsequent_mask(sz):
"""
Generate attention mask using triu (triangle) attention
"""
mask = (torch.triu(torch.ones(sz, sz)) == 1).transpose(0, 1)
mask = (
mask.float()
... | 30.666667 | 88 | 0.607174 | 621 | 4,600 | 4.349436 | 0.291465 | 0.012958 | 0.019993 | 0.051833 | 0.201777 | 0.177712 | 0.162903 | 0.162903 | 0.162903 | 0.162903 | 0 | 0.015338 | 0.277174 | 4,600 | 149 | 89 | 30.872483 | 0.796992 | 0.176957 | 0 | 0.111111 | 1 | 0 | 0.017005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.044444 | 0 | 0.211111 | 0.011111 | 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 |
53428b707fd55e2e7e827f66aadba05ed43f5d69 | 2,384 | py | Python | readthedocs/restapi/client.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 10 | 2019-05-21T03:00:40.000Z | 2022-03-12T11:24:39.000Z | readthedocs/restapi/client.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 12 | 2019-12-05T04:47:01.000Z | 2022-01-09T00:56:58.000Z | readthedocs/restapi/client.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 5 | 2019-07-08T23:45:10.000Z | 2021-02-26T07:29:49.000Z | # -*- coding: utf-8 -*-
"""Simple client to access our API with Slumber credentials."""
import logging
import requests
from django.conf import settings
from requests.packages.urllib3.util.retry import Retry # noqa
from requests_toolbelt.adapters import host_header_ssl
from rest_framework.renderers import JSONRender... | 28.722892 | 80 | 0.646812 | 277 | 2,384 | 5.440433 | 0.537906 | 0.02787 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019509 | 0.247483 | 2,384 | 82 | 81 | 29.073171 | 0.820513 | 0.167366 | 0 | 0.068966 | 0 | 0 | 0.136456 | 0.012729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.12069 | 0 | 0.224138 | 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 |
535042e38aa5c21970333641ac96aa01b09e9083 | 650 | py | Python | calls/base_config.py | dtcooper/bmir-calls | f03e40b5037f1c7ec70b8035b9bb219e209e45b9 | [
"MIT"
] | 1 | 2019-11-03T17:37:56.000Z | 2019-11-03T17:37:56.000Z | calls/base_config.py | dtcooper/bmir-calls | f03e40b5037f1c7ec70b8035b9bb219e209e45b9 | [
"MIT"
] | null | null | null | calls/base_config.py | dtcooper/bmir-calls | f03e40b5037f1c7ec70b8035b9bb219e209e45b9 | [
"MIT"
] | null | null | null | API_PASSWORD = 'hackme'
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres@db/'
SQLALCHEMY_DATABASE_NAME_TESTING = 'testing'
TWILIO_ACCOUNT_SID = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
TWILIO_AUTH_TOKEN = 'hackme'
RECORDING_ENABLED = True # Save money during development
TWILIO_SIP_DOMAIN = 'example.sip.us1.twilio.com'
... | 30.952381 | 82 | 0.809231 | 77 | 650 | 6.467532 | 0.649351 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0.084615 | 650 | 20 | 83 | 32.5 | 0.794958 | 0.044615 | 0 | 0 | 0 | 0 | 0.366721 | 0.137318 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
53516d55d54dfceb418c0a83fc5343b00351bbde | 1,856 | py | Python | tests/terraform/graph/checks_infra/test_base.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 4,013 | 2019-12-09T13:16:54.000Z | 2022-03-31T14:31:01.000Z | tests/terraform/graph/checks_infra/test_base.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1,258 | 2019-12-17T09:55:51.000Z | 2022-03-31T19:17:17.000Z | tests/terraform/graph/checks_infra/test_base.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 638 | 2019-12-19T08:57:38.000Z | 2022-03-30T21:38:37.000Z | import os
from unittest import TestCase
from checkov.common.checks_infra.checks_parser import NXGraphCheckParser
from checkov.common.checks_infra.registry import Registry
from checkov.terraform.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestBaseSolver(TestCase):
checks_dir = ""
... | 40.347826 | 104 | 0.680496 | 222 | 1,856 | 5.490991 | 0.274775 | 0.063167 | 0.049221 | 0.054143 | 0.31009 | 0.264151 | 0.264151 | 0.264151 | 0.264151 | 0.264151 | 0 | 0 | 0.244612 | 1,856 | 45 | 105 | 41.244444 | 0.869472 | 0 | 0 | 0.27027 | 0 | 0 | 0.077047 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.081081 | false | 0.081081 | 0.162162 | 0 | 0.378378 | 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 |
53524bd3e896260503eb6a22babb8d04a6dd2e82 | 3,137 | py | Python | patientMatcher/instance/config.py | john1711/patientMatcher | 516a2a73a2cea1e87ed2f9ae6a4f0b1b715281d9 | [
"MIT"
] | null | null | null | patientMatcher/instance/config.py | john1711/patientMatcher | 516a2a73a2cea1e87ed2f9ae6a4f0b1b715281d9 | [
"MIT"
] | null | null | null | patientMatcher/instance/config.py | john1711/patientMatcher | 516a2a73a2cea1e87ed2f9ae6a4f0b1b715281d9 | [
"MIT"
] | 1 | 2018-12-20T09:15:08.000Z | 2018-12-20T09:15:08.000Z | import os
# Turns on debugging features in Flask
DEBUG = os.getenv("DEBUG", "True") == "True" or True
# Set to False is app if a production app
TESTING = os.getenv("TESTING", "True") == "True" or True
# secret key:
SECRET_KEY = os.getenv("SECRET_KEY") or "MySuperSecretKey"
DB_USERNAME = os.getenv("MONGODB_USER") or... | 53.169492 | 451 | 0.748167 | 503 | 3,137 | 4.528827 | 0.353877 | 0.098332 | 0.046093 | 0.010536 | 0.060579 | 0.015803 | 0 | 0 | 0 | 0 | 0 | 0.021755 | 0.13548 | 3,137 | 58 | 452 | 54.086207 | 0.818215 | 0.363723 | 0 | 0 | 0 | 0.033333 | 0.453807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.033333 | 0 | 0.033333 | 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 |
535c2a5aae2f953b4611be938458959b0d3a69cb | 1,207 | py | Python | scripts/split.py | glaunay/nox-analysis | 02ea77520e1f6a851973509f854c9c92c82137a6 | [
"Apache-2.0"
] | null | null | null | scripts/split.py | glaunay/nox-analysis | 02ea77520e1f6a851973509f854c9c92c82137a6 | [
"Apache-2.0"
] | null | null | null | scripts/split.py | glaunay/nox-analysis | 02ea77520e1f6a851973509f854c9c92c82137a6 | [
"Apache-2.0"
] | null | null | null | import gzip
import sys
import shutil
from os.path import basename
import os
#parser = argparse.ArgumentParser()
#parser.add_argument("a", help="the gziped TrEMBL archive")
#parser.add_argument("n", help="the number of volumes to produce")
#args = parser.parse_args()
print sys.argv[1]
#print args.n
def compress(fil... | 22.351852 | 92 | 0.583264 | 164 | 1,207 | 4.243902 | 0.414634 | 0.030172 | 0.034483 | 0.025862 | 0.140805 | 0.140805 | 0.140805 | 0.140805 | 0.140805 | 0 | 0 | 0.022701 | 0.270091 | 1,207 | 54 | 92 | 22.351852 | 0.76731 | 0.169843 | 0 | 0.285714 | 0 | 0 | 0.061184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
535d0cdf1afa8c077b894363bbe94fb17d11ddbd | 728 | py | Python | python/cycleDetect1.py | sulei1324/my-codewars | 86c49c92071e2b48e5fef158cdf105ab60e2a16a | [
"MIT"
] | null | null | null | python/cycleDetect1.py | sulei1324/my-codewars | 86c49c92071e2b48e5fef158cdf105ab60e2a16a | [
"MIT"
] | null | null | null | python/cycleDetect1.py | sulei1324/my-codewars | 86c49c92071e2b48e5fef158cdf105ab60e2a16a | [
"MIT"
] | null | null | null | __author__ = 'Su Lei'
def cycle(sequence):
for i in xrange(len(sequence)):
subSeq = sequence[0:i]
l = len(subSeq)
ni = i
for j in xrange(1, len(subSeq) + 1):
testSeq1 = subSeq[l - j:l]
nj = i + j
if nj > len(sequence):
break
... | 26.962963 | 50 | 0.427198 | 93 | 728 | 3.301075 | 0.333333 | 0.026059 | 0.039088 | 0.026059 | 0.029316 | 0.029316 | 0 | 0 | 0 | 0 | 0 | 0.069231 | 0.464286 | 728 | 27 | 51 | 26.962963 | 0.717949 | 0.074176 | 0 | 0.095238 | 0 | 0 | 0.008929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
535f949ffb07338e1938995d5eec30799eb418bf | 820 | py | Python | test/unit/test_skeleton.py | ibrezm1/cf-flask-skeletion | 538ffbfe1cf785c0e923d069ab94f9da031a7ee8 | [
"MIT"
] | 6 | 2016-12-05T16:54:42.000Z | 2021-07-27T22:28:35.000Z | test/unit/test_skeleton.py | ibrezm1/cf-flask-skeletion | 538ffbfe1cf785c0e923d069ab94f9da031a7ee8 | [
"MIT"
] | null | null | null | test/unit/test_skeleton.py | ibrezm1/cf-flask-skeletion | 538ffbfe1cf785c0e923d069ab94f9da031a7ee8 | [
"MIT"
] | 3 | 2015-07-26T18:05:21.000Z | 2017-12-14T11:54:00.000Z | import unittest
import skeleton.server
class TestTrivial(unittest.TestCase):
def test_two_times_three(self):
self.assertEqual(skeleton.server.testable_func(2, 3), 6)
def test_minus_two_times_four(self):
self.assertEqual(skeleton.server.testable_func(-2, 4), -8)
def test_not_for_numbers(se... | 31.538462 | 77 | 0.678049 | 108 | 820 | 4.944444 | 0.425926 | 0.131086 | 0.123596 | 0.146067 | 0.370787 | 0.370787 | 0.370787 | 0.370787 | 0.198502 | 0.198502 | 0 | 0.009063 | 0.192683 | 820 | 26 | 78 | 31.538462 | 0.797583 | 0 | 0 | 0.2 | 0 | 0 | 0.017052 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
536185c0e57926b38ea8743852161e69392ba701 | 3,717 | py | Python | tests/node/Multiplicative.py | Gawaboumga/PyMatex | 3ccc0aa23211a064aa31a9b509b108cd606a4992 | [
"MIT"
] | 1 | 2019-03-05T09:45:04.000Z | 2019-03-05T09:45:04.000Z | tests/node/Multiplicative.py | Gawaboumga/PyMatex | 3ccc0aa23211a064aa31a9b509b108cd606a4992 | [
"MIT"
] | null | null | null | tests/node/Multiplicative.py | Gawaboumga/PyMatex | 3ccc0aa23211a064aa31a9b509b108cd606a4992 | [
"MIT"
] | null | null | null | from tests import BaseTest
from pymatex.node import Addition, Constant, Division, Exponentiation, Func, Function, Multiplication, Variable
class MultiplicativeTests(BaseTest.BaseTest):
def test_read_multiplication_of_constants(self):
ast = self.parse('3 * 2')
self.assertEqual(ast, Multiplication... | 41.3 | 131 | 0.642454 | 473 | 3,717 | 4.885835 | 0.112051 | 0.06058 | 0.103851 | 0.131545 | 0.765469 | 0.585028 | 0.550411 | 0.461272 | 0.426222 | 0.393336 | 0 | 0.021804 | 0.185634 | 3,717 | 89 | 132 | 41.764045 | 0.741658 | 0 | 0 | 0.272727 | 0 | 0.015152 | 0.071832 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 1 | 0.287879 | false | 0 | 0.030303 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
536281ae613c6433e0179ba78f292926cd578bed | 1,231 | py | Python | server/setup/auth.py | alagu/hummingbird | e620b3492ddc2982797088983e0a9d69226ae527 | [
"MIT"
] | 50 | 2015-01-19T17:25:32.000Z | 2021-08-16T15:41:45.000Z | server/setup/auth.py | alagu/hummingbird | e620b3492ddc2982797088983e0a9d69226ae527 | [
"MIT"
] | null | null | null | server/setup/auth.py | alagu/hummingbird | e620b3492ddc2982797088983e0a9d69226ae527 | [
"MIT"
] | 10 | 2015-04-27T14:03:49.000Z | 2021-10-04T12:08:33.000Z | #!/usr/bin/python
import sys
from struct import *
from time import *
fp = open ('/var/log/ejabberd/external_auth.log','a+')
def log(data):
time = strftime("%a, %d %b %Y %H:%M:%S +0530", localtime())
fp.write('[' + time + '] ' + data + '\n');
def from_ejabberd():
log('Reading stdin')
input_length = ... | 23.226415 | 63 | 0.5987 | 170 | 1,231 | 4.294118 | 0.394118 | 0.060274 | 0.036986 | 0.041096 | 0.128767 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0.019958 | 0.226645 | 1,231 | 52 | 64 | 23.673077 | 0.746849 | 0.012998 | 0 | 0.071429 | 0 | 0 | 0.140033 | 0.02883 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.095238 | 0.071429 | 0.071429 | 0.309524 | 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 |
536984b446e206dbdd53ac88b6b4bfa9b7dae877 | 515 | py | Python | doc/source/tutorial-ownvalidator.py | techdragon/validatingconfigparser | 8cf939c75330db53901072eb4e3f21dec58b05e5 | [
"Apache-2.0"
] | null | null | null | doc/source/tutorial-ownvalidator.py | techdragon/validatingconfigparser | 8cf939c75330db53901072eb4e3f21dec58b05e5 | [
"Apache-2.0"
] | null | null | null | doc/source/tutorial-ownvalidator.py | techdragon/validatingconfigparser | 8cf939c75330db53901072eb4e3f21dec58b05e5 | [
"Apache-2.0"
] | null | null | null |
class EvenValidator(object):
def validate(self, value):
if (value % 2) == 0:
return value
else:
raise ValueError("%s not an even number" %(value))
def to_python(self, value):
# Called by get() - must accept string.
return self.validate(int(value))
d... | 25.75 | 62 | 0.609709 | 65 | 515 | 4.769231 | 0.507692 | 0.087097 | 0.096774 | 0.135484 | 0.148387 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010667 | 0.271845 | 515 | 19 | 63 | 27.105263 | 0.816 | 0.145631 | 0 | 0 | 0 | 0 | 0.048165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
536a8b09c8448a362ace7a3779a98b942c5ae133 | 25,823 | py | Python | ncdisp.py | yilongwang/ncdisp-ipython | c4c91fe364a07dcb2ac104b2504140acc91f81cb | [
"BSD-3-Clause"
] | null | null | null | ncdisp.py | yilongwang/ncdisp-ipython | c4c91fe364a07dcb2ac104b2504140acc91f81cb | [
"BSD-3-Clause"
] | null | null | null | ncdisp.py | yilongwang/ncdisp-ipython | c4c91fe364a07dcb2ac104b2504140acc91f81cb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import copy
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
from mpl_toolkits.axes_grid1 import make_axes_locatable
import inspect
import matplotlib.ticker as ticker
from netCDF4 import Dataset
class ncdisp:
def map(self,var,y1=None,y2=None,x1=... | 40.92393 | 145 | 0.569454 | 3,845 | 25,823 | 3.813004 | 0.09961 | 0.025305 | 0.031035 | 0.016234 | 0.707387 | 0.676352 | 0.65282 | 0.637678 | 0.624923 | 0.61401 | 0 | 0.039707 | 0.234403 | 25,823 | 630 | 146 | 40.988889 | 0.701872 | 0.238392 | 0 | 0.677778 | 0 | 0 | 0.025567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0.006667 | 0.017778 | 0 | 0.04 | 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 |
72663cfd41b6a14e97ce663f777e669ca77491c4 | 1,539 | py | Python | tests/test_vunit_testsuite.py | lionheart117/hdlConvertor | 935941471fbb592942776d2c46af2be0b14b9b06 | [
"MIT"
] | 1 | 2022-02-17T23:32:46.000Z | 2022-02-17T23:32:46.000Z | tests/test_vunit_testsuite.py | curiousTauseef/hdlConvertor | 5041c2cca2d14f47237dc4e91fd3228a88bd01df | [
"MIT"
] | null | null | null | tests/test_vunit_testsuite.py | curiousTauseef/hdlConvertor | 5041c2cca2d14f47237dc4e91fd3228a88bd01df | [
"MIT"
] | null | null | null | # import sys
import os
import unittest
from hdlConvertorAst.language import Language
from tests.extern_test_utils import generate_external_testcase_class, \
ExternTestSpec, check_git_submodule
from tests.file_utils import find_files, get_file_name
from tests.time_logging_test_runner import TimeLoggingTestRunner
... | 30.176471 | 75 | 0.721897 | 190 | 1,539 | 5.484211 | 0.473684 | 0.025912 | 0.057582 | 0.069098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007323 | 0.20143 | 1,539 | 50 | 76 | 30.78 | 0.840521 | 0.202079 | 0 | 0 | 1 | 0 | 0.041803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.193548 | 0 | 0.225806 | 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 |
7268c88b1a16cd814e054b56531f608ec43290a8 | 3,040 | py | Python | colab_ssh/launch_ssh.py | khursani8/ssh | 209c52cfc19f51b9d7bcbc2aae18b7fe1570d975 | [
"MIT"
] | null | null | null | colab_ssh/launch_ssh.py | khursani8/ssh | 209c52cfc19f51b9d7bcbc2aae18b7fe1570d975 | [
"MIT"
] | null | null | null | colab_ssh/launch_ssh.py | khursani8/ssh | 209c52cfc19f51b9d7bcbc2aae18b7fe1570d975 | [
"MIT"
] | null | null | null | import random
import string
from subprocess import Popen, PIPE
import shlex
from colab_ssh._command import run_command, run_with_pipe
import os
import time
import requests
import re
from colab_ssh.get_tunnel_config import get_tunnel_config
from .utils.expose_env_variable import expose_env_variable
def launch_ssh(toke... | 30.707071 | 108 | 0.647697 | 399 | 3,040 | 4.784461 | 0.461153 | 0.042431 | 0.080147 | 0.022001 | 0.12153 | 0.07648 | 0.07648 | 0.07648 | 0.07648 | 0.07648 | 0 | 0.005199 | 0.240789 | 3,040 | 98 | 109 | 31.020408 | 0.821924 | 0.072697 | 0 | 0.082192 | 0 | 0.041096 | 0.393378 | 0.027056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0.054795 | 0.150685 | 0 | 0.164384 | 0.082192 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
726b26ae7a11857ecbc113969daddd0b4186638f | 642 | py | Python | Exercicios/Todos/ex039.py | Edson921/exerciciosResolvidos | 72a3089f4848650c62ac0dd876abf5695a64525a | [
"MIT"
] | null | null | null | Exercicios/Todos/ex039.py | Edson921/exerciciosResolvidos | 72a3089f4848650c62ac0dd876abf5695a64525a | [
"MIT"
] | null | null | null | Exercicios/Todos/ex039.py | Edson921/exerciciosResolvidos | 72a3089f4848650c62ac0dd876abf5695a64525a | [
"MIT"
] | null | null | null | # programa para ver se ja pode ou ñ faser recenciamento militar
nascido = int(input('Em que ano nasceu? '))
anoactual = int(input('Em que ano estamos? '))
idade = anoactual - nascido
print('Quem nasceu em {} tem {} anos em {} '.format(nascido, idade, anoactual))
if idade == 18:
print('voce tem que se alistar imedia... | 45.857143 | 116 | 0.67757 | 93 | 642 | 4.677419 | 0.451613 | 0.064368 | 0.045977 | 0.05977 | 0.197701 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019342 | 0.194704 | 642 | 13 | 117 | 49.384615 | 0.82205 | 0.095016 | 0 | 0 | 0 | 0 | 0.423143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
726b97aff1bab779f2f733b8aa78b67ebdca63b5 | 1,583 | py | Python | utuputki/common/utils.py | katajakasa/utuputki2 | 27dd38de512807ac1884e4df9d4ef8e80a74b252 | [
"MIT"
] | 6 | 2015-10-24T03:16:16.000Z | 2019-10-07T18:35:15.000Z | utuputki/common/utils.py | katajakasa/utuputki2 | 27dd38de512807ac1884e4df9d4ef8e80a74b252 | [
"MIT"
] | 28 | 2015-10-23T07:26:29.000Z | 2016-04-03T13:13:17.000Z | utuputki/common/utils.py | katajakasa/utuputki2 | 27dd38de512807ac1884e4df9d4ef8e80a74b252 | [
"MIT"
] | 2 | 2016-04-04T20:54:36.000Z | 2019-08-08T12:14:25.000Z | # -*- coding: utf-8 -*-
import sys
import os
import pytz
import isodate
import datetime
import binascii
def utc_now():
""" Gets UTC datetime """
return pytz.utc.localize(datetime.datetime.utcnow())
def utc_minus_delta(seconds):
""" Gets UTC datetime with deltatime substracted """
return pytz.utc.lo... | 25.532258 | 94 | 0.66772 | 201 | 1,583 | 5.189055 | 0.447761 | 0.011505 | 0.028763 | 0.040268 | 0.082454 | 0.082454 | 0.082454 | 0 | 0 | 0 | 0 | 0.010285 | 0.201516 | 1,583 | 61 | 95 | 25.95082 | 0.814873 | 0.22868 | 0 | 0.058824 | 0 | 0 | 0.014505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.676471 | 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 |
726d76e1be141e7dab6f280fc3657619da2d0b6e | 1,273 | py | Python | conanfile.py | pjohalloran/conan-eastl | 3039fe8193109222d9460adfcb7fc35773ad3eb6 | [
"MIT"
] | null | null | null | conanfile.py | pjohalloran/conan-eastl | 3039fe8193109222d9460adfcb7fc35773ad3eb6 | [
"MIT"
] | null | null | null | conanfile.py | pjohalloran/conan-eastl | 3039fe8193109222d9460adfcb7fc35773ad3eb6 | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake
import os
class EASTLConan(ConanFile):
name = "EASTL"
version = "3.05.08"
description = "EASTL stands for Electronic Arts Standard Template Library. It is an extensive and robust implementation that has an emphasis on high performance."
license="Modified BSD License (3-Claus... | 38.575758 | 164 | 0.685782 | 175 | 1,273 | 4.925714 | 0.497143 | 0.041763 | 0.055684 | 0.027842 | 0.12065 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00553 | 0.147683 | 1,273 | 32 | 165 | 39.78125 | 0.78894 | 0 | 0 | 0 | 0 | 0.037037 | 0.441477 | 0.054203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0 | 0.555556 | 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 |
72736784434f13c53ddc27712e3bc9c96b87c52c | 456 | py | Python | datahub/feature_flag/views.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/feature_flag/views.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/feature_flag/views.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | from rest_framework.permissions import IsAuthenticated
from datahub.core.viewsets import CoreViewSet
from datahub.feature_flag.models import FeatureFlag
from datahub.feature_flag.serializers import FeatureFlagSerializer
class FeatureFlagViewSet(CoreViewSet):
"""Feature flag ViewSet v3."""
pagination_class =... | 30.4 | 66 | 0.811404 | 46 | 456 | 7.913043 | 0.608696 | 0.090659 | 0.098901 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.127193 | 456 | 14 | 67 | 32.571429 | 0.91206 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
727b4d5ee3b90115f945f0dc4b1233174a8c2ef7 | 4,521 | py | Python | util/config/provider/test/test_k8sprovider.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | 1 | 2020-10-16T19:30:41.000Z | 2020-10-16T19:30:41.000Z | util/config/provider/test/test_k8sprovider.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | 15 | 2020-06-18T15:32:06.000Z | 2022-03-03T23:06:24.000Z | util/config/provider/test/test_k8sprovider.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | null | null | null | import base64
import os
import json
import uuid
import pytest
from contextlib import contextmanager
from collections import namedtuple
from httmock import urlmatch, HTTMock
from util.config.provider import KubernetesConfigProvider
def normalize_path(path):
return path.replace("/", "_")
@contextmanager
def fa... | 31.615385 | 89 | 0.656271 | 519 | 4,521 | 5.481696 | 0.240848 | 0.063972 | 0.040422 | 0.047452 | 0.427768 | 0.377856 | 0.286819 | 0.274517 | 0.274517 | 0.274517 | 0 | 0.007815 | 0.235789 | 4,521 | 142 | 90 | 31.838028 | 0.81563 | 0.007742 | 0 | 0.205607 | 0 | 0.018692 | 0.097947 | 0.040384 | 0 | 0 | 0 | 0 | 0.084112 | 0 | null | null | 0.009346 | 0.084112 | null | null | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
727d3266cda54c383dec5346a605df2e081f1c76 | 9,883 | py | Python | authors/apps/authentication/models.py | andela/ah-olympians | f00edb358f42751cdf9405de5f29e2b21dacb7d5 | [
"BSD-3-Clause"
] | 2 | 2019-03-21T16:57:21.000Z | 2019-10-17T10:16:24.000Z | authors/apps/authentication/models.py | andela/ah-olympians | f00edb358f42751cdf9405de5f29e2b21dacb7d5 | [
"BSD-3-Clause"
] | 17 | 2019-02-26T09:27:09.000Z | 2021-12-13T19:57:24.000Z | authors/apps/authentication/models.py | andela/ah-olympians | f00edb358f42751cdf9405de5f29e2b21dacb7d5 | [
"BSD-3-Clause"
] | 2 | 2019-06-29T12:10:31.000Z | 2020-04-04T17:56:36.000Z | import uuid
import os
from datetime import date, datetime, timedelta
from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, BaseUserManager, PermissionsMixin
)
from django.db import models
from rest_framework import exceptions
import jwt
from .utils import send_email
class ... | 35.422939 | 96 | 0.636649 | 1,265 | 9,883 | 4.894862 | 0.275099 | 0.007267 | 0.014858 | 0.016796 | 0.186693 | 0.163114 | 0.136628 | 0.125969 | 0.125969 | 0.111111 | 0 | 0.003569 | 0.291308 | 9,883 | 278 | 97 | 35.55036 | 0.880497 | 0.359709 | 0 | 0.213235 | 0 | 0 | 0.139796 | 0.003629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095588 | false | 0.132353 | 0.066176 | 0 | 0.419118 | 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 |
727f840f63c5620f3351009b475dd7abc50930f8 | 548 | py | Python | setup.py | scardine/py-nixgateway | 36baf34a528fe88893c65b444e847da4ac8df2ab | [
"MIT"
] | 1 | 2020-03-27T22:19:26.000Z | 2020-03-27T22:19:26.000Z | setup.py | scardine/py-nixgateway | 36baf34a528fe88893c65b444e847da4ac8df2ab | [
"MIT"
] | null | null | null | setup.py | scardine/py-nixgateway | 36baf34a528fe88893c65b444e847da4ac8df2ab | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'nixgateway',
packages = ['nixgateway'],
version = '0.8',
description = 'Python bindings to the Nix Gateway API (https://web-nix.cloud.nexxera.com/)',
author = 'Paulo Scardine',
author_email = 'paulos@xtend.com.br',
url = 'https://github.com/scardine/py-nixgatew... | 30.444444 | 94 | 0.666058 | 67 | 548 | 5.402985 | 0.656716 | 0.01105 | 0.077348 | 0.093923 | 0.20442 | 0.20442 | 0.20442 | 0 | 0 | 0 | 0 | 0.008621 | 0.153285 | 548 | 18 | 95 | 30.444444 | 0.771552 | 0 | 0 | 0 | 0 | 0.058824 | 0.510018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
728753e2feb324a6ebf31c4e89e5a4fe763abefd | 1,377 | py | Python | sift_match.py | ANadali/SIFT-detection-description-and-matching | f8eff48c9d8fe0f0e805c550775446f346d05e6d | [
"MIT"
] | null | null | null | sift_match.py | ANadali/SIFT-detection-description-and-matching | f8eff48c9d8fe0f0e805c550775446f346d05e6d | [
"MIT"
] | null | null | null | sift_match.py | ANadali/SIFT-detection-description-and-matching | f8eff48c9d8fe0f0e805c550775446f346d05e6d | [
"MIT"
] | null | null | null | import numpy as np
import cv2
I1 = cv2.imread('book2.jpg')
G1 = cv2.cvtColor(I1,cv2.COLOR_BGR2GRAY)
I2 = cv2.imread('scene.jpg')
G2 = cv2.cvtColor(I2,cv2.COLOR_BGR2GRAY)
sift = cv2.xfeatures2d.SIFT_create() # opencv 3
# use "sift = cv2.SIFT()" if the above fails
keypoints1 = sift.detect(G1,None)
keypoints2 = sift.d... | 26.480769 | 85 | 0.740015 | 205 | 1,377 | 4.882927 | 0.443902 | 0.020979 | 0.031968 | 0.037962 | 0.081918 | 0.081918 | 0.081918 | 0.081918 | 0 | 0 | 0 | 0.063973 | 0.137255 | 1,377 | 51 | 86 | 27 | 0.77862 | 0.180102 | 0 | 0 | 0 | 0 | 0.12265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.