hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
127d60f439a2eeaeea97213b05b97e925b002613 | 15,790 | py | Python | osprofiler/tests/unit/drivers/test_ceilometer.py | charliebr30/osprofiler | cffca4e29e373e3f09f2ffdd458761183a851569 | [
"Apache-2.0"
] | null | null | null | osprofiler/tests/unit/drivers/test_ceilometer.py | charliebr30/osprofiler | cffca4e29e373e3f09f2ffdd458761183a851569 | [
"Apache-2.0"
] | 1 | 2017-04-15T22:16:06.000Z | 2017-04-15T22:16:06.000Z | osprofiler/tests/unit/drivers/test_ceilometer.py | shwsun/osprofiler | 46d29fc5ab8a4068217e399883f39cdd443a7500 | [
"Apache-2.0"
] | 1 | 2020-02-17T09:48:43.000Z | 2020-02-17T09:48:43.000Z | # Copyright 2016 Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 37.240566 | 79 | 0.338252 |
127dce97d99e34df63ba730d1cd14233e203885a | 2,271 | py | Python | threshold.py | jiep/unicode-similarity | a32a031f96dce2b8a52a8ff4b5365c768c016fc6 | [
"MIT"
] | 1 | 2019-02-22T10:31:51.000Z | 2019-02-22T10:31:51.000Z | threshold.py | jiep/unicode-similarity | a32a031f96dce2b8a52a8ff4b5365c768c016fc6 | [
"MIT"
] | null | null | null | threshold.py | jiep/unicode-similarity | a32a031f96dce2b8a52a8ff4b5365c768c016fc6 | [
"MIT"
] | 1 | 2020-12-15T15:34:43.000Z | 2020-12-15T15:34:43.000Z | from pathlib import Path
import numpy as np
import pickle
import argparse
import errno
import sys
if __name__ == '__main__':
main()
| 28.037037 | 79 | 0.589608 |
127def7299a4b8a5f141ed18533a55c708f10769 | 1,813 | py | Python | y2019/control_loops/python/wrist.py | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | y2019/control_loops/python/wrist.py | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | y2019/control_loops/python/wrist.py | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
from aos.util.trapezoid_profile import TrapezoidProfile
from frc971.control_loops.python import control_loop
from frc971.control_loops.python import angular_system
from frc971.control_loops.python import controls
import copy
import numpy
import sys
from matplotlib import pylab
import gflags
import gl... | 24.835616 | 87 | 0.674021 |
12810e363b2fde4bb2f563894e88d9b033fc5d56 | 2,666 | py | Python | utils/tools.py | alipay/Pyraformer | 84af4dbd93b7b96975b5034f0dde412005260123 | [
"Apache-2.0"
] | 7 | 2022-03-24T03:42:14.000Z | 2022-03-27T16:27:31.000Z | utils/tools.py | alipay/Pyraformer | 84af4dbd93b7b96975b5034f0dde412005260123 | [
"Apache-2.0"
] | 1 | 2022-03-17T08:54:42.000Z | 2022-03-17T08:54:42.000Z | utils/tools.py | alipay/Pyraformer | 84af4dbd93b7b96975b5034f0dde412005260123 | [
"Apache-2.0"
] | 1 | 2022-03-29T16:33:44.000Z | 2022-03-29T16:33:44.000Z | from torch.nn.modules import loss
import torch
import numpy as np
def AE_loss(mu, labels, ignore_zero):
if ignore_zero:
indexes = (labels != 0)
else:
indexes = (labels >= 0)
ae = torch.abs(labels[indexes] - mu[indexes])
return ae
| 28.361702 | 112 | 0.62003 |
1282bd510ec173d21c0fd86f0dd67b09824e394a | 2,772 | py | Python | .venv/lib/python3.8/site-packages/pandas/tests/indexes/timedeltas/test_shift.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 115 | 2020-06-18T15:00:58.000Z | 2022-03-02T10:13:19.000Z | .venv/lib/python3.8/site-packages/pandas/tests/indexes/timedeltas/test_shift.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 37 | 2020-10-20T08:30:53.000Z | 2020-12-22T13:15:45.000Z | .venv/lib/python3.8/site-packages/pandas/tests/indexes/timedeltas/test_shift.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 60 | 2020-07-22T14:53:10.000Z | 2022-03-23T10:17:59.000Z | import pytest
from pandas.errors import NullFrequencyError
import pandas as pd
from pandas import TimedeltaIndex
import pandas._testing as tm
| 35.538462 | 82 | 0.544372 |
1282edeb2a30864dc3a5aa0e406d5fae2795f292 | 1,974 | py | Python | webScraping/Instagram/2a_selenium_corriere.py | PythonBiellaGroup/MaterialeSerate | 58b45ecda7b9a8a298b9ca966d2806618a277372 | [
"MIT"
] | 12 | 2021-12-12T22:19:52.000Z | 2022-03-18T11:45:17.000Z | webScraping/Instagram/2a_selenium_corriere.py | PythonGroupBiella/MaterialeLezioni | 58b45ecda7b9a8a298b9ca966d2806618a277372 | [
"MIT"
] | 1 | 2022-03-23T13:58:33.000Z | 2022-03-23T14:05:08.000Z | webScraping/Instagram/2a_selenium_corriere.py | PythonGroupBiella/MaterialeLezioni | 58b45ecda7b9a8a298b9ca966d2806618a277372 | [
"MIT"
] | 5 | 2021-11-30T19:38:41.000Z | 2022-01-30T14:50:44.000Z | # use selenium to scrape headlines from corriere.it
# pip install selenium
from re import L
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.co... | 44.863636 | 258 | 0.766971 |
1283922931293c1f0272600761d089b38ea78f4b | 2,033 | py | Python | stolos/tests/test_bin.py | sailthru/stolos | 7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc | [
"Apache-2.0"
] | 121 | 2015-01-20T08:58:35.000Z | 2021-08-08T15:13:11.000Z | stolos/tests/test_bin.py | sailthru/stolos | 7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc | [
"Apache-2.0"
] | 3 | 2015-01-20T22:19:49.000Z | 2016-02-10T10:48:11.000Z | stolos/tests/test_bin.py | sailthru/stolos | 7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc | [
"Apache-2.0"
] | 20 | 2016-02-03T17:08:31.000Z | 2021-04-19T10:43:28.000Z | import os
from subprocess import check_output, CalledProcessError
from nose import tools as nt
from stolos import queue_backend as qb
from stolos.testing_tools import (
with_setup, validate_zero_queued_task, validate_one_queued_task,
validate_n_queued_task
)
| 36.303571 | 75 | 0.713724 |
1283e6ee8cf196eb827ab2c20c8605ca98bca840 | 12,442 | py | Python | senlin/tests/unit/engine/actions/test_create.py | chenyb4/senlin | 8b9ec31566890dc9989fe08e221172d37c0451b4 | [
"Apache-2.0"
] | null | null | null | senlin/tests/unit/engine/actions/test_create.py | chenyb4/senlin | 8b9ec31566890dc9989fe08e221172d37c0451b4 | [
"Apache-2.0"
] | null | null | null | senlin/tests/unit/engine/actions/test_create.py | chenyb4/senlin | 8b9ec31566890dc9989fe08e221172d37c0451b4 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | 43.201389 | 79 | 0.60987 |
12848f59193336131bb837186f98da6abb8ba010 | 1,665 | py | Python | tests/test_api.py | bh-chaker/wetterdienst | b0d51bb4c7392eb47834e4978e26882d74b22e35 | [
"MIT"
] | 155 | 2020-07-03T05:09:22.000Z | 2022-03-28T06:57:39.000Z | tests/test_api.py | bh-chaker/wetterdienst | b0d51bb4c7392eb47834e4978e26882d74b22e35 | [
"MIT"
] | 453 | 2020-07-02T21:21:52.000Z | 2022-03-31T21:35:36.000Z | tests/test_api.py | bh-chaker/wetterdienst | b0d51bb4c7392eb47834e4978e26882d74b22e35 | [
"MIT"
] | 21 | 2020-09-07T12:13:27.000Z | 2022-03-26T16:26:09.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2021, earthobservations developers.
# Distributed under the MIT License. See LICENSE for more info.
import pytest
from wetterdienst import Wetterdienst
| 26.015625 | 79 | 0.587988 |
128572fd0692d7bc47b673410cce38c578481632 | 5,803 | py | Python | examples/sentence_embedding/task_sentence_embedding_sbert_unsupervised_TSDAE.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | 49 | 2022-03-15T07:28:16.000Z | 2022-03-31T07:16:15.000Z | examples/sentence_embedding/task_sentence_embedding_sbert_unsupervised_TSDAE.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | null | null | null | examples/sentence_embedding/task_sentence_embedding_sbert_unsupervised_TSDAE.py | Tongjilibo/bert4torch | 71d5ffb3698730b16e5a252b06644a136787711e | [
"MIT"
] | null | null | null | #! -*- coding:utf-8 -*-
# -pretrain, devsts-b
from bert4torch.tokenizers import Tokenizer
from bert4torch.models import build_transformer_model, BaseModel
from bert4torch.snippets import sequence_padding, Callback, ListDataset
import torch.nn as nn
import torch
import torch.optim as optim
from torch.utils.data import... | 37.681818 | 196 | 0.689988 |
12867ea275e82f412c64f544501dc211d18fb6b3 | 2,761 | py | Python | crowd_anki/export/anki_exporter_wrapper.py | katrinleinweber/CrowdAnki | c78d837e082365d69bde5b1361b1dd4d11cd3d63 | [
"MIT"
] | 391 | 2016-08-31T21:55:07.000Z | 2022-03-30T16:30:12.000Z | crowd_anki/export/anki_exporter_wrapper.py | katrinleinweber/CrowdAnki | c78d837e082365d69bde5b1361b1dd4d11cd3d63 | [
"MIT"
] | 150 | 2016-09-01T00:35:35.000Z | 2022-03-30T23:26:48.000Z | crowd_anki/export/anki_exporter_wrapper.py | katrinleinweber/CrowdAnki | c78d837e082365d69bde5b1361b1dd4d11cd3d63 | [
"MIT"
] | 51 | 2016-09-04T17:02:39.000Z | 2022-02-04T11:49:10.000Z | from pathlib import Path
from .anki_exporter import AnkiJsonExporter
from ..anki.adapters.anki_deck import AnkiDeck
from ..config.config_settings import ConfigSettings
from ..utils import constants
from ..utils.notifier import AnkiModalNotifier, Notifier
from ..utils.disambiguate_uuids import disambiguate_note_model_u... | 40.014493 | 139 | 0.680913 |
1286fbd5f6c9f344c50efdbd092dd4dcc7eb7bc9 | 1,086 | py | Python | shadow/apis/item.py | f1uzz/shadow | 0c2a1308f8bbe77ce4be005153148aac8ea0b4b2 | [
"MIT"
] | 1 | 2020-09-10T22:31:54.000Z | 2020-09-10T22:31:54.000Z | shadow/apis/item.py | f1uzz/shadow | 0c2a1308f8bbe77ce4be005153148aac8ea0b4b2 | [
"MIT"
] | 1 | 2020-03-12T15:47:14.000Z | 2020-09-11T18:46:44.000Z | shadow/apis/item.py | f1uzz/shadow | 0c2a1308f8bbe77ce4be005153148aac8ea0b4b2 | [
"MIT"
] | null | null | null | from functools import lru_cache
from typing import Optional
import requests
from .patches import Patches
| 25.255814 | 107 | 0.598527 |
128751ef3f270c09dd8bfd854209616c9fbc00a9 | 2,694 | py | Python | tests/test_lmdb_eager.py | rjpower/tensorflow-io | 39aa0b46cfaa403121fdddbd491a03d2f3190a87 | [
"Apache-2.0"
] | null | null | null | tests/test_lmdb_eager.py | rjpower/tensorflow-io | 39aa0b46cfaa403121fdddbd491a03d2f3190a87 | [
"Apache-2.0"
] | null | null | null | tests/test_lmdb_eager.py | rjpower/tensorflow-io | 39aa0b46cfaa403121fdddbd491a03d2f3190a87 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 33.259259 | 80 | 0.655902 |
128792253fac3bfe35e8e9d68865a244469d6f80 | 5,211 | py | Python | recbole/quick_start/quick_start.py | RuihongQiu/DuoRec | 4ebc30d8b7d9465f854867887b127a0bbc38bc31 | [
"MIT"
] | 16 | 2021-11-03T02:12:49.000Z | 2022-03-27T05:48:19.000Z | recbole/quick_start/quick_start.py | RuihongQiu/DuoRec | 4ebc30d8b7d9465f854867887b127a0bbc38bc31 | [
"MIT"
] | 2 | 2021-11-21T14:12:25.000Z | 2022-03-11T03:00:04.000Z | recbole/quick_start/quick_start.py | RuihongQiu/DuoRec | 4ebc30d8b7d9465f854867887b127a0bbc38bc31 | [
"MIT"
] | 4 | 2021-11-25T09:23:41.000Z | 2022-03-26T11:23:26.000Z | # @Time : 2020/10/6
# @Author : Shanlei Mu
# @Email : slmu@ruc.edu.cn
"""
recbole.quick_start
########################
"""
import logging
from logging import getLogger
from recbole.config import Config
from recbole.data import create_dataset, data_preparation
from recbole.utils import init_logger, get_model, get_t... | 35.209459 | 137 | 0.682978 |
1287e0c57eb8a30f8e6d4ada3266d63abc50f722 | 4,947 | py | Python | inferlo/generic/inference/bucket_renormalization.py | InferLO/inferlo | a65efce721d7f99d2f274dd94a1aaf7ca159e944 | [
"Apache-2.0"
] | 1 | 2022-01-27T18:44:07.000Z | 2022-01-27T18:44:07.000Z | inferlo/generic/inference/bucket_renormalization.py | InferLO/inferlo | a65efce721d7f99d2f274dd94a1aaf7ca159e944 | [
"Apache-2.0"
] | 3 | 2022-01-23T18:02:30.000Z | 2022-01-27T23:10:51.000Z | inferlo/generic/inference/bucket_renormalization.py | InferLO/inferlo | a65efce721d7f99d2f274dd94a1aaf7ca159e944 | [
"Apache-2.0"
] | 1 | 2021-09-03T06:12:57.000Z | 2021-09-03T06:12:57.000Z | # Copyright (c) The InferLO authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 - see LICENSE.
import warnings
import numpy as np
from sklearn.utils.extmath import randomized_svd
from .bucket_elimination import BucketElimination
from .factor import Factor, default_factor_name, produ... | 41.571429 | 80 | 0.595512 |
1287eefddb9d27db413d1feaac4d915eb6887055 | 5,519 | py | Python | oldcode/guestbook111013.py | mdreid/dinkylink | 34370633c9361f6625227440d4aca6ed2b57bfab | [
"MIT"
] | 1 | 2015-05-06T20:07:36.000Z | 2015-05-06T20:07:36.000Z | oldcode/guestbook111013.py | mdreid/dinkylink | 34370633c9361f6625227440d4aca6ed2b57bfab | [
"MIT"
] | null | null | null | oldcode/guestbook111013.py | mdreid/dinkylink | 34370633c9361f6625227440d4aca6ed2b57bfab | [
"MIT"
] | null | null | null | import os
import urllib
from google.appengine.api import users
from google.appengine.ext import ndb
import jinja2
import webapp2
from sys import argv
import datetime
import pickle
import sys
sys.path.insert(0, 'libs')
import BeautifulSoup
from bs4 import BeautifulSoup
import requests
import json
JINJA_ENVIRONM... | 31.901734 | 181 | 0.698315 |
1289c37f5bf5c6f565d40cc79d0b3cb7b6862bc0 | 4,482 | py | Python | is_core/tests/crawler.py | zzuzzy/django-is-core | 3f87ec56a814738683c732dce5f07e0328c2300d | [
"BSD-3-Clause"
] | null | null | null | is_core/tests/crawler.py | zzuzzy/django-is-core | 3f87ec56a814738683c732dce5f07e0328c2300d | [
"BSD-3-Clause"
] | null | null | null | is_core/tests/crawler.py | zzuzzy/django-is-core | 3f87ec56a814738683c732dce5f07e0328c2300d | [
"BSD-3-Clause"
] | null | null | null | import json
from django.utils.encoding import force_text
from germanium.tools import assert_true, assert_not_equal
from germanium.test_cases.client import ClientTestCase
from germanium.decorators import login
from germanium.crawler import Crawler, LinkExtractor, HtmlLinkExtractor as OriginalHtmlLinkExtractor
| 34.744186 | 118 | 0.594378 |
1289e9a1e3edba91a08623829d6f72757cbc5c8d | 136 | py | Python | example/geometry/admin.py | emelianovss-yandex-praktikum/07_pyplus_django_2 | 09bda00f9c8e9fd1ff0f3a483ecb210041d19a48 | [
"MIT"
] | null | null | null | example/geometry/admin.py | emelianovss-yandex-praktikum/07_pyplus_django_2 | 09bda00f9c8e9fd1ff0f3a483ecb210041d19a48 | [
"MIT"
] | null | null | null | example/geometry/admin.py | emelianovss-yandex-praktikum/07_pyplus_django_2 | 09bda00f9c8e9fd1ff0f3a483ecb210041d19a48 | [
"MIT"
] | 2 | 2021-11-27T08:06:35.000Z | 2021-11-27T13:52:41.000Z | from django.contrib import admin
from geometry.models import Shape
| 17 | 35 | 0.772059 |
128a2d7a634e13b30d2d38fc5ac9815e890ebcfe | 943 | py | Python | demo2/demo2_consume2.py | YuYanzy/kafka-python-demo | fc01ac29230b41fe1821f6e5a9d7226dea9688fe | [
"Apache-2.0"
] | 3 | 2021-05-07T01:48:37.000Z | 2021-09-24T20:53:51.000Z | demo2/demo2_consume2.py | YuYanzy/kafka-python-demo | fc01ac29230b41fe1821f6e5a9d7226dea9688fe | [
"Apache-2.0"
] | null | null | null | demo2/demo2_consume2.py | YuYanzy/kafka-python-demo | fc01ac29230b41fe1821f6e5a9d7226dea9688fe | [
"Apache-2.0"
] | 1 | 2021-05-08T08:46:01.000Z | 2021-05-08T08:46:01.000Z | # -*- coding: utf-8 -*-
# @Author : Ecohnoch(xcy)
# @File : demo2_consume.py
# @Function : TODO
import kafka
demo2_config = {
'kafka_host': 'localhost:9092',
'kafka_topic': 'demo2',
'kafka_group_id': 'demo2_group1'
}
if __name__ == '__main__':
consume()
| 29.46875 | 118 | 0.604454 |
128a56c54e5b4a6dbabdff93bd337ad93578a5cd | 2,280 | py | Python | autoscalingsim/scaling/scaling_model/scaling_model.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 6 | 2021-03-10T16:23:10.000Z | 2022-01-14T04:57:46.000Z | autoscalingsim/scaling/scaling_model/scaling_model.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | null | null | null | autoscalingsim/scaling/scaling_model/scaling_model.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 1 | 2022-01-14T04:57:55.000Z | 2022-01-14T04:57:55.000Z | import json
import pandas as pd
from .application_scaling_model import ApplicationScalingModel
from .platform_scaling_model import PlatformScalingModel
from autoscalingsim.deltarepr.group_of_services_delta import GroupOfServicesDelta
from autoscalingsim.deltarepr.node_group_delta import NodeGroupDelta
from autoscali... | 43.018868 | 124 | 0.744298 |
128b3b5e8ee085ddcb7d0e7d01778d05032f8030 | 1,662 | py | Python | src/zojax/filefield/copy.py | Zojax/zojax.filefield | 36d92242dffbd5a7b4ce3c6886d8d5898067245a | [
"ZPL-2.1"
] | null | null | null | src/zojax/filefield/copy.py | Zojax/zojax.filefield | 36d92242dffbd5a7b4ce3c6886d8d5898067245a | [
"ZPL-2.1"
] | null | null | null | src/zojax/filefield/copy.py | Zojax/zojax.filefield | 36d92242dffbd5a7b4ce3c6886d8d5898067245a | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 29.157895 | 78 | 0.642599 |
128cfb0881a4cb2a09e645ca55b7c92a498aaab7 | 192 | py | Python | verbose.py | lowrey/myjsonstore | 4d47f147fa5d86bea5d4e9b0bcab567583a794af | [
"MIT"
] | 1 | 2018-07-30T14:17:25.000Z | 2018-07-30T14:17:25.000Z | verbose.py | lowrey/myjsonstore | 4d47f147fa5d86bea5d4e9b0bcab567583a794af | [
"MIT"
] | null | null | null | verbose.py | lowrey/myjsonstore | 4d47f147fa5d86bea5d4e9b0bcab567583a794af | [
"MIT"
] | null | null | null | import sys
verbose = False
| 10.105263 | 27 | 0.583333 |
128d0ee6d357971754e6aa9345f8db462e223612 | 1,087 | py | Python | app/component_b/command/services.py | mirevsky/django-grpc-cqrs-kafka-template | 31af0bf5d15e393837f937cace90f82a7de26355 | [
"MIT"
] | 2 | 2022-01-10T19:52:36.000Z | 2022-03-19T07:34:54.000Z | app/component_b/command/services.py | mirevsky/django-grpc-cqrs-kafka-template | 31af0bf5d15e393837f937cace90f82a7de26355 | [
"MIT"
] | null | null | null | app/component_b/command/services.py | mirevsky/django-grpc-cqrs-kafka-template | 31af0bf5d15e393837f937cace90f82a7de26355 | [
"MIT"
] | null | null | null | import grpc
from google.protobuf import empty_pb2
from django_grpc_framework.services import Service
from component_b.common.serializers import PersonProtoSerializer
from component_b.common.models import PersonModel
| 31.970588 | 84 | 0.706532 |
128d2e658f8131c779045c3cbeaae1830ec9ef68 | 485 | py | Python | Lab 5/course_reader.py | kq4hy/CS3240-Lab-Files | 2611c3185a405da95547434825da9052cd4c6cec | [
"MIT"
] | null | null | null | Lab 5/course_reader.py | kq4hy/CS3240-Lab-Files | 2611c3185a405da95547434825da9052cd4c6cec | [
"MIT"
] | null | null | null | Lab 5/course_reader.py | kq4hy/CS3240-Lab-Files | 2611c3185a405da95547434825da9052cd4c6cec | [
"MIT"
] | null | null | null | __author__ = 'kq4hy'
import csv
import sqlite3
load_course_database('course1.db', 'seas-courses-5years.csv') | 28.529412 | 78 | 0.610309 |
128e53da4b600437f498e3a40b34bc75e174bc07 | 117 | py | Python | marshmallow_helpers/__init__.py | hilearn/marsh-enum | 2003ed850b076cd9d29a340ee44abe1c73aadc66 | [
"MIT"
] | null | null | null | marshmallow_helpers/__init__.py | hilearn/marsh-enum | 2003ed850b076cd9d29a340ee44abe1c73aadc66 | [
"MIT"
] | null | null | null | marshmallow_helpers/__init__.py | hilearn/marsh-enum | 2003ed850b076cd9d29a340ee44abe1c73aadc66 | [
"MIT"
] | null | null | null | from .enum_field import EnumField, RegisteredEnum # noqa
from .marsh_schema import attr_with_schema, derive # noqa
| 39 | 58 | 0.811966 |
128e7777e186dad8ff8ca443386abd102aa7f54e | 1,492 | py | Python | Weather Station using DHT Sensor with Raspberry Pi and ThingSpeak Platform/Weather Station - ThingSpeak - Raspberry Pi.py | MeqdadDev/ai-robotics-cv-iot-mini-projects | 0c591bc495c95aa95d436e51f38e55bf510349ac | [
"MIT"
] | null | null | null | Weather Station using DHT Sensor with Raspberry Pi and ThingSpeak Platform/Weather Station - ThingSpeak - Raspberry Pi.py | MeqdadDev/ai-robotics-cv-iot-mini-projects | 0c591bc495c95aa95d436e51f38e55bf510349ac | [
"MIT"
] | null | null | null | Weather Station using DHT Sensor with Raspberry Pi and ThingSpeak Platform/Weather Station - ThingSpeak - Raspberry Pi.py | MeqdadDev/ai-robotics-cv-iot-mini-projects | 0c591bc495c95aa95d436e51f38e55bf510349ac | [
"MIT"
] | 1 | 2022-03-29T07:41:23.000Z | 2022-03-29T07:41:23.000Z | '''
IoT Mini Project
Weather Station using DHT Sensor and Raspberry Pi with ThingSpeak Platform
Code Sample: Interfacing DHT22 with Raspberry Pi and sending the data to an IoT Platform (ThingSpeak Platform)
'''
from time import sleep
# import Adafruit_DHT # Not supported library
import adafruit_dht
from board import *... | 29.84 | 110 | 0.690349 |
128e873ecfed93a46701bf97c5bfb7c6ee49fa55 | 931 | py | Python | Demo2_PageObjectModel/features/steps/PageObject_Registration.py | imademethink/imademethink_python_selenium_demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 2 | 2019-04-05T05:09:14.000Z | 2020-07-21T16:06:53.000Z | Demo2_PageObjectModel/features/steps/PageObject_Registration.py | imademethink/Python_Selenium_Demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 1 | 2020-01-08T08:15:42.000Z | 2020-01-08T08:15:42.000Z | Demo2_PageObjectModel/features/steps/PageObject_Registration.py | imademethink/Python_Selenium_Demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 4 | 2018-04-13T08:28:53.000Z | 2018-12-30T20:35:19.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import time
from page_objects import PageObject, PageElement
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.common.by import By
delay_mi... | 35.807692 | 128 | 0.784103 |
128eba5345a78af068fb819342cfe180d8d296fd | 53 | py | Python | Tests/TestData/HOSimulation/HOTrialWavefunction/config.py | McCoyGroup/RynLib | 8d7e119ebbd3da4c8b0efb49facba9ff1cbaa09d | [
"MIT"
] | 1 | 2019-05-04T00:34:11.000Z | 2019-05-04T00:34:11.000Z | Tests/TestData/HOSimulation/HOTrialWavefunction/config.py | McCoyGroup/RynLib | 8d7e119ebbd3da4c8b0efb49facba9ff1cbaa09d | [
"MIT"
] | null | null | null | Tests/TestData/HOSimulation/HOTrialWavefunction/config.py | McCoyGroup/RynLib | 8d7e119ebbd3da4c8b0efb49facba9ff1cbaa09d | [
"MIT"
] | 1 | 2020-03-04T22:47:09.000Z | 2020-03-04T22:47:09.000Z |
config = dict(
module="HOTrialWavefunction.py"
) | 13.25 | 35 | 0.698113 |
128f728bec79cfe03c54bf8f06695117449e7c5a | 5,771 | py | Python | python/ucloud/import_data.py | oldthreefeng/miscellany | 8d3c7a14b53929d752c7356c85ae6681000cd526 | [
"MIT"
] | 1 | 2019-01-04T07:44:08.000Z | 2019-01-04T07:44:08.000Z | python/ucloud/import_data.py | oldthreefeng/miscellany | 8d3c7a14b53929d752c7356c85ae6681000cd526 | [
"MIT"
] | null | null | null | python/ucloud/import_data.py | oldthreefeng/miscellany | 8d3c7a14b53929d752c7356c85ae6681000cd526 | [
"MIT"
] | 2 | 2018-12-10T12:55:38.000Z | 2019-01-04T07:43:55.000Z | #!/usr/bin/python2
import sys
import os
import redis
import time
import datetime
string_keys = []
hash_keys = []
list_keys = []
set_keys = []
zset_keys = []
if __name__ == '__main__':
config = {
"source": ['10.4.1.91:0', '10.4.13.124:0', '10.4.12.16:0', '10.4.2.250:0'],
"dest": ['127.0.0.1... | 30.21466 | 83 | 0.562468 |
128ffa30d0305f7d87c64ef11d99dcfb6d3e311f | 5,990 | py | Python | kinlin/core/strategy.py | the-lay/kinlin | ce7c95d46d130049e356104ba77fad51bc59fb3f | [
"MIT"
] | null | null | null | kinlin/core/strategy.py | the-lay/kinlin | ce7c95d46d130049e356104ba77fad51bc59fb3f | [
"MIT"
] | null | null | null | kinlin/core/strategy.py | the-lay/kinlin | ce7c95d46d130049e356104ba77fad51bc59fb3f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
from enum import Enum
from typing import List, Callable, Any
from tqdm import tqdm
from .model import Model
from .dataset import Dataset
from .experiment import Experiment
from .callback import Callback
| 40.748299 | 119 | 0.645576 |
1290da62e7e73de3c4c75ef861a9d5a9bcbe1f4b | 2,924 | py | Python | tests/test_utils.py | jamesmcclain/pystac | 993b54f5a10b0d55db18dbda81c5ad7acc06d921 | [
"Apache-2.0"
] | 1 | 2018-08-04T05:24:58.000Z | 2018-08-04T05:24:58.000Z | tests/test_utils.py | jamesmcclain/pystac | 993b54f5a10b0d55db18dbda81c5ad7acc06d921 | [
"Apache-2.0"
] | 4 | 2017-12-11T22:15:44.000Z | 2018-06-15T15:20:34.000Z | tests/test_utils.py | jamesmcclain/pystac | 993b54f5a10b0d55db18dbda81c5ad7acc06d921 | [
"Apache-2.0"
] | 5 | 2018-06-15T14:51:50.000Z | 2019-08-22T05:33:55.000Z | import unittest
from pystac.utils import (make_relative_href, make_absolute_href,
is_absolute_href)
| 46.412698 | 77 | 0.548906 |
1290db3be5d147e6281013adc1419767bcf94d89 | 1,322 | py | Python | services/web/manage.py | EMBEDDIA/ULR_NER_REST | 520accbced155a43543969f8a0a96a02c0b2d46d | [
"MIT"
] | null | null | null | services/web/manage.py | EMBEDDIA/ULR_NER_REST | 520accbced155a43543969f8a0a96a02c0b2d46d | [
"MIT"
] | 3 | 2020-04-24T11:38:40.000Z | 2021-12-03T09:01:17.000Z | services/web/manage.py | EMBEDDIA/ULR_NER_REST | 520accbced155a43543969f8a0a96a02c0b2d46d | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Michael Herman
# Copyright (c) 2020 Vid Podpean
# 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,... | 45.586207 | 96 | 0.781392 |
12916103d8a5f146e7baa8906defb115aac95a11 | 5,737 | py | Python | GUI/PopUps/ExportPopUp.py | iagerogiannis/Image_to_plot | 15c01c50dcd23dfd187069145b3f2fdc06ed73a9 | [
"BSD-3-Clause"
] | null | null | null | GUI/PopUps/ExportPopUp.py | iagerogiannis/Image_to_plot | 15c01c50dcd23dfd187069145b3f2fdc06ed73a9 | [
"BSD-3-Clause"
] | null | null | null | GUI/PopUps/ExportPopUp.py | iagerogiannis/Image_to_plot | 15c01c50dcd23dfd187069145b3f2fdc06ed73a9 | [
"BSD-3-Clause"
] | null | null | null | from PyQt5.QtWidgets import QDialog, QPushButton, QVBoxLayout, QComboBox, QGroupBox, QCheckBox, QGridLayout, QMessageBox, QRadioButton
from GUI.CustomWidgets.PathFileLineEdit import PathFileLineEdit
from GUI.CustomWidgets.InputField import InputField
| 40.401408 | 134 | 0.656092 |
1291ab8aed0db6cb7b1e8e05e5e25b1e6da39aea | 7,993 | py | Python | cwltool/update.py | PlatformedTasks/PLAS-cwl-tes | 5e66a5f9309906d1e8caa0f7148b8517a17f840d | [
"Apache-2.0"
] | null | null | null | cwltool/update.py | PlatformedTasks/PLAS-cwl-tes | 5e66a5f9309906d1e8caa0f7148b8517a17f840d | [
"Apache-2.0"
] | null | null | null | cwltool/update.py | PlatformedTasks/PLAS-cwl-tes | 5e66a5f9309906d1e8caa0f7148b8517a17f840d | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import copy
import re
from typing import (Any, Callable, Dict, List, MutableMapping, MutableSequence,
Optional, Tuple, Union)
from functools import partial
from ruamel.yaml.comments import CommentedMap, CommentedSeq
from schema_salad import validate
from sch... | 39.181373 | 116 | 0.600025 |
129258b78096fc56ca7d44ecd92404b8c97448a2 | 2,072 | py | Python | plottify/plottify.py | neutrinoceros/plottify | 21f4858dabe1228559a8beb385f134ccfb25321e | [
"MIT"
] | null | null | null | plottify/plottify.py | neutrinoceros/plottify | 21f4858dabe1228559a8beb385f134ccfb25321e | [
"MIT"
] | null | null | null | plottify/plottify.py | neutrinoceros/plottify | 21f4858dabe1228559a8beb385f134ccfb25321e | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from matplotlib import collections
from matplotlib.lines import Line2D
if __name__ == "__main__":
import numpy as np
from plottify import autosize
import matplotlib.pyplot as plt
n = 100
x = np.random.uniform(low=-5, high=5, size=n)
y = x + np.random.normal(sca... | 26.227848 | 87 | 0.598456 |
12928ccd7dc4a56b7be40e6eb4668aed89dd266b | 8,546 | py | Python | ocular_algorithm/0x04_BasicRecurrenceAndRecursion.py | DistinctWind/ManimProjects | 6318643afcc24574cbd9a0a45ff0d913d4711b13 | [
"MIT"
] | 2 | 2020-03-15T01:27:09.000Z | 2020-03-20T02:08:09.000Z | ocular_algorithm/0x04_BasicRecurrenceAndRecursion.py | DistinctWind/ManimProjects | 6318643afcc24574cbd9a0a45ff0d913d4711b13 | [
"MIT"
] | null | null | null | ocular_algorithm/0x04_BasicRecurrenceAndRecursion.py | DistinctWind/ManimProjects | 6318643afcc24574cbd9a0a45ff0d913d4711b13 | [
"MIT"
] | null | null | null | from re import S
from manimlib import *
import sys
import os
from tqdm.std import tqdm
sys.path.append(os.getcwd())
from utils.imports import *
| 32.371212 | 121 | 0.589165 |
1292ffb60fd870f5e14b52506ec687c6761bed39 | 299 | py | Python | utility.py | Ming-desu/POKEMING | 2def3b47e7c08b71885f14944bffe105a63cc12a | [
"MIT"
] | null | null | null | utility.py | Ming-desu/POKEMING | 2def3b47e7c08b71885f14944bffe105a63cc12a | [
"MIT"
] | null | null | null | utility.py | Ming-desu/POKEMING | 2def3b47e7c08b71885f14944bffe105a63cc12a | [
"MIT"
] | null | null | null | # POKEMING - GON'NA CATCH 'EM ALL
# -- A simple hack 'n slash game in console
# -- This class is handles all utility related things
| 37.375 | 55 | 0.665552 |
12932a6f23a6e9331d41a53f62dfc3d9f6482d92 | 2,057 | py | Python | gpv2/data/lessons/mil.py | michalsr/gpv2 | 00a22b311dbaeefb04e1df676eb6ae3373d8d4b5 | [
"Apache-2.0"
] | null | null | null | gpv2/data/lessons/mil.py | michalsr/gpv2 | 00a22b311dbaeefb04e1df676eb6ae3373d8d4b5 | [
"Apache-2.0"
] | null | null | null | gpv2/data/lessons/mil.py | michalsr/gpv2 | 00a22b311dbaeefb04e1df676eb6ae3373d8d4b5 | [
"Apache-2.0"
] | null | null | null | import logging
import sys
from typing import Union, Optional, Dict, Any, List
from dataclasses import dataclass, replace
from exp.ours import file_paths
from exp.ours.boosting import MaskSpec
from exp.ours.data.dataset import Dataset, Task
from exp.ours.data.gpv_example import GPVExample
from exp.ours.models.model im... | 21.206186 | 76 | 0.701507 |
12932d615b9cdc4848ccdf491cf3ec6f30e667d0 | 6,968 | py | Python | creel_portal/api/filters/FN024_Filter.py | AdamCottrill/CreelPortal | 5ec867c4f11b4231c112e8209116b6b96c2830ec | [
"MIT"
] | null | null | null | creel_portal/api/filters/FN024_Filter.py | AdamCottrill/CreelPortal | 5ec867c4f11b4231c112e8209116b6b96c2830ec | [
"MIT"
] | null | null | null | creel_portal/api/filters/FN024_Filter.py | AdamCottrill/CreelPortal | 5ec867c4f11b4231c112e8209116b6b96c2830ec | [
"MIT"
] | null | null | null | import django_filters
from ...models import FN024
from .filter_utils import NumberInFilter, ValueInFilter
| 33.180952 | 87 | 0.695896 |
1295c606d9e77831f602309b8cf0e51374c22061 | 7,148 | py | Python | modules/utils.py | PaulLerner/deep_parkinson_handwriting | 806f34eaa6c5dde2a8230a07615c69e0873c0535 | [
"MIT"
] | 2 | 2021-01-19T02:47:32.000Z | 2021-05-20T08:29:36.000Z | modules/utils.py | PaulLerner/deep_parkinson_handwriting | 806f34eaa6c5dde2a8230a07615c69e0873c0535 | [
"MIT"
] | null | null | null | modules/utils.py | PaulLerner/deep_parkinson_handwriting | 806f34eaa6c5dde2a8230a07615c69e0873c0535 | [
"MIT"
] | 2 | 2021-01-23T18:20:19.000Z | 2021-08-09T03:53:32.000Z | import numpy as np
from time import time
import matplotlib.pyplot as plt
measure2index={"y-coordinate":0,"x-coordinate":1,"timestamp":2, "button_status":3,"tilt":4, "elevation":5,"pressure":6}
index2measure=list(measure2index.keys())
task2index={"spiral":0,"l":1,"le":2 ,"les":3,"lektorka" :4,"porovnat":5,"nepopadnout... | 42.047059 | 133 | 0.663123 |
1296326732d0f3f0616b1b674348b31dbce55859 | 574 | py | Python | Mundo2/Desafio039.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | Mundo2/Desafio039.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | Mundo2/Desafio039.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | import datetime
datenasc = int(input(f'insert you date of bit '))
atualdate = str(datetime.date.today())[0:4]
datestr = int(atualdate)
datefinal = datestr - datenasc
print(datefinal)
if datefinal < 18:
print(f'voce esta com {datefinal}Faltam {18-datefinal} pra voc se alistar ao exercito hahahah' )
elif datefinal ==... | 41 | 101 | 0.728223 |
1296680de0a376242d8b5859461295d893d5f13c | 4,180 | py | Python | local_test/test_pullparser.py | rmoskal/e-springpad | d2c1dfbae63a29737d9cfdee571704b7a5e85bd5 | [
"MIT"
] | 1 | 2017-01-10T17:12:25.000Z | 2017-01-10T17:12:25.000Z | local_test/test_pullparser.py | rmoskal/e-springpad | d2c1dfbae63a29737d9cfdee571704b7a5e85bd5 | [
"MIT"
] | null | null | null | local_test/test_pullparser.py | rmoskal/e-springpad | d2c1dfbae63a29737d9cfdee571704b7a5e85bd5 | [
"MIT"
] | null | null | null | __author__ = 'rob'
import unittest
import logging
import evernotebookparser
from xml.etree import ElementTree
import re
| 32.403101 | 157 | 0.570335 |
1296f3adb86af7c4bde450922af6cd40c775ef6d | 6,872 | py | Python | test/test_sysroot_compiler.py | prajakta-gokhale/cross_compile | cbdc94ed5b25d6fc336aa5c0faa2838d9ce61db4 | [
"Apache-2.0"
] | null | null | null | test/test_sysroot_compiler.py | prajakta-gokhale/cross_compile | cbdc94ed5b25d6fc336aa5c0faa2838d9ce61db4 | [
"Apache-2.0"
] | null | null | null | test/test_sysroot_compiler.py | prajakta-gokhale/cross_compile | cbdc94ed5b25d6fc336aa5c0faa2838d9ce61db4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 37.551913 | 88 | 0.721478 |
1297e5fb738245835e074daab17948395423d0ba | 2,083 | py | Python | estimate.py | farr/galmassproxy | f4a1c7acc19d130a6f57030bceef03c993a7170c | [
"MIT"
] | null | null | null | estimate.py | farr/galmassproxy | f4a1c7acc19d130a6f57030bceef03c993a7170c | [
"MIT"
] | null | null | null | estimate.py | farr/galmassproxy | f4a1c7acc19d130a6f57030bceef03c993a7170c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
r"""estimate.py
Use to estimate masses based on observed proxy values (and associated
errors) from a pre-calibrated generative model for the mass-proxy
relationship. The estimates will be returned as samples (fair draws)
from the model's posterior on the mass given the proxy observation.
This p... | 30.632353 | 106 | 0.683629 |
129824738bfae0f0fbd02b667cf74972ac9ca42e | 143 | py | Python | scripts/python/printings.py | samk-ai/cmd-tools-course-materials | fa3615df7ae70bbc701661bdeef588cbbf17be97 | [
"MIT"
] | null | null | null | scripts/python/printings.py | samk-ai/cmd-tools-course-materials | fa3615df7ae70bbc701661bdeef588cbbf17be97 | [
"MIT"
] | null | null | null | scripts/python/printings.py | samk-ai/cmd-tools-course-materials | fa3615df7ae70bbc701661bdeef588cbbf17be97 | [
"MIT"
] | null | null | null | str1 = "Python"
str2 = "Python"
print("\nMemory location of str1 =", hex(id(str1)))
print("Memory location of str2 =", hex(id(str2)))
print() | 23.833333 | 51 | 0.657343 |
12990c8712d2523d8e2f0753d7b1faee0bbfa287 | 353 | py | Python | plots_lib/architecture_config.py | cmimprota/ASL-SIFT | e6e489e9cc06746e2ab8cd11193fc9fc0112e5df | [
"Zlib"
] | 1 | 2021-12-30T14:59:43.000Z | 2021-12-30T14:59:43.000Z | plots_lib/architecture_config.py | cmimprota/ASL-SIFT | e6e489e9cc06746e2ab8cd11193fc9fc0112e5df | [
"Zlib"
] | null | null | null | plots_lib/architecture_config.py | cmimprota/ASL-SIFT | e6e489e9cc06746e2ab8cd11193fc9fc0112e5df | [
"Zlib"
] | 1 | 2021-04-12T11:13:32.000Z | 2021-04-12T11:13:32.000Z | config = dict()
config['fixed_cpu_frequency'] = "@ 3700 MHz"
config['frequency'] = 3.7e9
config['maxflops_sisd'] = 2
config['maxflops_sisd_fma'] = 4
config['maxflops_simd'] = 16
config['maxflops_simd_fma'] = 32
config['roofline_beta'] = 64 # According to WikiChip (Skylake)
config['figure_size'] = (20,9)
config... | 29.416667 | 69 | 0.691218 |
129b2012dab2f92bc6a116945f46ccc5481200f2 | 562 | py | Python | telemetry_f1_2021/generate_dataset.py | jasperan/f1-telemetry-oracle | 5b2d7efac265539931849863655a5f92d86c75a8 | [
"MIT"
] | 4 | 2022-02-21T16:36:09.000Z | 2022-03-28T06:50:54.000Z | telemetry_f1_2021/generate_dataset.py | jasperan/f1-telemetry-oracle | 5b2d7efac265539931849863655a5f92d86c75a8 | [
"MIT"
] | null | null | null | telemetry_f1_2021/generate_dataset.py | jasperan/f1-telemetry-oracle | 5b2d7efac265539931849863655a5f92d86c75a8 | [
"MIT"
] | 2 | 2022-02-17T19:25:04.000Z | 2022-02-23T04:16:16.000Z | import cx_Oracle
from oracledb import OracleJSONDatabaseConnection
import json
jsondb = OracleJSONDatabaseConnection()
connection = jsondb.get_connection()
connection.autocommit = True
soda = connection.getSodaDatabase()
x_collection = soda.createCollection('f1_2021_weather')
all_data = list()
for doc in x_collect... | 24.434783 | 55 | 0.765125 |
129b447d8e3a2e21029c717a45661b4dd2311adc | 8,257 | py | Python | UserPage.py | muath22/BookStore | db5b30e540de311931b234e71937ace3db9750c8 | [
"MIT"
] | 9 | 2018-09-13T10:43:34.000Z | 2021-05-05T08:51:52.000Z | UserPage.py | muath22/BookStore | db5b30e540de311931b234e71937ace3db9750c8 | [
"MIT"
] | 4 | 2018-09-13T10:09:32.000Z | 2021-03-20T00:03:10.000Z | UserPage.py | muath22/BookStore | db5b30e540de311931b234e71937ace3db9750c8 | [
"MIT"
] | 5 | 2020-02-26T13:54:03.000Z | 2021-01-06T09:38:56.000Z | from Tkinter import *
import ttk
import BuyBook
import BookInformationPage
import Message
| 32.128405 | 84 | 0.592588 |
129b4ea5990948782bef80ca4f25a0a104636e5b | 775 | py | Python | migrations/versions/1b57e397deea_initial_migration.py | sicness9/BugHub | 2af45b0840757f7826927d4fefc0e626fef136e1 | [
"FTL"
] | null | null | null | migrations/versions/1b57e397deea_initial_migration.py | sicness9/BugHub | 2af45b0840757f7826927d4fefc0e626fef136e1 | [
"FTL"
] | null | null | null | migrations/versions/1b57e397deea_initial_migration.py | sicness9/BugHub | 2af45b0840757f7826927d4fefc0e626fef136e1 | [
"FTL"
] | null | null | null | """initial migration
Revision ID: 1b57e397deea
Revises:
Create Date: 2021-12-20 20:57:14.696646
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1b57e397deea'
down_revision = None
branch_labels = None
depends_on = None
| 25 | 70 | 0.676129 |
129b54403eb231e9102fbf7abe8cda7f3996ce5b | 5,596 | py | Python | app/utility/base_planning_svc.py | scottctaylor12/caldera | 4e81aaaf0ed592232a0474dda36ea2fd505da0de | [
"Apache-2.0"
] | null | null | null | app/utility/base_planning_svc.py | scottctaylor12/caldera | 4e81aaaf0ed592232a0474dda36ea2fd505da0de | [
"Apache-2.0"
] | null | null | null | app/utility/base_planning_svc.py | scottctaylor12/caldera | 4e81aaaf0ed592232a0474dda36ea2fd505da0de | [
"Apache-2.0"
] | null | null | null | import copy
import itertools
import re
from base64 import b64decode
from app.utility.base_service import BaseService
from app.utility.rule import RuleSet
| 38.593103 | 103 | 0.606862 |
129c2cba3840cfd8f3de73d2239ee04d334e5bc9 | 215 | py | Python | pyclid/__init__.py | Kaundur/pyclid | c59865fed9120b76cba6e41a84653256ac3072ee | [
"MIT"
] | 2 | 2019-02-12T11:31:04.000Z | 2021-12-31T10:39:01.000Z | pyclid/__init__.py | Kaundur/pyclid | c59865fed9120b76cba6e41a84653256ac3072ee | [
"MIT"
] | null | null | null | pyclid/__init__.py | Kaundur/pyclid | c59865fed9120b76cba6e41a84653256ac3072ee | [
"MIT"
] | null | null | null | import math
from pyclid.vector import *
from pyclid.matrix import *
from pyclid.quaternion import *
#from pyclid.vector import vector
#from pyclid.quaternion import quaternion
#from pyclid.matrix import matrix
| 16.538462 | 41 | 0.8 |
129c738a3288c017144786e45c751a99bdb4acea | 2,939 | py | Python | tools/gen_histograms.py | mistajuliax/pbrt-v3-IILE | afda605d92517d2396e494d81465ead22d0c25e1 | [
"BSD-2-Clause"
] | 16 | 2018-10-12T15:29:22.000Z | 2022-03-16T11:24:10.000Z | tools/gen_histograms.py | mistajuliax/pbrt-v3-IILE | afda605d92517d2396e494d81465ead22d0c25e1 | [
"BSD-2-Clause"
] | 16 | 2018-02-02T11:49:36.000Z | 2018-04-21T09:07:08.000Z | tools/gen_histograms.py | giuliojiang/pbrt-v3-IISPT | b9be01096293ab0f50b14b9043556c93ff9e07ec | [
"BSD-2-Clause"
] | 2 | 2018-12-12T08:49:43.000Z | 2019-12-03T12:20:04.000Z | import os
rootdir = os.path.abspath(os.path.join(__file__, "..", ".."))
mldir = os.path.join(rootdir, "ml")
import sys
sys.path.append(mldir)
import pfm
import iispt_transforms
import math
import plotly
import plotly.plotly as py
import plotly.graph_objs as go
# ====================================================... | 25.780702 | 79 | 0.555971 |
129ced52ad5bddf6d93136148de2d32cf2de02ec | 4,762 | py | Python | crownstone_uart/core/uart/UartBridge.py | RicArch97/crownstone-lib-python-uart | c0aaf1415936e5e622aa6395fdac4f88ebcf82bf | [
"MIT"
] | null | null | null | crownstone_uart/core/uart/UartBridge.py | RicArch97/crownstone-lib-python-uart | c0aaf1415936e5e622aa6395fdac4f88ebcf82bf | [
"MIT"
] | null | null | null | crownstone_uart/core/uart/UartBridge.py | RicArch97/crownstone-lib-python-uart | c0aaf1415936e5e622aa6395fdac4f88ebcf82bf | [
"MIT"
] | null | null | null | import logging
import sys
import threading
import serial
import serial.tools.list_ports
from crownstone_uart.Constants import UART_READ_TIMEOUT, UART_WRITE_TIMEOUT
from crownstone_uart.core.UartEventBus import UartEventBus
from crownstone_uart.core.uart.UartParser import UartParser
from crownstone_uart.core.uart.Uart... | 40.355932 | 144 | 0.640277 |
129d3359e74cfc680cc1a6d1b0edd803c1383270 | 20,753 | py | Python | data-batch-treatment/test_agg_script/locations.py | coder-baymax/taxi-poc-aws | 4be8021873ee6b58b2dba5a5d41df12cdd3b67fc | [
"MIT"
] | null | null | null | data-batch-treatment/test_agg_script/locations.py | coder-baymax/taxi-poc-aws | 4be8021873ee6b58b2dba5a5d41df12cdd3b67fc | [
"MIT"
] | null | null | null | data-batch-treatment/test_agg_script/locations.py | coder-baymax/taxi-poc-aws | 4be8021873ee6b58b2dba5a5d41df12cdd3b67fc | [
"MIT"
] | null | null | null |
Locations = [
Location(1, "EWR", "Newark Airport", 40.6895314, -74.1744624),
Location(2, "Queens", "Jamaica Bay", 40.6056632, -73.8713099),
Location(3, "Bronx", "Allerton/Pelham Gardens", 40.8627726, -73.84343919999999),
Location(4, "Manhattan", "Alphabet City", 40.7258428, -73.9774916),
Location(... | 72.562937 | 112 | 0.679131 |
129d53076c9002e63bb6e233e94f66b83a1c9e37 | 114 | py | Python | main.py | viniciuslimafernandes/interpolation | 1aff08cba6026143fd267a0c648bad8975ae5d74 | [
"MIT"
] | null | null | null | main.py | viniciuslimafernandes/interpolation | 1aff08cba6026143fd267a0c648bad8975ae5d74 | [
"MIT"
] | null | null | null | main.py | viniciuslimafernandes/interpolation | 1aff08cba6026143fd267a0c648bad8975ae5d74 | [
"MIT"
] | null | null | null | import math
from utils import *
main() | 12.666667 | 25 | 0.701754 |
129e3285af4caf68d1f91b717a406d9814f4383d | 222 | py | Python | tests/helper.py | blehers/PyViCare | e74b854afe6678f30c05bdef5e642ab66d1c0b6a | [
"Apache-2.0"
] | null | null | null | tests/helper.py | blehers/PyViCare | e74b854afe6678f30c05bdef5e642ab66d1c0b6a | [
"Apache-2.0"
] | null | null | null | tests/helper.py | blehers/PyViCare | e74b854afe6678f30c05bdef5e642ab66d1c0b6a | [
"Apache-2.0"
] | null | null | null | import os
import simplejson as json
| 24.666667 | 69 | 0.72973 |
129f44f6dc7578a9b45f3abd7e3b50f1fe3a4274 | 1,999 | py | Python | examples/client-example.py | pkalemba/python-warp10client | 25a9b446a217066a7d6c39aeb7d19d1be93a7688 | [
"BSD-3-Clause"
] | 8 | 2017-11-20T13:31:58.000Z | 2021-07-13T08:34:52.000Z | examples/client-example.py | pkalemba/python-warp10client | 25a9b446a217066a7d6c39aeb7d19d1be93a7688 | [
"BSD-3-Clause"
] | 2 | 2017-11-20T21:16:16.000Z | 2017-12-11T13:56:44.000Z | examples/client-example.py | regel/python-warp10client | bee380513d899ae7c55a26e43a8914f8c29b5279 | [
"BSD-3-Clause"
] | 4 | 2017-11-21T07:51:01.000Z | 2020-04-07T12:03:23.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import daiquiri
from time import time
import warp10client
LOG = daiquiri.getLogger(__name__)
warp10_api_url = '' # Add here backend url where metrics are stored
read_token = '' # Add here your metrics read token
write_token = '' # Add here your metrics write token
#... | 24.9875 | 79 | 0.64032 |
12a0170295fb80e383d69995765e135510da8362 | 3,094 | py | Python | ports/stm32/boards/NUCLEO_WB55/rfcore_makefirmware.py | H-Grobben/micropython | fce96b11f3ff444c1ac24501db465dbe9e5902bf | [
"MIT"
] | null | null | null | ports/stm32/boards/NUCLEO_WB55/rfcore_makefirmware.py | H-Grobben/micropython | fce96b11f3ff444c1ac24501db465dbe9e5902bf | [
"MIT"
] | null | null | null | ports/stm32/boards/NUCLEO_WB55/rfcore_makefirmware.py | H-Grobben/micropython | fce96b11f3ff444c1ac24501db465dbe9e5902bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# This file is part of the MicroPython project, http://micropython.org/
#
# The MIT License (MIT)
#
# Copyright (c) 2020 Jim Mussared
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
... | 38.675 | 184 | 0.671946 |
12a080db56a168dea64d817c232a427dfdd87858 | 1,081 | py | Python | universal/spiders/universalSpider.py | universalscraper/universal-spider | 0b6d82ee0c749cf32dcf501e6d84f518ee2e8437 | [
"MIT"
] | 2 | 2017-01-14T20:09:24.000Z | 2019-09-23T09:26:23.000Z | universal/spiders/universalSpider.py | scraperize/universal-spider | 0b6d82ee0c749cf32dcf501e6d84f518ee2e8437 | [
"MIT"
] | null | null | null | universal/spiders/universalSpider.py | scraperize/universal-spider | 0b6d82ee0c749cf32dcf501e6d84f518ee2e8437 | [
"MIT"
] | null | null | null | import scrapy
import yaml
| 29.216216 | 130 | 0.60592 |
12a0f3a1d45fe59fa067cf5c06c3bffbb58f6bd1 | 11,715 | py | Python | environments/IPP_BO_Ypacarai.py | FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs | 23b9b181499a4b06f2ca2951c002359c1959e727 | [
"MIT"
] | null | null | null | environments/IPP_BO_Ypacarai.py | FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs | 23b9b181499a4b06f2ca2951c002359c1959e727 | [
"MIT"
] | null | null | null | environments/IPP_BO_Ypacarai.py | FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs | 23b9b181499a4b06f2ca2951c002359c1959e727 | [
"MIT"
] | null | null | null | import warnings
import gym
import matplotlib.pyplot as plt
import numpy as np
from skopt.acquisition import gaussian_ei
from environments.groundtruthgenerator import GroundTruth
warnings.simplefilter("ignore", UserWarning)
from skopt.learning.gaussian_process import gpr, kernels
if __name__ == "__main__":
"... | 38.284314 | 120 | 0.626376 |
12a151b9a4e765ed24ceecf3aa9bec0771ac3589 | 5,281 | py | Python | utils/metrics.py | 0b3d/Image-Map-Embeddings | a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f | [
"MIT"
] | 2 | 2022-02-11T06:05:35.000Z | 2022-03-14T02:10:31.000Z | utils/metrics.py | 0b3d/Image-Map-Embeddings | a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f | [
"MIT"
] | null | null | null | utils/metrics.py | 0b3d/Image-Map-Embeddings | a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.metrics import pairwise_distances
import matplotlib.pyplot as plt
| 51.271845 | 166 | 0.667487 |
12a1ccdc2c994161fe55e1738031ece8631b2305 | 693 | py | Python | tests/bugs/test-200908181430.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 123 | 2015-01-12T06:43:22.000Z | 2022-03-20T18:06:46.000Z | tests/bugs/test-200908181430.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 103 | 2015-01-08T18:35:57.000Z | 2022-01-18T01:44:14.000Z | tests/bugs/test-200908181430.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 54 | 2015-02-15T17:12:00.000Z | 2022-03-07T23:02:32.000Z | # -*- coding: utf-8 -*-
import logging
if __name__ == '__main__':
logging.basicConfig()
_log = logging.getLogger(__name__)
import pyxb.binding.generate
import pyxb.binding.datatypes as xs
import pyxb.binding.basis
import pyxb.utils.domutils
import os.path
xsd='''<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xm... | 25.666667 | 108 | 0.735931 |
12a26d1b84cfd62fa98cec13a5aa4a115ddadb78 | 779 | py | Python | bin/print_data_structure.py | JohanComparat/pyEmerge | 9b5bfa01959d48ea41221609b8f375f27e3e39ff | [
"Unlicense"
] | null | null | null | bin/print_data_structure.py | JohanComparat/pyEmerge | 9b5bfa01959d48ea41221609b8f375f27e3e39ff | [
"Unlicense"
] | null | null | null | bin/print_data_structure.py | JohanComparat/pyEmerge | 9b5bfa01959d48ea41221609b8f375f27e3e39ff | [
"Unlicense"
] | null | null | null | import sys
ii = int(sys.argv[1])
env = sys.argv[2]
# python3 print_data_structure.py 22 MD10
import glob
import os
import numpy as n
import EmergeIterate
iterate = EmergeIterate.EmergeIterate(ii, env)
iterate.open_snapshots()
print_data_structure(iterate.f0)
| 23.606061 | 55 | 0.56611 |
12a383eaf645019cefa1dc9f3842290ed2752e23 | 1,999 | py | Python | setup.py | ljdursi/mergevcf | b400385936417c6e517d3c7daec8b9ca6389c51f | [
"MIT"
] | 25 | 2015-06-22T15:30:32.000Z | 2021-05-13T14:59:18.000Z | setup.py | ljdursi/mergevcf | b400385936417c6e517d3c7daec8b9ca6389c51f | [
"MIT"
] | 7 | 2015-08-14T11:20:35.000Z | 2021-05-18T17:48:38.000Z | setup.py | ljdursi/mergevcf | b400385936417c6e517d3c7daec8b9ca6389c51f | [
"MIT"
] | 6 | 2017-04-17T18:35:43.000Z | 2018-05-15T21:47:13.000Z | # based on https://github.com/pypa/sampleproject
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_descript... | 26.653333 | 85 | 0.617309 |
12a4188c00b7c8a1abdb2f2f512a6ed7085ea497 | 1,291 | py | Python | tests/test_coders.py | GlobalFishingWatch/pipe-tools | 34dff591997bb2c25e018df86d13a9d42972032b | [
"Apache-2.0"
] | 1 | 2018-05-26T20:10:51.000Z | 2018-05-26T20:10:51.000Z | tests/test_coders.py | GlobalFishingWatch/pipe-tools | 34dff591997bb2c25e018df86d13a9d42972032b | [
"Apache-2.0"
] | 37 | 2017-10-22T12:00:59.000Z | 2022-02-08T19:17:58.000Z | tests/test_coders.py | GlobalFishingWatch/pipe-tools | 34dff591997bb2c25e018df86d13a9d42972032b | [
"Apache-2.0"
] | null | null | null | import pytest
import six
import ujson
import apache_beam as beam
from apache_beam.testing.test_pipeline import TestPipeline as _TestPipeline
from apache_beam.testing.util import assert_that
from apache_beam.testing.util import equal_to
from apache_beam.coders import typecoders
from apache_beam.typehints import Dict, U... | 26.346939 | 118 | 0.676995 |
12a668f147490b052289202d9372f523023dc419 | 3,820 | py | Python | yeti/core/model/stix/sro.py | yeti-platform/TibetanBrownBear | 8ab520bd199a63e404b3a6a5b49a29f277384e8e | [
"Apache-2.0"
] | 9 | 2018-01-15T22:44:24.000Z | 2021-05-28T11:13:03.000Z | yeti/core/model/stix/sro.py | yeti-platform/TibetanBrownBear | 8ab520bd199a63e404b3a6a5b49a29f277384e8e | [
"Apache-2.0"
] | 140 | 2018-01-12T10:07:47.000Z | 2021-08-02T23:03:49.000Z | yeti/core/model/stix/sro.py | yeti-platform/TibetanBrownBear | 8ab520bd199a63e404b3a6a5b49a29f277384e8e | [
"Apache-2.0"
] | 11 | 2018-01-16T19:49:35.000Z | 2022-01-18T16:30:34.000Z | """Detail Yeti's Entity object structure."""
import json
from yeti.core.errors import ValidationError
from .base import StixObject
| 28.296296 | 80 | 0.606545 |
12a754908091d00ea075e8ffe5d6a23ed6d1b3e0 | 4,761 | py | Python | netforce_mfg/netforce_mfg/models/barcode_qc.py | nfco/netforce | 35252eecd0a6633ab9d82162e9e3ff57d4da029a | [
"MIT"
] | 27 | 2015-09-30T23:53:30.000Z | 2021-06-07T04:56:25.000Z | netforce_mfg/netforce_mfg/models/barcode_qc.py | nfco/netforce | 35252eecd0a6633ab9d82162e9e3ff57d4da029a | [
"MIT"
] | 191 | 2015-10-08T11:46:30.000Z | 2019-11-14T02:24:36.000Z | netforce_mfg/netforce_mfg/models/barcode_qc.py | nfco/netforce | 35252eecd0a6633ab9d82162e9e3ff57d4da029a | [
"MIT"
] | 32 | 2015-10-01T03:59:43.000Z | 2022-01-13T07:31:05.000Z | # Copyright (c) 2012-2015 Netforce Co. Ltd.
#
# 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, merge, publ... | 40.008403 | 122 | 0.603025 |
12a82679ea427e2384e89df55cbadd443f41af9e | 4,739 | py | Python | src/data/domain.py | AlexMoreo/pydci | 44f8fe1ce95da45709061cbe19fa6f462c1f2164 | [
"BSD-3-Clause"
] | 7 | 2018-10-21T17:34:08.000Z | 2021-05-17T11:37:56.000Z | src/data/domain.py | AlexMoreo/pydci | 44f8fe1ce95da45709061cbe19fa6f462c1f2164 | [
"BSD-3-Clause"
] | null | null | null | src/data/domain.py | AlexMoreo/pydci | 44f8fe1ce95da45709061cbe19fa6f462c1f2164 | [
"BSD-3-Clause"
] | 4 | 2018-11-22T10:30:07.000Z | 2021-03-20T10:07:57.000Z | import pickle
from scipy.sparse import lil_matrix
import numpy as np
def _preproc(analyzer, str):
return analyzer(str)[0] if analyzer(str) else 'null__'
def pack_domains(source, target, pivots_source, pivots_target):
dX = {source.name(): source.X, target.name(): target.X}
dU = {source.name(): source.U... | 34.845588 | 130 | 0.650559 |
12a832b1e6427f5514100a7f00be3d2042f2ed0f | 207 | py | Python | LeetCode_1304.py | xulu199705/LeetCode | 9a654a10117a93f9ad9728d6b86eb3713185545e | [
"MIT"
] | null | null | null | LeetCode_1304.py | xulu199705/LeetCode | 9a654a10117a93f9ad9728d6b86eb3713185545e | [
"MIT"
] | null | null | null | LeetCode_1304.py | xulu199705/LeetCode | 9a654a10117a93f9ad9728d6b86eb3713185545e | [
"MIT"
] | null | null | null | from typing import List
| 18.818182 | 51 | 0.492754 |
12a8abd596e75426da116460419af8dc9c55b01d | 1,506 | py | Python | models/universal_sentence_encoder_multilingual_qa/v1/utils.py | rhangelxs/russian_embeddings | 64821cdff03ff97752b6c80621bedf9e2227a0ba | [
"MIT"
] | null | null | null | models/universal_sentence_encoder_multilingual_qa/v1/utils.py | rhangelxs/russian_embeddings | 64821cdff03ff97752b6c80621bedf9e2227a0ba | [
"MIT"
] | 5 | 2020-09-26T00:18:44.000Z | 2022-02-10T00:22:42.000Z | models/universal_sentence_encoder_multilingual_qa/v1/utils.py | rhangelxs/russian_embeddings | 64821cdff03ff97752b6c80621bedf9e2227a0ba | [
"MIT"
] | null | null | null | import numpy
import tensorflow as tf
import tensorflow_hub as hub
import tf_sentencepiece
| 36.731707 | 109 | 0.592961 |
12a970b715888d87283271740bd7a109a0ea7f3e | 921 | py | Python | jade/extensions/demo/create_merge_pred_gdp.py | jgu2/jade | e643830be89a7df74a82065400b2e82f6b181ec8 | [
"BSD-3-Clause"
] | 15 | 2021-05-15T21:58:26.000Z | 2022-03-17T08:26:48.000Z | jade/extensions/demo/create_merge_pred_gdp.py | jgu2/jade | e643830be89a7df74a82065400b2e82f6b181ec8 | [
"BSD-3-Clause"
] | 22 | 2021-02-04T20:02:33.000Z | 2021-09-14T13:29:30.000Z | jade/extensions/demo/create_merge_pred_gdp.py | jgu2/jade | e643830be89a7df74a82065400b2e82f6b181ec8 | [
"BSD-3-Clause"
] | 3 | 2021-01-11T15:11:31.000Z | 2021-06-07T17:36:51.000Z | #!/usr/bin/env python
"""Creates the JADE configuration for stage 2 of the demo pipeline."""
import os
import sys
from jade.models import PipelineConfig
from jade.utils.subprocess_manager import run_command
from jade.utils.utils import load_data
PRED_GDP_COMMANDS_FILE = "pred_gdp_commands.txt"
if __name__ == "__... | 27.909091 | 81 | 0.733985 |
12aa4d4698103b11546cfe0e6f724650c7f1a730 | 3,165 | py | Python | hamal/hamal/conf/identity.py | JackDan9/hamal | 965be9db066209300c52f0cf17d251290d8901b7 | [
"MIT"
] | 3 | 2020-06-12T13:03:46.000Z | 2020-08-06T11:25:46.000Z | hamal/hamal/conf/identity.py | JackDan9/hamal | 965be9db066209300c52f0cf17d251290d8901b7 | [
"MIT"
] | null | null | null | hamal/hamal/conf/identity.py | JackDan9/hamal | 965be9db066209300c52f0cf17d251290d8901b7 | [
"MIT"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 30.728155 | 77 | 0.749447 |
12aab253143e67156c54f44e65c0b36caa2ab283 | 2,631 | py | Python | fact/time.py | mackaiver/slowREST | 8ae07d8657164abe83f071216b6e9d00a57ae705 | [
"MIT"
] | 1 | 2015-03-03T08:07:52.000Z | 2015-03-03T08:07:52.000Z | fact/time.py | mackaiver/slowREST | 8ae07d8657164abe83f071216b6e9d00a57ae705 | [
"MIT"
] | null | null | null | fact/time.py | mackaiver/slowREST | 8ae07d8657164abe83f071216b6e9d00a57ae705 | [
"MIT"
] | null | null | null | from __future__ import print_function
__author__ = 'dneise, mnoethe'
""" This file contains some functions to deal with FACT modified modified julian date
The time used most of the time in FACT is the number of days since 01.01.1970
So this time is related to unix time, since it has the same offset
(unix time is th... | 28.912088 | 85 | 0.708476 |
12aabf7a6ed3903e5b3fb7b076bf621fe0068180 | 1,318 | py | Python | nipype/interfaces/ants/tests/test_auto_ImageMath.py | TRO-HIT/nipype | c453eac5d7efdd4e19a9bcc8a7f3d800026cc125 | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/ants/tests/test_auto_ImageMath.py | TRO-HIT/nipype | c453eac5d7efdd4e19a9bcc8a7f3d800026cc125 | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/ants/tests/test_auto_ImageMath.py | TRO-HIT/nipype | c453eac5d7efdd4e19a9bcc8a7f3d800026cc125 | [
"Apache-2.0"
] | 1 | 2020-12-16T16:36:48.000Z | 2020-12-16T16:36:48.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..utils import ImageMath
| 34.684211 | 77 | 0.618361 |
12b0b747a8e429f2bfcdc96202c017eb8b47dbba | 72,049 | py | Python | tests/chainerx_tests/unit_tests/routines_tests/test_math.py | tkerola/chainer | 572f6eef2c3f1470911ac08332c2b5c3440edf44 | [
"MIT"
] | null | null | null | tests/chainerx_tests/unit_tests/routines_tests/test_math.py | tkerola/chainer | 572f6eef2c3f1470911ac08332c2b5c3440edf44 | [
"MIT"
] | null | null | null | tests/chainerx_tests/unit_tests/routines_tests/test_math.py | tkerola/chainer | 572f6eef2c3f1470911ac08332c2b5c3440edf44 | [
"MIT"
] | null | null | null | import chainer
import numpy
import pytest
import chainerx
import chainerx.testing
from chainerx_tests import array_utils
from chainerx_tests import dtype_utils
from chainerx_tests import math_utils
from chainerx_tests import op_utils
_in_out_dtypes_arithmetic_invalid = [
(('bool_', 'bool_'), 'bool_'),
(('bo... | 32.914116 | 79 | 0.579106 |
12b0f94ae97150323ed0af8a6fe2aba3cc7d3f40 | 445 | py | Python | 7.py | flpcan/project_euler | 2cabb0a51c70b0b6e145328f3e3c55de41ac2854 | [
"CC0-1.0"
] | null | null | null | 7.py | flpcan/project_euler | 2cabb0a51c70b0b6e145328f3e3c55de41ac2854 | [
"CC0-1.0"
] | null | null | null | 7.py | flpcan/project_euler | 2cabb0a51c70b0b6e145328f3e3c55de41ac2854 | [
"CC0-1.0"
] | null | null | null |
# By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
#
# What is the 10 001st prime number?
primes = []
for i in range(2, 100):
if len(primes) == 10001:
break
x = list(map(lambda y: i % y == 0, range(2,i)))
if sum(x) == False:
primes.a... | 18.541667 | 102 | 0.546067 |
12b14a676fba1294e88631fcf085323cedbf845c | 5,707 | py | Python | src/plot_scripts/plot_sigcomm_bars_cellular.py | zxxia/RL-CC | d3d3be0097d69ee07b06363ad531cf2479029d74 | [
"Apache-2.0"
] | null | null | null | src/plot_scripts/plot_sigcomm_bars_cellular.py | zxxia/RL-CC | d3d3be0097d69ee07b06363ad531cf2479029d74 | [
"Apache-2.0"
] | null | null | null | src/plot_scripts/plot_sigcomm_bars_cellular.py | zxxia/RL-CC | d3d3be0097d69ee07b06363ad531cf2479029d74 | [
"Apache-2.0"
] | null | null | null | import os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
SAVE_ROOT = '../../figs_sigcomm22'
plt.style.use('seaborn-deep')
plt.rcParams['font.family'] = 'Arial'
# plt.rcParams['font.size'] = 42
# plt.rcParams['axes.labelsize'] = 42
# plt.rcParams['legend.fontsize'] = 42
# plt.rcParams['figure... | 41.963235 | 118 | 0.65884 |
12b1527e01e27cdb3f79857b70a9797275320e0e | 1,372 | py | Python | spacy/lang/th/__init__.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 1 | 2019-05-17T02:43:33.000Z | 2019-05-17T02:43:33.000Z | spacy/lang/th/__init__.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 49 | 2021-10-01T10:15:30.000Z | 2021-12-27T14:36:05.000Z | spacy/lang/th/__init__.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 1 | 2019-10-01T08:27:20.000Z | 2019-10-01T08:27:20.000Z | from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
from ...language import Language, BaseDefaults
from ...tokens import Doc
from ...util import DummyTokenizer, registry, load_config_from_str
from ...vocab import Vocab
DEFAULT_CONFIG = """
[nlp]
[nlp.tokenizer]
@tokenizers = "spacy.th.ThaiTokenizer"
... | 24.945455 | 69 | 0.68586 |
12b18047e85021cd05074093d60424bfe744046f | 167 | py | Python | src/setup/__init__.py | ScottDay/DFN-Maintenance-GUI-Backend | bfb05c75747fa9c334224b99609baef7321860a4 | [
"MIT"
] | 2 | 2017-03-31T00:57:35.000Z | 2017-08-04T10:38:28.000Z | src/setup/__init__.py | CPedersen3245/Desert-Fireball-Maintainence-GUI | bfb05c75747fa9c334224b99609baef7321860a4 | [
"MIT"
] | 10 | 2017-03-29T04:13:14.000Z | 2017-08-14T06:14:52.000Z | src/setup/__init__.py | ScottDay/DFN-Maintenance-GUI-Backend | bfb05c75747fa9c334224b99609baef7321860a4 | [
"MIT"
] | 4 | 2017-12-23T03:16:00.000Z | 2018-06-20T07:15:50.000Z | from .args import args
from .extensions import extensions
from .logger import logger
from .routes import routes
__all__ = ['args', 'extensions', 'logger', 'routes']
| 20.875 | 52 | 0.748503 |
12b22d55acd96929800d8872484a4576f43f6f08 | 6,223 | py | Python | cloudrunner_server/plugins/clouds/docker_host.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | 2 | 2016-03-31T08:45:29.000Z | 2021-04-28T15:18:45.000Z | cloudrunner_server/plugins/clouds/docker_host.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | cloudrunner_server/plugins/clouds/docker_host.py | ttrifonov/cloudrunner-server | 3b2426c8d9987e78425899010b534afc7734d8d4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# /*******************************************************
# * Copyright (C) 2013-2014 CloudRunner.io <info@cloudrunner.io>
# *
# * Proprietary and confidential
# * This file is part of CloudRunner Server.
# *
# * CloudRunner S... | 39.138365 | 78 | 0.472602 |
12b2fe22c669ef8f586778fb7af3dd29059295d7 | 4,702 | py | Python | scope/client_util/job_runner_check.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | 1 | 2017-11-10T17:23:11.000Z | 2017-11-10T17:23:11.000Z | scope/client_util/job_runner_check.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | 5 | 2018-08-01T03:05:35.000Z | 2018-11-29T22:11:25.000Z | scope/client_util/job_runner_check.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | 3 | 2016-05-25T18:58:35.000Z | 2018-11-29T23:40:45.000Z | # -*- coding: utf-8 -*-
# This code is licensed under the MIT License (see LICENSE file for details)
import platform
import datetime
import sys
import pathlib
import subprocess
import time
from .. import scope_job_runner
from ..config import scope_configuration
TIMER_UNIT = '''[Unit]
Description=Check that scope_job... | 38.227642 | 113 | 0.701616 |
12b402f977b10f55535c5a3654e5fda7b7dcf072 | 2,222 | py | Python | toffy/json_utils.py | angelolab/toffy | 4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6 | [
"Apache-2.0"
] | null | null | null | toffy/json_utils.py | angelolab/toffy | 4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6 | [
"Apache-2.0"
] | 46 | 2022-01-26T18:21:21.000Z | 2022-03-30T19:19:12.000Z | toffy/json_utils.py | angelolab/creed-helper | 4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6 | [
"Apache-2.0"
] | null | null | null | import copy
import json
import os
from ark.utils import io_utils
def rename_missing_fovs(fov_data):
"""Identify FOVs that are missing the 'name' key and create one with value placeholder_{n}
Args:
fov_data (dict): the FOV run JSON data
Returns:
dict: a copy of the run JSON data with plac... | 26.771084 | 94 | 0.629613 |
12b6971b8aff245d6004cadaa44e2d26223997e6 | 545 | py | Python | app/plugins/task/upload.py | venturiscm/hcp | 74ad18180822301274daa9218d7bd9fbdb7807f7 | [
"Apache-2.0"
] | 1 | 2020-06-22T21:25:52.000Z | 2020-06-22T21:25:52.000Z | app/plugins/task/upload.py | venturiscm/hcp | 74ad18180822301274daa9218d7bd9fbdb7807f7 | [
"Apache-2.0"
] | 1 | 2020-05-21T02:46:24.000Z | 2020-05-25T07:19:23.000Z | app/plugins/task/upload.py | venturiscm/hcp | 74ad18180822301274daa9218d7bd9fbdb7807f7 | [
"Apache-2.0"
] | null | null | null | from systems.plugins.index import BaseProvider
import os
| 27.25 | 95 | 0.640367 |
12b73e722a7a33f56b3403eba3f5dbfb5e5538e6 | 2,955 | py | Python | win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py | takkii/dotfile | 7daf848c718ee10603a68a6e37a1002a827ec72f | [
"MIT"
] | 1 | 2018-10-11T21:31:43.000Z | 2018-10-11T21:31:43.000Z | win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py | takkii/dotfile | 7daf848c718ee10603a68a6e37a1002a827ec72f | [
"MIT"
] | null | null | null | win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py | takkii/dotfile | 7daf848c718ee10603a68a6e37a1002a827ec72f | [
"MIT"
] | null | null | null | # ============================================================================
# FILE: outline.py
# AUTHOR: Yasumasa Tamura (tamura.yasumasa _at_ gmail.com)
# License: MIT license
# ============================================================================
from .base import Base
from subprocess import check_output, ... | 35.60241 | 78 | 0.457868 |
12b887c446ea424a4bd8fd55a07bceb06b1c0206 | 1,656 | py | Python | test.py | Tweetsched/tweetsched-publisher | c639670fc9658251a02b8946b34dfae3f3145a72 | [
"MIT"
] | 1 | 2018-08-28T14:04:15.000Z | 2018-08-28T14:04:15.000Z | test.py | Tweetsched/tweetsched-publisher | c639670fc9658251a02b8946b34dfae3f3145a72 | [
"MIT"
] | null | null | null | test.py | Tweetsched/tweetsched-publisher | c639670fc9658251a02b8946b34dfae3f3145a72 | [
"MIT"
] | null | null | null | from base64 import b64encode
from app import app
import unittest
from mock import patch
import os
import json
from twython import Twython
if __name__ == '__main__':
unittest.main()
| 35.234043 | 100 | 0.607488 |
12b904baad9cd10c3b5e703a970ce798e635e1b7 | 372 | py | Python | Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py | darioGerussi/exercises | 414a3867d4db9449e402c58efd993153f55b91eb | [
"MIT"
] | 1 | 2022-03-31T01:57:55.000Z | 2022-03-31T01:57:55.000Z | Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py | darioGerussi/exercises | 414a3867d4db9449e402c58efd993153f55b91eb | [
"MIT"
] | null | null | null | Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py | darioGerussi/exercises | 414a3867d4db9449e402c58efd993153f55b91eb | [
"MIT"
] | null | null | null | # Converts a given temperature from Celsius to Fahrenheit
# Prompt user for Celsius temperature
degreesCelsius = float(input('\nEnter the temperature in Celsius: '))
# Calculate and display the converted
# temperature in Fahrenheit
degreesFahrenheit = ((9.0 / 5.0) * degreesCelsius) + 32
print('Fahrenheit equivalent:... | 37.2 | 81 | 0.744624 |
12b9be88a391697f2894a2c7dcc4147754edbf99 | 1,227 | py | Python | website/models/post.py | LKKTGB/lkkpomia | 0a814ed6d28757e07d6392ca27c914e68f0b3bda | [
"MIT"
] | null | null | null | website/models/post.py | LKKTGB/lkkpomia | 0a814ed6d28757e07d6392ca27c914e68f0b3bda | [
"MIT"
] | 5 | 2020-04-26T09:03:33.000Z | 2022-02-02T13:00:39.000Z | website/models/post.py | LKKTGB/lkkpomia | 0a814ed6d28757e07d6392ca27c914e68f0b3bda | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from django.db import models
from django.utils.translation import ugettext_lazy as _
from taggit.managers import TaggableManager
| 32.289474 | 80 | 0.667482 |
12ba24dffd7a4983b46d43a9846f2ca9b1d6059e | 4,214 | py | Python | tests/sentry/api/serializers/test_alert_rule.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T17:46:16.000Z | 2019-10-17T17:46:16.000Z | tests/sentry/api/serializers/test_alert_rule.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/api/serializers/test_alert_rule.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import six
from sentry.api.serializers import serialize
from sentry.api.serializers.models.alert_rule import DetailedAlertRuleSerializer
from sentry.incidents.logic import create_alert_rule, create_alert_rule_trigger
from sentry.incidents.models import A... | 45.311828 | 100 | 0.701709 |
12bae8e939e905a92184b3c60e3fd70c58c999c2 | 1,003 | py | Python | mys/cli/subparsers/test.py | nsauzede/mys | 5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267 | [
"MIT"
] | null | null | null | mys/cli/subparsers/test.py | nsauzede/mys | 5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267 | [
"MIT"
] | null | null | null | mys/cli/subparsers/test.py | nsauzede/mys | 5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267 | [
"MIT"
] | null | null | null | import os
from ..utils import add_jobs_argument
from ..utils import add_no_ccache_argument
from ..utils import add_optimize_argument
from ..utils import add_verbose_argument
from ..utils import build_prepare
from ..utils import run
| 27.108108 | 62 | 0.698903 |
12bc9ffc8a5d1fd39d7381b5bb5f4a16fad4749b | 14,579 | py | Python | plugins/modules/nsxt_transport_node_collections.py | madhukark/ansible-for-nsxt | f75c698e24073305a968ce2f70739fee77a14bb2 | [
"BSD-2-Clause"
] | null | null | null | plugins/modules/nsxt_transport_node_collections.py | madhukark/ansible-for-nsxt | f75c698e24073305a968ce2f70739fee77a14bb2 | [
"BSD-2-Clause"
] | null | null | null | plugins/modules/nsxt_transport_node_collections.py | madhukark/ansible-for-nsxt | f75c698e24073305a968ce2f70739fee77a14bb2 | [
"BSD-2-Clause"
] | 1 | 2021-12-03T08:26:09.000Z | 2021-12-03T08:26:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2018 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANT... | 52.442446 | 183 | 0.721243 |
12bedc5672fe578c7205936e96d0685f45374da0 | 16,945 | py | Python | training/loss.py | drboog/Lafite | 10e109b9f46646ab793e0a5f38386af3012e9636 | [
"MIT"
] | 45 | 2022-03-10T23:49:44.000Z | 2022-03-31T21:47:45.000Z | training/loss.py | drboog/Lafite | 10e109b9f46646ab793e0a5f38386af3012e9636 | [
"MIT"
] | 7 | 2022-03-13T15:13:18.000Z | 2022-03-31T16:57:38.000Z | training/loss.py | drboog/Lafite | 10e109b9f46646ab793e0a5f38386af3012e9636 | [
"MIT"
] | 8 | 2022-03-10T23:49:29.000Z | 2022-03-31T18:20:17.000Z |
import numpy as np
import torch
from torch_utils import training_stats
from torch_utils import misc
from torch_utils.ops import conv2d_gradfix
import torch.nn.functional as F
import torchvision.transforms as T
import clip
import dnnlib
import random
#--------------------------------------------------------------------... | 50.281899 | 190 | 0.5928 |
12bfd9fea84125596f1417fe60855b47416a33a6 | 4,203 | py | Python | lib/oitool/fetchoi.py | stockalgo/oichart | 962c373b34fcef09cc58abcf6e252dd746d413a1 | [
"MIT"
] | 8 | 2021-02-05T21:54:26.000Z | 2022-03-26T19:44:42.000Z | lib/oitool/fetchoi.py | stockalgo/oichart | 962c373b34fcef09cc58abcf6e252dd746d413a1 | [
"MIT"
] | 3 | 2021-03-15T18:41:12.000Z | 2021-12-18T09:23:47.000Z | lib/oitool/fetchoi.py | stockalgo/oichart | 962c373b34fcef09cc58abcf6e252dd746d413a1 | [
"MIT"
] | 5 | 2021-03-16T12:28:37.000Z | 2021-12-17T17:35:16.000Z | import time
import logging
from bandl.nse_data import NseData
from influxdb import InfluxDBClient
| 39.280374 | 106 | 0.602665 |
12c0367fe0f1278ce33a6a9b512ae1509254147d | 1,667 | py | Python | notebooks/HelperFunctions/RunModel.py | hh2110/continual-ml-stocks | 2a2baa330cd418b3cfb7eda8464c6b5b67bc608f | [
"CC0-1.0"
] | null | null | null | notebooks/HelperFunctions/RunModel.py | hh2110/continual-ml-stocks | 2a2baa330cd418b3cfb7eda8464c6b5b67bc608f | [
"CC0-1.0"
] | null | null | null | notebooks/HelperFunctions/RunModel.py | hh2110/continual-ml-stocks | 2a2baa330cd418b3cfb7eda8464c6b5b67bc608f | [
"CC0-1.0"
] | null | null | null | from sklearn.model_selection import train_test_split
from sklearn import metrics
from sklearn.metrics import accuracy_score
from sklearn.metrics import roc_auc_score
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
| 27.783333 | 83 | 0.652669 |
12c19863b8bc11caf71dfdd9f3bff254268754da | 7,299 | py | Python | tools/build_defs/pkg/make_rpm.py | jpieper-tri/bazel | eef80048e2c59e3be974144ce9cd90b9f90294fb | [
"Apache-2.0"
] | 1 | 2018-03-27T17:18:20.000Z | 2018-03-27T17:18:20.000Z | tools/build_defs/pkg/make_rpm.py | Corroler/bazel | 073ea095a6c6a826ccdbbce1b213de47115e701a | [
"Apache-2.0"
] | 2 | 2018-11-06T01:01:16.000Z | 2019-04-10T02:25:49.000Z | tools/build_defs/pkg/make_rpm.py | Corroler/bazel | 073ea095a6c6a826ccdbbce1b213de47115e701a | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 27.43985 | 80 | 0.68023 |
12c1f75f883cd400635b90784e88c06bdf2c4be4 | 2,739 | py | Python | data/datasets/gb_100.py | CharleyZhao123/graceful-few-shot | fae8170158a7a39ead7da40fecd787fea4abcf1a | [
"MIT"
] | 1 | 2021-08-11T12:56:29.000Z | 2021-08-11T12:56:29.000Z | data/datasets/gb_100.py | CharleyZhao123/graceful-few-shot | fae8170158a7a39ead7da40fecd787fea4abcf1a | [
"MIT"
] | null | null | null | data/datasets/gb_100.py | CharleyZhao123/graceful-few-shot | fae8170158a7a39ead7da40fecd787fea4abcf1a | [
"MIT"
] | null | null | null | import os
import pickle
import random
from torch.utils.data import Dataset
from .datasets import dataset_register
default_split = {
'train': 0.7,
'val': 0.3,
}
if __name__ == '__main__':
gb_100 = GB100(
root_path='/space1/zhaoqing/dataset/fsl/gb-100', split='val', split_method='novel')
pri... | 28.831579 | 91 | 0.588536 |
12c2d9d6cce98782d3ab5c1e821708313828e9f6 | 594 | py | Python | examples/analyze-outdated.py | duzvik/project-freta | 6c96b5d9af98380d695f0ad1c1636021793f30d2 | [
"CC-BY-4.0",
"MIT"
] | 67 | 2020-07-06T20:18:05.000Z | 2022-03-27T15:00:16.000Z | examples/analyze-outdated.py | hhfdserth/project-freta | b552267f87a4f5e4796ece6865232853d62f227c | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-07-06T23:35:47.000Z | 2020-07-14T15:22:47.000Z | examples/analyze-outdated.py | hhfdserth/project-freta | b552267f87a4f5e4796ece6865232853d62f227c | [
"CC-BY-4.0",
"MIT"
] | 21 | 2020-04-07T22:37:52.000Z | 2021-11-10T08:27:38.000Z | #!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Re-analyze all images that don't have latest version of the analysis available
from freta.api import Freta
if __name__ == "__main__":
main()
| 23.76 | 80 | 0.616162 |
12c342b7aef5ffeb0a48559a00dc029a6ad70253 | 4,041 | py | Python | utils/utils_fit.py | bubbliiiing/faster-rcnn-keras | aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6 | [
"MIT"
] | 282 | 2020-02-25T00:19:28.000Z | 2022-03-20T08:14:20.000Z | utils/utils_fit.py | codertcm/faster-rcnn-keras | aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6 | [
"MIT"
] | 46 | 2020-02-24T13:17:40.000Z | 2022-03-12T00:59:15.000Z | utils/utils_fit.py | codertcm/faster-rcnn-keras | aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6 | [
"MIT"
] | 123 | 2020-02-23T09:28:36.000Z | 2022-03-16T01:43:46.000Z | import numpy as np
import tensorflow as tf
from keras import backend as K
from tqdm import tqdm
| 44.406593 | 153 | 0.554318 |
12c35e34c837e4d87b7e6155a3d32986c86a463f | 88 | py | Python | __init__.py | sbalen/TrafficSignsDataset | 39ae40a0d307ee83af57f70eed43c38bc5d25233 | [
"Apache-2.0"
] | 1 | 2021-05-05T14:23:34.000Z | 2021-05-05T14:23:34.000Z | __init__.py | sbalen/TrafficSignsDataset | 39ae40a0d307ee83af57f70eed43c38bc5d25233 | [
"Apache-2.0"
] | null | null | null | __init__.py | sbalen/TrafficSignsDataset | 39ae40a0d307ee83af57f70eed43c38bc5d25233 | [
"Apache-2.0"
] | null | null | null | """TrafficSignDataset dataset."""
from .TrafficSignsDataset import Trafficsignsdataset
| 22 | 52 | 0.829545 |
12c3f8688909dadef43a9224619f1323d1d373b9 | 972 | py | Python | exercicios-Python/ex042.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex042.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex042.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | #Refaa o DESAFIO 035 dos tringulos, acrescentando o recurso de mostrar que tipo de tringulo ser formado:
#- EQUILTERO: todos os lados iguais
#- ISSCELES: dois lados iguais, um diferente
#- ESCALENO: todos os lados diferentes
print('-' * 20, 'Programa Analisador de Tringulos', '-' * 20)
seg1 = float(input('Digite o valo... | 54 | 108 | 0.700617 |
12c5579947927013c8506c4aecdbaabf5a5bd1d2 | 319 | py | Python | tests/test_extension.py | PeterWurmsdobler/mopidy-vfd | 8ae067d37b8670da2a0b9e876257c09ceb222be7 | [
"Apache-2.0"
] | null | null | null | tests/test_extension.py | PeterWurmsdobler/mopidy-vfd | 8ae067d37b8670da2a0b9e876257c09ceb222be7 | [
"Apache-2.0"
] | null | null | null | tests/test_extension.py | PeterWurmsdobler/mopidy-vfd | 8ae067d37b8670da2a0b9e876257c09ceb222be7 | [
"Apache-2.0"
] | null | null | null | from mopidy_vfd import Extension
| 16.789474 | 37 | 0.689655 |