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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d99a1e98eccb58cbc0c0cef6e9e6702f33461b0e | 5,886 | py | Python | public_data/serializers.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | null | null | null | public_data/serializers.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | 3 | 2022-02-10T11:47:58.000Z | 2022-02-23T18:50:24.000Z | public_data/serializers.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | null | null | null | from rest_framework_gis import serializers
from rest_framework import serializers as s
from .models import (
Artificialisee2015to2018,
Artificielle2018,
CommunesSybarval,
CouvertureSol,
EnveloppeUrbaine2018,
Ocsge,
Renaturee2018to2015,
Sybarval,
Voirie2018,
ZonesBaties2018,
... | 25.37069 | 80 | 0.613829 | 558 | 5,886 | 6.28853 | 0.130824 | 0.029068 | 0.058136 | 0.072955 | 0.702194 | 0.668852 | 0.666002 | 0.656312 | 0.656312 | 0.623254 | 0 | 0.061826 | 0.29103 | 5,886 | 231 | 81 | 25.480519 | 0.779056 | 0.009514 | 0 | 0.664804 | 0 | 0 | 0.067194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094972 | false | 0 | 0.01676 | 0.089385 | 0.418994 | 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 |
d9a0daeef5f3a3455af5c2983af478cd08c74a7b | 11,247 | py | Python | map_download/cmd/TerrainDownloader.py | cugxy/map_download | 02142b33edb2bc163f7ae971f443efe84c13e029 | [
"MIT"
] | 27 | 2019-04-02T08:34:16.000Z | 2022-01-11T01:48:50.000Z | map_download/cmd/TerrainDownloader.py | cugxy/map_download | 02142b33edb2bc163f7ae971f443efe84c13e029 | [
"MIT"
] | 8 | 2019-10-10T03:03:51.000Z | 2021-11-14T11:01:47.000Z | map_download/cmd/TerrainDownloader.py | cugxy/map_download | 02142b33edb2bc163f7ae971f443efe84c13e029 | [
"MIT"
] | 7 | 2019-04-02T08:43:04.000Z | 2020-08-11T02:14:24.000Z | # -*- coding: utf-8 -*-
# coding=utf-8
import json
import os
import math
import logging
import requests
import time
from map_download.cmd.BaseDownloader import DownloadEngine, BaseDownloaderThread, latlng2tile_terrain, BoundBox
def get_access_token(token):
resp = None
request_count = 0
url = "https://ap... | 35.479495 | 117 | 0.384992 | 980 | 11,247 | 4.266327 | 0.257143 | 0.025114 | 0.04664 | 0.050227 | 0.218369 | 0.128199 | 0.088017 | 0.056446 | 0.043052 | 0.043052 | 0 | 0.043237 | 0.518805 | 11,247 | 316 | 118 | 35.591772 | 0.728936 | 0.003112 | 0 | 0.30303 | 0 | 0.003367 | 0.107423 | 0.010707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026936 | false | 0.003367 | 0.023569 | 0.003367 | 0.097643 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9aeee22298fa03239ef3d63fdcaa4984d37ba63 | 3,030 | py | Python | content/test/gpu/gpu_tests/pixel_expectations.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/test/gpu/gpu_tests/pixel_expectations.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/test/gpu/gpu_tests/pixel_expectations.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from gpu_tests.gpu_test_expectations import GpuTestExpectations
# See the GpuTestExpectations class for documentation.
class PixelExpectations(GpuTestExpec... | 42.083333 | 78 | 0.706931 | 325 | 3,030 | 6.48 | 0.446154 | 0.049383 | 0.080247 | 0.037987 | 0.136752 | 0.041311 | 0.02849 | 0 | 0 | 0 | 0 | 0.062896 | 0.165677 | 3,030 | 71 | 79 | 42.676056 | 0.770174 | 0.289439 | 0 | 0 | 0 | 0 | 0.436739 | 0.330834 | 0 | 0 | 0.010309 | 0.014085 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9afca45a6adc9c41c0b981032c729d59e9db234 | 2,801 | py | Python | examples/p02_budgets/budget_data_ingest/migrations/0001_initial.py | 18F/data-federation-ingest | a896ef2da1faf3966f018366b26a338bb66cc717 | [
"CC0-1.0"
] | 18 | 2019-07-26T13:43:01.000Z | 2022-01-15T14:57:52.000Z | examples/p02_budgets/budget_data_ingest/migrations/0001_initial.py | 18F/data-federation-ingest | a896ef2da1faf3966f018366b26a338bb66cc717 | [
"CC0-1.0"
] | 96 | 2019-06-14T18:30:54.000Z | 2021-08-03T09:25:02.000Z | examples/p02_budgets/budget_data_ingest/migrations/0001_initial.py | 18F/data-federation-ingest | a896ef2da1faf3966f018366b26a338bb66cc717 | [
"CC0-1.0"
] | 3 | 2020-01-23T04:48:18.000Z | 2021-01-12T09:31:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-08 22:54
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial ... | 47.474576 | 209 | 0.611567 | 285 | 2,801 | 5.831579 | 0.396491 | 0.028881 | 0.042118 | 0.066185 | 0.465704 | 0.358604 | 0.358604 | 0.358604 | 0.247894 | 0.247894 | 0 | 0.012258 | 0.24277 | 2,801 | 58 | 210 | 48.293103 | 0.771334 | 0.024634 | 0 | 0.22 | 1 | 0 | 0.135581 | 0.018322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.18 | 0 | 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 |
d9b0c3d32e07c56a0732f0fca454740538a940fe | 451 | py | Python | setup.py | Kaslanarian/PythonSVM | 715eeef2a245736167addf45a6aee8b40b54d0c7 | [
"MIT"
] | 2 | 2021-09-25T01:00:37.000Z | 2021-09-27T12:13:24.000Z | setup.py | Kaslanarian/PythonSVM | 715eeef2a245736167addf45a6aee8b40b54d0c7 | [
"MIT"
] | 1 | 2021-09-17T12:08:14.000Z | 2021-09-17T12:08:14.000Z | setup.py | Kaslanarian/PythonSVM | 715eeef2a245736167addf45a6aee8b40b54d0c7 | [
"MIT"
] | null | null | null | import setuptools #enables develop
setuptools.setup(
name='pysvm',
version='0.1',
description='PySVM : A NumPy implementation of SVM based on SMO algorithm',
author_email="191300064@smail.nju.edu.cn",
packages=['pysvm'],
license='MIT License',
long_description=open('README.md', encoding='u... | 28.1875 | 79 | 0.660754 | 54 | 451 | 5.462963 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.181818 | 451 | 15 | 80 | 30.066667 | 0.766938 | 0.046563 | 0 | 0 | 0 | 0 | 0.401869 | 0.060748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9b2e0c418fbf0ff7ba59e80c34fb2974714b1c9 | 398 | py | Python | polling_stations/apps/data_collection/management/commands/import_torbay.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_torbay.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_torbay.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = 'E06000027'
addresses_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club__08June2017.tsv'
stations_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club_... | 44.222222 | 86 | 0.788945 | 47 | 398 | 6.446809 | 0.638298 | 0.079208 | 0.09901 | 0.118812 | 0.369637 | 0.369637 | 0.369637 | 0.369637 | 0.369637 | 0.369637 | 0 | 0.130682 | 0.115578 | 398 | 8 | 87 | 49.75 | 0.730114 | 0 | 0 | 0 | 0 | 0 | 0.38191 | 0.266332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1.142857 | 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 |
d9b38469f6b00b7a441fff875e4ecd7bcc272b7e | 1,832 | py | Python | Backend/product/views.py | Bhavya0020/Readopolis | a0053e4fae97dc8291b50c746f3dc3e6b454ad95 | [
"MIT"
] | null | null | null | Backend/product/views.py | Bhavya0020/Readopolis | a0053e4fae97dc8291b50c746f3dc3e6b454ad95 | [
"MIT"
] | null | null | null | Backend/product/views.py | Bhavya0020/Readopolis | a0053e4fae97dc8291b50c746f3dc3e6b454ad95 | [
"MIT"
] | null | null | null | from django.db.models import Q
from django.shortcuts import render
from django.http import Http404
# Create your views here.
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.decorators import api_view
from .models import Product, Category
from .serializers imp... | 34.566038 | 101 | 0.715611 | 208 | 1,832 | 6.173077 | 0.293269 | 0.084112 | 0.074766 | 0.087227 | 0.316199 | 0.247664 | 0.247664 | 0.193146 | 0.193146 | 0 | 0 | 0.007478 | 0.197052 | 1,832 | 53 | 102 | 34.566038 | 0.865398 | 0.012555 | 0 | 0.238095 | 0 | 0 | 0.009403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9b4dfc1ad39620d7b5b2d1c39ad7fd8f6cec36b | 819 | py | Python | core/src/zeit/cms/settings/interfaces.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/cms/settings/interfaces.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | core/src/zeit/cms/settings/interfaces.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | from zeit.cms.i18n import MessageFactory as _
import zope.interface
import zope.schema
class IGlobalSettings(zope.interface.Interface):
"""Global CMS settings."""
default_year = zope.schema.Int(
title=_("Default year"),
min=1900,
max=2100)
default_volume = zope.schema.Int(
... | 26.419355 | 78 | 0.636142 | 98 | 819 | 5.244898 | 0.571429 | 0.058366 | 0.050584 | 0.070039 | 0.097276 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021886 | 0.274725 | 819 | 30 | 79 | 27.3 | 0.843434 | 0.421245 | 0 | 0 | 0 | 0 | 0.064198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9b79f86fa592dbe24c72c454192af966a916a5a | 12,444 | py | Python | eth2/beacon/chains/base.py | mhchia/trinity | e40e475064ca4605887706e9b0e4f8e2349b10cd | [
"MIT"
] | null | null | null | eth2/beacon/chains/base.py | mhchia/trinity | e40e475064ca4605887706e9b0e4f8e2349b10cd | [
"MIT"
] | null | null | null | eth2/beacon/chains/base.py | mhchia/trinity | e40e475064ca4605887706e9b0e4f8e2349b10cd | [
"MIT"
] | null | null | null | from abc import (
ABC,
abstractmethod,
)
import logging
from typing import (
TYPE_CHECKING,
Tuple,
Type,
)
from eth._utils.datatypes import (
Configurable,
)
from eth.db.backends.base import (
BaseAtomicDB,
)
from eth.exceptions import (
BlockNotFound,
)
from eth.validation import (
... | 30.955224 | 99 | 0.634201 | 1,348 | 12,444 | 5.622404 | 0.141691 | 0.017417 | 0.025729 | 0.02375 | 0.485024 | 0.445046 | 0.38224 | 0.338831 | 0.288429 | 0.264283 | 0 | 0.003717 | 0.286564 | 12,444 | 401 | 100 | 31.032419 | 0.849966 | 0.180006 | 0 | 0.400794 | 0 | 0 | 0.064676 | 0.019259 | 0 | 0 | 0 | 0.004988 | 0 | 1 | 0.126984 | false | 0.063492 | 0.115079 | 0 | 0.34127 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9ba3c5b12232bbc811a9ad606f2570ac2481108 | 10,492 | py | Python | nova/conf/hyperv.py | raubvogel/nova | b78be4e83cdc191e20a4a61b6aae72cb2b37f62b | [
"Apache-2.0"
] | null | null | null | nova/conf/hyperv.py | raubvogel/nova | b78be4e83cdc191e20a4a61b6aae72cb2b37f62b | [
"Apache-2.0"
] | null | null | null | nova/conf/hyperv.py | raubvogel/nova | b78be4e83cdc191e20a4a61b6aae72cb2b37f62b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2016 TUBITAK BILGEM
# 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 requir... | 31.04142 | 79 | 0.735989 | 1,552 | 10,492 | 4.906572 | 0.278351 | 0.026001 | 0.016809 | 0.022062 | 0.222981 | 0.161261 | 0.127118 | 0.088378 | 0.066448 | 0.052265 | 0 | 0.018754 | 0.191956 | 10,492 | 337 | 80 | 31.133531 | 0.879453 | 0.057568 | 0 | 0.31746 | 0 | 0 | 0.841993 | 0.065836 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007937 | false | 0.011905 | 0.003968 | 0.003968 | 0.015873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9bd741cd9ad9e20eeb1069fce4709781f43edd4 | 6,476 | py | Python | Qt_interface/add_subject.py | kithsirij/NLP-based-Syllabus-Coverage-Exam-paper-checker-Tool | b7b38a7b7c6d0a2ad5264df32acd75cdef552bd0 | [
"MIT"
] | 1 | 2019-07-17T09:08:41.000Z | 2019-07-17T09:08:41.000Z | Qt_interface/add_subject.py | kithsirij/NLP-based-Syllabus-Coverage-Exam-paper-checker-Tool | b7b38a7b7c6d0a2ad5264df32acd75cdef552bd0 | [
"MIT"
] | null | null | null | Qt_interface/add_subject.py | kithsirij/NLP-based-Syllabus-Coverage-Exam-paper-checker-Tool | b7b38a7b7c6d0a2ad5264df32acd75cdef552bd0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'add_subject.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
de... | 48.691729 | 137 | 0.694719 | 761 | 6,476 | 5.654402 | 0.198423 | 0.092958 | 0.118987 | 0.041831 | 0.478039 | 0.408552 | 0.364397 | 0.263072 | 0.228213 | 0.206832 | 0 | 0.033788 | 0.195645 | 6,476 | 132 | 138 | 49.060606 | 0.792283 | 0.028567 | 0 | 0.293103 | 1 | 0 | 0.100634 | 0.022435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043103 | false | 0 | 0.017241 | 0.025862 | 0.094828 | 0 | 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 |
d9c3024853794c19d2ce2400c8d47311441430b2 | 8,513 | py | Python | src/main/python/rlbot/version.py | IamEld3st/RLBot | 36195ffd3a836ed910ce63aed8ba103b98b7b361 | [
"MIT"
] | null | null | null | src/main/python/rlbot/version.py | IamEld3st/RLBot | 36195ffd3a836ed910ce63aed8ba103b98b7b361 | [
"MIT"
] | null | null | null | src/main/python/rlbot/version.py | IamEld3st/RLBot | 36195ffd3a836ed910ce63aed8ba103b98b7b361 | [
"MIT"
] | null | null | null | # Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
# https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
__version__ = '1.6.1'
release_note... | 45.768817 | 118 | 0.677787 | 1,269 | 8,513 | 4.467297 | 0.394011 | 0.008467 | 0.014817 | 0.020109 | 0.095608 | 0.07444 | 0.054683 | 0.054683 | 0.027165 | 0.027165 | 0 | 0.028786 | 0.23282 | 8,513 | 185 | 119 | 46.016216 | 0.839228 | 0.032186 | 0 | 0.158228 | 0 | 0.101266 | 0.909632 | 0.012389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018987 | false | 0 | 0 | 0.006329 | 0.037975 | 0.037975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9c387f6c561372e064bfe33f0566d9f2a1cdd50 | 399 | py | Python | Task2C.py | StanleyHou117/group66_LentTermProject | 0255310cb202f21cada8cf7c0f45a045a9b72c1f | [
"MIT"
] | null | null | null | Task2C.py | StanleyHou117/group66_LentTermProject | 0255310cb202f21cada8cf7c0f45a045a9b72c1f | [
"MIT"
] | null | null | null | Task2C.py | StanleyHou117/group66_LentTermProject | 0255310cb202f21cada8cf7c0f45a045a9b72c1f | [
"MIT"
] | null | null | null | from floodsystem.stationdata import build_station_list
from floodsystem.flood import stations_highest_rel_level
def run():
stations = build_station_list()
warning_stations = stations_highest_rel_level(stations,10)
for entry in warning_stations:
print(entry[0].name,entry[1])
if __name__ == "__mai... | 28.5 | 63 | 0.734336 | 53 | 399 | 5.150943 | 0.584906 | 0.10989 | 0.117216 | 0.168498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01506 | 0.16792 | 399 | 14 | 64 | 28.5 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0.145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.2 | 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 |
d9c3b05c7fcf1f87eb65a4b552deef9342032f24 | 6,520 | py | Python | src/Components/missions/GEMS/mcd43c.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-12-02T14:23:30.000Z | 2021-12-31T15:39:30.000Z | src/Components/missions/GEMS/mcd43c.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-04-15T16:22:14.000Z | 2022-03-24T13:59:25.000Z | src/Components/missions/SENTINEL-4/mcd43c.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """
Reads climate modeling grid 0.05 degree MCD43 BRDF files.
"""
import os
import sys
from numpy import loadtxt, array, tile, where, concatenate, flipud
from numpy import ones
from datetime import date, datetime, timedelta
from glob import glob
from pyhdf.SD import SD, HDF4Error
MISSING = 32.767
SDS = dict... | 36.222222 | 103 | 0.533282 | 747 | 6,520 | 4.373494 | 0.273092 | 0.137741 | 0.085706 | 0.018365 | 0.039792 | 0.012244 | 0 | 0 | 0 | 0 | 0 | 0.067998 | 0.316564 | 6,520 | 179 | 104 | 36.424581 | 0.665171 | 0.100767 | 0 | 0.056604 | 0 | 0 | 0.209649 | 0.133752 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066038 | null | null | 0.04717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d9c7946fa7c34a185ec10fc47b862efa2f519a9d | 19,770 | py | Python | uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | 44.728507 | 304 | 0.644917 | 2,223 | 19,770 | 5.650022 | 0.127305 | 0.021497 | 0.018631 | 0.025876 | 0.68949 | 0.663296 | 0.605573 | 0.595701 | 0.558519 | 0.519984 | 0 | 0.002926 | 0.239454 | 19,770 | 441 | 305 | 44.829932 | 0.832402 | 0.527112 | 0 | 0.270833 | 0 | 0 | 0.13391 | 0.042006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243056 | false | 0 | 0.020833 | 0 | 0.451389 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9caf13b41f36d2f1d5f56fee8cc8d3745513f23 | 18,402 | py | Python | Yellow_Pages_Lithuania/unit_tests.py | Jay4C/Web-Scraping | 187679bee035dad661d983b5a8382240f820c337 | [
"MIT"
] | 1 | 2022-02-28T05:05:06.000Z | 2022-02-28T05:05:06.000Z | Yellow_Pages_Lithuania/unit_tests.py | Jay4C/Web-Scraping | 187679bee035dad661d983b5a8382240f820c337 | [
"MIT"
] | 23 | 2020-03-04T22:17:32.000Z | 2021-01-21T09:35:33.000Z | Yellow_Pages_Lithuania/unit_tests.py | Jay4C/Web-Scraping | 187679bee035dad661d983b5a8382240f820c337 | [
"MIT"
] | null | null | null | import time
from bs4 import BeautifulSoup
import requests
import pymysql.cursors
import unittest
class UnitTestsDataMinerYellowPagesLithuania(unittest.TestCase):
def test_extract_one_email(self):
url = "https://www.visalietuva.lt/en/company/astorija-hotel-uab"
# Request the content of a page from... | 53.0317 | 119 | 0.395392 | 1,592 | 18,402 | 4.378141 | 0.232412 | 0.032138 | 0.052224 | 0.025251 | 0.657389 | 0.647489 | 0.647489 | 0.643472 | 0.638737 | 0.638737 | 0 | 0.029659 | 0.463156 | 18,402 | 346 | 120 | 53.184971 | 0.675878 | 0.101185 | 0 | 0.639216 | 0 | 0 | 0.1551 | 0.005596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0.007843 | 0.019608 | 0 | 0.035294 | 0.109804 | 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 |
d9cb561a08fd3aac17d5adf4c0665d1418e60e6a | 3,262 | py | Python | python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 3 | 2020-04-28T16:27:33.000Z | 2020-07-22T07:43:30.000Z | python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 1 | 2021-02-21T12:16:47.000Z | 2021-02-21T12:16:47.000Z | # pylint: disable=protected-access
import os
import re
import pytest
from dagster import file_relative_path
from dagster.core.errors import DagsterInstanceMigrationRequired
from dagster.core.instance import DagsterInstance, InstanceRef
from dagster.utils.test import restore_directory
# test that we can load runs an... | 42.363636 | 100 | 0.698038 | 432 | 3,262 | 4.979167 | 0.280093 | 0.009298 | 0.059507 | 0.033473 | 0.662483 | 0.662483 | 0.647606 | 0.632729 | 0.632729 | 0.615528 | 0 | 0.074961 | 0.218884 | 3,262 | 76 | 101 | 42.921053 | 0.769231 | 0.136726 | 0 | 0.584906 | 0 | 0 | 0.264245 | 0.155983 | 0 | 0 | 0 | 0 | 0.150943 | 1 | 0.056604 | false | 0 | 0.132075 | 0 | 0.188679 | 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 |
d9d59aa9c4853e8590f823a63f53768b8aecbce1 | 6,899 | py | Python | python/ray/experimental/workflow/execution.py | wgifford/ray | 8acb469b047cd9b327c9477a13b030eb7357860e | [
"Apache-2.0"
] | null | null | null | python/ray/experimental/workflow/execution.py | wgifford/ray | 8acb469b047cd9b327c9477a13b030eb7357860e | [
"Apache-2.0"
] | 32 | 2021-09-04T07:08:45.000Z | 2022-02-19T08:08:11.000Z | python/ray/experimental/workflow/execution.py | wgifford/ray | 8acb469b047cd9b327c9477a13b030eb7357860e | [
"Apache-2.0"
] | null | null | null | import asyncio
import logging
import time
from typing import Set, List, Tuple, Optional, TYPE_CHECKING
import uuid
import ray
from ray.experimental.workflow import workflow_context
from ray.experimental.workflow import workflow_storage
from ray.experimental.workflow.common import (Workflow, WorkflowStatus,
... | 40.345029 | 79 | 0.681258 | 838 | 6,899 | 5.400955 | 0.201671 | 0.061865 | 0.031816 | 0.041759 | 0.383341 | 0.35285 | 0.292974 | 0.194432 | 0.150243 | 0.124613 | 0 | 0.000566 | 0.232208 | 6,899 | 170 | 80 | 40.582353 | 0.85388 | 0.14031 | 0 | 0.184 | 0 | 0 | 0.078885 | 0.018021 | 0 | 0 | 0 | 0.011765 | 0.016 | 1 | 0.056 | false | 0 | 0.104 | 0 | 0.248 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d9d66c8e24ecdddf4d2ecdc3b422d09645a2f485 | 3,021 | py | Python | mro/stages/analyzer/run_differential_expression/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | 1 | 2019-03-29T04:05:58.000Z | 2019-03-29T04:05:58.000Z | mro/stages/analyzer/run_differential_expression/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | mro/stages/analyzer/run_differential_expression/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2017 10X Genomics, Inc. All rights reserved.
#
import cellranger.analysis.diffexp as cr_diffexp
import cellranger.analysis.io as analysis_io
from cellranger.analysis.singlegenome import SingleGenomeAnalysis
import cellranger.h5_constants as h5_constants
import cellranger.analysi... | 35.541176 | 125 | 0.735849 | 424 | 3,021 | 4.900943 | 0.316038 | 0.028874 | 0.034649 | 0.023099 | 0.16025 | 0.076035 | 0.023099 | 0 | 0 | 0 | 0 | 0.016353 | 0.190334 | 3,021 | 84 | 126 | 35.964286 | 0.833197 | 0.109897 | 0 | 0.087719 | 0 | 0 | 0.148825 | 0.027602 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.052632 | false | 0 | 0.140351 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d9d95781d1bacab44253ba285649d7b99ee1e33d | 542 | py | Python | src/vatic_checker/config.py | jonkeane/vatic-checker | fa8aec6946dcfd3f466b62f9c00d81bc43514b22 | [
"MIT"
] | null | null | null | src/vatic_checker/config.py | jonkeane/vatic-checker | fa8aec6946dcfd3f466b62f9c00d81bc43514b22 | [
"MIT"
] | null | null | null | src/vatic_checker/config.py | jonkeane/vatic-checker | fa8aec6946dcfd3f466b62f9c00d81bc43514b22 | [
"MIT"
] | null | null | null | localhost = "http://localhost/" # your local host
database = "mysql://root@localhost/vaticChecker" # server://user:pass@localhost/dbname
min_training = 2 # the minimum number of training videos to be considered
recaptcha_secret = "" # recaptcha secret for verification
duplicate_annotations = False #... | 38.714286 | 94 | 0.745387 | 72 | 542 | 5.486111 | 0.694444 | 0.04557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002169 | 0.149446 | 542 | 13 | 95 | 41.692308 | 0.854664 | 0.394834 | 0 | 0 | 0 | 0 | 0.246106 | 0.109034 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9d96360237e53141cd11d1271cee29b6140650f | 8,233 | py | Python | django/utils/timezone.py | graingert/django | 784d0c261c76535dc760bc8d76793d92f35c1513 | [
"BSD-3-Clause"
] | 1 | 2015-11-11T12:20:45.000Z | 2015-11-11T12:20:45.000Z | django/utils/timezone.py | graingert/django | 784d0c261c76535dc760bc8d76793d92f35c1513 | [
"BSD-3-Clause"
] | null | null | null | django/utils/timezone.py | graingert/django | 784d0c261c76535dc760bc8d76793d92f35c1513 | [
"BSD-3-Clause"
] | null | null | null | """Timezone helper functions.
This module uses pytz when it's available and fallbacks when it isn't.
"""
from datetime import datetime, timedelta, tzinfo
from threading import local
import time as _time
try:
import pytz
except ImportError:
pytz = None
from django.conf import settings
__all__ = [
'utc',... | 28.195205 | 81 | 0.66197 | 1,098 | 8,233 | 4.839709 | 0.220401 | 0.034626 | 0.023711 | 0.009785 | 0.285284 | 0.252352 | 0.228453 | 0.176139 | 0.125329 | 0.125329 | 0 | 0.000972 | 0.24997 | 8,233 | 291 | 82 | 28.292096 | 0.859595 | 0.383457 | 0 | 0.242424 | 0 | 0 | 0.045045 | 0.004505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.045455 | 0.045455 | 0.469697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9e551f94d290cc9b470d1fddfc0e91666dab7ba | 444 | py | Python | setup.py | zhanghang1989/notedown | b0fa1eac88d1cd7fa2261d6c454f82669e6f552b | [
"BSD-2-Clause"
] | null | null | null | setup.py | zhanghang1989/notedown | b0fa1eac88d1cd7fa2261d6c454f82669e6f552b | [
"BSD-2-Clause"
] | null | null | null | setup.py | zhanghang1989/notedown | b0fa1eac88d1cd7fa2261d6c454f82669e6f552b | [
"BSD-2-Clause"
] | null | null | null | from setuptools import setup
# create __version__
exec(open('./_version.py').read())
setup(
name="notedown",
version=__version__,
description="Convert markdown to IPython notebook.",
author="Aaron O'Leary",
author_email='dev@aaren.me',
url='http://github.com/aaren/notedown',
install_requir... | 22.2 | 56 | 0.628378 | 47 | 444 | 5.659574 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218468 | 444 | 19 | 57 | 23.368421 | 0.766571 | 0.040541 | 0 | 0 | 0 | 0 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9e62b20786a73ca86ccde01bde160623cc32657 | 3,710 | py | Python | genyrator/entities/Template.py | jumblesale/genyrator | c4429f689e92e8447b0b944e7d9b434f99cae51d | [
"MIT"
] | 1 | 2020-07-01T16:54:39.000Z | 2020-07-01T16:54:39.000Z | genyrator/entities/Template.py | jumblesale/genyrator | c4429f689e92e8447b0b944e7d9b434f99cae51d | [
"MIT"
] | 10 | 2018-11-16T15:04:21.000Z | 2021-06-01T22:27:38.000Z | genyrator/entities/Template.py | jumblesale/genyrator | c4429f689e92e8447b0b944e7d9b434f99cae51d | [
"MIT"
] | 2 | 2018-08-08T10:42:35.000Z | 2019-07-25T11:56:06.000Z | from typing import List, Optional, NewType, Tuple, NamedTuple, Type
import attr
from jinja2 import Template as JinjaTemplate, StrictUndefined
from genyrator.entities.Entity import Entity
from genyrator.path import create_relative_path
OutPath = NewType('OutPath', Tuple[List[str], str])
Import = NamedTuple('Import',
... | 24.090909 | 73 | 0.616712 | 444 | 3,710 | 4.990991 | 0.175676 | 0.102888 | 0.113718 | 0.105596 | 0.421029 | 0.361913 | 0.304152 | 0.278881 | 0.24639 | 0.146209 | 0 | 0.001836 | 0.265768 | 3,710 | 153 | 74 | 24.248366 | 0.811674 | 0 | 0 | 0.419643 | 0 | 0 | 0.014555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.133929 | 0.017857 | 0.696429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9e8867f9d8fa5dbea3f62a0b298eac5f535d37a | 9,499 | py | Python | src/bots/test/test_inputs.py | drewbitt/lightnovel-crawler | fa9546ad9dcff49c75296b0b8772f6578689adcc | [
"Apache-2.0"
] | 1 | 2019-03-10T13:02:23.000Z | 2019-03-10T13:02:23.000Z | src/bots/test/test_inputs.py | drewbitt/lightnovel-crawler | fa9546ad9dcff49c75296b0b8772f6578689adcc | [
"Apache-2.0"
] | null | null | null | src/bots/test/test_inputs.py | drewbitt/lightnovel-crawler | fa9546ad9dcff49c75296b0b8772f6578689adcc | [
"Apache-2.0"
] | null | null | null | from base64 import decodestring as b64decode
allowed_failures = [
'https://ranobelib.me/',
'https://www.aixdzs.com/',
'https://webnovelindonesia.com/',
b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).decode()
]
test_user_inputs = {
b64decode("aHR0cHM6Ly9jb21yYWRlbWFvLmNvbS8=".encode()).deco... | 34.922794 | 117 | 0.596694 | 1,009 | 9,499 | 5.611497 | 0.331021 | 0.08195 | 0.036913 | 0.018368 | 0.11798 | 0.102437 | 0.084776 | 0.084776 | 0.068174 | 0.044507 | 0 | 0.024765 | 0.192336 | 9,499 | 271 | 118 | 35.051661 | 0.713243 | 0 | 0 | 0.33829 | 0 | 0.052045 | 0.713759 | 0.015581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003717 | 0 | 0.003717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9ea7ffbac1c307ae6a48a478a94b12a44b81de1 | 3,325 | py | Python | backend/radar/engine/body_objects.py | me-anton/radar-app | cc7d1e876e0ce9b6173b6d7b484d5553e247166e | [
"MIT"
] | null | null | null | backend/radar/engine/body_objects.py | me-anton/radar-app | cc7d1e876e0ce9b6173b6d7b484d5553e247166e | [
"MIT"
] | null | null | null | backend/radar/engine/body_objects.py | me-anton/radar-app | cc7d1e876e0ce9b6173b6d7b484d5553e247166e | [
"MIT"
] | null | null | null | import logging
import json
from dataclasses import dataclass
from redis import Redis
from typing import Iterable, Tuple, List, Iterator, Union, Dict
from typing_extensions import TypedDict
from backend import settings
from caching.scripts import RedisScriptsPool
from share.metaclasses import Singleton
from radar.model... | 33.25 | 76 | 0.657143 | 406 | 3,325 | 5.135468 | 0.320197 | 0.026859 | 0.023022 | 0.034532 | 0.11223 | 0.035492 | 0.035492 | 0.035492 | 0.035492 | 0.035492 | 0 | 0.002837 | 0.258045 | 3,325 | 99 | 77 | 33.585859 | 0.842319 | 0.111278 | 0 | 0.101449 | 0 | 0 | 0.026371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15942 | false | 0 | 0.15942 | 0.072464 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9ec7fb034397cf9a445f613d02c81768a1461eb | 3,410 | py | Python | bokeh/client/util.py | areaweb/bokeh | 9d131e45d626a912e85aee5b2647139c194dc893 | [
"BSD-3-Clause"
] | 1 | 2021-01-31T22:13:13.000Z | 2021-01-31T22:13:13.000Z | bokeh/client/util.py | adsbxchange/bokeh | 47aa8f8420944c47e876c1c36be182d257c14b87 | [
"BSD-3-Clause"
] | 1 | 2017-01-12T00:37:38.000Z | 2017-01-12T00:37:38.000Z | bokeh/client/util.py | adsbxchange/bokeh | 47aa8f8420944c47e876c1c36be182d257c14b87 | [
"BSD-3-Clause"
] | null | null | null | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... | 31.574074 | 82 | 0.389443 | 271 | 3,410 | 4.830258 | 0.383764 | 0.024446 | 0.018335 | 0.016807 | 0.210848 | 0.151261 | 0.097785 | 0.097785 | 0.097785 | 0.097785 | 0 | 0.006702 | 0.168622 | 3,410 | 107 | 83 | 31.869159 | 0.455026 | 0.65044 | 0 | 0.185185 | 0 | 0 | 0.123928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.296296 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9f04eac1f39d4c14950ae0caf3dff21f18defd4 | 84,990 | py | Python | source/browseMode.py | neal-hub/nvda-test | 4c3a67b2eafa9721c5de3f671d10e60ab2d43865 | [
"bzip2-1.0.6"
] | 1 | 2022-02-20T23:10:39.000Z | 2022-02-20T23:10:39.000Z | source/browseMode.py | neal-hub/nvda-test | 4c3a67b2eafa9721c5de3f671d10e60ab2d43865 | [
"bzip2-1.0.6"
] | null | null | null | source/browseMode.py | neal-hub/nvda-test | 4c3a67b2eafa9721c5de3f671d10e60ab2d43865 | [
"bzip2-1.0.6"
] | null | null | null | # A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2007-2021 NV Access Limited, Babbage B.V., James Teh, Leonard de Ruijter,
# Thomas Stivers, Accessolutions, Julien Cochuyt
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.
from typing import Any, Callabl... | 44.265625 | 229 | 0.740899 | 10,985 | 84,990 | 5.67929 | 0.117979 | 0.025005 | 0.015837 | 0.019491 | 0.365092 | 0.303765 | 0.279145 | 0.263516 | 0.258243 | 0.249427 | 0 | 0.002256 | 0.181245 | 84,990 | 1,919 | 230 | 44.288692 | 0.894289 | 0.426191 | 0 | 0.297735 | 0 | 0.000809 | 0.134236 | 0.011349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072816 | false | 0.072006 | 0.032362 | 0.008091 | 0.193366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9f9cd4e7a0b73e79eb71d2bdbfa755d69a9cc9d | 597 | py | Python | examples/first_char_last_column.py | clarkfitzg/sta141c | 129704ba0952a4b80f9b093dcfa49f49f37b052d | [
"MIT"
] | 24 | 2019-01-08T20:10:11.000Z | 2021-11-26T12:18:58.000Z | examples/first_char_last_column.py | timilchene/sta141c-winter19 | 129704ba0952a4b80f9b093dcfa49f49f37b052d | [
"MIT"
] | 1 | 2017-06-25T05:35:24.000Z | 2017-06-25T05:35:24.000Z | examples/first_char_last_column.py | timilchene/sta141c-winter19 | 129704ba0952a4b80f9b093dcfa49f49f37b052d | [
"MIT"
] | 22 | 2019-01-08T20:02:15.000Z | 2021-12-16T23:27:56.000Z | #!/usr/bin/env python3
"""
For the last column, print only the first character.
Usage:
$ printf "100,200\n0,\n" | python3 first_char_last_column.py
Should print "100,2\n0,"
"""
import csv
from sys import stdin, stdout
def main():
reader = csv.reader(stdin)
writer = csv.writer(stdout)
for row in re... | 19.258065 | 64 | 0.606365 | 79 | 597 | 4.443038 | 0.696203 | 0.05698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03972 | 0.283082 | 597 | 30 | 65 | 19.9 | 0.780374 | 0.425461 | 0 | 0 | 0 | 0 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9fb744315858b3e553e097f0866c6de49262adf | 1,996 | py | Python | env_ci.py | reloadware/stickybeak | 8ac52a80849a3098fb6b2f47115970a734a73c14 | [
"Apache-2.0"
] | null | null | null | env_ci.py | reloadware/stickybeak | 8ac52a80849a3098fb6b2f47115970a734a73c14 | [
"Apache-2.0"
] | null | null | null | env_ci.py | reloadware/stickybeak | 8ac52a80849a3098fb6b2f47115970a734a73c14 | [
"Apache-2.0"
] | 1 | 2022-01-01T15:14:42.000Z | 2022-01-01T15:14:42.000Z | from pathlib import Path
root = Path(__file__).parent.absolute()
import envo
envo.add_source_roots([root])
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple
from envo import Env, Namespace, env_var, logger, run
from env_comm import StickybeakCommEnv as ParentEnv
p = Namespace("p")
cl... | 22.942529 | 117 | 0.613727 | 251 | 1,996 | 4.752988 | 0.36255 | 0.067058 | 0.092205 | 0.03772 | 0.093881 | 0.093881 | 0.053646 | 0.053646 | 0 | 0 | 0 | 0.002003 | 0.249499 | 1,996 | 86 | 118 | 23.209302 | 0.793725 | 0.051102 | 0 | 0.298246 | 0 | 0 | 0.130619 | 0.038604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0.087719 | 0.122807 | 0 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d9fe5aa1f8632d451d56260ea6fb9079bd975a31 | 475 | py | Python | bsp/nrf5x/tools/sdk_dist.py | BreederBai/rt-thread | 53ed0314982556dfa9c5db75d4f3e02485d16ab5 | [
"Apache-2.0"
] | 7,482 | 2015-01-01T09:23:08.000Z | 2022-03-31T19:34:05.000Z | bsp/nrf5x/tools/sdk_dist.py | ArdaFu/rt-thread | eebb2561ec166e0016187c7b7998ada4f8212b3a | [
"Apache-2.0"
] | 2,543 | 2015-01-09T02:01:34.000Z | 2022-03-31T23:10:14.000Z | bsp/nrf5x/tools/sdk_dist.py | ArdaFu/rt-thread | eebb2561ec166e0016187c7b7998ada4f8212b3a | [
"Apache-2.0"
] | 4,645 | 2015-01-06T07:05:31.000Z | 2022-03-31T18:21:50.000Z | import os
import sys
import shutil
cwd_path = os.getcwd()
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
# BSP dist function
def dist_do_building(BSP_ROOT, dist_dir):
from mkdist import bsp_copy_files
import rtconfig
library_dir = os.path.join(dist_dir, 'libraries')
p... | 26.388889 | 78 | 0.734737 | 74 | 475 | 4.5 | 0.405405 | 0.09009 | 0.09009 | 0.072072 | 0.138138 | 0.138138 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.145263 | 475 | 17 | 79 | 27.941176 | 0.815271 | 0.035789 | 0 | 0 | 0 | 0 | 0.129386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a040db174b4e066ad1fcf13a9fc64667e2a81e2 | 274 | py | Python | leetCode/algorithms/easy/count_and_say.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | leetCode/algorithms/easy/count_and_say.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | leetCode/algorithms/easy/count_and_say.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | from itertools import groupby
class Solution:
def countAndSay(self, n):
def gen(s):
return "".join(str(len(list(g))) + k for k, g in groupby(s))
s, i = "1", 1
while i < n:
s = gen(s)
i += 1
return s
| 19.571429 | 72 | 0.463504 | 40 | 274 | 3.175 | 0.6 | 0.062992 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.408759 | 274 | 13 | 73 | 21.076923 | 0.765432 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 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 |
8a047dbb3e81227c03ec206589ca325125601905 | 1,721 | py | Python | app/blueprints/department_blueprint.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | null | null | null | app/blueprints/department_blueprint.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | 2 | 2019-05-21T08:44:29.000Z | 2021-04-30T20:46:08.000Z | app/blueprints/department_blueprint.py | Maxcutex/personal_ecommerce | be09fb20eae1b225523acde06f8e75effcc3676f | [
"MIT"
] | null | null | null | from flasgger import swag_from
from app.blueprints.base_blueprint import Blueprint, BaseBlueprint, request, Security, Auth
from app.controllers.department_controller import DepartmentController
url_prefix = '{}/departments'.format(BaseBlueprint.base_url_prefix)
department_blueprint = Blueprint('department', __name__,... | 41.97561 | 91 | 0.820453 | 199 | 1,721 | 6.773869 | 0.241206 | 0.080119 | 0.097923 | 0.060089 | 0.405786 | 0.405786 | 0.248516 | 0.096439 | 0.096439 | 0.096439 | 0 | 0 | 0.048809 | 1,721 | 40 | 92 | 43.025 | 0.823458 | 0 | 0 | 0.151515 | 0 | 0 | 0.246368 | 0.127252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.090909 | 0.151515 | 0.393939 | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a06d974512def3c400fb25769c0185d59195602 | 1,405 | py | Python | baymax/api.py | dmrz/baymax | 60cca5ae2e7cb42e093747f91b809e34e6782fcd | [
"MIT"
] | 34 | 2018-02-14T09:37:26.000Z | 2021-02-13T10:06:54.000Z | baymax/api.py | Avishekbhattacharjee/baymax | 487930c4f3021ff50504d371de09ff31e458c09f | [
"MIT"
] | 1 | 2018-03-03T02:55:38.000Z | 2018-03-17T21:57:15.000Z | baymax/api.py | Avishekbhattacharjee/baymax | 487930c4f3021ff50504d371de09ff31e458c09f | [
"MIT"
] | 7 | 2018-02-28T07:35:35.000Z | 2022-01-26T11:54:40.000Z | import json
import aiohttp
async def request(url, payload=None, params=None, headers=None):
headers = {'content-type': 'application/json', **(headers or {})}
data = payload and json.dumps(payload)
async with aiohttp.ClientSession() as client:
async with client.post(
url, data=data... | 29.270833 | 72 | 0.641993 | 176 | 1,405 | 4.943182 | 0.318182 | 0.048276 | 0.062069 | 0.065517 | 0.089655 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251957 | 1,405 | 47 | 73 | 29.893617 | 0.827783 | 0.019217 | 0 | 0.054054 | 0 | 0 | 0.131541 | 0.053052 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8a0988ba1c9ee5db70eabfa7b9b35ad041f9c1f7 | 2,238 | py | Python | pymatgen/analysis/tests/test_piezo.py | exenGT/pymatgen | a8ffb820ab8fc3f60251099e38c8888f45eae618 | [
"MIT"
] | 1 | 2021-11-02T21:10:11.000Z | 2021-11-02T21:10:11.000Z | pymatgen/analysis/tests/test_piezo.py | exenGT/pymatgen | a8ffb820ab8fc3f60251099e38c8888f45eae618 | [
"MIT"
] | 5 | 2018-08-07T23:00:23.000Z | 2021-01-05T22:46:23.000Z | pymatgen/analysis/tests/test_piezo.py | exenGT/pymatgen | a8ffb820ab8fc3f60251099e38c8888f45eae618 | [
"MIT"
] | 6 | 2019-04-26T18:50:41.000Z | 2020-03-29T17:58:34.000Z | # Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Test for the piezo tensor class
"""
__author__ = "Shyam Dwaraknath"
__version__ = "0.1"
__maintainer__ = "Shyam Dwaraknath"
__email__ = "shyamd@lbl.gov"
__status__ = "Development"
__date__ = "4/1/16"
import os
import un... | 31.521127 | 76 | 0.594281 | 331 | 2,238 | 3.809668 | 0.232628 | 0.137986 | 0.171293 | 0.183981 | 0.513085 | 0.478192 | 0.470262 | 0.470262 | 0.470262 | 0.470262 | 0 | 0.127108 | 0.258266 | 2,238 | 70 | 77 | 31.971429 | 0.63253 | 0.054066 | 0 | 0.192308 | 0 | 0 | 0.037951 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.096154 | 0 | 0.192308 | 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 |
8a13a931088f76e07468fa49084284d44b5cf0eb | 936 | py | Python | autolatex-master/exemplos_codigo/certificados/certificados.py | luizgui05/autolatex. | 366eb3d88b7e60c119737f958e35cce99e8775e9 | [
"MIT"
] | null | null | null | autolatex-master/exemplos_codigo/certificados/certificados.py | luizgui05/autolatex. | 366eb3d88b7e60c119737f958e35cce99e8775e9 | [
"MIT"
] | null | null | null | autolatex-master/exemplos_codigo/certificados/certificados.py | luizgui05/autolatex. | 366eb3d88b7e60c119737f958e35cce99e8775e9 | [
"MIT"
] | null | null | null | import os
import sys
import sqlite3
con = None
filename = 'certificado'
# Abrir banco de dados para ler nomes.
try:
con = sqlite3.connect('math.db')
cur = con.cursor()
cur.execute('select * from math')
data = cur.fetchall()
except sqlite3.Error, e:
print "Error %s:" % e.args[0]
sys.exit(... | 20.8 | 85 | 0.569444 | 128 | 936 | 4.148438 | 0.5625 | 0.045198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018545 | 0.251068 | 936 | 44 | 86 | 21.272727 | 0.738944 | 0.145299 | 0 | 0.0625 | 0 | 0 | 0.148428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a1f6ceee24cfa74cb693e71048a38117f2ad54b | 907 | py | Python | base/admin.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | base/admin.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | base/admin.py | ExpertOfNone/expert_of_none | 9ff4e4279a570712766546122c014c754f753485 | [
"MIT"
] | null | null | null | from django.contrib import admin
from base.models import Topic, Photo
class EONBaseAdmin(admin.ModelAdmin):
def get_changeform_initial_data(self, request):
initial = super().get_changeform_initial_data(request)
if 'add' in request.META['PATH_INFO']:
initial['created_by'] = request.... | 21.093023 | 96 | 0.675854 | 109 | 907 | 5.458716 | 0.458716 | 0.060504 | 0.065546 | 0.080672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216097 | 907 | 42 | 97 | 21.595238 | 0.83685 | 0.030871 | 0 | 0 | 0 | 0 | 0.107184 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.095238 | false | 0.047619 | 0.095238 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a2014bc56418a4e4967160efe3f9656c573b77f | 1,432 | py | Python | glue/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 550 | 2015-01-08T13:51:06.000Z | 2022-03-31T11:54:47.000Z | glue/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 1,362 | 2015-01-03T19:15:52.000Z | 2022-03-30T13:23:11.000Z | glue/__init__.py | HPLegion/glue | 1843787ccb4de852dfe103ff58473da13faccf5f | [
"BSD-3-Clause"
] | 142 | 2015-01-08T13:08:00.000Z | 2022-03-18T13:25:57.000Z | # Set up configuration variables
__all__ = ['custom_viewer', 'qglue', 'test']
import os
import sys
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution('glue-core').version
except DistributionNotFound:
__version__ = 'undefined'
from ._mpl_backend import Matp... | 26.036364 | 78 | 0.775838 | 195 | 1,432 | 5.435897 | 0.528205 | 0.049057 | 0.039623 | 0.028302 | 0.075472 | 0.075472 | 0.075472 | 0.075472 | 0 | 0 | 0 | 0.001642 | 0.149441 | 1,432 | 54 | 79 | 26.518519 | 0.868637 | 0.293296 | 0 | 0 | 0 | 0 | 0.059821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.37037 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a20b1d12635ada6c636b100e165021b86485320 | 2,854 | py | Python | main.py | vkumarma/Complete-Interpreter | 5ec15ea84b0e7e735328511cc504efa43638f720 | [
"MIT"
] | null | null | null | main.py | vkumarma/Complete-Interpreter | 5ec15ea84b0e7e735328511cc504efa43638f720 | [
"MIT"
] | null | null | null | main.py | vkumarma/Complete-Interpreter | 5ec15ea84b0e7e735328511cc504efa43638f720 | [
"MIT"
] | null | null | null | import re
import sys
class Lexer:
def __init__(self, inp_str):
self.index = 0
self.s = inp_str
def get_char(self):
if self.index < len(self.s):
var = self.s[self.index]
self.index += 1
return var
input_file = open(str(sys.argv[1]), 'r') # Open fi... | 23.983193 | 72 | 0.590049 | 383 | 2,854 | 4.185379 | 0.211488 | 0.204616 | 0.121647 | 0.07985 | 0.46413 | 0.412352 | 0.355583 | 0.213974 | 0.213974 | 0.213974 | 0 | 0.005261 | 0.267344 | 2,854 | 118 | 73 | 24.186441 | 0.761358 | 0.061317 | 0 | 0.363636 | 0 | 0.011364 | 0.058757 | 0.035554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.022727 | 0.011364 | 0.204545 | 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 |
8a20dee928bb3a353769ebc5d7c40156ab5eb131 | 306 | py | Python | deduplicate.py | Ghostofapacket/NewsGrabber-Deduplicate | 0b8152af2e1c6c87cf8540970f42084b96a99d9c | [
"Unlicense"
] | null | null | null | deduplicate.py | Ghostofapacket/NewsGrabber-Deduplicate | 0b8152af2e1c6c87cf8540970f42084b96a99d9c | [
"Unlicense"
] | null | null | null | deduplicate.py | Ghostofapacket/NewsGrabber-Deduplicate | 0b8152af2e1c6c87cf8540970f42084b96a99d9c | [
"Unlicense"
] | null | null | null | import sys
sys.path.append('/usr/local/lib/python3.4/site-packages/')
from warc_dedup import deduplicate
def main():
if len(sys.argv) == 1:
raise Exception('Please provide the WARC file as argument.')
deduplicate.Warc(*sys.argv[1:]).deduplicate()
if __name__ == '__main__':
main()
| 20.4 | 68 | 0.679739 | 43 | 306 | 4.627907 | 0.697674 | 0.070352 | 0.080402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.169935 | 306 | 14 | 69 | 21.857143 | 0.767717 | 0 | 0 | 0 | 0 | 0 | 0.288525 | 0.127869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a29eefe067ae42942e4915562e64419af3d1cde | 950 | py | Python | scripts_python3/exchange/deleteExchange.py | bcvsolutions/winrm-ad-connector | 9b45dae78d3ba24fe6b00e090f8763d3162e1570 | [
"Apache-2.0"
] | null | null | null | scripts_python3/exchange/deleteExchange.py | bcvsolutions/winrm-ad-connector | 9b45dae78d3ba24fe6b00e090f8763d3162e1570 | [
"Apache-2.0"
] | 2 | 2020-05-27T07:15:28.000Z | 2020-12-17T05:22:54.000Z | scripts_python3/exchange/deleteExchange.py | bcvsolutions/winrm-ad-connector | 9b45dae78d3ba24fe6b00e090f8763d3162e1570 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# All params from IdM is stored in environment and you can get them by os.environ["paramName"]
import sys, os
# this is needed for importing file winrm_wrapper from parent dir
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import winrm_wrapper
import codecs... | 35.185185 | 134 | 0.705263 | 133 | 950 | 4.902256 | 0.503759 | 0.124233 | 0.092025 | 0.070552 | 0.088957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.144211 | 950 | 26 | 135 | 36.538462 | 0.798278 | 0.270526 | 0 | 0 | 0 | 0 | 0.206696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.2 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a2ac410faa6645af8d41c21c8f5834684cf1a20 | 2,152 | py | Python | tests/registry_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | 1 | 2022-03-11T13:36:34.000Z | 2022-03-11T13:36:34.000Z | tests/registry_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | tests/registry_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import unittest
from aenum import Enum, auto
from dace import registry
@registry.make_registry
class ExtensibleClass(object):
pass
class Extension(ExtensibleClass):
pass
@registry.extensible_enum
class ExtensibleEnumeration(Enum):... | 29.479452 | 89 | 0.697955 | 220 | 2,152 | 6.704545 | 0.290909 | 0.135593 | 0.109831 | 0.065085 | 0.380339 | 0.357288 | 0.295593 | 0.143729 | 0.143729 | 0.143729 | 0 | 0.012419 | 0.214219 | 2,152 | 72 | 90 | 29.888889 | 0.859846 | 0.033922 | 0 | 0.352941 | 0 | 0 | 0.004333 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.137255 | false | 0.117647 | 0.058824 | 0 | 0.392157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a2f400a7655554fbc57b5f622cd3afad8069e45 | 427 | py | Python | gcp-python-fn/main.py | FuriKuri/faas-playground | 52618e21064e327d2874d2b73cfe5fb247d3dd6e | [
"MIT"
] | 1 | 2019-05-07T13:15:16.000Z | 2019-05-07T13:15:16.000Z | gcp-python-fn/main.py | FuriKuri/faas-playground | 52618e21064e327d2874d2b73cfe5fb247d3dd6e | [
"MIT"
] | null | null | null | gcp-python-fn/main.py | FuriKuri/faas-playground | 52618e21064e327d2874d2b73cfe5fb247d3dd6e | [
"MIT"
] | null | null | null | def hello_world(request):
request_json = request.get_json()
name = 'World'
if request_json and 'name' in request_json:
name = request_json['name']
headers = {
'Access-Control-Allow-Origin': 'https://furikuri.net',
'Access-Control-Allow-Methods': 'GET, POST',
'Access-Contr... | 35.583333 | 66 | 0.620609 | 51 | 427 | 5.078431 | 0.529412 | 0.169884 | 0.208494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.227166 | 427 | 11 | 67 | 38.818182 | 0.775758 | 0 | 0 | 0 | 0 | 0 | 0.379391 | 0.194379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 |
8a3245f4587a32c402e78f398ab94bc52ef0cf9a | 780 | py | Python | PaddleOCR/deploy/hubserving/ocr_det/params.py | TangJiamin/Ultra_light_OCR_No.23 | 594aa286dc2f88614141838ce45c164647226cdb | [
"Apache-2.0"
] | null | null | null | PaddleOCR/deploy/hubserving/ocr_det/params.py | TangJiamin/Ultra_light_OCR_No.23 | 594aa286dc2f88614141838ce45c164647226cdb | [
"Apache-2.0"
] | null | null | null | PaddleOCR/deploy/hubserving/ocr_det/params.py | TangJiamin/Ultra_light_OCR_No.23 | 594aa286dc2f88614141838ce45c164647226cdb | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class Config(object):
pass
def read_params():
cfg = Config()
#params for text detector
cfg.det_algorithm = "DB"
cfg.det_model_dir = "./inference/ch_... | 22.285714 | 70 | 0.661538 | 116 | 780 | 4.034483 | 0.508621 | 0.128205 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030822 | 0.251282 | 780 | 34 | 71 | 22.941176 | 0.770548 | 0.203846 | 0 | 0 | 0 | 0 | 0.083045 | 0.074394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8a328b7be397a48ed8f6202385b17e0dbf81357c | 12,156 | py | Python | networks/larflow/models/larflow_uresnet.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | 2 | 2020-07-09T19:34:03.000Z | 2021-06-21T23:09:23.000Z | networks/larflow/models/larflow_uresnet.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | null | null | null | networks/larflow/models/larflow_uresnet.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import torch as torch
import math
import torch.utils.model_zoo as model_zoo
###########################################################
#
# U-ResNet
# U-net witih ResNet modules
#
# Semantic segmentation network used by MicroBooNE
# to label track/shower pixels
#
# resnet implementation from pyto... | 36.286567 | 152 | 0.599786 | 1,583 | 12,156 | 4.43904 | 0.131396 | 0.107585 | 0.043546 | 0.037 | 0.562971 | 0.525829 | 0.444002 | 0.410132 | 0.362317 | 0.346236 | 0 | 0.044164 | 0.27542 | 12,156 | 334 | 153 | 36.39521 | 0.753633 | 0.069842 | 0 | 0.362791 | 0 | 0 | 0.023833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04186 | 0.018605 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a3c0f03126e25cbd17946a5a7c81e22d30b3f4d | 821 | py | Python | palm_tree/coconut_1/models.py | m-hintz-42/a-palm-tree | 57656874335f4dfae13cf720668f2c5391621618 | [
"MIT"
] | null | null | null | palm_tree/coconut_1/models.py | m-hintz-42/a-palm-tree | 57656874335f4dfae13cf720668f2c5391621618 | [
"MIT"
] | null | null | null | palm_tree/coconut_1/models.py | m-hintz-42/a-palm-tree | 57656874335f4dfae13cf720668f2c5391621618 | [
"MIT"
] | null | null | null | from palm_tree import db
class Data(db.Model):
id = db.Column(db.Integer, primary_key=True)
uuid = db.Column(db.Integer)
response = db.Column(db.Text)
datetime = db.Column(db.DateTime)
def __init__(self, uuid, response, datetime):
self.uuid = uuid
self.response = response
... | 25.65625 | 50 | 0.613886 | 105 | 821 | 4.619048 | 0.247619 | 0.131959 | 0.164948 | 0.140206 | 0.76701 | 0.668041 | 0.668041 | 0.668041 | 0.668041 | 0.668041 | 0 | 0 | 0.252132 | 821 | 31 | 51 | 26.483871 | 0.789902 | 0.460414 | 0 | 0 | 0 | 0 | 0.021028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.75 | 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 |
8a3cfa083e8e8e57b0bc63b2f6a4954146234e99 | 6,995 | py | Python | Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py | farzanaaswin0708/CNN-for-Visual-recognition | db65db0a0b60e1ed2a4a418069de61936aaa9e85 | [
"MIT"
] | null | null | null | Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py | farzanaaswin0708/CNN-for-Visual-recognition | db65db0a0b60e1ed2a4a418069de61936aaa9e85 | [
"MIT"
] | null | null | null | Chest X-Ray Multilabel Image classification using CNN - Pytorch/Arch2.py | farzanaaswin0708/CNN-for-Visual-recognition | db65db0a0b60e1ed2a4a418069de61936aaa9e85 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
################################################################################
# CSE 253: Programming Assignment 3
# Winter 2019
# Code author: Jenny Hamer (+ modifications by Tejash Desai)
#
# Filename: baseline_cnn.py
#
# Description:
#
# This file contains the star... | 36.623037 | 157 | 0.653324 | 927 | 6,995 | 4.809061 | 0.248112 | 0.031404 | 0.02961 | 0.051817 | 0.27389 | 0.192463 | 0.192463 | 0.154554 | 0.124944 | 0.053836 | 0 | 0.048191 | 0.225733 | 6,995 | 190 | 158 | 36.815789 | 0.774926 | 0.368692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015789 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8a3f2203d02e338bbadd1c557a7d415e6e39dbbc | 379 | py | Python | src/temp2.py | FabBrolMons/frbayart | c2b9dde730cf6d21f1c1492d0da0351c12a4dce9 | [
"MIT"
] | null | null | null | src/temp2.py | FabBrolMons/frbayart | c2b9dde730cf6d21f1c1492d0da0351c12a4dce9 | [
"MIT"
] | null | null | null | src/temp2.py | FabBrolMons/frbayart | c2b9dde730cf6d21f1c1492d0da0351c12a4dce9 | [
"MIT"
] | null | null | null | from w1thermsensor import W1ThermSensor
sensor = W1ThermSensor()
temperature_in_celsius = sensor.get_temperature()
temperature_in_fahrenheit = sensor.get_temperature(W1ThermSensor.DEGREES_F)
temperature_in_all_units = sensor.get_temperatures([W1ThermSensor.DEGREES_C, W1ThermSensor.DEGREES_F, W1ThermSensor.KELVIN])
pri... | 42.111111 | 124 | 0.852243 | 45 | 379 | 6.844444 | 0.4 | 0.168831 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019718 | 0.063325 | 379 | 8 | 125 | 47.375 | 0.847887 | 0 | 0 | 0 | 0 | 0 | 0.026385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
8a3ff7ca606f5ce67c32533b5892e230c75d4eb8 | 413 | py | Python | tables/migrations/0004_auto_20200901_2004.py | jarnoln/exposures | bbae3f79078048d25b77e178db6c0801ffe9f97e | [
"MIT"
] | null | null | null | tables/migrations/0004_auto_20200901_2004.py | jarnoln/exposures | bbae3f79078048d25b77e178db6c0801ffe9f97e | [
"MIT"
] | null | null | null | tables/migrations/0004_auto_20200901_2004.py | jarnoln/exposures | bbae3f79078048d25b77e178db6c0801ffe9f97e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-01 17:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tables', '0003_exposure_category'),
]
operations = [
migrations.AlterField(
model_name='exposure',
name='location',
... | 21.736842 | 75 | 0.605327 | 44 | 413 | 5.590909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0.273608 | 413 | 18 | 76 | 22.944444 | 0.746667 | 0.108959 | 0 | 0 | 1 | 0 | 0.120219 | 0.060109 | 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 |
8a406525f88287f3d13cd5aee631ef0cc809c7ec | 247 | py | Python | src/reportlab/graphics/charts/__init__.py | kokinomura/reportlab | 18e39b85d7277c2b5e9218b30a7b7b0a644a3c02 | [
"BSD-3-Clause"
] | 52 | 2016-09-30T05:53:45.000Z | 2021-12-26T12:07:48.000Z | src/reportlab/graphics/charts/__init__.py | kokinomura/reportlab | 18e39b85d7277c2b5e9218b30a7b7b0a644a3c02 | [
"BSD-3-Clause"
] | 31 | 2017-01-05T06:07:28.000Z | 2018-05-27T13:13:06.000Z | src/reportlab/graphics/charts/__init__.py | kokinomura/reportlab | 18e39b85d7277c2b5e9218b30a7b7b0a644a3c02 | [
"BSD-3-Clause"
] | 15 | 2016-11-03T08:50:15.000Z | 2022-01-14T07:04:35.000Z | #Copyright ReportLab Europe Ltd. 2000-2016
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/__init__.py
__version__='3.3.0'
__doc__='''Business charts'''
| 41.166667 | 116 | 0.793522 | 37 | 247 | 4.972973 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047414 | 0.060729 | 247 | 5 | 117 | 49.4 | 0.74569 | 0.773279 | 0 | 0 | 0 | 0 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a44052cfce16663b8820adca1028bccdfa9a1aa | 438 | py | Python | CodeForces/A2OJ Ladder/softuni_problem.py | dimitrov-dimitar/competitive-programming | f2b022377baf6d4beff213fc513907b774c12352 | [
"MIT"
] | null | null | null | CodeForces/A2OJ Ladder/softuni_problem.py | dimitrov-dimitar/competitive-programming | f2b022377baf6d4beff213fc513907b774c12352 | [
"MIT"
] | null | null | null | CodeForces/A2OJ Ladder/softuni_problem.py | dimitrov-dimitar/competitive-programming | f2b022377baf6d4beff213fc513907b774c12352 | [
"MIT"
] | null | null | null | total_budget = 0
while True:
destination = input()
if destination == "End":
break
minimal_budget = float(input())
while True:
command = input()
if command == "End":
break
money = float(command)
total_budget += money
if total_budge... | 24.333333 | 46 | 0.513699 | 43 | 438 | 5.093023 | 0.418605 | 0.200913 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.394977 | 438 | 17 | 47 | 25.764706 | 0.818868 | 0 | 0 | 0.4375 | 0 | 0 | 0.068884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 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 |
8a441182ab86ba1e69b301671e3fe079d2030d2e | 406 | py | Python | footmark/ram/regioninfo.py | rockzhu/footmark | af2144e9139a63b475fa2b56c3307ddfd49c43e4 | [
"Apache-2.0"
] | null | null | null | footmark/ram/regioninfo.py | rockzhu/footmark | af2144e9139a63b475fa2b56c3307ddfd49c43e4 | [
"Apache-2.0"
] | null | null | null | footmark/ram/regioninfo.py | rockzhu/footmark | af2144e9139a63b475fa2b56c3307ddfd49c43e4 | [
"Apache-2.0"
] | null | null | null | from footmark.regioninfo import RegionInfo
class RAMRegionInfo(RegionInfo):
"""
Represents an ram Region
"""
def __init__(self, connection=None, name=None, id=None,
connection_cls=None):
from footmark.ram.connection import RAMConnection
super(RAMRegionInfo, self).__in... | 29 | 65 | 0.618227 | 38 | 406 | 6.368421 | 0.526316 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302956 | 406 | 13 | 66 | 31.230769 | 0.855124 | 0.059113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8a44b11af8b2eb998e8acb85624cce72fd9e4d1c | 303 | py | Python | exercicios/ex 061 a 070/ex061.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 061 a 070/ex061.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | exercicios/ex 061 a 070/ex061.py | CarlosWillian/python | f863578245fbf402e5b46f844a247355afed0d62 | [
"MIT"
] | null | null | null | print('Crie sua P.A. de 10 termos')
n1 = int(input('Digite o primeiro termo da P.A.: '))
r = int(input('Digite a razão: '))
termo = n1
c = 1
print('A P.A. é (', end='')
while c <= 10:
print('{}'.format(termo), end='')
print(', ' if c < 10 else '', end='')
termo += r
c += 1
print(')')
| 20.2 | 52 | 0.518152 | 52 | 303 | 3.019231 | 0.5 | 0.038217 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04329 | 0.237624 | 303 | 14 | 53 | 21.642857 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.298013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a44d6f6124cbf59eb9c835f08ecb56f0d9adf5a | 737 | py | Python | PythonBasics/ConditionalStatements/Exercise/toy_shop.py | achoraev/SoftUni | 0cc7db470a096cc33bbe0ca6bd90060b79120573 | [
"Apache-2.0"
] | null | null | null | PythonBasics/ConditionalStatements/Exercise/toy_shop.py | achoraev/SoftUni | 0cc7db470a096cc33bbe0ca6bd90060b79120573 | [
"Apache-2.0"
] | null | null | null | PythonBasics/ConditionalStatements/Exercise/toy_shop.py | achoraev/SoftUni | 0cc7db470a096cc33bbe0ca6bd90060b79120573 | [
"Apache-2.0"
] | null | null | null | price = float(input())
puzzles = int(input())
dolls = int(input())
bears = int(input())
minions = int(input())
trucks = int(input())
total_toys = puzzles + dolls + bears + minions + trucks
price_puzzles = puzzles * 2.6
price_dolls = dolls * 3
price_bears = bears * 4.1
price_minions = minions * 8.2
pric... | 25.413793 | 87 | 0.662144 | 107 | 737 | 4.35514 | 0.308411 | 0.214592 | 0.128755 | 0.128755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02906 | 0.206242 | 737 | 28 | 88 | 26.321429 | 0.767521 | 0 | 0 | 0 | 0 | 0 | 0.136812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.095238 | 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 |
8a455ca53b609476797038c96b21d969bbdf51e3 | 2,234 | py | Python | bookshelf/main/forms.py | thewordisbird/bookshelf | 5166720bdc0dbffedc14b71b0f75ad78dc69b465 | [
"MIT"
] | null | null | null | bookshelf/main/forms.py | thewordisbird/bookshelf | 5166720bdc0dbffedc14b71b0f75ad78dc69b465 | [
"MIT"
] | null | null | null | bookshelf/main/forms.py | thewordisbird/bookshelf | 5166720bdc0dbffedc14b71b0f75ad78dc69b465 | [
"MIT"
] | null | null | null | import datetime
from flask_wtf import FlaskForm
from wtforms import (
StringField,
TextAreaField,
DateTimeField,
HiddenField,
PasswordField,
)
from wtforms.validators import DataRequired, ValidationError, Email, EqualTo
class NullableDateTimeField(DateTimeField):
"""Modify DateField to allow f... | 36.032258 | 86 | 0.658013 | 230 | 2,234 | 6.3 | 0.408696 | 0.074534 | 0.031056 | 0.039337 | 0.096618 | 0.067633 | 0.067633 | 0.067633 | 0.067633 | 0.067633 | 0 | 0 | 0.243957 | 2,234 | 61 | 87 | 36.622951 | 0.857904 | 0.042972 | 0 | 0.041667 | 0 | 0 | 0.168856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.104167 | 0.083333 | 0 | 0.4375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a458f7c27c0535d07e4b642f5a00528aee12141 | 3,387 | py | Python | main.py | DanielM24/Romanian-sub-dialect-identificator | 78b3e00f8ee768eb0b1e8cf832a2dc0b8504b04d | [
"MIT"
] | null | null | null | main.py | DanielM24/Romanian-sub-dialect-identificator | 78b3e00f8ee768eb0b1e8cf832a2dc0b8504b04d | [
"MIT"
] | null | null | null | main.py | DanielM24/Romanian-sub-dialect-identificator | 78b3e00f8ee768eb0b1e8cf832a2dc0b8504b04d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Proiect.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1TR1Frf0EX4PtFZkLlVdGtMTINqhoQwRw
"""
# Importarea librariilor
import numpy as np
import pandas as pd # pandas pentru citirea fisierelor
from sklearn import prepr... | 38.05618 | 120 | 0.775613 | 439 | 3,387 | 5.756264 | 0.343964 | 0.050653 | 0.017808 | 0.025722 | 0.15829 | 0.117926 | 0.117926 | 0.082311 | 0 | 0 | 0 | 0.006741 | 0.124004 | 3,387 | 89 | 121 | 38.05618 | 0.844961 | 0.220254 | 0 | 0 | 1 | 0 | 0.086458 | 0.01645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.113208 | 0 | 0.169811 | 0.075472 | 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 |
8a490933d8b95e96a7ba4163aae03b0fe0c37be5 | 657 | py | Python | pytorch-frontend/tools/code_coverage/oss_coverage.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 40 | 2021-06-01T07:37:59.000Z | 2022-03-25T01:42:09.000Z | pytorch-frontend/tools/code_coverage/oss_coverage.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 14 | 2021-06-01T11:52:46.000Z | 2022-03-25T02:13:08.000Z | pytorch-frontend/tools/code_coverage/oss_coverage.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 7 | 2021-07-20T19:34:26.000Z | 2022-03-13T21:07:36.000Z | #!/usr/bin/env python
import time
from package.oss.cov_json import get_json_report
from package.oss.init import initialization
from package.tool.summarize_jsons import summarize_jsons
from package.util.setting import TestPlatform
def report_coverage() -> None:
start_time = time.time()
(options, test_list, in... | 27.375 | 77 | 0.73516 | 83 | 657 | 5.506024 | 0.493976 | 0.09628 | 0.061269 | 0.109409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182648 | 657 | 23 | 78 | 28.565217 | 0.851024 | 0.114155 | 0 | 0 | 0 | 0 | 0.013817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a497075ae36fc35a089004f84ef24d85e09ec1c | 401 | py | Python | groupthink/version.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | 1 | 2017-01-09T17:27:05.000Z | 2017-01-09T17:27:05.000Z | groupthink/version.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | null | null | null | groupthink/version.py | emanuelfeld/groupthink | d8a6f666080352d396b07096cbd6304391f7c38d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of groupthink.
# https://github.com/emanuelfeld/groupthink
# This project is in the public domain within the United States.
# Additionally, the Government of the District of Columbia waives
# copyright and related rights in the work worldwide through t... | 28.642857 | 72 | 0.743142 | 60 | 401 | 4.9 | 0.733333 | 0.034014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020896 | 0.164589 | 401 | 13 | 73 | 30.846154 | 0.856716 | 0.887781 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a49e6407bf66d6fbb676497c6a102a344eeed6b | 2,533 | py | Python | apps/core/migrations/0001_initial.py | Visualway/Vitary | c7db9a25837fa7390b2177b9db48e73c6f1ab3c8 | [
"BSD-3-Clause"
] | 4 | 2021-12-24T16:07:44.000Z | 2022-03-04T02:30:20.000Z | apps/core/migrations/0001_initial.py | Visualway/Vitary | c7db9a25837fa7390b2177b9db48e73c6f1ab3c8 | [
"BSD-3-Clause"
] | 4 | 2021-12-30T13:32:56.000Z | 2022-03-15T03:58:48.000Z | apps/core/migrations/0001_initial.py | Visualway/Vitary | c7db9a25837fa7390b2177b9db48e73c6f1ab3c8 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-02 03:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('vit'... | 42.932203 | 236 | 0.55073 | 236 | 2,533 | 5.788136 | 0.389831 | 0.029283 | 0.040996 | 0.064422 | 0.474378 | 0.474378 | 0.38287 | 0.38287 | 0.38287 | 0.38287 | 0 | 0.014803 | 0.279905 | 2,533 | 58 | 237 | 43.672414 | 0.734101 | 0.017766 | 0 | 0.490196 | 1 | 0 | 0.158488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.137255 | 0 | 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 |
8a4c6c7b420769dc35e8f30f400909774d7d25e6 | 22,154 | py | Python | gfirefly/dbentrust/dbutils.py | handsome3163/H2Dgame-Firefly | 2d213928977dc490909f456327e5cae80998e60d | [
"MIT"
] | 675 | 2015-01-01T05:18:30.000Z | 2022-03-18T08:27:06.000Z | gfirefly/dbentrust/dbutils.py | liuis/Firefly | fd2795b8c26de6ab63bbec23d11f18c3dfb39a50 | [
"MIT"
] | 3 | 2015-01-29T02:36:14.000Z | 2022-01-21T09:19:21.000Z | gfirefly/dbentrust/dbutils.py | liuis/Firefly | fd2795b8c26de6ab63bbec23d11f18c3dfb39a50 | [
"MIT"
] | 248 | 2015-01-04T08:24:31.000Z | 2022-02-18T07:14:02.000Z | #coding:utf8
'''
Created on 2013-8-21
@author: lan (www.9miao.com)
'''
import itertools
import datetime
def safeunicode(obj, encoding='utf-8'):
r"""
Converts any given object to unicode string.
>>> safeunicode('hello')
u'hello'
>>> safeunicode(2)
u'2'
>>> safeunic... | 31.693848 | 115 | 0.510743 | 2,510 | 22,154 | 4.4251 | 0.147809 | 0.015846 | 0.012605 | 0.017106 | 0.231476 | 0.174124 | 0.124066 | 0.094715 | 0.08121 | 0.073467 | 0 | 0.009403 | 0.35673 | 22,154 | 699 | 116 | 31.693848 | 0.769981 | 0.021802 | 0 | 0.235135 | 0 | 0 | 0.033266 | 0.004527 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008108 | 0.008108 | 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 |
8a4ccded7f4f9f9be895e48e8a31955a7046241e | 4,371 | py | Python | dddppp/settings.py | tysonclugg/dddppp | 22f52d671ca71c2df8d6ac566a1626e5f05b3159 | [
"MIT"
] | null | null | null | dddppp/settings.py | tysonclugg/dddppp | 22f52d671ca71c2df8d6ac566a1626e5f05b3159 | [
"MIT"
] | null | null | null | dddppp/settings.py | tysonclugg/dddppp | 22f52d671ca71c2df8d6ac566a1626e5f05b3159 | [
"MIT"
] | null | null | null | """
Django settings for dddppp project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | 26.981481 | 77 | 0.695722 | 524 | 4,371 | 5.620229 | 0.429389 | 0.052971 | 0.044822 | 0.050934 | 0.099491 | 0.07708 | 0.07708 | 0.07708 | 0.027165 | 0 | 0 | 0.008782 | 0.166324 | 4,371 | 161 | 78 | 27.149068 | 0.799396 | 0.260581 | 0 | 0 | 1 | 0.010101 | 0.389894 | 0.275733 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010101 | 0.030303 | 0 | 0.030303 | 0 | 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 |
8a521621650bf40359a7bc7b59a9b8905567d6ce | 738 | py | Python | app/main/config.py | nhattvm11/flask-restful-boilerplate | a450c03c1b1db2886b4e00b2c30284a59d9b91e6 | [
"MIT"
] | null | null | null | app/main/config.py | nhattvm11/flask-restful-boilerplate | a450c03c1b1db2886b4e00b2c30284a59d9b91e6 | [
"MIT"
] | null | null | null | app/main/config.py | nhattvm11/flask-restful-boilerplate | a450c03c1b1db2886b4e00b2c30284a59d9b91e6 | [
"MIT"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.getenv('SECRET_KEY', '')
DEBUG = False
class DevelopmentConfig(Config):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'flask_main.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False... | 21.085714 | 83 | 0.718157 | 86 | 738 | 5.906977 | 0.453488 | 0.047244 | 0.059055 | 0.098425 | 0.38189 | 0.232283 | 0.232283 | 0.232283 | 0.232283 | 0.232283 | 0 | 0 | 0.176152 | 738 | 34 | 84 | 21.705882 | 0.835526 | 0 | 0 | 0.347826 | 0 | 0 | 0.075881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a52440233bd3169102a1818d34f5c74f2141148 | 2,823 | py | Python | backend/server/converters/schema/ontology.py | GenomicsNX/cellxgene | f9c744327a3be48c93b47bba71a480e1eeb97835 | [
"MIT"
] | 8 | 2021-03-17T23:42:41.000Z | 2022-03-08T13:08:55.000Z | backend/server/converters/schema/ontology.py | GenomicsNX/cellxgene | f9c744327a3be48c93b47bba71a480e1eeb97835 | [
"MIT"
] | 194 | 2021-08-18T23:52:44.000Z | 2022-03-30T19:40:41.000Z | backend/server/converters/schema/ontology.py | GenomicsNX/cellxgene | f9c744327a3be48c93b47bba71a480e1eeb97835 | [
"MIT"
] | 8 | 2021-03-22T17:07:31.000Z | 2022-03-08T11:07:48.000Z | """Methods for working with ontologies and the OLS."""
from urllib.parse import quote_plus
import requests
OLS_API_ROOT = "http://www.ebi.ac.uk/ols/api"
# Curie means something like CL:0000001
def _ontology_name(curie):
"""Get the name of the ontology from the curie, CL or UBERON for example."""
return cur... | 32.448276 | 103 | 0.681899 | 412 | 2,823 | 4.563107 | 0.32767 | 0.015957 | 0.03617 | 0.015957 | 0.181915 | 0.130851 | 0.130851 | 0.130851 | 0.130851 | 0.130851 | 0 | 0.013321 | 0.202267 | 2,823 | 86 | 104 | 32.825581 | 0.821492 | 0.41091 | 0 | 0.216216 | 0 | 0 | 0.333333 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.054054 | 0 | 0.540541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a5581cd0e7ff399dcb5faaf23430dc8e5e4058e | 4,370 | py | Python | figure_code/rate_of_change_tc.py | DavisWeaver/fears | 857cb959a3a111a41df4cf62c4c6a19d3abd33c0 | [
"MIT"
] | null | null | null | figure_code/rate_of_change_tc.py | DavisWeaver/fears | 857cb959a3a111a41df4cf62c4c6a19d3abd33c0 | [
"MIT"
] | null | null | null | figure_code/rate_of_change_tc.py | DavisWeaver/fears | 857cb959a3a111a41df4cf62c4c6a19d3abd33c0 | [
"MIT"
] | 1 | 2021-11-09T14:42:01.000Z | 2021-11-09T14:42:01.000Z | import matplotlib.pyplot as plt
import numpy as np
from fears.utils import results_manager, plotter, dir_manager
import os
suffix = '07212021_0001'
data_folder = 'results_' + suffix
exp_info_file = 'experiment_info_' + suffix + '.p'
exp_folders,exp_info = results_manager.get_experiment_results(data_folder,
... | 37.350427 | 85 | 0.415103 | 429 | 4,370 | 3.981352 | 0.296037 | 0.04918 | 0.07377 | 0.04918 | 0.170375 | 0.131148 | 0.131148 | 0.131148 | 0.093677 | 0.065574 | 0 | 0.027752 | 0.505263 | 4,370 | 117 | 86 | 37.350427 | 0.762257 | 0.094737 | 0 | 0.172414 | 0 | 0 | 0.027137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045977 | 0 | 0.045977 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a59e89d09e32fec1b404a96ad1edf1ccd223adb | 8,871 | py | Python | tests/test_preempt_return.py | vpv11110000/pyss | bc2226e2e66e0b551a09ae6ab6835b0bb6c7f32b | [
"MIT"
] | null | null | null | tests/test_preempt_return.py | vpv11110000/pyss | bc2226e2e66e0b551a09ae6ab6835b0bb6c7f32b | [
"MIT"
] | 2 | 2017-09-05T11:12:05.000Z | 2017-09-07T19:23:15.000Z | tests/test_preempt_return.py | vpv11110000/pyss | bc2226e2e66e0b551a09ae6ab6835b0bb6c7f32b | [
"MIT"
] | null | null | null | # #!/usr/bin/python
# -*- coding: utf-8 -*-
# test_preempt_return.py
# pylint: disable=line-too-long,missing-docstring,bad-whitespace, unused-argument, too-many-locals
import sys
import os
import random
import unittest
DIRNAME_MODULE = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))... | 35.342629 | 106 | 0.578289 | 1,021 | 8,871 | 4.89618 | 0.199804 | 0.009202 | 0.064013 | 0.041808 | 0.602721 | 0.556511 | 0.524505 | 0.458092 | 0.434687 | 0.417083 | 0 | 0.016611 | 0.294217 | 8,871 | 250 | 107 | 35.484 | 0.781824 | 0.153872 | 0 | 0.356643 | 0 | 0 | 0.048515 | 0.01676 | 0 | 0 | 0 | 0 | 0.132867 | 0 | null | null | 0.013986 | 0.167832 | null | null | 0.06993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a61523d34a63b6c1b5541a6127f60a7a5d5ec7e | 4,684 | py | Python | PyBank/.ipynb_checkpoints/Pymain-checkpoint.py | yash5OG/PythonChallengeW3-Y5 | 4a20ea5bae2d88af5a7d56f43ddc63ac64eaee67 | [
"MIT"
] | null | null | null | PyBank/.ipynb_checkpoints/Pymain-checkpoint.py | yash5OG/PythonChallengeW3-Y5 | 4a20ea5bae2d88af5a7d56f43ddc63ac64eaee67 | [
"MIT"
] | null | null | null | PyBank/.ipynb_checkpoints/Pymain-checkpoint.py | yash5OG/PythonChallengeW3-Y5 | 4a20ea5bae2d88af5a7d56f43ddc63ac64eaee67 | [
"MIT"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 64,
"metadata": {},
"outputs": [],
"source": [
"# Import libraries\n",
"import os, csv"
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {},
"outputs": [],
"source": [
"#variables for the script\n",
... | 29.093168 | 104 | 0.51281 | 592 | 4,684 | 3.952703 | 0.256757 | 0.01453 | 0.035897 | 0.053846 | 0.230342 | 0.185897 | 0.142735 | 0.095727 | 0.02735 | 0 | 0 | 0.024327 | 0.254056 | 4,684 | 160 | 105 | 29.275 | 0.645392 | 0 | 0 | 0.20625 | 0 | 0.00625 | 0.599701 | 0.058497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0125 | 0 | 0.0125 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a64487109643353c0e84bbee6dfb1cf09044927 | 834 | py | Python | beta_reconstruction/crystal_relations.py | LightForm-group/beta-reconstruction | 67584f75ee08690226595c5f9dc75dfd164a11a0 | [
"MIT"
] | null | null | null | beta_reconstruction/crystal_relations.py | LightForm-group/beta-reconstruction | 67584f75ee08690226595c5f9dc75dfd164a11a0 | [
"MIT"
] | 1 | 2020-01-07T12:41:26.000Z | 2020-01-07T12:50:40.000Z | beta_reconstruction/crystal_relations.py | LightForm-group/beta-reconstruction | 67584f75ee08690226595c5f9dc75dfd164a11a0 | [
"MIT"
] | null | null | null | import numpy as np
from defdap.quat import Quat
hex_syms = Quat.symEqv("hexagonal")
# subset of hexagonal symmetries that give unique orientations when the
# Burgers transformation is applied
unq_hex_syms = [
hex_syms[0],
hex_syms[5],
hex_syms[4],
hex_syms[2],
hex_syms[10],
hex_syms[11]
]
cubi... | 22.540541 | 71 | 0.689448 | 127 | 834 | 4.314961 | 0.448819 | 0.213504 | 0.051095 | 0.087591 | 0.277372 | 0.277372 | 0.277372 | 0.277372 | 0.277372 | 0.277372 | 0 | 0.058122 | 0.195444 | 834 | 36 | 72 | 23.166667 | 0.758569 | 0.256595 | 0 | 0 | 0 | 0 | 0.022801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
8a66a4e65b6c15a92cb15d2436631fabac501551 | 4,314 | py | Python | pint/testsuite/test_definitions.py | s-avni/pint | 4e33d44437991bf7c5e30977643f42ebd6ed40da | [
"BSD-3-Clause"
] | null | null | null | pint/testsuite/test_definitions.py | s-avni/pint | 4e33d44437991bf7c5e30977643f42ebd6ed40da | [
"BSD-3-Clause"
] | null | null | null | pint/testsuite/test_definitions.py | s-avni/pint | 4e33d44437991bf7c5e30977643f42ebd6ed40da | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals, print_function, absolute_import
from pint.util import (UnitsContainer)
from pint.converters import (ScaleConverter, OffsetConverter)
from pint.definitions import (Definition, PrefixDefinition, UnitDefinition,
Dime... | 44.474227 | 89 | 0.660176 | 477 | 4,314 | 5.878407 | 0.194969 | 0.171184 | 0.17689 | 0.098074 | 0.618759 | 0.502496 | 0.46505 | 0.429743 | 0.36234 | 0.322397 | 0 | 0.028338 | 0.206537 | 4,314 | 96 | 90 | 44.9375 | 0.790827 | 0.004868 | 0 | 0.35443 | 0 | 0 | 0.098112 | 0 | 0 | 0 | 0 | 0 | 0.683544 | 1 | 0.075949 | false | 0 | 0.063291 | 0 | 0.151899 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
8a69c6a560d7f1d6a12a9bb69281971b56733693 | 1,637 | py | Python | setup.py | xbabka01/filetype.py | faba42b86988bd21a50d5b20919ecff0c6a84957 | [
"MIT"
] | null | null | null | setup.py | xbabka01/filetype.py | faba42b86988bd21a50d5b20919ecff0c6a84957 | [
"MIT"
] | null | null | null | setup.py | xbabka01/filetype.py | faba42b86988bd21a50d5b20919ecff0c6a84957 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
from setuptools import find_packages, setup
setup(
name='filetype',
version='1.0.7',
description='Infer file type and MIME type of any file/buffer. '
'No external dependencies.',
long_description=codecs.open('README.rst', 'r',... | 38.069767 | 77 | 0.588882 | 167 | 1,637 | 5.724551 | 0.622754 | 0.099372 | 0.130753 | 0.135983 | 0.066946 | 0.066946 | 0.066946 | 0 | 0 | 0 | 0 | 0.013992 | 0.257789 | 1,637 | 42 | 78 | 38.97619 | 0.77284 | 0.025657 | 0 | 0 | 0 | 0 | 0.52919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a6d51f8a422fff8bc79749ffb6d71189dc006bc | 2,509 | py | Python | vframe_cli/commands/templates/image-mp.py | julescarbon/vframe | 0798841fa9eb7e1252e4cdf71d68d991c26acab8 | [
"MIT"
] | 1 | 2021-05-15T11:06:39.000Z | 2021-05-15T11:06:39.000Z | vframe_cli/commands/templates/image-mp.py | julescarbon/vframe | 0798841fa9eb7e1252e4cdf71d68d991c26acab8 | [
"MIT"
] | null | null | null | vframe_cli/commands/templates/image-mp.py | julescarbon/vframe | 0798841fa9eb7e1252e4cdf71d68d991c26acab8 | [
"MIT"
] | null | null | null | #############################################################################
#
# VFRAME
# MIT License
# Copyright (c) 2020 Adam Harvey and VFRAME
# https://vframe.io
#
#############################################################################
import click
@click.command('')
@click.option('-i', '--input', 'opt_... | 28.83908 | 94 | 0.610602 | 326 | 2,509 | 4.552147 | 0.432515 | 0.040431 | 0.016173 | 0.014825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009915 | 0.155839 | 2,509 | 87 | 94 | 28.83908 | 0.690746 | 0.209247 | 0 | 0 | 0 | 0 | 0.111296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.023256 | 0.348837 | 0 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a6dd286ad198b0a16465871a4cd84854d419ad0 | 1,824 | py | Python | lib/galaxy/tool_util/deps/container_resolvers/__init__.py | sneumann/galaxy | f6011bab5b8adbabae4986a45849bb9158ffc8bb | [
"CC-BY-3.0"
] | 1 | 2019-07-27T19:30:55.000Z | 2019-07-27T19:30:55.000Z | lib/galaxy/tool_util/deps/container_resolvers/__init__.py | userssss/galaxy | 9662164ad68b39adf5a5606a7aa8e388f6a79f1e | [
"CC-BY-3.0"
] | 4 | 2021-02-08T20:28:34.000Z | 2022-03-02T02:52:55.000Z | lib/galaxy/tool_util/deps/container_resolvers/__init__.py | userssss/galaxy | 9662164ad68b39adf5a5606a7aa8e388f6a79f1e | [
"CC-BY-3.0"
] | 1 | 2018-05-30T07:38:54.000Z | 2018-05-30T07:38:54.000Z | """The module defines the abstract interface for resolving container images for tool execution."""
from abc import (
ABCMeta,
abstractmethod,
abstractproperty,
)
import six
from galaxy.util.dictifiable import Dictifiable
@six.python_2_unicode_compatible
@six.add_metaclass(ABCMeta)
class ContainerResolve... | 33.777778 | 98 | 0.707237 | 215 | 1,824 | 5.75814 | 0.44186 | 0.033926 | 0.044426 | 0.043619 | 0.069467 | 0.069467 | 0.069467 | 0 | 0 | 0 | 0 | 0.000695 | 0.211075 | 1,824 | 53 | 99 | 34.415094 | 0.859625 | 0.354167 | 0 | 0 | 0 | 0 | 0.039091 | 0.023636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0.035714 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a748a255fe78209cc5338aaab9ff134d24befab | 1,134 | py | Python | baopig/ressources/ressources.py | ChreSyr/baopig | 6264ab9a851b1ed0a031292abe7f159a53b3fc5e | [
"MIT"
] | null | null | null | baopig/ressources/ressources.py | ChreSyr/baopig | 6264ab9a851b1ed0a031292abe7f159a53b3fc5e | [
"MIT"
] | null | null | null | baopig/ressources/ressources.py | ChreSyr/baopig | 6264ab9a851b1ed0a031292abe7f159a53b3fc5e | [
"MIT"
] | null | null | null |
from baopig.pybao.objectutilities import Object
from baopig.pybao.issomething import *
class RessourcePack:
def config(self, **kwargs):
for name, value in kwargs.items():
self.__setattr__('_'+name, value)
class FontsRessourcePack(RessourcePack):
def __init__(self,
file=None,... | 19.894737 | 68 | 0.666667 | 120 | 1,134 | 6 | 0.358333 | 0.125 | 0.1 | 0.122222 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016222 | 0.238977 | 1,134 | 56 | 69 | 20.25 | 0.818076 | 0.046737 | 0 | 0.129032 | 0 | 0 | 0.000929 | 0 | 0 | 0 | 0 | 0.017857 | 0.064516 | 1 | 0.129032 | false | 0 | 0.064516 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a75b4a74e6ecd635d9404db9ea5df06d5114069 | 10,282 | py | Python | bufr_extract_unique_stations.py | glamod/glamod-misc | 4c8743dd3aa436377017c49bec990b11fe1c6f7d | [
"BSD-3-Clause"
] | null | null | null | bufr_extract_unique_stations.py | glamod/glamod-misc | 4c8743dd3aa436377017c49bec990b11fe1c6f7d | [
"BSD-3-Clause"
] | 16 | 2018-10-23T08:06:18.000Z | 2018-10-30T10:20:01.000Z | bufr_extract_unique_stations.py | glamod/glamod-misc | 4c8743dd3aa436377017c49bec990b11fe1c6f7d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python2.7
"""
Extract unique set of station locations (and names) along with number of obs
RJHD - Exeter - October 2017
"""
# ECMWF import defaults
import traceback
import sys
from eccodes import *
# RJHD imports
import cartopy
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotli... | 33.167742 | 184 | 0.540751 | 1,142 | 10,282 | 4.74606 | 0.283713 | 0.042066 | 0.012177 | 0.017712 | 0.240959 | 0.228967 | 0.192066 | 0.1869 | 0.1869 | 0.1869 | 0 | 0.025263 | 0.326298 | 10,282 | 309 | 185 | 33.275081 | 0.757182 | 0.15814 | 0 | 0.181287 | 0 | 0 | 0.080679 | 0.028656 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005848 | 0.052632 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a7922d582e70ee076c3374be8cdb74d33423c9b | 1,038 | py | Python | tests/ast/nodes/test_from_node.py | upgradvisor/vyper | 642884ea938a25793c1b2fac866e8458e63a7b49 | [
"Apache-2.0"
] | 1,471 | 2017-12-25T05:47:57.000Z | 2019-11-19T07:47:53.000Z | tests/ast/nodes/test_from_node.py | upgradvisor/vyper | 642884ea938a25793c1b2fac866e8458e63a7b49 | [
"Apache-2.0"
] | 915 | 2019-11-21T05:48:16.000Z | 2022-03-31T23:51:03.000Z | tests/ast/nodes/test_from_node.py | upgradvisor/vyper | 642884ea938a25793c1b2fac866e8458e63a7b49 | [
"Apache-2.0"
] | 321 | 2017-12-25T16:37:21.000Z | 2019-11-15T17:44:06.000Z | from vyper import ast as vy_ast
def test_output_class():
old_node = vy_ast.parse_to_ast("foo = 42")
new_node = vy_ast.Int.from_node(old_node, value=666)
assert isinstance(new_node, vy_ast.Int)
def test_source():
old_node = vy_ast.parse_to_ast("foo = 42")
new_node = vy_ast.Int.from_node(old_node... | 25.95 | 65 | 0.719653 | 186 | 1,038 | 3.629032 | 0.198925 | 0.145185 | 0.146667 | 0.106667 | 0.561481 | 0.539259 | 0.539259 | 0.506667 | 0.506667 | 0.506667 | 0 | 0.037166 | 0.17052 | 1,038 | 39 | 66 | 26.615385 | 0.746806 | 0 | 0 | 0.375 | 0 | 0 | 0.032755 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a79bd5eb2532e1ffdd3b87d6be696b8303afc7f | 2,624 | py | Python | generator/modules/opencv.py | dayta-ai/deepo | fa720e39052e63adfe0f2b9dbd8444a0d69c2540 | [
"MIT"
] | 1 | 2021-11-18T18:34:29.000Z | 2021-11-18T18:34:29.000Z | generator/modules/opencv.py | dayta-ai/deepo | fa720e39052e63adfe0f2b9dbd8444a0d69c2540 | [
"MIT"
] | null | null | null | generator/modules/opencv.py | dayta-ai/deepo | fa720e39052e63adfe0f2b9dbd8444a0d69c2540 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .__module__ import Module, dependency, source, version
from .tools import Tools
from .boost import Boost
from .python import Python
@dependency(Tools, Python, Boost)
@source('git')
@version('4.0.1')
class Opencv(Module):
def build(self):
return r'''
RUN ln -fs /usr/sh... | 35.945205 | 100 | 0.463796 | 249 | 2,624 | 4.763052 | 0.497992 | 0.037943 | 0.029511 | 0.025295 | 0.06914 | 0.06914 | 0.06914 | 0.06914 | 0.06914 | 0 | 0 | 0.018256 | 0.436357 | 2,624 | 72 | 101 | 36.444444 | 0.783638 | 0.008003 | 0 | 0 | 0 | 0.044118 | 0.889658 | 0.105729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.058824 | 0.014706 | 0.102941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8a7a7334b3428135d28ee8a3da56e39eed250254 | 1,564 | py | Python | day16/solve16.py | jmacarthur/aoc2017 | 2a3096aabf464ef52c05f9437498035cfb5ca1a6 | [
"MIT"
] | null | null | null | day16/solve16.py | jmacarthur/aoc2017 | 2a3096aabf464ef52c05f9437498035cfb5ca1a6 | [
"MIT"
] | null | null | null | day16/solve16.py | jmacarthur/aoc2017 | 2a3096aabf464ef52c05f9437498035cfb5ca1a6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import copy
stage_length = 16
stage = map(chr, range(ord('a'),ord('a')+stage_length))
def spin(amount):
"""To save time, this function isn't used except at the end.
Normally, a counter marks the start of the stage and this changes
instead. """
global stage
stage = stag... | 30.076923 | 101 | 0.621483 | 229 | 1,564 | 4.170306 | 0.375546 | 0.06911 | 0.058639 | 0.027225 | 0.05445 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029826 | 0.228261 | 1,564 | 51 | 102 | 30.666667 | 0.761392 | 0.039003 | 0 | 0.052632 | 0 | 0 | 0.045052 | 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 |
8a82d93e4ba8abbe55f44853090dbccbc8c6e819 | 48,277 | py | Python | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/GenericHazards.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/GenericHazards.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/GenericHazards.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non... | 41.29769 | 151 | 0.53106 | 4,665 | 48,277 | 5.465166 | 0.18821 | 0.003138 | 0.008237 | 0.007688 | 0.223416 | 0.196038 | 0.167327 | 0.150971 | 0.134262 | 0.120455 | 0 | 0.009976 | 0.358432 | 48,277 | 1,168 | 152 | 41.333048 | 0.81316 | 0.306378 | 0 | 0.274096 | 0 | 0 | 0.101009 | 0.012153 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003012 | 0.009036 | null | null | 0.02259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a84ca10fd051b6b0bb8be0088246cc71958f9d5 | 12,062 | py | Python | oase-root/web_app/views/system/mail/action_mail.py | Masa-Yasuno/oase | 90f3cee73c0d9b3153808a4a72bd19984a4873f9 | [
"Apache-2.0"
] | 9 | 2020-03-25T07:51:47.000Z | 2022-02-07T00:07:28.000Z | oase-root/web_app/views/system/mail/action_mail.py | Masa-Yasuno/oase | 90f3cee73c0d9b3153808a4a72bd19984a4873f9 | [
"Apache-2.0"
] | 1,164 | 2021-01-28T23:16:11.000Z | 2022-03-28T07:23:10.000Z | oase-root/web_app/views/system/mail/action_mail.py | Masa-Yasuno/oase | 90f3cee73c0d9b3153808a4a72bd19984a4873f9 | [
"Apache-2.0"
] | 25 | 2020-03-17T06:48:30.000Z | 2022-02-15T15:13:44.000Z | # Copyright 2019 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 35.372434 | 122 | 0.596419 | 1,433 | 12,062 | 4.750174 | 0.193999 | 0.029382 | 0.035258 | 0.044954 | 0.418834 | 0.367563 | 0.327163 | 0.276627 | 0.240341 | 0.20332 | 0 | 0.026942 | 0.286105 | 12,062 | 340 | 123 | 35.476471 | 0.763558 | 0.072293 | 0 | 0.212963 | 0 | 0 | 0.122767 | 0.004443 | 0 | 0 | 0 | 0.002941 | 0 | 1 | 0.055556 | false | 0.060185 | 0.074074 | 0.023148 | 0.180556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a85f7a1837485544e723eea52a8cc5f16480c6c | 6,816 | py | Python | ophyd/areadetector/detectors.py | NSLS-II/ophyd | d5fc722eef4d3d83845b1d523004302ec3aadb78 | [
"BSD-3-Clause"
] | 16 | 2015-05-20T20:48:25.000Z | 2019-04-24T21:12:59.000Z | ophyd/areadetector/detectors.py | NSLS-II/ophyd | d5fc722eef4d3d83845b1d523004302ec3aadb78 | [
"BSD-3-Clause"
] | 594 | 2015-01-05T21:55:21.000Z | 2019-05-10T02:05:24.000Z | ophyd/areadetector/detectors.py | NSLS-II/ophyd | d5fc722eef4d3d83845b1d523004302ec3aadb78 | [
"BSD-3-Clause"
] | 34 | 2015-01-23T19:50:58.000Z | 2019-05-07T05:38:57.000Z | # vi: ts=4 sw=4
'''AreaDetector Devices
`areaDetector`_ detector abstractions
.. _areaDetector: https://areadetector.github.io/master/index.html
'''
import warnings
from .base import (ADBase, ADComponent as C)
from . import cam
__all__ = ['DetectorBase',
'AreaDetector',
'AdscDetector',
... | 27.264 | 81 | 0.639965 | 689 | 6,816 | 6.172714 | 0.330914 | 0.025394 | 0.044439 | 0.06466 | 0.063485 | 0.05549 | 0.05549 | 0.042323 | 0.021162 | 0.021162 | 0 | 0.009916 | 0.245452 | 6,816 | 249 | 82 | 27.373494 | 0.817033 | 0.165346 | 0 | 0.042254 | 0 | 0 | 0.184794 | 0.004001 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.021127 | 0 | 0.640845 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a89fcb6aa9605bd61ebc69c816df71f6eb1ab81 | 673 | py | Python | indico/modules/events/abstracts/compat.py | aiforrural/Digital-Events-Example | 628aaa8727b259b9367ac0ae1c5ba8e9e95eca82 | [
"MIT"
] | 1 | 2021-02-08T09:34:27.000Z | 2021-02-08T09:34:27.000Z | indico/modules/events/abstracts/compat.py | pamirk/indico | c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768 | [
"MIT"
] | null | null | null | indico/modules/events/abstracts/compat.py | pamirk/indico | c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from flask import redirect
from indico.modules.events.abstracts.models.abstracts import Abstract
from ind... | 35.421053 | 86 | 0.786033 | 101 | 673 | 5.128713 | 0.594059 | 0.057915 | 0.050193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018803 | 0.130758 | 673 | 18 | 87 | 37.388889 | 0.866667 | 0.297177 | 0 | 0 | 0 | 0 | 0.021459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8a8bbdd35a1d135f6e6a32befca7b762678940d4 | 327 | py | Python | Python/Higher-Or-Lower/hol/__init__.py | AustinTSchaffer/DailyProgrammer | b16d9babb298ac5e879c514f9c4646b99c6860a8 | [
"MIT"
] | 1 | 2020-07-28T17:07:35.000Z | 2020-07-28T17:07:35.000Z | Python/Higher-Or-Lower/hol/__init__.py | AustinTSchaffer/DailyProgrammer | b16d9babb298ac5e879c514f9c4646b99c6860a8 | [
"MIT"
] | 5 | 2021-04-06T18:25:29.000Z | 2021-04-10T15:13:28.000Z | Python/Higher-Or-Lower/hol/__init__.py | AustinTSchaffer/DailyProgrammer | b16d9babb298ac5e879c514f9c4646b99c6860a8 | [
"MIT"
] | null | null | null | r"""
Contains classes and methods that can be used when simulating the game
Higher-or-Lower and performing statistical analysis on different games.
"""
from hol import (
cards,
constants,
)
from hol._hol import (
generate_all_games,
should_pick_higher,
is_a_winning_game,
generate_win_statist... | 17.210526 | 71 | 0.737003 | 45 | 327 | 5.133333 | 0.8 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201835 | 327 | 18 | 72 | 18.166667 | 0.885057 | 0.434251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a8bd51e1880ca1483e91fca0ab41237e4c4f869 | 4,896 | py | Python | Lib/hTools2/dialogs/glyphs/slide.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:43:56.000Z | 2019-07-27T00:35:20.000Z | Lib/hTools2/dialogs/glyphs/slide.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 2 | 2017-05-17T10:11:46.000Z | 2018-11-21T21:43:43.000Z | Lib/hTools2/dialogs/glyphs/slide.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 4 | 2015-01-10T13:58:50.000Z | 2019-12-18T15:40:14.000Z | # [h] slide selected glyphs
from mojo.roboFont import CurrentFont, CurrentGlyph, version
from vanilla import *
from hTools2 import hDialog
from hTools2.modules.fontutils import get_full_name, get_glyphs
from hTools2.modules.messages import no_font_open, no_glyph_selected
class slideGlyphsDialog(hDialog):
'''A di... | 31.184713 | 89 | 0.55576 | 611 | 4,896 | 4.217676 | 0.175123 | 0.069849 | 0.065192 | 0.046566 | 0.397749 | 0.35196 | 0.32402 | 0.313931 | 0.313931 | 0.282499 | 0 | 0.019565 | 0.34232 | 4,896 | 156 | 90 | 31.384615 | 0.780745 | 0.020221 | 0 | 0.291667 | 0 | 0 | 0.009854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a92dd9cacd718af3ee73590efc1c1d73a3833aa | 12,093 | py | Python | beansdbadmin/core/client.py | ariesdevil/beansdbadmin | 3165087ef57b7511ab84fbc50cf16eb8f54d83cd | [
"BSD-3-Clause"
] | 11 | 2018-08-28T09:16:02.000Z | 2021-11-08T09:39:15.000Z | beansdbadmin/core/client.py | ariesdevil/beansdbadmin | 3165087ef57b7511ab84fbc50cf16eb8f54d83cd | [
"BSD-3-Clause"
] | 2 | 2019-08-29T03:27:24.000Z | 2020-07-24T02:45:39.000Z | beansdbadmin/core/client.py | ariesdevil/beansdbadmin | 3165087ef57b7511ab84fbc50cf16eb8f54d83cd | [
"BSD-3-Clause"
] | 4 | 2019-05-10T12:10:31.000Z | 2020-07-17T03:22:02.000Z | #!/usr/bin/python
# encoding: utf-8
'''a rich client
1. for one server (instead of multi like in libmc.Client)
2. encapsulate @, ?, gc ...
use is instead of libmc.Client
'''
import telnetlib
import logging
import libmc
import string
import urllib
import itertools
import warnings
from collections import defaul... | 30.308271 | 103 | 0.561399 | 1,649 | 12,093 | 3.936325 | 0.164342 | 0.019411 | 0.009706 | 0.011092 | 0.173779 | 0.099676 | 0.060545 | 0.037899 | 0.02126 | 0.0114 | 0 | 0.018807 | 0.309683 | 12,093 | 398 | 104 | 30.384422 | 0.758745 | 0.00645 | 0 | 0.133117 | 0 | 0 | 0.063222 | 0.001881 | 0 | 0 | 0.000537 | 0.002513 | 0.00974 | 0 | null | null | 0.003247 | 0.035714 | null | null | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8a975211bf46410d2e2a9a98de298bed52013baa | 6,589 | py | Python | lib/formatter/text.py | ylafon/redbot | 87f4edcc8ccda35f556331abd1e76d5e9b79cdd0 | [
"Unlicense"
] | null | null | null | lib/formatter/text.py | ylafon/redbot | 87f4edcc8ccda35f556331abd1e76d5e9b79cdd0 | [
"Unlicense"
] | null | null | null | lib/formatter/text.py | ylafon/redbot | 87f4edcc8ccda35f556331abd1e76d5e9b79cdd0 | [
"Unlicense"
] | 1 | 2021-06-01T12:08:29.000Z | 2021-06-01T12:08:29.000Z | #!/usr/bin/env python
"""
HAR Formatter for REDbot.
"""
__author__ = "Jerome Renard <jerome.renard@gmail.com>"
__copyright__ = """\
Copyright (c) 2008-2010 Mark Nottingham
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software")... | 33.277778 | 101 | 0.587039 | 850 | 6,589 | 4.437647 | 0.303529 | 0.033404 | 0.026511 | 0.03579 | 0.27492 | 0.239926 | 0.170467 | 0.140774 | 0.095705 | 0.081919 | 0 | 0.015914 | 0.294278 | 6,589 | 197 | 102 | 33.446701 | 0.795269 | 0.010472 | 0 | 0.234483 | 0 | 0 | 0.26713 | 0.003947 | 0 | 0 | 0 | 0.005076 | 0.006897 | 0 | null | null | 0.027586 | 0.027586 | 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 |
8a995f399ed25fbe111acb3f8ad5749b538eef0a | 433 | py | Python | python/re_user.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | 1 | 2017-10-14T04:23:45.000Z | 2017-10-14T04:23:45.000Z | python/re_user.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | python/re_user.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
#-*- coding=utf-8 -*-
#
# Copyright 2012 Jike Inc. All Rights Reserved.
# Author: liwei@jike.com
import re
from urlparse import urlparse
def parse1():
p = re.compile(r"/(?P<uid>\d+)/(?P<mid>\w+)")
o = urlparse("http://weibo.com/2827699110/yz62AlEjF")
m = p.search(o.path)
print m.... | 22.789474 | 57 | 0.637413 | 65 | 433 | 4.215385 | 0.707692 | 0.043796 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055249 | 0.163972 | 433 | 18 | 58 | 24.055556 | 0.701657 | 0.251732 | 0 | 0 | 0 | 0 | 0.310345 | 0.15674 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | 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 |
8a9a247a499b63acd31b3bc3a6e73d3d156a0e43 | 1,903 | py | Python | Assignment1/Part2/Bridge2.py | MormonJesus69420/Knowledge-Based-Systems-Project | 8b1e330c64dd58743513f3e48efb6569457beb94 | [
"WTFPL"
] | null | null | null | Assignment1/Part2/Bridge2.py | MormonJesus69420/Knowledge-Based-Systems-Project | 8b1e330c64dd58743513f3e48efb6569457beb94 | [
"WTFPL"
] | null | null | null | Assignment1/Part2/Bridge2.py | MormonJesus69420/Knowledge-Based-Systems-Project | 8b1e330c64dd58743513f3e48efb6569457beb94 | [
"WTFPL"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
from Car2 import Car
@dataclass
class Bridge:
"""Bridge class simulating the behaviour of bridge in simulation.
On can set specific length and capacity for the bridge to change the overall
behaviour of bridge in the simulation and see how i... | 28.833333 | 80 | 0.62743 | 268 | 1,903 | 4.395522 | 0.339552 | 0.040747 | 0.037351 | 0.057725 | 0.101868 | 0.047538 | 0.047538 | 0 | 0 | 0 | 0 | 0.004481 | 0.296374 | 1,903 | 65 | 81 | 29.276923 | 0.87528 | 0.328954 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8a9d019bec9e50c7c8d759ea60e658149d43ef2a | 2,561 | py | Python | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | 1 | 2021-02-03T19:12:04.000Z | 2021-02-03T19:12:04.000Z | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | null | null | null | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | 1 | 2021-07-08T07:33:10.000Z | 2021-07-08T07:33:10.000Z | import os
from pathlib import Path
import numpy as np
AUDIO_FILENAME_ENDINGS = (".aiff", ".flac", ".m4a", ".mp3", ".ogg", ".opus", ".wav")
def get_file_paths(
root_path, filename_endings=AUDIO_FILENAME_ENDINGS, traverse_subdirectories=True
):
"""Return a list of paths to all files with the given filename ex... | 31.617284 | 132 | 0.689184 | 353 | 2,561 | 4.878187 | 0.373938 | 0.034843 | 0.02439 | 0.029617 | 0.14518 | 0.117305 | 0.117305 | 0.072009 | 0.072009 | 0.072009 | 0 | 0.030243 | 0.212417 | 2,561 | 80 | 133 | 32.0125 | 0.8235 | 0.393596 | 0 | 0 | 0 | 0 | 0.043538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0.029412 | 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 |
8aa50b5f8d204a63672c266b3319435ba3678601 | 2,686 | py | Python | insight/migrations/0001_initial.py | leonhead/chess-insight | b893295719df21b4fee10d4e7b01639ded8b42b4 | [
"MIT"
] | null | null | null | insight/migrations/0001_initial.py | leonhead/chess-insight | b893295719df21b4fee10d4e7b01639ded8b42b4 | [
"MIT"
] | null | null | null | insight/migrations/0001_initial.py | leonhead/chess-insight | b893295719df21b4fee10d4e7b01639ded8b42b4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-08 07:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='OpeningSystem',
fields=[
... | 41.323077 | 127 | 0.562919 | 252 | 2,686 | 5.873016 | 0.281746 | 0.085135 | 0.118243 | 0.122973 | 0.593243 | 0.487162 | 0.487162 | 0.487162 | 0.487162 | 0.487162 | 0 | 0.016869 | 0.293745 | 2,686 | 64 | 128 | 41.96875 | 0.76331 | 0.016009 | 0 | 0.491228 | 1 | 0 | 0.105642 | 0.007952 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.105263 | 0 | 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 |
8aae1314a34df4a8c2038ff3f05e19541e560962 | 2,489 | py | Python | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 21.273504 | 74 | 0.451185 | 242 | 2,489 | 4.607438 | 0.487603 | 0.053812 | 0.04843 | 0.0287 | 0.229596 | 0.229596 | 0.179372 | 0.179372 | 0.109417 | 0.109417 | 0 | 0.0625 | 0.382885 | 2,489 | 116 | 75 | 21.456897 | 0.663411 | 0.224588 | 0 | 0.367347 | 0 | 0 | 0.810021 | 0.031837 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.020408 | false | 0 | 0.020408 | 0 | 0.040816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8aafa8be4338ac950ec6be097349874901cbc17e | 3,807 | py | Python | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | 1 | 2019-07-19T18:09:38.000Z | 2019-07-19T18:09:38.000Z | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | null | null | null | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | null | null | null | import collections
import unittest
import driver
from driver.protocol import *
_server = ('localhost', 11211)
_dead_retry = 30
_socket_timeout = 3
_max_receive_size = 4096
class MockConnection(object):
def __init__(self,
server=_server,
dead_retry=30,
socket_tim... | 34.609091 | 105 | 0.677699 | 468 | 3,807 | 5.279915 | 0.196581 | 0.05261 | 0.032376 | 0.048563 | 0.541076 | 0.492513 | 0.413193 | 0.413193 | 0.301497 | 0.176042 | 0 | 0.008452 | 0.22301 | 3,807 | 109 | 106 | 34.926606 | 0.82691 | 0 | 0 | 0.137931 | 0 | 0 | 0.068558 | 0.006304 | 0 | 0 | 0 | 0 | 0.126437 | 1 | 0.206897 | false | 0 | 0.045977 | 0 | 0.298851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ab94a7177eff40dfe2d54daa4adb7bbd8788e95 | 1,084 | py | Python | elm_mnist/elm_mnist.py | ahara/-blog | 926ae4808ede6efb1e64381a19a210235a97ac36 | [
"MIT"
] | null | null | null | elm_mnist/elm_mnist.py | ahara/-blog | 926ae4808ede6efb1e64381a19a210235a97ac36 | [
"MIT"
] | null | null | null | elm_mnist/elm_mnist.py | ahara/-blog | 926ae4808ede6efb1e64381a19a210235a97ac36 | [
"MIT"
] | null | null | null | import cPickle
import numpy as np
from elm import ELMClassifier
from sklearn import linear_model
def load_mnist(path='../Data/mnist.pkl'):
with open(path, 'rb') as f:
return cPickle.load(f)
def get_datasets(data):
_train_x, _train_y = data[0][0], np.array(data[0][1]).reshape(len(data[0][1]), 1)
... | 32.848485 | 85 | 0.621771 | 171 | 1,084 | 3.631579 | 0.350877 | 0.016103 | 0.070853 | 0.077295 | 0.096618 | 0.096618 | 0.096618 | 0.096618 | 0.096618 | 0.096618 | 0 | 0.043373 | 0.234317 | 1,084 | 32 | 86 | 33.875 | 0.704819 | 0.035978 | 0 | 0 | 0 | 0 | 0.064361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8abc0d6dcbf21ec8770db13b5b8c148d9b2c8d8e | 1,607 | py | Python | migrations/versions/0084_add_job_stats.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 41 | 2019-11-28T16:58:41.000Z | 2022-01-28T21:11:16.000Z | migrations/versions/0084_add_job_stats.py | cds-snc/notification-api | b1c1064f291eb860b494c3fa65ac256ad70bf47c | [
"MIT"
] | 1,083 | 2019-07-08T12:57:24.000Z | 2022-03-08T18:53:40.000Z | migrations/versions/0084_add_job_stats.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 9 | 2020-01-24T19:56:43.000Z | 2022-01-27T21:36:53.000Z | """empty message
Revision ID: 0084_add_job_stats
Revises: 0083_add_perm_types_and_svc_perm
Create Date: 2017-05-12 13:16:14.147368
"""
# revision identifiers, used by Alembic.
revision = "0084_add_job_stats"
down_revision = "0083_add_perm_types_and_svc_perm"
import sqlalchemy as sa
from alembic import op
from sqlal... | 35.711111 | 96 | 0.683261 | 211 | 1,607 | 4.962085 | 0.312796 | 0.091691 | 0.143266 | 0.200573 | 0.579752 | 0.574021 | 0.524355 | 0.143266 | 0.08978 | 0.08978 | 0 | 0.026946 | 0.168637 | 1,607 | 44 | 97 | 36.522727 | 0.756737 | 0.104543 | 0 | 0 | 0 | 0 | 0.209644 | 0.055905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 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 |
8ac88b2d708e6c6e6407bbbd9d9661fb3c6143fd | 495 | py | Python | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_package(host):
""" check if packages are installed
"""
assert host.package('grafana').is_installed
def test_service(host)... | 24.75 | 63 | 0.739394 | 63 | 495 | 5.634921 | 0.539683 | 0.084507 | 0.11831 | 0.152113 | 0.219718 | 0.219718 | 0.219718 | 0 | 0 | 0 | 0 | 0 | 0.147475 | 495 | 19 | 64 | 26.052632 | 0.841232 | 0.175758 | 0 | 0 | 0 | 0 | 0.15641 | 0.058974 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ac941eb3b632a517433fbaf339a5dae04e7e556 | 6,534 | py | Python | heatsink.py | sww1235/heatsink-calc | 3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759 | [
"MIT"
] | 1 | 2020-11-20T07:09:00.000Z | 2020-11-20T07:09:00.000Z | heatsink.py | sww1235/heatsink-calc | 3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759 | [
"MIT"
] | null | null | null | heatsink.py | sww1235/heatsink-calc | 3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759 | [
"MIT"
] | null | null | null | """Class representations of heatsinks."""
import math
from scipy import constants as const
from materials import Aluminium_6063 as aluminium
class Heatsink:
"""
A Heatsink.
Extended by form factor subclasses
"""
def __init__(self, material, configuration):
"""Init material and configur... | 44.148649 | 78 | 0.520814 | 575 | 6,534 | 5.888696 | 0.34087 | 0.067336 | 0.014176 | 0.028352 | 0.124336 | 0.069699 | 0.039575 | 0 | 0 | 0 | 0 | 0.035732 | 0.396082 | 6,534 | 147 | 79 | 44.44898 | 0.822352 | 0.061371 | 0 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0 | 0 | null | null | 0 | 0.034483 | 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 |
8acb71f44d08977a58d847a4d25a262b4cc3e603 | 35,471 | py | Python | src/parser.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | 2 | 2019-02-13T11:30:08.000Z | 2021-02-14T04:20:44.000Z | src/parser.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | null | null | null | src/parser.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from code import TreeNode
from code import ThreeAddressCode
from lexer import tokens
from random import *
from symbol_table import SymbolTable
from symbol_table import SymbolTableNode
import logging
import ply.lex as lex
import ply.yacc as yacc
import sys
from codegen import convert_tac
from code... | 29.050778 | 172 | 0.5361 | 4,440 | 35,471 | 4.178153 | 0.072072 | 0.02264 | 0.046898 | 0.080535 | 0.482076 | 0.438251 | 0.37529 | 0.314107 | 0.258854 | 0.240149 | 0 | 0.026433 | 0.305686 | 35,471 | 1,220 | 173 | 29.07459 | 0.726815 | 0.048744 | 0 | 0.511502 | 0 | 0 | 0.103066 | 0.001517 | 0 | 0 | 0 | 0.004918 | 0 | 0 | null | null | 0.001353 | 0.024357 | null | null | 0.035183 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ad27d34811f9ef90b1af846c18b262998179e76 | 1,523 | py | Python | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | import unittest
from worldengine.plates import Step, center_land, world_gen
from worldengine.world import World
from tests.draw_test import TestBase
class TestGeneration(TestBase):
def setUp(self):
super(TestGeneration, self).setUp()
def test_world_gen_does_not_explode_badly(self):
# FIXME ... | 35.418605 | 80 | 0.690085 | 211 | 1,523 | 4.668246 | 0.407583 | 0.078173 | 0.127919 | 0.105584 | 0.227411 | 0.227411 | 0.077157 | 0 | 0 | 0 | 0 | 0.016034 | 0.22193 | 1,523 | 42 | 81 | 36.261905 | 0.81519 | 0.101773 | 0 | 0 | 0 | 0 | 0.026393 | 0 | 0 | 0 | 0 | 0.02381 | 0.035714 | 1 | 0.142857 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76d2dd0a16c26b25219d0d5220bf5e490de12769 | 1,627 | py | Python | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 16 | 2017-03-15T18:00:35.000Z | 2018-07-30T14:44:53.000Z | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 40 | 2017-03-29T20:04:25.000Z | 2019-10-21T16:56:15.000Z | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 4 | 2017-05-08T11:39:07.000Z | 2017-08-17T14:18:03.000Z | """Bioconductor run git transition code.
This module assembles the classes for the SVN --> Git transition
can be run in a sequential manner.
It runs the following aspects fo the Bioconductor transition.
Note: Update the SVN dump
1. Run Bioconductor Software package transition
2. Run Bioconductor Experiment Data pac... | 30.12963 | 69 | 0.754149 | 239 | 1,627 | 4.895397 | 0.393305 | 0.111111 | 0.068376 | 0.078632 | 0.211966 | 0.12906 | 0.12906 | 0.1 | 0.1 | 0 | 0 | 0.006647 | 0.167793 | 1,627 | 53 | 70 | 30.698113 | 0.857459 | 0.406884 | 0 | 0.16 | 0 | 0 | 0.09499 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
76d437c1b037e1c3fe1a171bd9eb231c53d36fc1 | 645 | py | Python | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Module projectparallelprogrammeren.codesimulatie
=================================================================
Deze module simuleert alles.
"""
import projectparallelprogrammeren
def simulatie():
"""
Deze functie voert alle versies uit zodat deze vergeleken kunnen worden qua timi... | 23.035714 | 84 | 0.674419 | 70 | 645 | 6.057143 | 0.728571 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.142636 | 645 | 27 | 85 | 23.888889 | 0.754069 | 0.55814 | 0 | 0 | 0 | 0 | 0.087121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76d4b9d4643322713c59c30a22d968f034c3d591 | 2,361 | py | Python | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 32 | 2021-01-18T03:52:17.000Z | 2022-02-17T20:43:39.000Z | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 12 | 2021-02-06T08:12:08.000Z | 2021-12-11T23:17:41.000Z | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 6 | 2021-01-29T16:46:31.000Z | 2022-01-20T18:40:03.000Z | #!/usr/bin/env python
from __future__ import unicode_literals
# Allow direct execution
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from haruhi_dl.aes import aes_decrypt, aes_encrypt, aes_cbc_decrypt, aes_cbc_encrypt, aes_decrypt_text
from haruh... | 36.890625 | 102 | 0.671326 | 339 | 2,361 | 4.448378 | 0.368732 | 0.047745 | 0.074271 | 0.047745 | 0.451592 | 0.351459 | 0.302387 | 0.259947 | 0.259947 | 0.193634 | 0 | 0.063158 | 0.195256 | 2,361 | 63 | 103 | 37.47619 | 0.730526 | 0.051249 | 0 | 0.212766 | 0 | 0.085106 | 0.171658 | 0.143496 | 0 | 0 | 0.003576 | 0 | 0.106383 | 1 | 0.106383 | false | 0.085106 | 0.148936 | 0 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76dba06432c777d52082f512eea09a2187e28998 | 201 | py | Python | app/retweet_graphs_v2/prep/migrate_daily_bot_probabilities.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 5 | 2020-04-02T12:03:57.000Z | 2020-10-18T19:29:15.000Z | app/retweet_graphs_v2/prep/migrate_daily_bot_probabilities.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 22 | 2020-03-31T02:00:34.000Z | 2021-06-30T17:59:01.000Z | app/retweet_graphs_v2/prep/migrate_daily_bot_probabilities.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 3 | 2020-04-04T16:08:08.000Z | 2020-10-20T01:32:46.000Z |
from app.bq_service import BigQueryService
if __name__ == "__main__":
bq_service = BigQueryService()
bq_service.migrate_daily_bot_probabilities_table()
print("MIGRATION SUCCESSFUL!")
| 16.75 | 54 | 0.756219 | 22 | 201 | 6.227273 | 0.772727 | 0.19708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159204 | 201 | 11 | 55 | 18.272727 | 0.810651 | 0 | 0 | 0 | 0 | 0 | 0.145729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76dc3dcc93cf6f1c271c8e612a3e064f4f02ee56 | 3,258 | py | Python | tests/bugs/core_6266_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_6266_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_6266_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_6266
# title: Deleting records from MON$ATTACHMENTS using ORDER BY clause doesn't close the corresponding attachments
# decription:
# Old title: Don't close attach while deleting record from MON$ATTACHMENTS using ORDER BY clause.
# ... | 31.028571 | 170 | 0.645795 | 465 | 3,258 | 4.380645 | 0.389247 | 0.027491 | 0.053019 | 0.045164 | 0.350515 | 0.334806 | 0.300442 | 0.265096 | 0.265096 | 0.265096 | 0 | 0.032514 | 0.225905 | 3,258 | 104 | 171 | 31.326923 | 0.775178 | 0.832413 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.