hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4b2424c1e77c6c44ed58c02c4ec0dcbec8b6934 | 132 | py | Python | build/lib/rigidregistration/__init__.py | kem-group/rigidRegistration | cd6bef208d4b475954e2b3970d6ec11c15f61d70 | [
"MIT"
] | 3 | 2021-10-07T18:01:32.000Z | 2022-03-10T17:01:32.000Z | build/lib/rigidregistration/__init__.py | kem-group/rigidRegistration | cd6bef208d4b475954e2b3970d6ec11c15f61d70 | [
"MIT"
] | null | null | null | build/lib/rigidregistration/__init__.py | kem-group/rigidRegistration | cd6bef208d4b475954e2b3970d6ec11c15f61d70 | [
"MIT"
] | 1 | 2022-03-10T17:01:36.000Z | 2022-03-10T17:01:36.000Z | from . import utils
from . import display
from . import save
from . import FFTW
from . import stackregistration
__version__="0.2.1" | 18.857143 | 31 | 0.765152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0.05303 |
d4b2a9a044269ea09a095573c7237e7f034915c1 | 5,359 | py | Python | torchmetrics/retrieval/retrieval_fallout.py | rudaoshi/metrics | c018348619bd7e375cb86abf7dfcaddb7208a36d | [
"Apache-2.0"
] | null | null | null | torchmetrics/retrieval/retrieval_fallout.py | rudaoshi/metrics | c018348619bd7e375cb86abf7dfcaddb7208a36d | [
"Apache-2.0"
] | null | null | null | torchmetrics/retrieval/retrieval_fallout.py | rudaoshi/metrics | c018348619bd7e375cb86abf7dfcaddb7208a36d | [
"Apache-2.0"
] | null | null | null | # Copyright The PyTorch Lightning team.
#
# 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... | 40.598485 | 120 | 0.630715 | 4,447 | 0.829819 | 0 | 0 | 0 | 0 | 0 | 0 | 3,312 | 0.618026 |
d4b30ff4f1cdba84270695cf02e3415880246ea6 | 5,458 | py | Python | pydlm/tests/base/testKalmanFilter.py | onnheimm/pydlm | 4693af6e621e3b75feda7ca15327b69a4ca622a7 | [
"BSD-3-Clause"
] | 423 | 2016-09-15T06:45:26.000Z | 2022-03-29T08:41:11.000Z | pydlm/tests/base/testKalmanFilter.py | onnheimm/pydlm | 4693af6e621e3b75feda7ca15327b69a4ca622a7 | [
"BSD-3-Clause"
] | 50 | 2016-09-14T19:45:49.000Z | 2021-07-26T17:04:10.000Z | pydlm/tests/base/testKalmanFilter.py | onnheimm/pydlm | 4693af6e621e3b75feda7ca15327b69a4ca622a7 | [
"BSD-3-Clause"
] | 99 | 2016-09-19T08:08:41.000Z | 2022-03-07T13:47:36.000Z | import numpy as np
import unittest
from pydlm.modeler.trends import trend
from pydlm.modeler.seasonality import seasonality
from pydlm.modeler.builder import builder
from pydlm.base.kalmanFilter import kalmanFilter
class testKalmanFilter(unittest.TestCase):
def setUp(self):
self.kf1 = kalmanFilter(disc... | 35.212903 | 80 | 0.622756 | 5,190 | 0.950898 | 0 | 0 | 0 | 0 | 0 | 0 | 547 | 0.10022 |
d4b39516d2e47e56ba5e7898643ba4593ea3b27e | 349 | py | Python | change_threshold_migration.py | arcapix/gpfsapi-examples | 15bff7fda7b0a576209253dee48eb44e4c0d565f | [
"MIT"
] | 10 | 2016-05-17T12:58:35.000Z | 2022-01-10T05:23:45.000Z | change_threshold_migration.py | arcapix/gpfsapi-examples | 15bff7fda7b0a576209253dee48eb44e4c0d565f | [
"MIT"
] | null | null | null | change_threshold_migration.py | arcapix/gpfsapi-examples | 15bff7fda7b0a576209253dee48eb44e4c0d565f | [
"MIT"
] | 1 | 2016-09-12T09:07:00.000Z | 2016-09-12T09:07:00.000Z | from arcapix.fs.gpfs.policy import PlacementPolicy
from arcapix.fs.gpfs.rule import MigrateRule
# load placement policy for mmfs1
policy = PlacementPolicy('mmfs1')
# create a new migrate rule for 'sata1'
r = MigrateRule(source='sata1', threshold=(90, 50))
# add rule to start of the policy
policy.rules.insert(r, 0)
... | 23.266667 | 51 | 0.759312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 0.381089 |
d4b440c6e516a3bf9860aad41ef519824e8ea929 | 158 | py | Python | 1/puzzle1.py | tjol/advent-of-code-2021 | 16def395df091d5a8ae9ceb66ba3370554bdf40b | [
"0BSD"
] | 1 | 2021-12-20T19:56:56.000Z | 2021-12-20T19:56:56.000Z | 1/puzzle1.py | tjol/advent-of-code-2021 | 16def395df091d5a8ae9ceb66ba3370554bdf40b | [
"0BSD"
] | null | null | null | 1/puzzle1.py | tjol/advent-of-code-2021 | 16def395df091d5a8ae9ceb66ba3370554bdf40b | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
import sys
depths = list(map(int, sys.stdin))
increased = [a > b for (a, b) in zip(depths[1:], depths[:-1])]
print(sum(increased))
| 15.8 | 62 | 0.639241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 0.139241 |
d4b523573d56f337047743520fa550fd29576318 | 13,961 | py | Python | project/app/paste/controllers.py | An0nYm0u5101/Pastebin | aef35abee69ce7ce240d3a3f64bb19446468d30d | [
"MIT"
] | 1 | 2020-08-08T06:07:47.000Z | 2020-08-08T06:07:47.000Z | project/app/paste/controllers.py | An0nYm0u5101/Pastebin | aef35abee69ce7ce240d3a3f64bb19446468d30d | [
"MIT"
] | null | null | null | project/app/paste/controllers.py | An0nYm0u5101/Pastebin | aef35abee69ce7ce240d3a3f64bb19446468d30d | [
"MIT"
] | 1 | 2020-08-08T06:07:50.000Z | 2020-08-08T06:07:50.000Z | from flask import Blueprint, request, render_template, \
flash, g, session, redirect, url_for, jsonify
from app import db, requires_auth
from flask_cors import CORS
from .models import Paste
import uuid
from datetime import datetime
from app.user.models import User
from pygments import highlight
from pygments.lexers i... | 34.302211 | 197 | 0.698016 | 0 | 0 | 0 | 0 | 9,574 | 0.685767 | 0 | 0 | 5,321 | 0.381133 |
d4b56ca40567b39870ee94f1ef850a0b0b2f1d60 | 8,333 | py | Python | control_drone/run_model_on_cam.py | Apiquet/DeepLearningFrameworkFromScratch | 798ac42aa1a05286eb148576072e015fd94dbf94 | [
"MIT"
] | 1 | 2020-12-18T14:40:49.000Z | 2020-12-18T14:40:49.000Z | control_drone/run_model_on_cam.py | Apiquet/DeepLearningFrameworkFromScratch | 798ac42aa1a05286eb148576072e015fd94dbf94 | [
"MIT"
] | null | null | null | control_drone/run_model_on_cam.py | Apiquet/DeepLearningFrameworkFromScratch | 798ac42aa1a05286eb148576072e015fd94dbf94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This script run neural network model on a camera live stream
"""
import argparse
import cv2
import numpy as np
import os
import time
import sys
COMMANDS = {0: "move_forward", 1: "go_down", 2: "rot_10_deg",
3: "go_up", 4: "take_off", 5: "land", 6: "idle"}... | 29.867384 | 78 | 0.531621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,713 | 0.205568 |
d4b5c94f17a9cee798f64b657926900668bb67f6 | 5,431 | py | Python | classify_images.py | rmsare/cs231a-project | 91776ada3512d3805de0e66940c9f1c5b3c4c641 | [
"MIT"
] | 2 | 2017-11-06T10:23:16.000Z | 2019-11-09T15:11:19.000Z | classify_images.py | rmsare/cs231a-project | 91776ada3512d3805de0e66940c9f1c5b3c4c641 | [
"MIT"
] | null | null | null | classify_images.py | rmsare/cs231a-project | 91776ada3512d3805de0e66940c9f1c5b3c4c641 | [
"MIT"
] | null | null | null | """
Classification of pixels in images using color and other features.
General pipeline usage:
1. Load and segment images (img_utils.py)
2. Prepare training data (label_image.py)
3. Train classifier or cluster data (sklearn KMeans, MeanShift, SVC, etc.)
4. Predict labels on new image or directory (classify_directory(... | 30.857955 | 104 | 0.662861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,164 | 0.398453 |
d4b78df5fd076f594376f0529e58415b66407a89 | 579 | py | Python | quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 71 | 2020-06-06T03:12:44.000Z | 2022-03-12T20:21:48.000Z | quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 50 | 2020-06-18T14:19:15.000Z | 2022-03-28T07:04:16.000Z | quick_start/my_text_classifier/predictors/sentence_classifier_predictor.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 37 | 2020-06-05T19:08:44.000Z | 2022-03-17T08:23:41.000Z | from allennlp.common import JsonDict
from allennlp.data import DatasetReader, Instance
from allennlp.models import Model
from allennlp.predictors import Predictor
from overrides import overrides
@Predictor.register("sentence_classifier")
class SentenceClassifierPredictor(Predictor):
def predict(self, sentence: st... | 34.058824 | 65 | 0.775475 | 338 | 0.583765 | 0 | 0 | 381 | 0.658031 | 0 | 0 | 41 | 0.070812 |
d4b832afc1a419832477a3ad699f701ea5d77522 | 3,357 | py | Python | ciphers/SKINNY-TK2/SKINNY-TK2/skinnytk2.py | j-danner/autoguess | 712a8dcfb259a277b2b2a499bd7c5fc4aab97b67 | [
"MIT"
] | 7 | 2021-11-29T07:25:43.000Z | 2022-03-02T10:15:30.000Z | ciphers/SKINNY-TK2/SKINNY-TK2/skinnytk2.py | j-danner/autoguess | 712a8dcfb259a277b2b2a499bd7c5fc4aab97b67 | [
"MIT"
] | 1 | 2022-03-30T16:29:50.000Z | 2022-03-30T16:29:50.000Z | ciphers/SKINNY-TK2/SKINNY-TK2/skinnytk2.py | j-danner/autoguess | 712a8dcfb259a277b2b2a499bd7c5fc4aab97b67 | [
"MIT"
] | 1 | 2022-03-30T13:40:12.000Z | 2022-03-30T13:40:12.000Z | # Created on Sep 7, 2020
# author: Hosein Hadipour
# contact: [email protected]
import os
output_dir = os.path.curdir
def skinnytk2(R=1):
"""
This function generates the relations of Skinny-n-n for R rounds.
tk ================================================> TWEAKEY_P(t... | 33.909091 | 137 | 0.472148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,384 | 0.412273 |
d4bad788e453eaffecc4387f4afebe5f25e9867c | 2,447 | py | Python | tests/test_bmipy.py | visr/bmi-python | 0fcca448d097bc001f7492094ce1fd95d041b81d | [
"MIT"
] | 14 | 2015-01-13T16:26:12.000Z | 2021-07-22T04:56:59.000Z | tests/test_bmipy.py | visr/bmi-python | 0fcca448d097bc001f7492094ce1fd95d041b81d | [
"MIT"
] | 11 | 2015-03-17T21:15:57.000Z | 2021-03-24T21:31:00.000Z | tests/test_bmipy.py | visr/bmi-python | 0fcca448d097bc001f7492094ce1fd95d041b81d | [
"MIT"
] | 9 | 2015-03-13T15:59:52.000Z | 2021-06-28T11:40:51.000Z | import pytest
from bmipy import Bmi
class EmptyBmi(Bmi):
def __init__(self):
pass
def initialize(self, config_file):
pass
def update(self):
pass
def update_until(self, then):
pass
def finalize(self):
pass
def get_var_type(self, var_name):
p... | 16.993056 | 60 | 0.608909 | 2,249 | 0.919085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d4bc5b3a862989ca34a4883d8781d87ac17bd277 | 592 | py | Python | scrapy_compose/fields/parser/string_field.py | Sphynx-HenryAY/scrapy-compose | bac45ee51bf4a49b3d4a9902767a17072137f869 | [
"MIT"
] | null | null | null | scrapy_compose/fields/parser/string_field.py | Sphynx-HenryAY/scrapy-compose | bac45ee51bf4a49b3d4a9902767a17072137f869 | [
"MIT"
] | 18 | 2019-10-17T10:51:30.000Z | 2020-05-12T10:00:49.000Z | scrapy_compose/fields/parser/string_field.py | Sphynx-HenryAY/scrapy-compose | bac45ee51bf4a49b3d4a9902767a17072137f869 | [
"MIT"
] | null | null | null |
from scrapy_compose.utils.context import realize
from .field import FuncField as BaseField
class StringField( BaseField ):
process_timing = [ "post_pack" ]
def __init__( self, key = None, value = None, selector = None, **kwargs ):
#unify value format
if isinstance( value, str ):
value = { "_type": "string"... | 34.823529 | 96 | 0.6875 | 498 | 0.841216 | 0 | 0 | 0 | 0 | 0 | 0 | 52 | 0.087838 |
d4bc84fe21a49ee4da04551b3e65cc3308167280 | 2,449 | py | Python | app/request.py | vincentmuya/News-highlight | 67f61bb0bea69ec004c11a2148c62cd892a19615 | [
"CNRI-Python"
] | null | null | null | app/request.py | vincentmuya/News-highlight | 67f61bb0bea69ec004c11a2148c62cd892a19615 | [
"CNRI-Python"
] | null | null | null | app/request.py | vincentmuya/News-highlight | 67f61bb0bea69ec004c11a2148c62cd892a19615 | [
"CNRI-Python"
] | null | null | null | import urllib.request
import json
from .models import News
# Getting api key
api_key = None
# Getting the movie base url
base_url = None
def configure_request(app):
global api_key,base_url
api_key = app.config['NEWS_API_KEY']
base_url = app.config['NEWS_API_BASE_URL']
def get_news_source(country,category)... | 33.094595 | 91 | 0.703144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 449 | 0.18334 |
d4bca411ec322bf0d2f4684e172c03b2076797b4 | 3,590 | py | Python | hypernet/src/thermophysicalModels/reactionThermo/mixture/multiComponent.py | christian-jacobsen/hypernet | 9f62e1531eb152cc08af0b0c6b09d6fde8d42400 | [
"Apache-2.0"
] | null | null | null | hypernet/src/thermophysicalModels/reactionThermo/mixture/multiComponent.py | christian-jacobsen/hypernet | 9f62e1531eb152cc08af0b0c6b09d6fde8d42400 | [
"Apache-2.0"
] | null | null | null | hypernet/src/thermophysicalModels/reactionThermo/mixture/multiComponent.py | christian-jacobsen/hypernet | 9f62e1531eb152cc08af0b0c6b09d6fde8d42400 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from hypernet.src.general import const
from hypernet.src.general import utils
from hypernet.src.thermophysicalModels.reactionThermo.mixture import Basic
class MultiComponent(Basic):
# Initialization
###########################################################################
def __init... | 30.423729 | 79 | 0.479666 | 3,414 | 0.950975 | 0 | 0 | 0 | 0 | 0 | 0 | 630 | 0.175487 |
d4bd39d2862e151f45c3d33b0cd79ef62c908dbf | 1,760 | py | Python | Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py | Roger-Takeshita/Software_Engineer | ec647bb969aa02453dae1884b5787d2045f7b4e2 | [
"MIT"
] | 2 | 2019-12-27T06:15:26.000Z | 2020-05-21T17:37:12.000Z | Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py | Roger-Takeshita/Bootcamp-Software-Engineer | ec647bb969aa02453dae1884b5787d2045f7b4e2 | [
"MIT"
] | null | null | null | Exercises/W08D04_Exercise_01_Django_Cat_Collector/main_app/models.py | Roger-Takeshita/Bootcamp-Software-Engineer | ec647bb969aa02453dae1884b5787d2045f7b4e2 | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
from datetime import date
from django.contrib.auth.models import User #! 1 - Import user models
MEALS = (
('B', 'Breakfast'),
('L', 'Lunch'),
('D', 'Dinner')
)
class Toy(models.Model):
name = models.CharField(max_length=5... | 28.852459 | 160 | 0.691477 | 1,497 | 0.850568 | 0 | 0 | 0 | 0 | 0 | 0 | 384 | 0.218182 |
d4bdefb01d0a762af075c93831d87a0e10dd81de | 79 | py | Python | kedro-airflow/kedro_airflow/__init__.py | kedro-org/kedro-plugins | ad0755f503b275b73aeb8feb592a0ec0ea1bca8e | [
"Apache-2.0"
] | 6 | 2022-01-21T07:37:05.000Z | 2022-03-31T09:41:29.000Z | kedro-airflow/kedro_airflow/__init__.py | kedro-org/kedro-plugins | ad0755f503b275b73aeb8feb592a0ec0ea1bca8e | [
"Apache-2.0"
] | 7 | 2022-01-20T10:59:29.000Z | 2022-03-30T17:59:12.000Z | kedro-airflow/kedro_airflow/__init__.py | kedro-org/kedro-plugins | ad0755f503b275b73aeb8feb592a0ec0ea1bca8e | [
"Apache-2.0"
] | 1 | 2022-03-29T09:12:00.000Z | 2022-03-29T09:12:00.000Z | """ Kedro plugin for running a project with Airflow """
__version__ = "0.5.0"
| 19.75 | 55 | 0.683544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 62 | 0.78481 |
d4be731c2fefcf29455273684888ea746824bba4 | 713 | py | Python | soccer/gameplay/plays/testing/debug_window_evaluator.py | AniruddhaG123/robocup-software | 0eb3b3957428894f2f39341594800be803665f44 | [
"Apache-2.0"
] | 1 | 2019-09-24T22:59:25.000Z | 2019-09-24T22:59:25.000Z | soccer/gameplay/plays/testing/debug_window_evaluator.py | ananth-kumar01/robocup-software | 4043a7f9590d02f617d8e9a762697e4aaa27f1a6 | [
"Apache-2.0"
] | null | null | null | soccer/gameplay/plays/testing/debug_window_evaluator.py | ananth-kumar01/robocup-software | 4043a7f9590d02f617d8e9a762697e4aaa27f1a6 | [
"Apache-2.0"
] | null | null | null | import play
import behavior
import main
import robocup
import constants
import time
import math
## This isn't a real play, but it's pretty useful
# Turn it on and we'll draw the window evaluator stuff on-screen from the ball to our goal
class DebugWindowEvaluator(play.Play):
def __init__(self):
super().__... | 29.708333 | 90 | 0.678822 | 473 | 0.663394 | 0 | 0 | 0 | 0 | 0 | 0 | 152 | 0.213184 |
d4bf375fc83f7c0bd614c1589d9466c6217e84ec | 331 | py | Python | rainbowconnection/sources/phoenix/utils.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | 6 | 2019-09-04T20:22:02.000Z | 2020-12-30T05:00:10.000Z | rainbowconnection/sources/phoenix/utils.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | 8 | 2019-05-23T18:06:51.000Z | 2020-02-13T22:15:07.000Z | rainbowconnection/sources/phoenix/utils.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | null | null | null | from ...imports import *
def stringify_metallicity(Z):
"""
Convert a metallicity into a PHOENIX-style string.
Parameters
----------
Z : float
[Fe/H]-style metallicity (= 0.0 for solar)
"""
if Z <= 0:
return "-{:03.1f}".format(np.abs(Z))
else:
return "+{:03.1f}"... | 19.470588 | 54 | 0.531722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 184 | 0.555891 |
d4bffb102dcb1752fbd5cc9d9f62656784042e5e | 1,506 | py | Python | shipane_sdk/transaction.py | awfssv/ShiPanE-Python-SDK | 678790e5eb220cf685e5f8d03ba3310f3fbb8d22 | [
"MIT"
] | 1 | 2016-12-19T16:05:23.000Z | 2016-12-19T16:05:23.000Z | shipane_sdk/transaction.py | awfssv/ShiPanE-Python-SDK | 678790e5eb220cf685e5f8d03ba3310f3fbb8d22 | [
"MIT"
] | null | null | null | shipane_sdk/transaction.py | awfssv/ShiPanE-Python-SDK | 678790e5eb220cf685e5f8d03ba3310f3fbb8d22 | [
"MIT"
] | 1 | 2021-05-21T02:12:04.000Z | 2021-05-21T02:12:04.000Z | # -*- coding: utf-8 -*-
class Transaction(object):
def __init__(self, **kwargs):
self._completed_at = kwargs.get('completed_at')
self._type = kwargs.get('type')
self._symbol = kwargs.get('symbol')
self._price = kwargs.get('price')
self._amount = kwargs.get('amount')
de... | 22.477612 | 55 | 0.581009 | 1,487 | 0.982166 | 0 | 0 | 670 | 0.442536 | 0 | 0 | 89 | 0.058785 |
d4c06417dd5e89491398d91b568c1842895c3961 | 14,779 | py | Python | tensorflow_probability/python/distributions/laplace_test.py | wataruhashimoto52/probability | 12e3f256544eadea6e863868da825614f4423eb0 | [
"Apache-2.0"
] | 1 | 2020-04-13T12:31:12.000Z | 2020-04-13T12:31:12.000Z | tensorflow_probability/python/distributions/laplace_test.py | wataruhashimoto52/probability | 12e3f256544eadea6e863868da825614f4423eb0 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/distributions/laplace_test.py | wataruhashimoto52/probability | 12e3f256544eadea6e863868da825614f4423eb0 | [
"Apache-2.0"
] | 1 | 2020-12-19T13:05:15.000Z | 2020-12-19T13:05:15.000Z | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 38.790026 | 109 | 0.66175 | 13,604 | 0.920495 | 0 | 0 | 13,645 | 0.92327 | 0 | 0 | 1,035 | 0.070032 |
d4c0845bc0b80a14fbe5e783d9ed64b00db19bce | 3,383 | py | Python | app/__init__.py | credwood/bitplayers | 4ca6b6c6a21bb21d7cd963c64028415559c3dcc4 | [
"MIT"
] | 1 | 2020-06-26T21:49:14.000Z | 2020-06-26T21:49:14.000Z | app/__init__.py | credwood/bitplayers | 4ca6b6c6a21bb21d7cd963c64028415559c3dcc4 | [
"MIT"
] | 2 | 2020-03-31T11:11:04.000Z | 2021-12-13T20:38:48.000Z | app/__init__.py | credwood/bitplayers | 4ca6b6c6a21bb21d7cd963c64028415559c3dcc4 | [
"MIT"
] | null | null | null | import dash
from flask import Flask
from flask.helpers import get_root_path
from flask_login import login_required
from flask_wtf.csrf import CSRFProtect
from flask_admin import Admin, BaseView, expose
from flask_admin.contrib.sqla import ModelView
from datetime import datetime
from dateutil import parser
import pytz
f... | 35.610526 | 111 | 0.738693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 606 | 0.179131 |
d4c0decddfc9adf11a583ac3c85b167de4ffaed9 | 33,707 | py | Python | selectinf/randomized/approx_reference_grouplasso.py | kevinbfry/selective-inference | 4e846877b5c23969fc420b452f20cc3b16b6cb78 | [
"BSD-3-Clause"
] | 14 | 2015-09-01T19:31:25.000Z | 2021-11-26T08:47:10.000Z | selectinf/randomized/approx_reference_grouplasso.py | kevinbfry/selective-inference | 4e846877b5c23969fc420b452f20cc3b16b6cb78 | [
"BSD-3-Clause"
] | 7 | 2016-09-12T20:41:41.000Z | 2018-06-26T02:10:30.000Z | selectinf/randomized/approx_reference_grouplasso.py | kevinbfry/selective-inference | 4e846877b5c23969fc420b452f20cc3b16b6cb78 | [
"BSD-3-Clause"
] | 10 | 2015-09-01T19:31:28.000Z | 2021-02-23T01:16:20.000Z | from __future__ import print_function
from scipy.linalg import block_diag
from scipy.stats import norm as ndist
from scipy.interpolate import interp1d
import collections
import numpy as np
from numpy import log
from numpy.linalg import norm, qr, inv, eig
import pandas as pd
import regreg.api as rr
from .randomization... | 37.830527 | 116 | 0.556709 | 26,812 | 0.795443 | 0 | 0 | 1,093 | 0.032426 | 0 | 0 | 6,804 | 0.201857 |
d4c1d2fbba6d7c550c2607f8f36af9eb36384e04 | 18,606 | py | Python | internals/states.py | mattjj/pyhsmm-collapsedinfinite | 81a60c025beec6fb065bc9f4e23cea43b6f6725c | [
"MIT"
] | null | null | null | internals/states.py | mattjj/pyhsmm-collapsedinfinite | 81a60c025beec6fb065bc9f4e23cea43b6f6725c | [
"MIT"
] | null | null | null | internals/states.py | mattjj/pyhsmm-collapsedinfinite | 81a60c025beec6fb065bc9f4e23cea43b6f6725c | [
"MIT"
] | 1 | 2021-10-06T15:12:44.000Z | 2021-10-06T15:12:44.000Z | from __future__ import division
import numpy as np
na = np.newaxis
import collections, itertools
import abc
from pyhsmm.util.stats import sample_discrete, sample_discrete_from_log, combinedata
from pyhsmm.util.general import rle as rle
# NOTE: assumes censoring. can make no censoring by adding to score of last
# segm... | 35.849711 | 110 | 0.577448 | 16,769 | 0.901268 | 0 | 0 | 804 | 0.043212 | 0 | 0 | 3,034 | 0.163066 |
d4c20caa8c6caaf656d4639f0a7424aba4ba6e44 | 1,406 | py | Python | exporters/contrib/writers/odo_writer.py | scrapinghub/exporters | b14f70530826bbbd6163d9e56e74345e762a9189 | [
"BSD-3-Clause"
] | 41 | 2016-06-16T15:29:39.000Z | 2021-08-06T03:29:13.000Z | exporters/contrib/writers/odo_writer.py | bbotella/fluxo | c9fb01db1771ada4672bbffd67cb46e1f7802ab9 | [
"BSD-3-Clause"
] | 52 | 2016-06-20T12:46:57.000Z | 2018-02-08T12:22:03.000Z | exporters/contrib/writers/odo_writer.py | bbotella/fluxo | c9fb01db1771ada4672bbffd67cb46e1f7802ab9 | [
"BSD-3-Clause"
] | 10 | 2016-06-23T08:49:36.000Z | 2018-01-13T10:12:10.000Z | import six
import json
import gzip
from exporters.default_retries import retry_long
from exporters.writers.base_writer import BaseWriter
class ODOWriter(BaseWriter):
"""
Writes items to a odo destination. https://odo.readthedocs.org/en/latest/
Needed parameters:
- schema (object)
sc... | 31.244444 | 93 | 0.642959 | 1,265 | 0.899716 | 0 | 0 | 490 | 0.348506 | 0 | 0 | 351 | 0.249644 |
d4c271023ce05496e3aeca43f2ffb25c230ab172 | 184 | py | Python | x7/geom/needs_test.py | gribbg/x7-geom | a01ef29dc47f1587e3390b552decf92db0bbaa20 | [
"BSD-2-Clause"
] | null | null | null | x7/geom/needs_test.py | gribbg/x7-geom | a01ef29dc47f1587e3390b552decf92db0bbaa20 | [
"BSD-2-Clause"
] | null | null | null | x7/geom/needs_test.py | gribbg/x7-geom | a01ef29dc47f1587e3390b552decf92db0bbaa20 | [
"BSD-2-Clause"
] | null | null | null | """
Simple file to validate that maketests is working. Call maketests via:
>>> from x7.shell import *; maketests('x7.sample.needs_tests')
"""
def needs_a_test(a, b):
return a+b
| 20.444444 | 71 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 142 | 0.771739 |
d4c391278bd0cf509c7b23a6660f7d6beb4dfdb7 | 3,960 | py | Python | python/SHA3_hashlib_based_concept.py | feketebv/SCA_proof_SHA3-512 | 5a7689ea307463d5b797e49142c349b02cdcda03 | [
"MIT"
] | 1 | 2021-05-19T00:08:15.000Z | 2021-05-19T00:08:15.000Z | python/SHA3_hashlib_based_concept.py | feketebv/SCA_proof_SHA3-512 | 5a7689ea307463d5b797e49142c349b02cdcda03 | [
"MIT"
] | null | null | null | python/SHA3_hashlib_based_concept.py | feketebv/SCA_proof_SHA3-512 | 5a7689ea307463d5b797e49142c349b02cdcda03 | [
"MIT"
] | null | null | null | '''
Written by: Balazs Valer Fekete [email protected] [email protected]
Last updated: 29.01.2021
'''
# the concept is to generate a side channel resistant initialisation of the hashing function based on
# one secret key and several openly known initialisation vectors (IV) in a manner that the same input
# is n... | 40 | 105 | 0.65303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,715 | 0.685606 |
d4c3adf62c8a44bad01c91e8ccec7e900d2597c3 | 1,573 | py | Python | graphstar/utils.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | graphstar/utils.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | graphstar/utils.py | pengboomouch/graphstar | f7f3537aa92118765b358dd3a47b4fa5cea8587c | [
"MIT"
] | null | null | null | """
graphstar.utils
~~~~~~~~~~~~~~~
Cristian Cornea
A simple bedirectional graph with A* and breadth-first pathfinding.
Utils are either used by the search algorithm, or when needed :)
Pretty self explainatory (I hope)
For more information see the examples and tests folder
"""
def smooth_path(p):
# If the ... | 24.968254 | 68 | 0.688493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,028 | 0.651871 |
d4c40e31402ea3868fe157e89d210c3347a2c155 | 287 | py | Python | design_patterns/pubsub/simple_events/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 3 | 2017-05-02T10:28:13.000Z | 2019-02-06T09:10:11.000Z | design_patterns/pubsub/simple_events/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2017-06-21T20:39:14.000Z | 2020-02-25T10:28:57.000Z | design_patterns/pubsub/simple_events/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2016-07-29T04:35:22.000Z | 2017-01-18T17:05:36.000Z | class Event:
def __init__(self):
self.handlers = set()
def subscribe(self, func):
self.handlers.add(func)
def unsubscribe(self, func):
self.handlers.remove(func)
def emit(self, *args):
for func in self.handlers:
func(*args)
| 20.5 | 34 | 0.581882 | 286 | 0.996516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d4c411c2e8e16ded3277d3bfc3c35dd1f462b513 | 527 | py | Python | jinchi/demo/foobar.py | jiz148/py-test | d976265d065c760f2e8b55302dedbfebd01bec28 | [
"Apache-2.0"
] | null | null | null | jinchi/demo/foobar.py | jiz148/py-test | d976265d065c760f2e8b55302dedbfebd01bec28 | [
"Apache-2.0"
] | null | null | null | jinchi/demo/foobar.py | jiz148/py-test | d976265d065c760f2e8b55302dedbfebd01bec28 | [
"Apache-2.0"
] | 1 | 2019-01-07T18:42:53.000Z | 2019-01-07T18:42:53.000Z | import os
def check_env(env_var_name):
"""
Check and return the type of an environment variable.
supported types:
None
Integer
String
@param env_var_name: environment variable name
@return: string of the type name.
"""
try:
val = os.getenv(env_var_name)
... | 18.821429 | 57 | 0.578748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 254 | 0.481973 |
d4c4c2df87ed6c462e4aab6092109b050d3d20d5 | 759 | py | Python | sound/serializers.py | Anirudhchoudhary/ApnaGanna__backend | 52e6c3100fdb289e8bf64a1a4007eeb2eb66a022 | [
"MIT"
] | null | null | null | sound/serializers.py | Anirudhchoudhary/ApnaGanna__backend | 52e6c3100fdb289e8bf64a1a4007eeb2eb66a022 | [
"MIT"
] | null | null | null | sound/serializers.py | Anirudhchoudhary/ApnaGanna__backend | 52e6c3100fdb289e8bf64a1a4007eeb2eb66a022 | [
"MIT"
] | null | null | null | from .models import Sound , Album
from rest_framework import serializers
class SoundSerializer(serializers.ModelSerializer):
class Meta:
model = Sound
fields = ["name" , "song_image" , "pk" , "like" , "played" , "tag" , "singer" , "upload_date"]
class SoundDetailSerializer(seriali... | 27.107143 | 102 | 0.637681 | 660 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 116 | 0.152833 |
d4c56f7b05d7fe221ca2f682d2bea0e270121b36 | 2,000 | py | Python | tracking/utils.py | WGBH/django-tracking | 80e8bc44521820eab956d2264d6df0b6987429e0 | [
"MIT"
] | null | null | null | tracking/utils.py | WGBH/django-tracking | 80e8bc44521820eab956d2264d6df0b6987429e0 | [
"MIT"
] | null | null | null | tracking/utils.py | WGBH/django-tracking | 80e8bc44521820eab956d2264d6df0b6987429e0 | [
"MIT"
] | null | null | null | from datetime import datetime
from django.conf import settings
import pytz
def check_tracker(obj, simple=True):
if simple:
if obj.status > 0:
return True
return False
# we have a gatekeeper
now = datetime.now(pytz.utc)
if obj.tracker_publish_status < 0:
... | 35.087719 | 88 | 0.665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,010 | 0.505 |
d4c5d71a8319e8e4743e5c7446b67b54ee62af61 | 256 | py | Python | devtools/api/health.py | ankeshkhemani/devtools | beb9a46c27b6b4c02a2e8729af0c971cc175f134 | [
"Apache-2.0"
] | null | null | null | devtools/api/health.py | ankeshkhemani/devtools | beb9a46c27b6b4c02a2e8729af0c971cc175f134 | [
"Apache-2.0"
] | null | null | null | devtools/api/health.py | ankeshkhemani/devtools | beb9a46c27b6b4c02a2e8729af0c971cc175f134 | [
"Apache-2.0"
] | null | null | null | import datetime
from fastapi import APIRouter
router = APIRouter()
@router.get("", tags=["health"])
async def get_health():
return {
"results": [],
"status": "success",
"timestamp": datetime.datetime.now().timestamp()
}
| 17.066667 | 56 | 0.605469 | 0 | 0 | 0 | 0 | 184 | 0.71875 | 151 | 0.589844 | 47 | 0.183594 |
d4c5d7225aa1d551d6744fefbde6bc3d8b9f8cc2 | 3,220 | py | Python | computation/Tests/Jetson/TF_model.py | y-x-c/Heliot | b98646966fd1d437e308abeed59668df640932de | [
"BSD-3-Clause"
] | 4 | 2019-09-19T15:36:22.000Z | 2020-02-18T09:28:54.000Z | computation/Tests/Jetson/TF_model.py | y-x-c/Heliot | b98646966fd1d437e308abeed59668df640932de | [
"BSD-3-Clause"
] | null | null | null | computation/Tests/Jetson/TF_model.py | y-x-c/Heliot | b98646966fd1d437e308abeed59668df640932de | [
"BSD-3-Clause"
] | 2 | 2020-04-14T19:11:32.000Z | 2022-01-08T18:59:02.000Z | import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from distutils.version import StrictVersion
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as plt
from PIL import Image
import json
import time
im... | 26.178862 | 100 | 0.700621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 660 | 0.204969 |
d4c6aa1d03e45cbedd11a4f0d5c301600877fac8 | 1,326 | py | Python | frappe/patches/v13_0/update_date_filters_in_user_settings.py | chentaoz/frappe | ee3c4943bf6177ad3b410cdb0d802af486751a65 | [
"MIT"
] | 3 | 2017-12-09T22:05:11.000Z | 2019-10-22T12:03:43.000Z | frappe/patches/v13_0/update_date_filters_in_user_settings.py | chentaoz/frappe | ee3c4943bf6177ad3b410cdb0d802af486751a65 | [
"MIT"
] | 17 | 2021-03-22T18:47:14.000Z | 2022-03-15T12:21:00.000Z | frappe/patches/v13_0/update_date_filters_in_user_settings.py | chentaoz/frappe | ee3c4943bf6177ad3b410cdb0d802af486751a65 | [
"MIT"
] | 2 | 2021-05-06T06:14:40.000Z | 2021-05-06T10:05:29.000Z | from __future__ import unicode_literals
import frappe, json
from frappe.model.utils.user_settings import update_user_settings, sync_user_settings
def execute():
users = frappe.db.sql("select distinct(user) from `__UserSettings`", as_dict=True)
for user in users:
user_settings = frappe.db.sql('''
select
* f... | 24.109091 | 85 | 0.659879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 292 | 0.220211 |
d4c78d441d23d25b49b17e8da38c99500cd4ebd4 | 3,993 | py | Python | miniproject/train.py | peguerosdc/ml4phy-quantum-oscillators | 5ce2cc8ea9ad00e23dab45d898e51f484fca5934 | [
"MIT"
] | null | null | null | miniproject/train.py | peguerosdc/ml4phy-quantum-oscillators | 5ce2cc8ea9ad00e23dab45d898e51f484fca5934 | [
"MIT"
] | null | null | null | miniproject/train.py | peguerosdc/ml4phy-quantum-oscillators | 5ce2cc8ea9ad00e23dab45d898e51f484fca5934 | [
"MIT"
] | 1 | 2021-07-18T11:11:46.000Z | 2021-07-18T11:11:46.000Z | import BoltzmannMachine as bm
import QHO as qho
import numpy as np
import datetime
# Visualization imports
from IPython.display import clear_output
from PIL import Image
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams['figure.dpi']=300
def sigmoid(x):
return .5 * (1 + np.tanh(x / 2.))
# Set t... | 40.333333 | 104 | 0.69146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,503 | 0.376409 |
d4c7b73306f8c0594f64a791f8292624d0ac8d82 | 11,237 | py | Python | Tests/Marketplace/prepare_public_index_for_private_testing.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Tests/Marketplace/prepare_public_index_for_private_testing.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Tests/Marketplace/prepare_public_index_for_private_testing.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import time
import os
import sys
import shutil
import json
import argparse
from zipfile import ZipFile
from contextlib import contextmanager
from datetime import datetime
from Tests.private_build.upload_packs_private import download_and_extract_index, update_index_with_priced_packs, \
extract_packs_artifacts
from T... | 48.021368 | 129 | 0.707128 | 0 | 0 | 366 | 0.032571 | 382 | 0.033995 | 0 | 0 | 2,368 | 0.210732 |
d4c9b736f8e2520a3fae30db6df87b55b43b886b | 106 | py | Python | ARMODServers/Apps/ARExperiences/apps.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | 1 | 2021-11-04T09:03:27.000Z | 2021-11-04T09:03:27.000Z | ARMODServers/Apps/ARExperiences/apps.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | null | null | null | ARMODServers/Apps/ARExperiences/apps.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class ArexperiencesConfig(AppConfig):
name = 'Apps.ARExperiences'
| 17.666667 | 37 | 0.783019 | 69 | 0.650943 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 0.188679 |
d4c9cb6d342d54eea3d53d2a8f44856dc1296577 | 2,843 | py | Python | configs/_base_/datasets/flyingchairs_320x448.py | zhouzaida/mmflow | b34f0801061469f04a83133d7f5652dead1f93ce | [
"Apache-2.0"
] | 1 | 2021-11-16T12:32:54.000Z | 2021-11-16T12:32:54.000Z | configs/_base_/datasets/flyingchairs_320x448.py | xiaokekeke/mmflow | c9ab798cec832d3472cbb06f04b2d64299802168 | [
"Apache-2.0"
] | null | null | null | configs/_base_/datasets/flyingchairs_320x448.py | xiaokekeke/mmflow | c9ab798cec832d3472cbb06f04b2d64299802168 | [
"Apache-2.0"
] | 1 | 2022-03-24T06:46:05.000Z | 2022-03-24T06:46:05.000Z | dataset_type = 'FlyingChairs'
data_root = 'data/FlyingChairs_release'
img_norm_cfg = dict(mean=[0., 0., 0.], std=[255., 255., 255.], to_rgb=False)
global_transform = dict(
translates=(0.05, 0.05),
zoom=(1.0, 1.5),
shear=(0.86, 1.16),
rotate=(-10., 10.))
relative_transform = dict(
translates=(0.00... | 31.241758 | 78 | 0.631375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 769 | 0.270489 |
d4ca74c07139ca34712a0c4f0276402a1f20a541 | 23,370 | py | Python | plaidml2/edsl/__init__.py | ZhouXiaolin/plaidml | dac460b6ae19a62299d15eeb17b402d8c26d0c2b | [
"Apache-2.0"
] | 4,535 | 2017-10-20T05:03:57.000Z | 2022-03-30T15:42:33.000Z | plaidml2/edsl/__init__.py | ZhouXiaolin/plaidml | dac460b6ae19a62299d15eeb17b402d8c26d0c2b | [
"Apache-2.0"
] | 984 | 2017-10-20T17:16:09.000Z | 2022-03-30T05:43:18.000Z | plaidml2/edsl/__init__.py | ZhouXiaolin/plaidml | dac460b6ae19a62299d15eeb17b402d8c26d0c2b | [
"Apache-2.0"
] | 492 | 2017-10-20T18:22:32.000Z | 2022-03-30T09:00:05.000Z | # Copyright 2019 Intel Corporation.
import logging
from collections import namedtuple
import numpy as np
import six
from plaidml2 import DType
from plaidml2.core import TensorShape, Buffer
from plaidml2.ffi import ForeignObject, ffi, ffi_call, lib
logger = logging.getLogger(__name__)
def __init():
"""Docstrin... | 29.2125 | 98 | 0.631365 | 18,281 | 0.782242 | 0 | 0 | 921 | 0.039409 | 0 | 0 | 3,052 | 0.130595 |
d4cc2ada6fd8bd17a6303118a58e9c1a8c44ff7a | 2,265 | py | Python | pytorch_toolkit/face_recognition/model/common.py | AnastasiaaSenina/openvino_training_extensions | 267425d64372dff5b9083dc0ca6abfc305a71449 | [
"Apache-2.0"
] | 1 | 2020-02-09T15:50:49.000Z | 2020-02-09T15:50:49.000Z | pytorch_toolkit/face_recognition/model/common.py | akshayjaryal603/openvino_training_extensions | 7d606a22143db0af97087709d63a2ec2aa02036c | [
"Apache-2.0"
] | 28 | 2020-09-25T22:40:36.000Z | 2022-03-12T00:37:36.000Z | pytorch_toolkit/face_recognition/model/common.py | akshayjaryal603/openvino_training_extensions | 7d606a22143db0af97087709d63a2ec2aa02036c | [
"Apache-2.0"
] | 1 | 2021-04-02T07:51:01.000Z | 2021-04-02T07:51:01.000Z | """
Copyright (c) 2018 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 in writin... | 41.944444 | 85 | 0.714349 | 264 | 0.116556 | 0 | 0 | 184 | 0.081236 | 0 | 0 | 847 | 0.373951 |
d4cd43090d9af44b579f4587a49e6d83acfe093a | 807 | py | Python | src/dataclay/util/logs.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | 1 | 2020-04-16T17:09:15.000Z | 2020-04-16T17:09:15.000Z | src/dataclay/util/logs.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | 35 | 2019-11-06T17:06:16.000Z | 2021-04-12T16:27:20.000Z | src/dataclay/util/logs.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | 1 | 2020-05-06T11:28:16.000Z | 2020-05-06T11:28:16.000Z |
""" Class description goes here. """
import json
import logging
class JSONFormatter(logging.Formatter):
"""Simple JSON formatter for the logging facility."""
def format(self, obj):
"""Note that obj is a LogRecord instance."""
# Copy the dictionary
ret = dict(obj.__dict__)
# ... | 26.032258 | 70 | 0.581165 | 738 | 0.914498 | 0 | 0 | 0 | 0 | 0 | 0 | 324 | 0.401487 |
d4cd4596ad7f6e0187f91e645753c131d68a9a4a | 845 | py | Python | python/orthogonal_test.py | davxy/numeric | 1e8b44a72e1d570433a5ba81ae0795a750ce5921 | [
"Unlicense"
] | 2 | 2020-05-03T17:02:44.000Z | 2022-02-21T04:09:34.000Z | python/orthogonal_test.py | davxy/numeric | 1e8b44a72e1d570433a5ba81ae0795a750ce5921 | [
"Unlicense"
] | null | null | null | python/orthogonal_test.py | davxy/numeric | 1e8b44a72e1d570433a5ba81ae0795a750ce5921 | [
"Unlicense"
] | null | null | null | # Orthogonal linear system solver tests
from math import sqrt
import numpy as np
from orthogonal import orthogonal
################################################################################
# 2x2 orthogonal matrix
A = np.matrix('1 1;'
'1 -1', float)
A = A*1.0/sqrt(2.0)
# Known terms vector
b = ... | 24.142857 | 80 | 0.498225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 442 | 0.523077 |
d4cecc18d5f88370e565ff6b3803a9cfe92f4765 | 11,056 | py | Python | src/autonlp/project.py | adbmd/autonlp | 8f7b5559d88775850b6818a09f178dc3407b2ab8 | [
"Apache-2.0"
] | 1 | 2021-03-08T17:47:18.000Z | 2021-03-08T17:47:18.000Z | src/autonlp/project.py | adbmd/autonlp | 8f7b5559d88775850b6818a09f178dc3407b2ab8 | [
"Apache-2.0"
] | null | null | null | src/autonlp/project.py | adbmd/autonlp | 8f7b5559d88775850b6818a09f178dc3407b2ab8 | [
"Apache-2.0"
] | null | null | null | import os
import shutil
from dataclasses import dataclass
from datetime import datetime
from typing import Dict, List, Optional
from huggingface_hub import Repository
from loguru import logger
from prettytable import PrettyTable
from .splits import TEST_SPLIT, TRAIN_SPLIT, VALID_SPLIT
from .tasks import TASKS
from .u... | 38.256055 | 117 | 0.565213 | 9,784 | 0.875604 | 0 | 0 | 9,817 | 0.878557 | 0 | 0 | 3,831 | 0.342849 |
d4cf41c3907f30d0f8d4b3c715caa3ef127581dc | 5,353 | py | Python | backend/services/apns_util.py | xuantan/viewfinder | 992209086d01be0ef6506f325cf89b84d374f969 | [
"Apache-2.0"
] | 645 | 2015-01-03T02:03:59.000Z | 2021-12-03T08:43:16.000Z | backend/services/apns_util.py | hoowang/viewfinder | 9caf4e75faa8070d85f605c91d4cfb52c4674588 | [
"Apache-2.0"
] | null | null | null | backend/services/apns_util.py | hoowang/viewfinder | 9caf4e75faa8070d85f605c91d4cfb52c4674588 | [
"Apache-2.0"
] | 222 | 2015-01-07T05:00:52.000Z | 2021-12-06T09:54:26.000Z | # -*- coding: utf-8 -*-
# Copyright 2012 Viewfinder Inc. All Rights Reserved.
"""Apple Push Notification service utilities.
Original copyright for this code: https://github.com/jayridge/apnstornado
TokenToBinary(): converts a hex-encoded token into a binary value
CreateMessage(): formats a binary APNs message fr... | 34.75974 | 110 | 0.713992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,559 | 0.477871 |
d4d089a89ed2ccdb81f62b6a9415dbcedcf723fa | 25,485 | py | Python | demonstrations/tutorial_kernels_module.py | jamesellis1999/qml | 33c9d66712b36861dc098f9c789ba2c3ab897fdb | [
"Apache-2.0"
] | 216 | 2020-08-01T03:18:37.000Z | 2022-03-25T06:17:52.000Z | demonstrations/tutorial_kernels_module.py | jamesellis1999/qml | 33c9d66712b36861dc098f9c789ba2c3ab897fdb | [
"Apache-2.0"
] | 173 | 2020-08-05T09:24:15.000Z | 2022-03-30T13:37:05.000Z | demonstrations/tutorial_kernels_module.py | jamesellis1999/qml | 33c9d66712b36861dc098f9c789ba2c3ab897fdb | [
"Apache-2.0"
] | 66 | 2020-08-01T05:02:45.000Z | 2022-03-02T19:34:54.000Z | r"""Training and evaluating quantum kernels
===========================================
.. meta::
:property="og:description": Kernels and alignment training with Pennylane.
:property="og:image": https://pennylane.ai/qml/_images/QEK_thumbnail.png
.. related::
tutorial_kernel_based_training Kernel-based tr... | 40.645933 | 157 | 0.655994 | 0 | 0 | 0 | 0 | 165 | 0.006473 | 0 | 0 | 19,241 | 0.754845 |
d4d1efc02f1792aaf622052d335ddc24c16d8ad6 | 5,465 | py | Python | main.py | scottkaz/PyLoopover | 8f11f559c09747400fe6bb520ab521dbafa90e97 | [
"MIT"
] | null | null | null | main.py | scottkaz/PyLoopover | 8f11f559c09747400fe6bb520ab521dbafa90e97 | [
"MIT"
] | null | null | null | main.py | scottkaz/PyLoopover | 8f11f559c09747400fe6bb520ab521dbafa90e97 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pygame
import random
import time
##VARIABLES TO CHANGE
width = 500
height = 500
stats_height = 150
board_size = 5
window_name = "PyLoopover "+str(board_size)+"x"+str(board_size)
scramble_turns = 50
t_round = 3
FPS = 30
##DONT CHANGE THESE BOIS
WHITE = (255,255,255)
BLACK = (0,0,0)
GREEN = (3... | 27.882653 | 85 | 0.665691 | 2,653 | 0.485453 | 0 | 0 | 0 | 0 | 0 | 0 | 896 | 0.163952 |
d4d2b1d5851dc6a58371dc3c355389cf9d7d425c | 179 | py | Python | test3_05.py | yoojunwoong/python_review01 | 9bb34f4ef75f951cd090fa623728c9542e7c7c27 | [
"Apache-2.0"
] | null | null | null | test3_05.py | yoojunwoong/python_review01 | 9bb34f4ef75f951cd090fa623728c9542e7c7c27 | [
"Apache-2.0"
] | null | null | null | test3_05.py | yoojunwoong/python_review01 | 9bb34f4ef75f951cd090fa623728c9542e7c7c27 | [
"Apache-2.0"
] | null | null | null | # for문에서 continue 사용하기, continue = skip개념!!!
for i in range(1,11):
if i == 6:
continue;
print(i);
print(i);
print(i);
print(i);
print(i);
| 17.9 | 45 | 0.49162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 63 | 0.319797 |
d4d42429c658c9fa5c1d797f95b772cf6d3bbc13 | 12,044 | py | Python | csmpe/core_plugins/csm_install_operations/exr/package_lib.py | anushreejangid/csmpe-main | c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a | [
"BSD-2-Clause"
] | null | null | null | csmpe/core_plugins/csm_install_operations/exr/package_lib.py | anushreejangid/csmpe-main | c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a | [
"BSD-2-Clause"
] | 8 | 2017-04-21T05:36:37.000Z | 2017-04-27T15:55:33.000Z | csmpe/core_plugins/csm_install_operations/exr/package_lib.py | anushreejangid/csmpe-main | c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a | [
"BSD-2-Clause"
] | null | null | null | # =============================================================================
#
# Copyright (c) 2016, Cisco Systems
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source ... | 42.86121 | 117 | 0.574643 | 5,443 | 0.451926 | 0 | 0 | 4,228 | 0.351046 | 0 | 0 | 7,510 | 0.623547 |
d4d48c8aa150de0f108ac0a0655e92b6976fd528 | 41,579 | py | Python | megaboat.py | xros/megaboat | e55e7959c39677ad2a0cdbb00ac88814b838d3e3 | [
"MIT"
] | 4 | 2015-06-07T18:44:02.000Z | 2021-04-03T02:53:01.000Z | megaboat.py | xros/megaboat | e55e7959c39677ad2a0cdbb00ac88814b838d3e3 | [
"MIT"
] | null | null | null | megaboat.py | xros/megaboat | e55e7959c39677ad2a0cdbb00ac88814b838d3e3 | [
"MIT"
] | 2 | 2015-03-27T04:24:55.000Z | 2016-06-26T11:02:47.000Z | # -*- coding: utf-8 -*-
# Copyright to Alexander Liu.
# Any distrubites of this copy should inform its author. If for commercial, please inform the author for authentication. Apr 2014
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from lxml import etree
import time
import json
import urllib
import urllib2
# Fo... | 37.391187 | 577 | 0.527237 | 35,982 | 0.865306 | 0 | 0 | 0 | 0 | 0 | 0 | 19,972 | 0.480292 |
d4d56609e653c9ccb3c77b86d7440eff8168b7af | 89 | py | Python | root/converter/__init__.py | thasmarinho/root-image-editor | 0c3e955a1f81be02fef9a488b2b45a44cf16930a | [
"MIT"
] | 2 | 2020-08-01T02:51:48.000Z | 2021-11-22T11:58:40.000Z | root/converter/__init__.py | thasmarinho/root-image-editor | 0c3e955a1f81be02fef9a488b2b45a44cf16930a | [
"MIT"
] | 4 | 2019-10-30T14:14:46.000Z | 2022-03-11T23:57:52.000Z | root/converter/__init__.py | thasmarinho/root-image-editor | 0c3e955a1f81be02fef9a488b2b45a44cf16930a | [
"MIT"
] | 1 | 2021-02-21T12:18:05.000Z | 2021-02-21T12:18:05.000Z | from .color_converter import ColorConverter
from .scale_converter import ScaleConverter
| 22.25 | 43 | 0.876404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d4d7101b172b777d4c47f40c60724b8fe87dbf67 | 4,374 | py | Python | chirun/plastex/color/__init__.py | sthagen/chirun-ncl-chirun | 45897319d5203b9867b5d6e00b2db1aa90a6580c | [
"Apache-2.0"
] | 5 | 2021-12-06T15:57:24.000Z | 2022-01-24T20:34:00.000Z | chirun/plastex/color/__init__.py | sthagen/chirun-ncl-chirun | 45897319d5203b9867b5d6e00b2db1aa90a6580c | [
"Apache-2.0"
] | 38 | 2021-12-09T13:16:46.000Z | 2022-03-30T11:42:13.000Z | chirun/plastex/color/__init__.py | sthagen/chirun-ncl-chirun | 45897319d5203b9867b5d6e00b2db1aa90a6580c | [
"Apache-2.0"
] | 1 | 2022-01-17T17:41:35.000Z | 2022-01-17T17:41:35.000Z | from plasTeX import Command, Environment
def ProcessOptions(options, document):
colors = {}
document.userdata.setPath('packages/color/colors', colors)
colors['red'] = latex2htmlcolor('1,0,0')
colors['green'] = latex2htmlcolor('0,1,0')
colors['blue'] = latex2htmlcolor('0,0,1')
colors['cyan'] = ... | 36.45 | 118 | 0.560814 | 1,889 | 0.43187 | 0 | 0 | 0 | 0 | 0 | 0 | 1,041 | 0.237997 |
d4d711198a223af0615e717b95a37866d231b085 | 1,242 | py | Python | ex035A11.py | gabrieleliasdev/python-cev | 45390963b5112a982e673f6a6866da422bf9ae6d | [
"MIT"
] | null | null | null | ex035A11.py | gabrieleliasdev/python-cev | 45390963b5112a982e673f6a6866da422bf9ae6d | [
"MIT"
] | null | null | null | ex035A11.py | gabrieleliasdev/python-cev | 45390963b5112a982e673f6a6866da422bf9ae6d | [
"MIT"
] | null | null | null | print('\033[0;33;44mTeste\033[m')
print('\033[4;33;44mTeste\033[m')
print('\033[1;35;43mTeste\033[m')
print('\033[7;32;40mTeste\033[m')
print('\033[7;30mTeste\033[m')
print(" - - - Testando os 40 - - -")
print("\033[0;37;40mPreto\033[m")
print("\033[0;30;41mVermelho\033[m")
print("\033[0;30;42mVerde\033[m")
print("\03... | 33.567568 | 46 | 0.665056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 964 | 0.774297 |
d4d8056be31284c17cf40684370c5ac0209b3ede | 1,296 | py | Python | tg/release.py | TurboGears/tg2 | f40a82d016d70ce560002593b4bb8f83b57f87b3 | [
"MIT"
] | 812 | 2015-01-16T22:57:52.000Z | 2022-03-27T04:49:40.000Z | tg/release.py | KonstantinKlepikov/tg2 | b230e98bf6f64b3620dcb4214fa45dafddb0d60f | [
"MIT"
] | 74 | 2015-02-18T17:55:31.000Z | 2021-12-13T10:41:08.000Z | tg/release.py | KonstantinKlepikov/tg2 | b230e98bf6f64b3620dcb4214fa45dafddb0d60f | [
"MIT"
] | 72 | 2015-06-10T06:02:45.000Z | 2022-03-27T08:37:24.000Z | """TurboGears project related information"""
version = "2.4.3"
description = "Next generation TurboGears"
long_description="""
TurboGears brings together a best of breed python tools
to create a flexible, full featured, and easy to use web
framework.
TurboGears 2 provides an integrated and well tested set of tools for... | 41.806452 | 155 | 0.794753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,204 | 0.929012 |
d4d8cf9487b5b92aa26fd31970eb23caa185f9d2 | 816 | py | Python | swm-master/swm-master/calc/mean_e_calc.py | m2lines/subgrid | 3de5d14c5525a62529d43cbafccda716c74e32df | [
"MIT"
] | 1 | 2021-11-03T01:27:16.000Z | 2021-11-03T01:27:16.000Z | swm-master/swm-master/calc/mean_e_calc.py | m2lines/subgrid | 3de5d14c5525a62529d43cbafccda716c74e32df | [
"MIT"
] | null | null | null | swm-master/swm-master/calc/mean_e_calc.py | m2lines/subgrid | 3de5d14c5525a62529d43cbafccda716c74e32df | [
"MIT"
] | 1 | 2021-06-24T15:58:32.000Z | 2021-06-24T15:58:32.000Z | ## PRODUCE MEAN CALCULATIONS AND EXPORT AS .NPY
from __future__ import print_function
path = '/home/mkloewer/python/swm/'
import os; os.chdir(path) # change working directory
import numpy as np
from scipy import sparse
import time as tictoc
from netCDF4 import Dataset
# OPTIONS
runfolder = 15
print('Calculating subgri... | 20.4 | 65 | 0.704657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 328 | 0.401961 |
d4d8f82be29e6cb13695308004bac74a741d2095 | 8,111 | py | Python | bogglesolver.py | gammazero/pybogglesolver | 71d2c6d6ae8c9b5f580f6b27479aea3450a2895a | [
"MIT"
] | null | null | null | bogglesolver.py | gammazero/pybogglesolver | 71d2c6d6ae8c9b5f580f6b27479aea3450a2895a | [
"MIT"
] | null | null | null | bogglesolver.py | gammazero/pybogglesolver | 71d2c6d6ae8c9b5f580f6b27479aea3450a2895a | [
"MIT"
] | null | null | null | """
Module to generate solutions for Boggle grids.
Andrew Gillis 22 Dec. 2009
"""
from __future__ import print_function
import os
import sys
import collections
import trie
if sys.version < '3':
range = xrange
class BoggleSolver(object):
"""
This class uses an external words file as a dictionary of acce... | 31.076628 | 79 | 0.501911 | 7,892 | 0.973 | 0 | 0 | 3,119 | 0.38454 | 0 | 0 | 2,700 | 0.332881 |
d4db73effedd714b6a4d9b15c4a8d627cf47c849 | 1,151 | py | Python | tests/manage/monitoring/pagerduty/test_ceph.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/manage/monitoring/pagerduty/test_ceph.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/manage/monitoring/pagerduty/test_ceph.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | import logging
import pytest
from ocs_ci.framework.testlib import (
managed_service_required,
skipif_ms_consumer,
tier4,
tier4a,
)
from ocs_ci.ocs import constants
from ocs_ci.utility import pagerduty
log = logging.getLogger(__name__)
@tier4
@tier4a
@managed_service_required
@skipif_ms_consumer
@py... | 26.159091 | 80 | 0.741095 | 0 | 0 | 0 | 0 | 894 | 0.776716 | 0 | 0 | 373 | 0.324066 |
d4db81ffa51e39a4b08cb2f618fbc4f85e8db0b8 | 3,442 | py | Python | STANchap7.py | phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan | d708faab0fdd43800e8726e2c6dd99452c8dcedb | [
"Unlicense"
] | 1 | 2021-03-18T08:01:32.000Z | 2021-03-18T08:01:32.000Z | STANchap7.py | phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan | d708faab0fdd43800e8726e2c6dd99452c8dcedb | [
"Unlicense"
] | null | null | null | STANchap7.py | phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan | d708faab0fdd43800e8726e2c6dd99452c8dcedb | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np, pandas as pd, arviz as az, prince, matplotlib.pyplot as plt, seaborn as sns
from cmdstanpy import CmdStanModel
#%% load data
data = pd.read_csv("data/overfitting.csv", index_col = 'case_id')
data.columns
data.info()
feature_names = data.columns.str.startswith("... | 31.577982 | 109 | 0.70889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,282 | 0.372458 |
d4dcaac9477532add98d53c114feaaa486ee4a47 | 4,206 | py | Python | watcher.py | factabulous/matgrindr | 6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e | [
"Apache-2.0"
] | 1 | 2018-03-31T12:15:07.000Z | 2018-03-31T12:15:07.000Z | watcher.py | factabulous/matgrindr | 6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e | [
"Apache-2.0"
] | null | null | null | watcher.py | factabulous/matgrindr | 6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import threading
import os
import time
import mats
import sys
import requests
import traceback
import re
from util import debug, error
class MatsLoader(threading.Thread):
"""
Fire and forget loader for materials - will queue a 'mats' event or
an 'error' event if the lo... | 33.11811 | 195 | 0.551831 | 4,029 | 0.957917 | 0 | 0 | 0 | 0 | 0 | 0 | 1,459 | 0.346885 |
d4dccf62068146e1f5c5000f7700eb596a2140ec | 1,706 | py | Python | luoxia/pipelines.py | pighui/luoxia | 24daa0f1595fd2b18a4b251acf77321ef98eb534 | [
"MIT"
] | 2 | 2019-11-07T09:27:59.000Z | 2019-11-16T11:36:12.000Z | luoxia/pipelines.py | pighui/luoxia | 24daa0f1595fd2b18a4b251acf77321ef98eb534 | [
"MIT"
] | 5 | 2021-03-31T19:15:38.000Z | 2022-03-02T14:57:57.000Z | luoxia/pipelines.py | pighui/luoxia | 24daa0f1595fd2b18a4b251acf77321ef98eb534 | [
"MIT"
] | 1 | 2019-11-12T12:59:22.000Z | 2019-11-12T12:59:22.000Z | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import os
from scrapy import Request
from scrapy.pipelines.images import ImagesPipeline
from luoxia import settings
class L... | 32.807692 | 76 | 0.601407 | 1,495 | 0.825967 | 209 | 0.11547 | 0 | 0 | 0 | 0 | 514 | 0.283978 |
d4df00044c8b020894b3ff8a98bbdaaae75f9a17 | 6,949 | py | Python | aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py | jpmarques19/tensorflwo-test | 0ff8b06e0415075c7269820d080284a42595bb2e | [
"Apache-2.0"
] | 5 | 2019-01-19T23:53:35.000Z | 2022-01-29T14:04:31.000Z | aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py | jpmarques19/tensorflwo-test | 0ff8b06e0415075c7269820d080284a42595bb2e | [
"Apache-2.0"
] | 4 | 2020-09-26T01:25:36.000Z | 2021-08-25T16:10:50.000Z | aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py | jpmarques19/tensorflwo-test | 0ff8b06e0415075c7269820d080284a42595bb2e | [
"Apache-2.0"
] | 7 | 2020-03-04T22:23:51.000Z | 2021-07-13T14:05:46.000Z | # Copyright 2020 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | 37.160428 | 94 | 0.689164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,902 | 0.417614 |
d4e1891a34dd9a85739bf4476b3f8a83de7af2b1 | 6,002 | py | Python | common/util/autoware_debug_tools/scripts/stop_reason2pose.py | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 12 | 2020-09-25T08:52:59.000Z | 2020-10-05T02:39:31.000Z | common/util/autoware_debug_tools/scripts/stop_reason2pose.py | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 7 | 2021-12-13T04:28:48.000Z | 2022-03-14T13:53:15.000Z | common/util/autoware_debug_tools/scripts/stop_reason2pose.py | taikitanaka3/AutowareArchitectureProposal.iv | 0d47ea532118c98458516a8c83fbdab3d27c6231 | [
"Apache-2.0"
] | 9 | 2020-09-27T05:27:09.000Z | 2020-10-08T03:14:25.000Z | #! /usr/bin/env python3
# Copyright 2020 Tier IV, Inc.
#
# 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... | 35.72619 | 94 | 0.653615 | 4,726 | 0.787404 | 0 | 0 | 289 | 0.048151 | 0 | 0 | 833 | 0.138787 |
d4e302bb88e4c014fa9f911add690a08d53c06f0 | 2,578 | py | Python | aiounittest/case.py | tmaila/aiounittest | c43d3b619fd6a8fd071758996a5f42310b0293dc | [
"MIT"
] | 55 | 2017-08-18T10:24:05.000Z | 2022-03-21T08:29:19.000Z | aiounittest/case.py | tmaila/aiounittest | c43d3b619fd6a8fd071758996a5f42310b0293dc | [
"MIT"
] | 15 | 2017-09-22T13:14:43.000Z | 2022-01-23T16:29:22.000Z | aiounittest/case.py | tmaila/aiounittest | c43d3b619fd6a8fd071758996a5f42310b0293dc | [
"MIT"
] | 4 | 2019-11-26T18:08:43.000Z | 2021-06-01T22:12:00.000Z | import asyncio
import unittest
from .helpers import async_test
class AsyncTestCase(unittest.TestCase):
''' AsyncTestCase allows to test asynchoronus function.
The usage is the same as :code:`unittest.TestCase`. It works with other test frameworks
and runners (eg. `pytest`, `nose`) as well.
AsyncTes... | 29.976744 | 152 | 0.600465 | 2,512 | 0.974399 | 0 | 0 | 0 | 0 | 0 | 0 | 2,153 | 0.835144 |
d4e335bc88c686cd971644ea0114064bbbe14924 | 1,551 | py | Python | US Flag.py | Code-Master1234/Turtle_Flags_File_Hub | d99f8bc05c4f2280f8c91cdda14005ef9c5d6236 | [
"MIT"
] | null | null | null | US Flag.py | Code-Master1234/Turtle_Flags_File_Hub | d99f8bc05c4f2280f8c91cdda14005ef9c5d6236 | [
"MIT"
] | null | null | null | US Flag.py | Code-Master1234/Turtle_Flags_File_Hub | d99f8bc05c4f2280f8c91cdda14005ef9c5d6236 | [
"MIT"
] | null | null | null | import turtle as t
def rectangle(horizontal, vertical, color):
t.pendown()
t.pensize(1)
t.color(color)
t.begin_fill()
for counter in range(2):
t.forward(horizontal)
t.right(90)
t.forward(vertical)
t.right(90)
t.end_fill()
t.penup()
def star(le... | 19.884615 | 44 | 0.550613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 39 | 0.025145 |
d4e4309129dbca39258000122d1486ad109432d7 | 1,107 | py | Python | linked-list/delete_zero_sum_nodes.py | bryanlimy/technical-interview | f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6 | [
"MIT"
] | 3 | 2020-01-20T05:12:52.000Z | 2022-02-09T15:21:42.000Z | linked-list/delete_zero_sum_nodes.py | bryanlimy/technical-interview | f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6 | [
"MIT"
] | null | null | null | linked-list/delete_zero_sum_nodes.py | bryanlimy/technical-interview | f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6 | [
"MIT"
] | null | null | null | # Given a linked list, remove consecutive nodes that sums up to zero
# https://www.careercup.com/question?id=5717797377146880
from util import *
def remove_zero_sum(head):
start = head
new = None
root = None
while start:
end = start.next
total = start.value
zero = False
... | 26.357143 | 68 | 0.525745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 138 | 0.124661 |
d4e708b09e82bdf3236441c1829a0dda6f660d73 | 2,383 | py | Python | src/azure-cli/azure/cli/command_modules/maps/custom.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 1 | 2019-11-15T17:28:05.000Z | 2019-11-15T17:28:05.000Z | src/azure-cli/azure/cli/command_modules/maps/custom.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 2 | 2021-01-15T09:24:07.000Z | 2021-01-15T09:30:10.000Z | src/azure-cli/azure/cli/command_modules/maps/custom.py | psignoret/azure-cli | 1a4a043750315f9a7f2894b4287126089978b615 | [
"MIT"
] | 1 | 2019-11-25T19:33:05.000Z | 2019-11-25T19:33:05.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 40.389831 | 107 | 0.669744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 918 | 0.385229 |
d4e813b035bc0fbeece6fd5910d8e62ac5025f2b | 5,558 | py | Python | examples/wsdm2022/run_seqreco_B.py | Leavingseason/wsdm2022-seqrecsys | 4659edb93a96300d7a52bb0e1b9c912e3fae2a76 | [
"MIT"
] | null | null | null | examples/wsdm2022/run_seqreco_B.py | Leavingseason/wsdm2022-seqrecsys | 4659edb93a96300d7a52bb0e1b9c912e3fae2a76 | [
"MIT"
] | null | null | null | examples/wsdm2022/run_seqreco_B.py | Leavingseason/wsdm2022-seqrecsys | 4659edb93a96300d7a52bb0e1b9c912e3fae2a76 | [
"MIT"
] | null | null | null | import sys
import os
from tempfile import TemporaryDirectory
import numpy as np
import tensorflow.compat.v1 as tf
tf.get_logger().setLevel('ERROR') # only show error messages
from recommenders.utils.timer import Timer
from recommenders.utils.constants import SEED
from recommenders.models.deeprec.deeprec_utils import ... | 37.302013 | 221 | 0.690896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,623 | 0.471932 |
d4e8209a5a512c6f4d48304a062ee3d210b0266c | 11,222 | py | Python | ctypesgen/ctypedescs.py | fgrie/ctypesgen | bc1627648a1479cefd1a2c3c261dd0471358cfff | [
"BSD-2-Clause"
] | null | null | null | ctypesgen/ctypedescs.py | fgrie/ctypesgen | bc1627648a1479cefd1a2c3c261dd0471358cfff | [
"BSD-2-Clause"
] | null | null | null | ctypesgen/ctypedescs.py | fgrie/ctypesgen | bc1627648a1479cefd1a2c3c261dd0471358cfff | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
ctypesgen.ctypedescs contains classes to represent a C type. All of them
classes are subclasses of CtypesType.
Unlike in previous versions of ctypesgen, CtypesType and its subclasses are
completely independent of the parser module.
The most important method of CtypesType and its subclasses ... | 28.848329 | 90 | 0.621012 | 7,977 | 0.710836 | 0 | 0 | 0 | 0 | 0 | 0 | 2,316 | 0.20638 |
d4e990995bc970a5eeb5c450531463a5dff36df5 | 2,026 | py | Python | pytouch/elements.py | Krai53n/pytouch | 8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375 | [
"MIT"
] | null | null | null | pytouch/elements.py | Krai53n/pytouch | 8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375 | [
"MIT"
] | null | null | null | pytouch/elements.py | Krai53n/pytouch | 8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375 | [
"MIT"
] | null | null | null | from random import randint
import pyxel
from constants import Screen
import cursors
class Text:
def __init__(self, text):
self._text = text
self._symbol_len = 3
self._padding_len = 1
def _count_text_len(self):
return (
self._symbol_len + self._padding_len
... | 21.104167 | 80 | 0.579961 | 1,929 | 0.952122 | 0 | 0 | 312 | 0.153998 | 0 | 0 | 22 | 0.010859 |
d4e9e1912fd06e0dea7f2e62b354d4050bf65bf1 | 1,769 | py | Python | app/volume/admin_process.py | cleve/varidb | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | null | null | null | app/volume/admin_process.py | cleve/varidb | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | 6 | 2020-11-05T02:18:15.000Z | 2022-03-12T00:50:09.000Z | app/volume/admin_process.py | cleve/pulzar | fc1b10aa4d708cee1c83909f10773948cee0c539 | [
"Apache-2.0"
] | null | null | null | from pulzarutils.utils import Utils
from pulzarutils.utils import Constants
from pulzarutils.messenger import Messenger
from pulzarcore.core_db import DB
class AdminProcess:
"""Handle admin operations from manage
"""
def __init__(self, logger):
self.TAG = self.__class__.__name__
self.logg... | 38.456522 | 84 | 0.611645 | 1,612 | 0.911249 | 0 | 0 | 0 | 0 | 0 | 0 | 211 | 0.119276 |
d4ea75a1746392a1bad32c927e9dd06c16722c29 | 2,767 | py | Python | tests/ssg_test_suite/profile.py | fduthilleul/scap-security-guide | f9b67869600f6c20dcb0ba83801578cec1a51bba | [
"BSD-3-Clause"
] | null | null | null | tests/ssg_test_suite/profile.py | fduthilleul/scap-security-guide | f9b67869600f6c20dcb0ba83801578cec1a51bba | [
"BSD-3-Clause"
] | null | null | null | tests/ssg_test_suite/profile.py | fduthilleul/scap-security-guide | f9b67869600f6c20dcb0ba83801578cec1a51bba | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2
from __future__ import print_function
import atexit
import logging
import sys
import ssg_test_suite.oscap
import ssg_test_suite.virt
from ssg_test_suite.rule import get_viable_profiles
from ssg_test_suite.virt import SnapshotStack
logging.getLogger(__name__).addHandler(logging.NullHandler())
... | 38.971831 | 76 | 0.553668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 560 | 0.202385 |
d4eb283ef9b63b6cf71ae47aefac07d2d47fad48 | 4,218 | py | Python | lib/wtforms/ext/appengine/fields.py | solidaritreebiz/Solidaritree | 15cc2e10e4cec56eb4fe218166d4157fcce9bf8d | [
"MIT"
] | 43 | 2015-01-02T11:59:27.000Z | 2021-06-03T18:47:09.000Z | wtforms/ext/appengine/fields.py | skorokithakis/landing-page | d800decb3a36519e2dd86826f660f5fa4f62cf5c | [
"MIT"
] | 1 | 2018-07-17T11:46:14.000Z | 2018-07-17T11:46:14.000Z | wtforms/ext/appengine/fields.py | skorokithakis/landing-page | d800decb3a36519e2dd86826f660f5fa4f62cf5c | [
"MIT"
] | 6 | 2018-07-14T04:58:02.000Z | 2018-08-06T18:02:27.000Z | import decimal
import operator
import warnings
from wtforms import fields, widgets
class ReferencePropertyField(fields.SelectFieldBase):
"""
A field for ``db.ReferenceProperty``. The list items are rendered in a
select.
:param reference_class:
A db.Model class which will be used to generate t... | 35.745763 | 116 | 0.598151 | 4,126 | 0.978189 | 304 | 0.072072 | 0 | 0 | 0 | 0 | 1,164 | 0.27596 |
d4eb7fe555f324704c58058f0e711c3b4fd6b7fe | 3,947 | py | Python | mtrainsimulator.py | trevor-wieland/MTrainAI | 47bab3bf3af9e5426a822a7d14586f1798674cd7 | [
"MIT"
] | null | null | null | mtrainsimulator.py | trevor-wieland/MTrainAI | 47bab3bf3af9e5426a822a7d14586f1798674cd7 | [
"MIT"
] | null | null | null | mtrainsimulator.py | trevor-wieland/MTrainAI | 47bab3bf3af9e5426a822a7d14586f1798674cd7 | [
"MIT"
] | null | null | null | import mtrain
import numpy as np
import pandas as pd
import random
def simulate_games(num_players=4, domino_size=12, num_games=250, collect_data=True,
debug=False, players=["Random", "Greedy", "Probability", "Neural"],
file_name="PlayData/data4_12_250"):
"""
Runs the m... | 42.902174 | 111 | 0.64682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,678 | 0.425133 |
d4ec0fc927b4e34cca6fab5d967b009070fe2201 | 294 | py | Python | dml/errors.py | RGBCube/dml | f551821545a062e15aea1f2c2444e6016748ea34 | [
"MIT"
] | 2 | 2022-03-19T19:15:28.000Z | 2022-03-19T19:15:32.000Z | dml/errors.py | RGBCube/dml | f551821545a062e15aea1f2c2444e6016748ea34 | [
"MIT"
] | null | null | null | dml/errors.py | RGBCube/dml | f551821545a062e15aea1f2c2444e6016748ea34 | [
"MIT"
] | null | null | null | __all__ = ("DottedMarkupLanguageException", "DecodeError")
class DottedMarkupLanguageException(Exception):
"""Base class for all exceptions in this module."""
pass
class DecodeError(DottedMarkupLanguageException):
"""Raised when there is an error decoding a string."""
pass
| 24.5 | 58 | 0.744898 | 229 | 0.778912 | 0 | 0 | 0 | 0 | 0 | 0 | 149 | 0.506803 |
d4ec2af4e9b7cc307999482d71c793953e387022 | 3,336 | py | Python | licenseplates/dataset.py | VaranRohila/apn | dbb5b814233accbbb49b9bfe12b7162402e3b267 | [
"MIT"
] | null | null | null | licenseplates/dataset.py | VaranRohila/apn | dbb5b814233accbbb49b9bfe12b7162402e3b267 | [
"MIT"
] | null | null | null | licenseplates/dataset.py | VaranRohila/apn | dbb5b814233accbbb49b9bfe12b7162402e3b267 | [
"MIT"
] | null | null | null | ##############################################################################
#
# Below code is inspired on
# https://github.com/facebookresearch/detectron2/blob/master/detectron2/data/datasets/pascal_voc.py
# --------------------------------------------------------
# Detectron2
# Licensed under the Apache 2.0 license... | 32.705882 | 100 | 0.579436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 952 | 0.285372 |
d4ece3f334aeba88cd76ec065663f9e04ac41d64 | 354 | py | Python | docs/examples/pytorch/resnet50/scripts/test_read_speed.py | RogerChern/DALI | be143c3bb35458549e273608f1683a99ae41968e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | docs/examples/pytorch/resnet50/scripts/test_read_speed.py | RogerChern/DALI | be143c3bb35458549e273608f1683a99ae41968e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | docs/examples/pytorch/resnet50/scripts/test_read_speed.py | RogerChern/DALI | be143c3bb35458549e273608f1683a99ae41968e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import glob
import time
import random
filelist = glob.glob('/mnt/lustre/chenyuntao1/datasets/imagenet/train/*/*')
random.shuffle(filelist)
begin = time.time()
for i, f in enumerate(filelist):
if i == 10000:
break
with open(f, "rb") as fin:
result = fin.read()
end = time.time()
print("%.1f im... | 20.823529 | 75 | 0.641243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 72 | 0.20339 |
d4eced841f40608be5ce0f25f32b14e3f8c5be34 | 12,864 | py | Python | ocellaris/solver_parts/boundary_conditions/dirichlet.py | TormodLandet/Ocellaris | 6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58 | [
"Apache-2.0"
] | 1 | 2017-11-07T12:19:44.000Z | 2017-11-07T12:19:44.000Z | ocellaris/solver_parts/boundary_conditions/dirichlet.py | TormodLandet/Ocellaris | 6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58 | [
"Apache-2.0"
] | null | null | null | ocellaris/solver_parts/boundary_conditions/dirichlet.py | TormodLandet/Ocellaris | 6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58 | [
"Apache-2.0"
] | 2 | 2018-05-02T17:17:01.000Z | 2019-03-11T13:09:40.000Z | # Copyright (C) 2015-2019 Tormod Landet
# SPDX-License-Identifier: Apache-2.0
import dolfin
from . import register_boundary_condition, BoundaryConditionCreator
from ocellaris.utils import (
CodedExpression,
OcellarisCppExpression,
OcellarisError,
verify_field_variable_definition,
)
class OcellarisDir... | 38.981818 | 108 | 0.615127 | 12,314 | 0.957245 | 0 | 0 | 10,962 | 0.852146 | 0 | 0 | 3,338 | 0.259484 |
d4ed66dc63c65bd461e9e3340f0322d30f2b6c89 | 319 | py | Python | count_split_inversions/test_count_split_inversions.py | abaldwin/algorithms | 8c8722394c9115c572dadcd8ab601885512fd494 | [
"Apache-2.0"
] | null | null | null | count_split_inversions/test_count_split_inversions.py | abaldwin/algorithms | 8c8722394c9115c572dadcd8ab601885512fd494 | [
"Apache-2.0"
] | null | null | null | count_split_inversions/test_count_split_inversions.py | abaldwin/algorithms | 8c8722394c9115c572dadcd8ab601885512fd494 | [
"Apache-2.0"
] | null | null | null | import unittest
from count_split_inversions import count_inversions
class TestCountSplitInversions(unittest.TestCase):
def test_count_inversions(self):
input = [1, 3, 5, 2, 4, 6]
result = count_inversions(input)
self.assertEqual(result, 3)
if __name__ == '__main__':
unittest.main()
| 22.785714 | 51 | 0.705329 | 200 | 0.626959 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.031348 |
d4ee6e97a2bc58c8bc3ccf8cb1ebf6364e70cd9d | 3,906 | py | Python | python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py | Forest216/BigDL | 840da9a2eaf395978dd83730b02aa5e5dfbd7989 | [
"Apache-2.0"
] | null | null | null | python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py | Forest216/BigDL | 840da9a2eaf395978dd83730b02aa5e5dfbd7989 | [
"Apache-2.0"
] | null | null | null | python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py | Forest216/BigDL | 840da9a2eaf395978dd83730b02aa5e5dfbd7989 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.294118 | 84 | 0.615463 | 1,960 | 0.501792 | 0 | 0 | 2,042 | 0.522785 | 0 | 0 | 641 | 0.164107 |
d4eeb6ee82889a7b906d047189dd7b8bb9659a33 | 1,922 | py | Python | examples/SubOrbitalFlight.py | nicolaikd/sl-ksp | cc1e239570e10428d11a41a26b33947b54f7f0ec | [
"MIT"
] | 7 | 2021-01-11T15:39:56.000Z | 2021-08-21T18:44:04.000Z | examples/SubOrbitalFlight.py | nicolaikd/sl-ksp | cc1e239570e10428d11a41a26b33947b54f7f0ec | [
"MIT"
] | 1 | 2021-04-17T13:07:41.000Z | 2021-04-21T16:21:35.000Z | examples/SubOrbitalFlight.py | nicolaikd/sl-ksp | cc1e239570e10428d11a41a26b33947b54f7f0ec | [
"MIT"
] | 2 | 2021-03-17T16:36:23.000Z | 2021-05-05T14:40:59.000Z | import time
import krpc
conn = krpc.connect(name='Sub-orbital flight')
vessel = conn.space_center.active_vessel
vessel.auto_pilot.target_pitch_and_heading(90, 90)
vessel.auto_pilot.engage()
vessel.control.throttle = 1
time.sleep(1)
print('Launch!')
vessel.control.activate_next_stage()
fuel_amount = conn.get_call(ve... | 30.03125 | 77 | 0.774714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 184 | 0.095734 |
d4ef39805175a5dc26b4a7a21bf430a89fe73653 | 321 | py | Python | part02/part02-e11_rows_and_columns/src/rows_and_columns.py | davide-butera/data-analysis-with-python | 78ba3d3d060ddb305bfd84b9a122409c15c47006 | [
"MIT"
] | null | null | null | part02/part02-e11_rows_and_columns/src/rows_and_columns.py | davide-butera/data-analysis-with-python | 78ba3d3d060ddb305bfd84b9a122409c15c47006 | [
"MIT"
] | null | null | null | part02/part02-e11_rows_and_columns/src/rows_and_columns.py | davide-butera/data-analysis-with-python | 78ba3d3d060ddb305bfd84b9a122409c15c47006 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
def get_rows(a):
return list(a)
def get_columns(a):
return list(a.T)
def main():
np.random.seed(0)
a=np.random.randint(0,10, (4,4))
print("a:", a)
print("Rows:", get_rows(a))
print("Columns:", get_columns(a))
if __name__ == "__main__":
main()... | 16.894737 | 37 | 0.601246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 53 | 0.165109 |
d4efd4c2ab810bf4c725de159e2f410b24aea731 | 18,031 | py | Python | ramp-database/ramp_database/tools/leaderboard.py | kegl/ramp-board | 6373bf02efc096e02b26320e4f11edd00f9e5752 | [
"BSD-3-Clause"
] | null | null | null | ramp-database/ramp_database/tools/leaderboard.py | kegl/ramp-board | 6373bf02efc096e02b26320e4f11edd00f9e5752 | [
"BSD-3-Clause"
] | null | null | null | ramp-database/ramp_database/tools/leaderboard.py | kegl/ramp-board | 6373bf02efc096e02b26320e4f11edd00f9e5752 | [
"BSD-3-Clause"
] | null | null | null | from distutils.version import LooseVersion
from itertools import product
import numpy as np
import pandas as pd
from ..model.event import Event
from ..model.event import EventTeam
from ..model.submission import Submission
from ..model.team import Team
from .team import get_event_team_by_name
from .submission import... | 39.455142 | 79 | 0.619378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,191 | 0.343353 |
d4f07209eebdfab152cf385342225e58c7210495 | 623 | py | Python | projects/boring_stuff/03_functions/ZigZag.py | SavantLogics/Visual_Studio_Python_Scripts-master | 9e3c5f8a8f685f9ae51045af9260ccc28f89d72f | [
"MIT"
] | null | null | null | projects/boring_stuff/03_functions/ZigZag.py | SavantLogics/Visual_Studio_Python_Scripts-master | 9e3c5f8a8f685f9ae51045af9260ccc28f89d72f | [
"MIT"
] | null | null | null | projects/boring_stuff/03_functions/ZigZag.py | SavantLogics/Visual_Studio_Python_Scripts-master | 9e3c5f8a8f685f9ae51045af9260ccc28f89d72f | [
"MIT"
] | null | null | null | #Automate the Boring Stuff with Python
import time, sys
indent = 0 # How many spaces to indent
indent_Increasing = True # Whether the indentation is increasing or not
try:
while True: # The main program loop
print(' ' * indent, end='')
print('********')
time.sleep(0.1) # Pause for 1/10th o... | 27.086957 | 71 | 0.569823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 179 | 0.287319 |
d4f0759288304875f2de20fc2b91d86d509cb718 | 3,820 | py | Python | examples/add_compensation_to_sample.py | whitews/ReFlowRESTClient | 69369bbea501382291b71facea7a511ab8f7848b | [
"BSD-3-Clause"
] | null | null | null | examples/add_compensation_to_sample.py | whitews/ReFlowRESTClient | 69369bbea501382291b71facea7a511ab8f7848b | [
"BSD-3-Clause"
] | null | null | null | examples/add_compensation_to_sample.py | whitews/ReFlowRESTClient | 69369bbea501382291b71facea7a511ab8f7848b | [
"BSD-3-Clause"
] | null | null | null | import getpass
import sys
import json
from reflowrestclient.utils import *
host = raw_input('Host: ')
username = raw_input('Username: ')
password = getpass.getpass('Password: ')
token = get_token(host, username, password)
if token:
print "Authentication successful"
print '=' * 40
else:
print "No token fo... | 28.939394 | 100 | 0.625654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 950 | 0.248691 |
d4f12c3a663d3edb5021b78314c1afd940fc7b1a | 412 | py | Python | accountifie/toolkit/urls.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2017-06-02T08:48:48.000Z | 2021-11-21T23:57:15.000Z | accountifie/toolkit/urls.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 3 | 2020-06-05T16:55:42.000Z | 2021-06-10T17:43:12.000Z | accountifie/toolkit/urls.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2015-12-15T14:27:51.000Z | 2017-04-21T21:42:27.000Z | from django.conf import settings
from django.conf.urls import url, static
from . import views
from . import jobs
urlpatterns = [
url(r'^choose_company/(?P<company_id>.*)/$', views.choose_company, name='choose_company'),
url(r'^cleanlogs/$', jobs.cleanlogs, name='cleanlogs'),
url(r'^primecache/$', job... | 27.466667 | 98 | 0.686893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 128 | 0.31068 |
d4f145e4f5e9df82c3ed3f3cc3dee6abaad4fc6c | 838 | py | Python | setup.py | sequentialchaos/i3-workspace-swap | 86646066b9f971c1ff130a642a914ab2db8f9ae6 | [
"MIT"
] | null | null | null | setup.py | sequentialchaos/i3-workspace-swap | 86646066b9f971c1ff130a642a914ab2db8f9ae6 | [
"MIT"
] | null | null | null | setup.py | sequentialchaos/i3-workspace-swap | 86646066b9f971c1ff130a642a914ab2db8f9ae6 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="i3-workspace-swap",
description='A python utility swap the content of two workplaces in i3wm',
long_description=long_description,
long_description_content_type="text/markdown",
version="1... | 27.032258 | 78 | 0.658711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 398 | 0.47494 |
d4f1aa99ca10cb206e4f7702a9c7de6f3d6dfd4e | 5,975 | py | Python | intersight/models/niaapi_version_regex_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/niaapi_version_regex_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/niaapi_version_regex_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 34.738372 | 1,052 | 0.627113 | 4,634 | 0.775565 | 0 | 0 | 1,711 | 0.28636 | 0 | 0 | 3,381 | 0.565858 |
d4f20508bec1fb3b3210c9cb30a6481120876c56 | 2,158 | py | Python | ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py | genemerewether/fprime | fcdd071b5ddffe54ade098ca5d451903daba9eed | [
"Apache-2.0"
] | 5 | 2019-10-22T03:41:02.000Z | 2022-01-16T12:48:31.000Z | ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py | genemerewether/fprime | fcdd071b5ddffe54ade098ca5d451903daba9eed | [
"Apache-2.0"
] | 27 | 2019-02-07T17:58:58.000Z | 2019-08-13T00:46:24.000Z | ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py | genemerewether/fprime | fcdd071b5ddffe54ade098ca5d451903daba9eed | [
"Apache-2.0"
] | 3 | 2019-01-01T18:44:37.000Z | 2019-08-01T01:19:39.000Z | #
# Copyright 2004-2016, by the California Institute of Technology.
# ALL RIGHTS RESERVED. United States Government Sponsorship
# acknowledged. Any commercial use must be negotiated with the Office
# of Technology Transfer at the California Institute of Technology.
#
# This software may be subject to U.S. exp... | 37.206897 | 96 | 0.698332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,380 | 0.639481 |
d4f37664ce2a24dbc73824c236ef48b007de021a | 6,681 | py | Python | tests/test_compare.py | fool65c/jupytext | 4b55d2e6ccc995c04679de0863234c60c3741a69 | [
"MIT"
] | 1 | 2019-05-06T07:39:15.000Z | 2019-05-06T07:39:15.000Z | tests/test_compare.py | royalosyin/jupytext | 72aa6c4968da714323fbd7a7c548ee4b1274c946 | [
"MIT"
] | null | null | null | tests/test_compare.py | royalosyin/jupytext | 72aa6c4968da714323fbd7a7c548ee4b1274c946 | [
"MIT"
] | null | null | null | import pytest
from nbformat.v4.nbbase import new_notebook, new_markdown_cell, new_code_cell, new_raw_cell
from jupytext.compare import compare_notebooks, NotebookDifference, test_round_trip_conversion as round_trip_conversion
def test_raise_on_different_metadata():
ref = new_notebook(metadata={'kernelspec': {'lan... | 41.75625 | 119 | 0.658135 | 0 | 0 | 0 | 0 | 2,154 | 0.322407 | 0 | 0 | 1,088 | 0.16285 |
d4f450e40179e22e5b7878cbc391794da9f23b06 | 14,026 | py | Python | Cogs/Actions.py | MrAngelDo6pa/MedBotS | 89e19d831507e20d0898114502967b2ad8ecf957 | [
"MIT"
] | 2 | 2021-09-28T10:40:10.000Z | 2021-11-07T14:49:07.000Z | Cogs/Actions.py | ddoskid/lol12 | 35c097bbebeca3043a939b902b07474473344a3c | [
"MIT"
] | null | null | null | Cogs/Actions.py | ddoskid/lol12 | 35c097bbebeca3043a939b902b07474473344a3c | [
"MIT"
] | null | null | null | import asyncio
import discord
import random
import datetime
from discord.ext import commands
from Cogs import DisplayName
from Cogs import Nullify
def setup(bot):
# Add the bot
bot.add_cog(Actions(bot))
class Actions(commands.Cog):
## class that handles storing and computing action messages
class actionable... | 51.566176 | 138 | 0.654855 | 13,815 | 0.984746 | 0 | 0 | 1,560 | 0.111198 | 1,332 | 0.094946 | 9,840 | 0.701404 |
d4f46e1bb0a2bc679bb20e6fc52d23194cb01643 | 7,830 | py | Python | marltoolbox/examples/tune_function_api/lola_pg_official.py | tobiasbaumann1/amd | cb6190be92dea54db04ef9202d381b96f6f6218b | [
"MIT"
] | null | null | null | marltoolbox/examples/tune_function_api/lola_pg_official.py | tobiasbaumann1/amd | cb6190be92dea54db04ef9202d381b96f6f6218b | [
"MIT"
] | null | null | null | marltoolbox/examples/tune_function_api/lola_pg_official.py | tobiasbaumann1/amd | cb6190be92dea54db04ef9202d381b96f6f6218b | [
"MIT"
] | null | null | null | ##########
# Additional dependencies are needed:
# Follow the LOLA installation described in the tune_class_api/lola_pg_official.py file
##########
import os
import ray
from ray import tune
import marltoolbox.algos.lola.envs as lola_envs
import marltoolbox.algos.lola_dice.envs as lola_dice_envs
from marltoolbox.algos... | 37.826087 | 116 | 0.577395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,732 | 0.221201 |
d4f523ec6d8e4a47a69a4a400a7f08b9647af175 | 1,154 | py | Python | src/cut_link/utils.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | src/cut_link/utils.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | src/cut_link/utils.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | import string
import random
import json
from calendar import month_name
from django.conf import settings
SHORTLINK_MIN = getattr(settings, "SHORTLINK_MIN", 6)
def code_generator(size=SHORTLINK_MIN):
chars = string.ascii_letters + string.digits
return ''.join(random.choice(chars) for _ in range(size))
def c... | 27.47619 | 72 | 0.710572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 264 | 0.228769 |
d4f583072901ee0ab94c10d93e238c7f33bf30a3 | 4,745 | py | Python | lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | null | null | null | lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | 1 | 2015-02-21T18:48:19.000Z | 2015-02-27T15:50:32.000Z | lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_util.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | 3 | 2015-02-22T13:34:16.000Z | 2020-10-01T01:28:04.000Z | #!/usr/bin/python
import argparse
import ConfigParser
import os
import sys
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
new_path.extend( sys.path[1:] )
sys.path = new_path
from galaxy import eggs
eggs.require( "SQLAlchemy >= 0.4" )
import galaxy.webapps.tool_shed.model.mapping as tool_shed_model
from sqlalchemy.... | 36.221374 | 140 | 0.641307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,278 | 0.269336 |
d4f5c78a68ce3ab44360536293de688747eefa47 | 1,327 | py | Python | moto/dynamodbstreams/responses.py | jonnangle/moto-1 | 40b4e299abb732aad7f56cc0f680c0a272a46594 | [
"Apache-2.0"
] | 3 | 2020-08-04T20:29:41.000Z | 2020-11-09T09:28:19.000Z | moto/dynamodbstreams/responses.py | jonnangle/moto-1 | 40b4e299abb732aad7f56cc0f680c0a272a46594 | [
"Apache-2.0"
] | 17 | 2020-08-28T12:53:56.000Z | 2020-11-10T01:04:46.000Z | moto/dynamodbstreams/responses.py | jonnangle/moto-1 | 40b4e299abb732aad7f56cc0f680c0a272a46594 | [
"Apache-2.0"
] | 2 | 2017-03-02T05:59:52.000Z | 2020-09-03T13:25:44.000Z | from __future__ import unicode_literals
from moto.core.responses import BaseResponse
from .models import dynamodbstreams_backends
from six import string_types
class DynamoDBStreamsHandler(BaseResponse):
@property
def backend(self):
return dynamodbstreams_backends[self.region]
def describe_strea... | 32.365854 | 75 | 0.699322 | 1,163 | 0.876413 | 0 | 0 | 85 | 0.064054 | 0 | 0 | 166 | 0.125094 |
d4f6462a075ffe065a5c5d813a1e145ed305cf7d | 962 | py | Python | tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py | ytorzuk-altran/openvino | 68d460a3bb578a738ba0e4d0e1f2e321afa73ab0 | [
"Apache-2.0"
] | 1 | 2021-04-20T08:14:51.000Z | 2021-04-20T08:14:51.000Z | tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py | ytorzuk-altran/openvino | 68d460a3bb578a738ba0e4d0e1f2e321afa73ab0 | [
"Apache-2.0"
] | 55 | 2020-11-16T09:55:29.000Z | 2022-03-28T13:18:15.000Z | tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py | ytorzuk-altran/openvino | 68d460a3bb578a738ba0e4d0e1f2e321afa73ab0 | [
"Apache-2.0"
] | 1 | 2021-02-15T01:13:57.000Z | 2021-02-15T01:13:57.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
from openvino.tools.mo.front.extractor import FrontExtractorOp
from openvino.tools.mo.front.mxnet.extractors.utils import get_mxnet_layer_attrs
from openvino.tools.mo.ops.const import Const
class ZerosFrontExtractor... | 28.294118 | 80 | 0.637214 | 666 | 0.692308 | 0 | 0 | 579 | 0.601871 | 0 | 0 | 157 | 0.163202 |
d4f6be38b9352af5e1c2c173a5437dc5e5702e4d | 4,359 | py | Python | tools/jslib_builder.py | Jumpscale/jumpscale_portal8 | 3a4d56a1ba985b68fe9b525aed2486a54808332f | [
"Apache-2.0"
] | null | null | null | tools/jslib_builder.py | Jumpscale/jumpscale_portal8 | 3a4d56a1ba985b68fe9b525aed2486a54808332f | [
"Apache-2.0"
] | 74 | 2015-12-28T16:17:20.000Z | 2021-09-08T12:28:59.000Z | tools/jslib_builder.py | Jumpscale/jumpscale_portal8 | 3a4d56a1ba985b68fe9b525aed2486a54808332f | [
"Apache-2.0"
] | null | null | null |
from JumpScale import j
class builder():
# @property
# def buildDir(self):
# return j.sal.fs.joinPaths(j.dirs.tmpDir, "jsbuilder")
@property
def cuisine(self):
return j.tools.cuisine.local
# ALL NOT NEEDED ANY LONGER USE bower
# def angular(self):
# version = "1.5... | 36.630252 | 175 | 0.566873 | 4,307 | 0.988071 | 0 | 0 | 69 | 0.015829 | 0 | 0 | 3,434 | 0.787795 |
d4f6ca3a52378c092fed2c8021d1ffb5c3d7441c | 882 | py | Python | SimpleSimulator/samuelator.py | Anindya-Prithvi/CO_M21_Assignment | 524bd2b866dd58a6358354cda65e2136ecd46e50 | [
"Apache-2.0"
] | 3 | 2021-09-11T05:58:46.000Z | 2021-12-21T14:03:20.000Z | SimpleSimulator/samuelator.py | sc0rp10n-py/CO_M21_Assignment | 524bd2b866dd58a6358354cda65e2136ecd46e50 | [
"Apache-2.0"
] | null | null | null | SimpleSimulator/samuelator.py | sc0rp10n-py/CO_M21_Assignment | 524bd2b866dd58a6358354cda65e2136ecd46e50 | [
"Apache-2.0"
] | 3 | 2021-09-05T12:55:38.000Z | 2022-03-18T02:51:29.000Z | import sys
import warnings
import matplotlib.pyplot as plt
from parsets import IMACC, IMG, PROGC, REGFLPC, ExecE, plot
warnings.filterwarnings("ignore")
MEM = IMACC(sys.stdin.read()) # Load memory from stdin
PC = PROGC(0) # Start from the first instruction
RF = REGFLPC() # initialize register and flags
EE = ExecE... | 22.615385 | 77 | 0.672336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 218 | 0.247166 |
d4f722d8fa5429ebec246908bcfdfc1e45bff80b | 5,884 | py | Python | utils/converters.py | LiReNa00/JDBot | c85b31e272d5394ba5debc26b8b5357fb9d3d844 | [
"MIT"
] | null | null | null | utils/converters.py | LiReNa00/JDBot | c85b31e272d5394ba5debc26b8b5357fb9d3d844 | [
"MIT"
] | null | null | null | utils/converters.py | LiReNa00/JDBot | c85b31e272d5394ba5debc26b8b5357fb9d3d844 | [
"MIT"
] | null | null | null | import discord
import re
import emoji
import contextlib
import typing
import datetime
from discord.ext import commands
from discord.http import Route
class BetterMemberConverter(commands.Converter):
async def convert(self, ctx, argument):
try:
user = await commands.MemberConverter().convert(ct... | 31.132275 | 127 | 0.593644 | 4,979 | 0.846193 | 0 | 0 | 952 | 0.161795 | 4,053 | 0.688817 | 1,003 | 0.170462 |
d4f79ba15482dc239d99373d27359b1da32e98ba | 1,172 | py | Python | kissim/cli/encode.py | AJK-dev/kissim | 15375000d47b5d5485322fc725809f853a3659de | [
"MIT"
] | 15 | 2020-06-23T14:46:07.000Z | 2022-02-03T04:23:56.000Z | kissim/cli/encode.py | volkamerlab/kissim | 35198a5efd4b651dd3952bf26ac5098fd1c4dfaa | [
"MIT"
] | 66 | 2020-11-05T11:45:21.000Z | 2021-12-15T12:11:20.000Z | kissim/cli/encode.py | AJK-dev/kissim | 15375000d47b5d5485322fc725809f853a3659de | [
"MIT"
] | 3 | 2021-02-27T12:56:27.000Z | 2022-02-03T04:23:57.000Z | """
kissim.cli.encode
Encode structures (generate fingerprints) from CLI arguments.
"""
import numpy as np
from kissim.api import encode
from kissim.cli.utils import configure_logger
def encode_from_cli(args):
"""
Encode structures.
Parameters
----------
args : argsparse.Namespace
CLI ... | 22.113208 | 97 | 0.654437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 504 | 0.430034 |
d4f91839d0ba937bffd97ff3a607f1dad1fc55ad | 1,690 | py | Python | distanceProfile.py | ZiyaoWei/pyMatrixProfile | 1c88e1558e2bc5210d328d253572f5ff7fab1a5e | [
"MIT"
] | 29 | 2017-08-13T04:24:16.000Z | 2021-12-24T07:51:08.000Z | Matrix Profile/Implementation/pyMatrixProfile-master/distanceProfile.py | rakesh-lagare/Thesis_Work | 733285eae31a3fd8b613ec30d9e2ab9befd57614 | [
"Apache-2.0"
] | 2 | 2018-02-12T11:58:53.000Z | 2018-08-20T19:51:47.000Z | Matrix Profile/Implementation/pyMatrixProfile-master/distanceProfile.py | rakesh-lagare/Thesis_Work | 733285eae31a3fd8b613ec30d9e2ab9befd57614 | [
"Apache-2.0"
] | 15 | 2017-08-19T23:16:45.000Z | 2019-09-21T04:53:43.000Z | import numpy as np
from util import *
def naiveDistanceProfile(tsA, idx, m, tsB = None):
"""Return the distance profile of query against ts. Use the naive all pairs comparison algorithm.
>>> np.round(naiveDistanceProfile(np.array([0.0, 1.0, -1.0, 0.0]), 0, 4, np.array([-1, 1, 0, 0, -1, 1])), 3)
array([[ 2... | 34.489796 | 112 | 0.56213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 503 | 0.297633 |
d4f945809a73eb22e79d64ed4418fcf53a6bccb9 | 73 | py | Python | test_0000.py | theo-dim/cash-gels-thesis | de8c1b20f766aa1c58d8f692373c76683d165a66 | [
"MIT"
] | null | null | null | test_0000.py | theo-dim/cash-gels-thesis | de8c1b20f766aa1c58d8f692373c76683d165a66 | [
"MIT"
] | null | null | null | test_0000.py | theo-dim/cash-gels-thesis | de8c1b20f766aa1c58d8f692373c76683d165a66 | [
"MIT"
] | null | null | null | import pyplot as plt
import numpy as np
from sklearn import linear_model
| 18.25 | 32 | 0.835616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |