hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
178907a0d85d7faa09009d64b47aa951a1ef96e7
9,038
py
Python
scratch/losses/plot_predictions.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
2
2021-07-26T10:56:33.000Z
2021-12-20T17:30:53.000Z
scratch/losses/plot_predictions.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
1
2021-11-25T21:01:19.000Z
2021-12-05T01:40:53.000Z
scratch/losses/plot_predictions.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
1
2021-11-27T02:35:10.000Z
2021-11-27T02:35:10.000Z
import numpy as np import matplotlib.pyplot as plt from pickle import load ############# PLOT ############## def cauchy_selection_loss_numpy(y_true, y_predicted): y_max = 1 y_min = -1 gamma = 1 r = (y_true - y_predicted)/gamma epsilon = 10**-6 tail_term = np.log(1 + np.square(r)) selecti...
41.64977
118
0.628347
f2685fdf37bdbbf4b97d87c067d4a4aa0ce664d7
777
py
Python
tools/sqlmap/waf/modsecurity.py
glaudsonml/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
35
2017-05-22T14:42:01.000Z
2020-09-07T21:24:41.000Z
tools/sqlmap/waf/modsecurity.py
tmaxter/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
null
null
null
tools/sqlmap/waf/modsecurity.py
tmaxter/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
5
2017-12-19T03:36:54.000Z
2021-04-14T18:05:08.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import re from lib.core.enums import HTTP_HEADER from lib.core.settings import WAF_ATTACK_VECTORS __product__ = "ModSecurity: Open Source Web Application Firewall (Trustwave...
28.777778
104
0.685972
94c151527ff4d9456770ff0a0a85d594c08cbb81
655
py
Python
search_in_rotated_sorted_array.py
sarveshbhatnagar/CompetetiveProgramming
09ff483eb17c3292c9b7fa03e622a240406ce8ca
[ "MIT" ]
null
null
null
search_in_rotated_sorted_array.py
sarveshbhatnagar/CompetetiveProgramming
09ff483eb17c3292c9b7fa03e622a240406ce8ca
[ "MIT" ]
null
null
null
search_in_rotated_sorted_array.py
sarveshbhatnagar/CompetetiveProgramming
09ff483eb17c3292c9b7fa03e622a240406ce8ca
[ "MIT" ]
null
null
null
from typing import List class Solution: def search(self, nums: List[int], target: int) -> int: l = 0 r = len(nums)-1 while l <= r: mid = (l+r) // 2 if target == nums[mid]: return mid # left portion sorted... if nums[l] <= nu...
23.392857
58
0.370992
a8639b178dc1448f1a94b7cd466a1b82e40dbdaa
397
py
Python
QuestionApp/QuestionApp/wsgi.py
darpankakadia/Survey
6f29836b1bb003bc74a18acc85e8b587d492ba42
[ "MIT" ]
null
null
null
QuestionApp/QuestionApp/wsgi.py
darpankakadia/Survey
6f29836b1bb003bc74a18acc85e8b587d492ba42
[ "MIT" ]
null
null
null
QuestionApp/QuestionApp/wsgi.py
darpankakadia/Survey
6f29836b1bb003bc74a18acc85e8b587d492ba42
[ "MIT" ]
null
null
null
""" WSGI config for QuestionApp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "QuestionApp.settings") from djang...
26.466667
78
0.793451
a830a0598bd668f49de5eee39ca7ee9fbf4b8ad5
1,022
py
Python
archive.py
towerjoo/certbot-route53
e2f406cb233a0266893573b989cee491637e577d
[ "MIT" ]
null
null
null
archive.py
towerjoo/certbot-route53
e2f406cb233a0266893573b989cee491637e577d
[ "MIT" ]
null
null
null
archive.py
towerjoo/certbot-route53
e2f406cb233a0266893573b989cee491637e577d
[ "MIT" ]
1
2019-10-23T06:30:40.000Z
2019-10-23T06:30:40.000Z
import os from zipfile import ZipFile ROOT = os.path.abspath(os.path.dirname(__file__)) domains = ["tradexport.com", "tradexport.cn", "zeno.group", "zeno-dev.com", ] finalfiles = [] for domain in domains: folder = os.path.join(ROOT, "letsencrypt/archive/", domain) ...
23.767442
63
0.517613
9b762526c01e6d1b2aea021d37d61ace989c1c11
1,017
py
Python
tests/test_delaunay.py
Jeremiah-England/Shapely
769b203f2b7cbeeb0a694c21440b4025a563f807
[ "BSD-3-Clause" ]
2,382
2015-01-04T03:16:59.000Z
2021-12-10T15:48:56.000Z
tests/test_delaunay.py
Jeremiah-England/Shapely
769b203f2b7cbeeb0a694c21440b4025a563f807
[ "BSD-3-Clause" ]
1,009
2015-01-03T23:44:02.000Z
2021-12-10T16:02:42.000Z
tests/test_delaunay.py
Jeremiah-England/Shapely
769b203f2b7cbeeb0a694c21440b4025a563f807
[ "BSD-3-Clause" ]
467
2015-01-19T23:18:33.000Z
2021-12-09T18:31:28.000Z
import unittest from shapely.geometry import Polygon, LineString, Point from shapely.ops import triangulate from shapely.geos import geos_version @unittest.skipIf(geos_version < (3, 4, 0), "Delaunay triangulation not supported") class DelaunayTriangulation(unittest.TestCase): """ Only testin...
29.911765
70
0.640118
8351a5c39eced17b39a08bd2454ccb87c292b155
2,090
py
Python
attre2vec/sampling.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
attre2vec/sampling.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
attre2vec/sampling.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
"""Functions for sampling negative and positive neighbor edges.""" import numpy as np def _get_neighborhood(xe, rws, graph): neighborhood = {} for edge in xe: neighbors = list(set( e for walk in rws[edge].values() for edges in walk for e in edges ...
26.455696
70
0.589474
7791fb94151b74ded1f0205e233a075a26d0e999
12,202
py
Python
webdataset/autodecode.py
sudrich/webdataset
315977952b74a87848983518c64c9ad43e66c71f
[ "BSD-3-Clause" ]
1
2021-09-14T15:11:36.000Z
2021-09-14T15:11:36.000Z
webdataset/autodecode.py
jacobbieker/webdataset
9033c068e5b7bb6d331da8bb3f714980c7dd4738
[ "BSD-3-Clause" ]
null
null
null
webdataset/autodecode.py
jacobbieker/webdataset
9033c068e5b7bb6d331da8bb3f714980c7dd4738
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2017-2021 NVIDIA CORPORATION. All rights reserved. # This file is part of the WebDataset library. # See the LICENSE file for licensing terms (BSD-style). # """Automatically decode webdataset samples.""" import io import json import os import pickle import re import tempfile from functools import par...
29.47343
94
0.560974
79dd2b3d772d74898d1b3135ad3df1ea37a81361
5,733
py
Python
src/utils.py
vineeths96/Spoken-Keyword-Spotting
8cd903171d837e27dfef3b779187a743a818e0e5
[ "MIT" ]
33
2020-07-20T09:09:12.000Z
2022-03-29T01:01:43.000Z
src/utils.py
vineeths96/Spoken-Keyword-Spotting
8cd903171d837e27dfef3b779187a743a818e0e5
[ "MIT" ]
12
2020-09-30T09:38:32.000Z
2022-02-10T02:06:31.000Z
src/utils.py
vineeths96/Spoken-Keyword-Spotting
8cd903171d837e27dfef3b779187a743a818e0e5
[ "MIT" ]
9
2020-11-27T13:41:10.000Z
2022-03-23T05:22:48.000Z
import os import numpy as np import tensorflow as tf from scipy.io import wavfile import seaborn as sns import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator from sklearn.metrics import accuracy_score, recall_score, matthews_corrcoef from sklearn.metrics import precision_score, f1_score, confusion_m...
28.241379
109
0.683063
294133a4c509c2941350447cf7d0b1267232b5e3
67,297
py
Python
ironic/tests/unit/drivers/modules/test_ipxe.py
dangervon/ironic
01dd06a17673ec5157dda2ecfc51feb9d2f8e5c2
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/modules/test_ipxe.py
dangervon/ironic
01dd06a17673ec5157dda2ecfc51feb9d2f8e5c2
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/modules/test_ipxe.py
dangervon/ironic
01dd06a17673ec5157dda2ecfc51feb9d2f8e5c2
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
51.926698
79
0.635333
ce53db6900caf72fd8cdb5a89e4d1c86ab3f9a2c
14,997
py
Python
lib/axis/tb/test_axis_switch_4x4_64.py
junganghu/verilog-ethernet
cd6b87e984ff7cbeaf11f9468124019f5e654bdb
[ "MIT" ]
1
2021-04-29T08:37:07.000Z
2021-04-29T08:37:07.000Z
lib/axis/tb/test_axis_switch_4x4_64.py
zslwyuan/verilog-ethernet
cd6b87e984ff7cbeaf11f9468124019f5e654bdb
[ "MIT" ]
null
null
null
lib/axis/tb/test_axis_switch_4x4_64.py
zslwyuan/verilog-ethernet
cd6b87e984ff7cbeaf11f9468124019f5e654bdb
[ "MIT" ]
1
2021-09-25T05:45:18.000Z
2021-09-25T05:45:18.000Z
#!/usr/bin/env python """ Copyright (c) 2016-2018 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
33.179204
111
0.624325
0876e221d0f9e16669aa3f8f008cf68a1b12568d
1,130
py
Python
eduu/plugins/hastebin.py
Keys-007/EduuRobot
13d75fee3b3c08cd6f1f0c6dcec5df0f542ba851
[ "MIT" ]
1
2022-01-01T07:19:42.000Z
2022-01-01T07:19:42.000Z
eduu/plugins/hastebin.py
Keys-007/EduuRobot
13d75fee3b3c08cd6f1f0c6dcec5df0f542ba851
[ "MIT" ]
null
null
null
eduu/plugins/hastebin.py
Keys-007/EduuRobot
13d75fee3b3c08cd6f1f0c6dcec5df0f542ba851
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (c) 2018-2022 Amano Team from pyrogram import Client, filters from pyrogram.types import Message from eduu.config import prefix from eduu.utils import commands, http from eduu.utils.localization import use_chat_lang @Client.on_message(filters.command("hastebin", prefix)) @...
32.285714
74
0.678761
2c9ca39645d26c375b32a4b1284c00f94778087f
71,280
py
Python
google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
40.801374
192
0.605822
6dbc1bd370a67e18966117b85ea21571800fa0f7
2,206
py
Python
ml_web_project/ml_project/views.py
DJayDixit/ml-web-project
33623b537c22f325f86d221a372449a14348dbe1
[ "MIT" ]
null
null
null
ml_web_project/ml_project/views.py
DJayDixit/ml-web-project
33623b537c22f325f86d221a372449a14348dbe1
[ "MIT" ]
null
null
null
ml_web_project/ml_project/views.py
DJayDixit/ml-web-project
33623b537c22f325f86d221a372449a14348dbe1
[ "MIT" ]
null
null
null
from django.shortcuts import render # from apps import MlProjectConfig import pickle import pandas as pd class HousePrice(): def load_model(self, core_cpi_file, year_gni_file, price_file): # C:\Users\jaydi\Documents\GitHub\ml-web-project\ml_web_project\ml_project\core_cpi_predict.pickle core_cpi_...
38.701754
119
0.69447
8cbe196ffa1191e928886794a437ce52f6cca02e
1,109
py
Python
tests/emukit/bayesian_optimization/test_cost_sensitive_bayesian_optimization.py
DavidJanz/emukit
7421cb7f4ed831b6581f3686806521ff7fb97e74
[ "Apache-2.0" ]
6
2019-06-02T21:23:27.000Z
2020-02-17T09:46:30.000Z
tests/emukit/bayesian_optimization/test_cost_sensitive_bayesian_optimization.py
Tony-Chiong/emukit
a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a
[ "Apache-2.0" ]
4
2019-05-17T13:30:21.000Z
2019-06-21T13:49:19.000Z
tests/emukit/bayesian_optimization/test_cost_sensitive_bayesian_optimization.py
Tony-Chiong/emukit
a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a
[ "Apache-2.0" ]
null
null
null
import GPy import numpy as np from emukit.bayesian_optimization.loops.cost_sensitive_bayesian_optimization_loop import ( CostSensitiveBayesianOptimizationLoop) from emukit.core import ContinuousParameter, ParameterSpace from emukit.core.loop.user_function import UserFunctionWrapper from emukit.model_wrappers impor...
32.617647
90
0.786294
dc8cb41e336c52557fb8981fe2873d410533474c
3,334
py
Python
tests/features/basic_batch_test_prediction_steps.py
osroca/bigmler
8e4ccaea8fa5329674c7e6909381a9688a8bb24b
[ "Apache-2.0" ]
1
2021-08-30T20:18:57.000Z
2021-08-30T20:18:57.000Z
tests/features/basic_batch_test_prediction_steps.py
osroca/bigmler
8e4ccaea8fa5329674c7e6909381a9688a8bb24b
[ "Apache-2.0" ]
null
null
null
tests/features/basic_batch_test_prediction_steps.py
osroca/bigmler
8e4ccaea8fa5329674c7e6909381a9688a8bb24b
[ "Apache-2.0" ]
1
2021-08-30T20:19:05.000Z
2021-08-30T20:19:05.000Z
import os import time import csv import json from lettuce import step, world from subprocess import check_call, CalledProcessError from bigml.api import check_resource @step(r'I check that the batch prediction has been created') def i_check_create_batch_prediction(step): batch_prediction_file = "%s%sbatch_predict...
40.168675
86
0.682064
edcae9e12719b800ebdc405caf8f70e82cbdf5dc
824
py
Python
memover/mover.py
Alecktos/Directory-Tree-File-Mover
ac642ba0599534cdd248e56e8db842dbf1972496
[ "MIT" ]
1
2021-11-23T21:17:24.000Z
2021-11-23T21:17:24.000Z
memover/mover.py
Alecktos/Directory-Tree-File-Mover
ac642ba0599534cdd248e56e8db842dbf1972496
[ "MIT" ]
null
null
null
memover/mover.py
Alecktos/Directory-Tree-File-Mover
ac642ba0599534cdd248e56e8db842dbf1972496
[ "MIT" ]
null
null
null
from . import episode_mover from . import file_handler from . import file_matcher from . import movie_mover from . import subtitles from .media_file_extractor import get_type, Type def move_media_by_name(name, source_path, show_destination_path, movie_destination_path): paths = file_matcher.search_files(name, sou...
32.96
89
0.783981
2933f5bbbce9d70a1be70f1b1dfc20317315b391
51,857
py
Python
src/sage/misc/misc.py
robertwb/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
2
2018-06-30T01:37:35.000Z
2018-06-30T01:37:39.000Z
src/sage/misc/misc.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
src/sage/misc/misc.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
""" Miscellaneous functions AUTHORS: - William Stein - William Stein (2006-04-26): added workaround for Windows where most users' home directory has a space in it. - Robert Bradshaw (2007-09-20): Ellipsis range/iterator. TESTS: The following test, verifying that :trac:`16181` has been resolved, needs to stay at...
27.671825
122
0.524539
a6ff74c47d8a202ce51eca532ad87f7c65ee1341
3,224
py
Python
deblurrer/scripts/datasets/kaggle_blur.py
ElPapi42/DeepDeblurring
8649f607ddf70a14c067cf902fbba341f99635af
[ "MIT" ]
2
2020-06-23T21:56:53.000Z
2021-02-02T10:21:35.000Z
deblurrer/scripts/datasets/kaggle_blur.py
ElPapi42/DeepDeblurring
8649f607ddf70a14c067cf902fbba341f99635af
[ "MIT" ]
6
2020-05-27T15:07:07.000Z
2021-02-11T12:24:46.000Z
deblurrer/scripts/datasets/kaggle_blur.py
ElPapi42/DeepDeblurring
8649f607ddf70a14c067cf902fbba341f99635af
[ "MIT" ]
2
2020-09-28T21:04:31.000Z
2021-02-11T12:26:56.000Z
#!/usr/bin/python # coding=utf-8 """ Downloads the kaggle blur dataset training data. The data must be downloaded to "/datasets/kaggle_blur" The module must define the data extraction logic. # You can run this on google colab for get faster downloads speeds """ import os import shutil import pathlib from kaggle ...
26.866667
119
0.626861
44fe0468c9ea960fdf806e4d82a7f61598d6dbbb
4,132
py
Python
benchmark/startQiskit_noisy2225.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2225.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2225.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=40 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
34.433333
140
0.653437
77c5a2836f081cbc63744765fd6b0b64f50b6d8b
4,529
py
Python
tests/unit/ppr/test_draft_summary.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
null
null
null
tests/unit/ppr/test_draft_summary.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
10
2021-01-25T22:24:29.000Z
2021-12-17T21:40:15.000Z
tests/unit/ppr/test_draft_summary.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
21
2021-01-25T22:27:45.000Z
2022-01-19T19:43:37.000Z
# Copyright © 2020 Province of British Columbia # # 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 agr...
26.958333
91
0.681828
5f586c2bdd14140474896436317e8096ed2c8c80
424
py
Python
tinyfunds/users/migrations/0005_user_total_hours_pledged.py
sleepy/tinyfunds
e66c9ee158fa4c3b5ec14b2a5ea20cbdcc1c29e1
[ "MIT" ]
1
2020-12-02T19:47:33.000Z
2020-12-02T19:47:33.000Z
tinyfunds/users/migrations/0005_user_total_hours_pledged.py
sleepy/tinyfunds
e66c9ee158fa4c3b5ec14b2a5ea20cbdcc1c29e1
[ "MIT" ]
4
2021-04-08T20:35:24.000Z
2021-09-22T19:40:03.000Z
tinyfunds/users/migrations/0005_user_total_hours_pledged.py
sleepy/tinyfunds
e66c9ee158fa4c3b5ec14b2a5ea20cbdcc1c29e1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-11-17 20:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_user_total_donated'), ] operations = [ migrations.AddField( model_name='user', name='total_hours_pledg...
22.315789
81
0.620283
047bdd7e654b881f78be80746f756d0ae997d651
6,456
py
Python
phasic_policy_gradient/tree_util.py
Leo-xh/Phasic-policy-graident
8cc55726d2d3ee20a9bd410384099326d8657f73
[ "MIT" ]
null
null
null
phasic_policy_gradient/tree_util.py
Leo-xh/Phasic-policy-graident
8cc55726d2d3ee20a9bd410384099326d8657f73
[ "MIT" ]
null
null
null
phasic_policy_gradient/tree_util.py
Leo-xh/Phasic-policy-graident
8cc55726d2d3ee20a9bd410384099326d8657f73
[ "MIT" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.345455
88
0.671623
bc691134870bdc37555afdb85457f84d41260d34
14,387
py
Python
tools/targets/NU_M2354.py
adelcrosge1/mbed-os
1443257e40c97141c975f1c5cd7f4cf308a58b5e
[ "Apache-2.0" ]
3,897
2015-09-04T13:42:23.000Z
2022-03-30T16:53:07.000Z
tools/targets/NU_M2354.py
adelcrosge1/mbed-os
1443257e40c97141c975f1c5cd7f4cf308a58b5e
[ "Apache-2.0" ]
13,030
2015-09-17T10:30:05.000Z
2022-03-31T13:36:44.000Z
tools/targets/NU_M2354.py
adelcrosge1/mbed-os
1443257e40c97141c975f1c5cd7f4cf308a58b5e
[ "Apache-2.0" ]
2,950
2015-09-08T19:07:05.000Z
2022-03-31T13:37:23.000Z
#!/usr/bin/python # Copyright (c) 2017-2021 Arm Limited # # SPDX-License-Identifier: Apache-2.0 # # 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-...
42.439528
162
0.665045
bf50066ec02341e5098512f3313e3ddef61ee41d
1,789
py
Python
GoogleCodeJam/FairAndSquare.py
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
1
2018-08-28T19:58:40.000Z
2018-08-28T19:58:40.000Z
GoogleCodeJam/FairAndSquare.py
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
2
2017-04-16T00:48:05.000Z
2017-08-03T20:12:26.000Z
GoogleCodeJam/FairAndSquare.py
aajjbb/contest-files
b8842681b96017063a7baeac52ae1318bf59d74d
[ "Apache-2.0" ]
4
2016-03-04T19:42:00.000Z
2018-01-08T11:42:00.000Z
import sys #sys.stdin = open("i.in", "r") #sys.stdout = open("o.ot", "w") MAXN = pow(10, 10) buff = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '101', '202', '303', '404', '505', '606', '707', '808', '909'] values = set() #LIB def is_square(apositiveint): x = apositiveint // 2 seen = set([...
21.817073
121
0.464505
61c896404f7912d4b47b73bec2285ffd6387e9b2
6,681
py
Python
_pytest/unittest.py
michilu/pytest
65ee5c11ff0b281adb345b55b062aed94ecaf213
[ "MIT" ]
null
null
null
_pytest/unittest.py
michilu/pytest
65ee5c11ff0b281adb345b55b062aed94ecaf213
[ "MIT" ]
null
null
null
_pytest/unittest.py
michilu/pytest
65ee5c11ff0b281adb345b55b062aed94ecaf213
[ "MIT" ]
null
null
null
""" discovery and running of std-library "unittest" style tests. """ import pytest, py import sys, pdb # for transfering markers from _pytest.python import transfer_markers def pytest_pycollect_makeitem(collector, name, obj): unittest = sys.modules.get('unittest') if unittest is None: return # nobody ...
36.113514
79
0.605897
79705d4fc8cb4cfb03bc299d722c8723fd7c417b
791
py
Python
test/terra/__init__.py
awcross1/qiskit-aer
72863e804ec3d07c0da2ebeb665a31db7a7e3010
[ "Apache-2.0" ]
null
null
null
test/terra/__init__.py
awcross1/qiskit-aer
72863e804ec3d07c0da2ebeb665a31db7a7e3010
[ "Apache-2.0" ]
null
null
null
test/terra/__init__.py
awcross1/qiskit-aer
72863e804ec3d07c0da2ebeb665a31db7a7e3010
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. ''' Terra tests ''' import os def load_tests(loader, standard_tests, pattern): """ test suite for unittest discove...
28.25
79
0.687737
ca34288f466af309c0af4442f98356605b5b5082
12,155
py
Python
examples/neq-switching/run_rj_neq.py
mikemhenry/perses
e8a2b7ef7ec500a16cbc83c6ea1ca444c35024d7
[ "MIT" ]
null
null
null
examples/neq-switching/run_rj_neq.py
mikemhenry/perses
e8a2b7ef7ec500a16cbc83c6ea1ca444c35024d7
[ "MIT" ]
null
null
null
examples/neq-switching/run_rj_neq.py
mikemhenry/perses
e8a2b7ef7ec500a16cbc83c6ea1ca444c35024d7
[ "MIT" ]
null
null
null
import numpy as np import tqdm from openmmtools import integrators, states, mcmc, constants from perses.rjmc.topology_proposal import TopologyProposal from perses.rjmc.geometry import FFAllAngleGeometryEngine from perses.annihilation.ncmc_switching import NCMCEngine from simtk import openmm, unit from io import StringI...
42.95053
209
0.756397
69028bc3c4e5a4ba1c689ed019b1fae9ec41e5f8
16,422
py
Python
mnist_multiple_classes.py
Pehlevan-Group/NTK_Learning_Curves
66729510df9fb47b4f836bbbf994325a7c088a58
[ "MIT" ]
3
2020-09-21T06:46:48.000Z
2021-03-05T02:47:04.000Z
mnist_multiple_classes.py
Pehlevan-Group/NTK_Learning_Curves
66729510df9fb47b4f836bbbf994325a7c088a58
[ "MIT" ]
4
2021-06-19T19:36:10.000Z
2021-06-19T22:45:15.000Z
mnist_multiple_classes.py
Pehlevan-Group/NTK_Learning_Curves
66729510df9fb47b4f836bbbf994325a7c088a58
[ "MIT" ]
2
2020-09-15T22:38:23.000Z
2021-06-19T20:28:13.000Z
import jax import jax.numpy as np from jax import random from jax.experimental import optimizers from jax.api import jit, grad, vmap import functools import neural_tangents as nt from neural_tangents import stax import matplotlib.pyplot as plt import scipy as sp import scipy.special import scipy.optimize import numpy a...
34
158
0.640848
00e381ad0cd10285e4dbd19e24c1a630471e484f
188
py
Python
astraviso/test/__init__.py
bradsease/test2
0925f1a170b2e1d7c09902cd8550dc844b7d7764
[ "MIT" ]
null
null
null
astraviso/test/__init__.py
bradsease/test2
0925f1a170b2e1d7c09902cd8550dc844b7d7764
[ "MIT" ]
44
2017-02-22T23:38:52.000Z
2017-03-02T03:27:11.000Z
astraviso/test/__init__.py
bradsease/test
0925f1a170b2e1d7c09902cd8550dc844b7d7764
[ "MIT" ]
null
null
null
from .imageutils import * from .pointingutils import * from .projectionutils import * from .starcam import * from .starmap import * from .worldobject import * from .verification import *
20.888889
30
0.771277
735f794a14cfff1211ca83b34ce401c1a505f267
6,100
py
Python
qa/rpc-tests/proxy_test.py
NaniteCurrency/Nanite
f30178931f922d088e5317f95522dfdf02c02116
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
NaniteCurrency/Nanite
f30178931f922d088e5317f95522dfdf02c02116
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
NaniteCurrency/Nanite
f30178931f922d088e5317f95522dfdf02c02116
[ "MIT" ]
2
2018-03-27T00:41:16.000Z
2018-03-31T03:24:10.000Z
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import socket import traceback, sys from binascii import hexlify import time, os from socks5 import Socks5Conf...
41.780822
145
0.653115
95c53f9d470c3bd8509ca3715d178e3cd1cb99be
2,496
py
Python
learning/indexer.py
dokaptur/neural-fanfiction-generator
41b2305f96d97beb6752b306ebd8e05e14ffae12
[ "MIT" ]
null
null
null
learning/indexer.py
dokaptur/neural-fanfiction-generator
41b2305f96d97beb6752b306ebd8e05e14ffae12
[ "MIT" ]
null
null
null
learning/indexer.py
dokaptur/neural-fanfiction-generator
41b2305f96d97beb6752b306ebd8e05e14ffae12
[ "MIT" ]
null
null
null
class Indexer(object): def __init__(self, first_words=()): self._index = {} self._index_to_string = [] self._frozen = False self._reference_ids = [0] for w in first_words: self.string_to_int(w) def freeze(self, frozen = True): self._frozen = frozen ...
27.733333
91
0.564904
fe15836394d229055c17534c70fb39cea592e871
725
py
Python
src/GraphQueries/MyErrorListener.py
lanasheep/graph_DB
139aca8d1fa376291a181606b4d6fbc5be82de55
[ "MIT" ]
null
null
null
src/GraphQueries/MyErrorListener.py
lanasheep/graph_DB
139aca8d1fa376291a181606b4d6fbc5be82de55
[ "MIT" ]
4
2020-09-27T10:46:29.000Z
2020-10-03T08:34:38.000Z
src/GraphQueries/MyErrorListener.py
lanasheep/graph_DB
139aca8d1fa376291a181606b4d6fbc5be82de55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from antlr4.error.ErrorListener import ErrorListener class ParseError(Exception): pass class MyErrorListener(ErrorListener): def __init__(self): super(MyErrorListener, self).__init__() def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e): raise ...
31.521739
108
0.732414
0c14f161d136e0e5366e6d07b183cf5b2c46abd1
5,875
py
Python
src/3x3 Tic Tac Toe/AI_algo.py
ketan-lambat/AI_Games
a41481c806a4c274562f3bead92329496c5f5d50
[ "MIT" ]
1
2020-09-29T02:05:32.000Z
2020-09-29T02:05:32.000Z
src/3x3 Tic Tac Toe/AI_algo.py
ketan-lambat/AI_Games
a41481c806a4c274562f3bead92329496c5f5d50
[ "MIT" ]
null
null
null
src/3x3 Tic Tac Toe/AI_algo.py
ketan-lambat/AI_Games
a41481c806a4c274562f3bead92329496c5f5d50
[ "MIT" ]
1
2020-09-30T21:10:25.000Z
2020-09-30T21:10:25.000Z
import random from TicTacToe_AI import * # if AI turn isMax = True def random_cell(TTT): rndm_num = random.randint(0, len(empty_cells(TTT))-1) cells = empty_cells(TTT) rndm_cell = cells[rndm_num] return rndm_cell def minimax(TTT, isMax): if isMax: best = [-1, -1, -inf] else: ...
23.039216
69
0.470638
2a02e1916ab734dda9bc87ea3df4c786e65bc48b
3,977
py
Python
ext/opentelemetry-ext-http-requests/tests/test_requests_integration.py
Jamim/opentelemetry-python
6d1cd1f8f826bd7f36baaee949ff66f3c8007243
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-http-requests/tests/test_requests_integration.py
Jamim/opentelemetry-python
6d1cd1f8f826bd7f36baaee949ff66f3c8007243
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-http-requests/tests/test_requests_integration.py
Jamim/opentelemetry-python
6d1cd1f8f826bd7f36baaee949ff66f3c8007243
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenTelemetry 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 i...
34.885965
79
0.637918
76aadd980dfb75d99092327e44f3902533362dd0
4,770
py
Python
q2_gneiss/regression/_regression.py
nbokulich/q2-gneiss
b9ee3efb27f8a050546a231a62a47b3a7a490263
[ "BSD-3-Clause" ]
null
null
null
q2_gneiss/regression/_regression.py
nbokulich/q2-gneiss
b9ee3efb27f8a050546a231a62a47b3a7a490263
[ "BSD-3-Clause" ]
null
null
null
q2_gneiss/regression/_regression.py
nbokulich/q2-gneiss
b9ee3efb27f8a050546a231a62a47b3a7a490263
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2019, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
42.972973
79
0.607338
b7f20a4d599a7662138d7ed7d19a6b3c195dffe3
9,739
py
Python
lib/python3/green_environment/giesomat.py
l-hahn/green-environment
ff76de1c2170ffc4ffae3fd565a42b9e7c419dfe
[ "MIT" ]
null
null
null
lib/python3/green_environment/giesomat.py
l-hahn/green-environment
ff76de1c2170ffc4ffae3fd565a42b9e7c419dfe
[ "MIT" ]
null
null
null
lib/python3/green_environment/giesomat.py
l-hahn/green-environment
ff76de1c2170ffc4ffae3fd565a42b9e7c419dfe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ This module provides a class to interact with the Gies-O-Mat soil moisture sensor from ramser-elektro.at and is considered mostly to be used on a Raspberry Pi. With aprorpiate naming and if pigpio is also available, this class might be used for other SoC like Arduino, Genuino etc. This modul...
33.582759
95
0.605093
e38cd2eae955dabe6bd83436329b4821cc00bfc0
16,374
py
Python
test_autoarray/unit/dataset/test_interferometer.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
test_autoarray/unit/dataset/test_interferometer.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
test_autoarray/unit/dataset/test_interferometer.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
import os import shutil import numpy as np import pytest import autoarray as aa from autoarray.dataset import interferometer from autoarray import exc test_data_dir = "{}/../test_files/array/".format( os.path.dirname(os.path.realpath(__file__)) ) class TestInterferometerMethods: def test__data_with_resized...
42.092545
99
0.637535
08aadd81d8b3305dc6e575b67b4a471362270802
18,228
py
Python
examples/oandav20test/oandav20test.py
josipbudzaki/btoandav20
f6b7db07e37ed0d97df8a9c2337ce4b7e5953f56
[ "Apache-2.0" ]
60
2018-03-01T20:55:40.000Z
2020-08-24T13:13:42.000Z
examples/oandav20test/oandav20test.py
josipbudzaki/btoandav20
f6b7db07e37ed0d97df8a9c2337ce4b7e5953f56
[ "Apache-2.0" ]
54
2018-03-02T14:14:23.000Z
2020-08-18T12:09:35.000Z
examples/oandav20test/oandav20test.py
josipbudzaki/btoandav20
f6b7db07e37ed0d97df8a9c2337ce4b7e5953f56
[ "Apache-2.0" ]
33
2018-07-10T00:56:21.000Z
2020-07-28T12:56:44.000Z
#!/usr/bin/env python from __future__ import (absolute_import, division, print_function, unicode_literals) import argparse import datetime import backtrader as bt from backtrader.utils import flushfile # win32 quick stdout flushing import btoandav20 StoreCls = btoandav20.stores.OandaV20Sto...
37.352459
79
0.528363
c78bb45f17c19848fb7f47b72329e488c1ef35f0
1,189
py
Python
ex256/legendre_pi.py
joe-antognini/praxis
11e7fbd1805d9d77402f83f8a4101a90c75dc0a7
[ "MIT" ]
null
null
null
ex256/legendre_pi.py
joe-antognini/praxis
11e7fbd1805d9d77402f83f8a4101a90c75dc0a7
[ "MIT" ]
null
null
null
ex256/legendre_pi.py
joe-antognini/praxis
11e7fbd1805d9d77402f83f8a4101a90c75dc0a7
[ "MIT" ]
null
null
null
#! /usr/bin/env python from math import log, sqrt from sieve_erato import sieve_erato def memoize(f): class memodict(dict): def __init__(self, f): self.f = f def __call__(self, *args): return self[args] def __missing__(self, key): ret = self[key] = self.f(*key) return ret retur...
19.816667
76
0.576114
0930e4482c40398b0a2a5b4b99bc2a1b14e5bfa2
6,515
py
Python
calculation/gmhazard_calc/gmhazard_calc/directivity/scripts/mc_nhyp_runs.py
ucgmsim/gmhazard
d3d90b4c94b3d9605597a3efeccc8523a1e50c0e
[ "MIT" ]
null
null
null
calculation/gmhazard_calc/gmhazard_calc/directivity/scripts/mc_nhyp_runs.py
ucgmsim/gmhazard
d3d90b4c94b3d9605597a3efeccc8523a1e50c0e
[ "MIT" ]
8
2021-10-13T02:33:23.000Z
2022-03-29T21:01:08.000Z
calculation/gmhazard_calc/gmhazard_calc/directivity/scripts/mc_nhyp_runs.py
ucgmsim/gmhazard
d3d90b4c94b3d9605597a3efeccc8523a1e50c0e
[ "MIT" ]
null
null
null
""" Compute directivity values multiple times specified by a repeating value To understand the standard deviation in results for the different number of hypocentres """ import time import argparse import multiprocessing as mp from pathlib import Path import numpy as np from qcore import nhm import gmhazard_calc from ...
28.574561
88
0.552878
7fece85a0a17805ada21f70bd9db4431facfe854
1,793
py
Python
stacked_bar_kmers.py
borisz264/toeprint_seq
370bf91b3487b84286c42f2f7e41ab6cc41ba958
[ "MIT" ]
null
null
null
stacked_bar_kmers.py
borisz264/toeprint_seq
370bf91b3487b84286c42f2f7e41ab6cc41ba958
[ "MIT" ]
null
null
null
stacked_bar_kmers.py
borisz264/toeprint_seq
370bf91b3487b84286c42f2f7e41ab6cc41ba958
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import collections import numpy import math import aColors import tps_utils def plot_stack(sp, bin_edges, sequence_mappings_passing_cutoff, protein, scale='linear', thresh='2sig'): assert scale in ['linear', 'log'] sorted_mappings = sorted(sequence_mappings_passing_cutoff) e...
43.731707
116
0.625209
3e4186cbd91850c04567f1a99c6a5d761bee7f17
6,433
py
Python
zerver/tests/test_muting.py
ankita-2798/zulip
4e11e7ee5b3406f17120a05a4702c69a7e12d1e0
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_muting.py
ankita-2798/zulip
4e11e7ee5b3406f17120a05a4702c69a7e12d1e0
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_muting.py
ankita-2798/zulip
4e11e7ee5b3406f17120a05a4702c69a7e12d1e0
[ "Apache-2.0" ]
null
null
null
from django.utils.timezone import now as timezone_now from datetime import timedelta from typing import Any, Dict from zerver.lib.test_classes import ZulipTestCase from zerver.lib.stream_topic import StreamTopicTarget from zerver.models import ( get_stream, UserProfile, MutedTopic ) from zerver.lib.topic...
36.551136
98
0.611534
db04488c201a346e65fa0f38105931eb66b2bac0
2,269
py
Python
bin/entities2questions.py
mitchelljeff/hack1
990d873cbcd40d2978f44560016d18a76800908e
[ "MIT" ]
1
2018-10-23T12:07:31.000Z
2018-10-23T12:07:31.000Z
bin/entities2questions.py
mitchelljeff/hack1
990d873cbcd40d2978f44560016d18a76800908e
[ "MIT" ]
null
null
null
bin/entities2questions.py
mitchelljeff/hack1
990d873cbcd40d2978f44560016d18a76800908e
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, abort, request import tensorflow as tf from jack.core.data_structures import jtr_to_qasetting from jack.readers import readers, reader_from_file app = Flask(__name__) et2rels={} rel2qf={} with open("en-r2q.format") as f: for line in f: fields=line.rstrip("\n").spli...
29.855263
137
0.575143
a8d10facbeb498bc8e94c30b1172f9fd8448e954
9,172
py
Python
aioredis/commands/string.py
emorozov/aioredis
bad0bd2d1435e56688d189cf3209beec3d239557
[ "MIT" ]
null
null
null
aioredis/commands/string.py
emorozov/aioredis
bad0bd2d1435e56688d189cf3209beec3d239557
[ "MIT" ]
75
2020-12-09T06:53:47.000Z
2022-03-25T01:05:24.000Z
aioredis/commands/string.py
emorozov/aioredis
bad0bd2d1435e56688d189cf3209beec3d239557
[ "MIT" ]
null
null
null
from itertools import chain from aioredis.util import wait_convert, wait_ok, _NOTSET class StringCommandsMixin: """String commands mixin. For commands details see: http://redis.io/commands/#string """ SET_IF_NOT_EXIST = "SET_IF_NOT_EXIST" # NX SET_IF_EXIST = "SET_IF_EXIST" # XX def appen...
36.835341
80
0.602159
ef2847afc4c9ac868a63c5ba9a93f8b811317087
22,131
py
Python
plugins/module_utils/oci_compute_custom_helpers.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/module_utils/oci_compute_custom_helpers.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/module_utils/oci_compute_custom_helpers.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
# Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for details. from __fu...
39.66129
159
0.659979
b2963bf74ef5e38cfa925df823639577ceba941f
37,398
py
Python
larch/wxlib/columnframe.py
kbuc/xraylarch
3abb0d6bdc65cf2747a03dd114d98df317c0ac9f
[ "BSD-2-Clause" ]
90
2015-01-10T21:57:25.000Z
2022-03-29T15:21:52.000Z
larch/wxlib/columnframe.py
kbuc/xraylarch
3abb0d6bdc65cf2747a03dd114d98df317c0ac9f
[ "BSD-2-Clause" ]
225
2015-01-09T19:08:47.000Z
2022-03-31T15:55:54.000Z
larch/wxlib/columnframe.py
kbuc/xraylarch
3abb0d6bdc65cf2747a03dd114d98df317c0ac9f
[ "BSD-2-Clause" ]
51
2015-03-13T10:03:28.000Z
2022-03-17T07:54:38.000Z
#!/usr/bin/env python """ """ import os import re import numpy as np np.seterr(all='ignore') from functools import partial import wx import wx.lib.scrolledpanel as scrolled import wx.lib.agw.flatnotebook as fnb from wxmplot import PlotPanel from wxutils import (SimpleText, FloatCtrl, GUIColors, Button, Choice, ...
37.890578
97
0.542542
c2ca2b3a38087cb4d32b0008fe29ed6587ef3ee6
320
py
Python
Python/lc_70_climbing_stairs.py
cmattey/leetcode_problems
fe57e668db23f7c480835c0a10f363d718fbaefd
[ "MIT" ]
6
2019-07-01T22:03:25.000Z
2020-04-06T15:17:46.000Z
Python/lc_70_climbing_stairs.py
cmattey/leetcode_problems
fe57e668db23f7c480835c0a10f363d718fbaefd
[ "MIT" ]
null
null
null
Python/lc_70_climbing_stairs.py
cmattey/leetcode_problems
fe57e668db23f7c480835c0a10f363d718fbaefd
[ "MIT" ]
1
2020-04-01T22:31:41.000Z
2020-04-01T22:31:41.000Z
# 70. Climbing Stairs # Time: O(n) # Space: O(1) class Solution: def climbStairs(self, n: int) -> int: if n<=2: return n first = 1 second = 2 for i in range(3,n+1): ans = first+second first = second second = ans return ans
16
41
0.4625
19bf7cd146f0ca4589831af303b5a7b0a3db47dd
898
py
Python
contiguous/types.py
bmcollier/division
45f4bef826855da3c18adb5e8cab74adc07db1c2
[ "BSD-3-Clause" ]
null
null
null
contiguous/types.py
bmcollier/division
45f4bef826855da3c18adb5e8cab74adc07db1c2
[ "BSD-3-Clause" ]
null
null
null
contiguous/types.py
bmcollier/division
45f4bef826855da3c18adb5e8cab74adc07db1c2
[ "BSD-3-Clause" ]
null
null
null
class ContiguousType: def __init__(self, name: str, length: int): self.name = name self.length = int(length) class String(ContiguousType): def __init__(self, name: str, length: int): super().__init__(name, length) class Number(ContiguousType): """ The number class inherits a...
29.933333
78
0.646993
ff437051595f7183e63111185a19f4b4ce1e4258
544
py
Python
wazimap_ng/datasets/migrations/0093_auto_20200520_2031.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
11
2019-12-31T20:27:22.000Z
2022-03-10T03:55:38.000Z
wazimap_ng/datasets/migrations/0093_auto_20200520_2031.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
164
2020-02-06T15:02:22.000Z
2022-03-30T22:42:00.000Z
wazimap_ng/datasets/migrations/0093_auto_20200520_2031.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
16
2020-01-03T20:30:24.000Z
2022-01-11T11:05:15.000Z
# Generated by Django 2.2.10 on 2020-05-20 20:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profile', '0036_auto_20200508_0751'), ('datasets', '0092_auto_20200520_1048'), ] operations = [ mi...
25.904762
126
0.645221
313b2d63b884f99a56feeb307abf8aded5ba1c1c
5,031
py
Python
etc/dbus-serialbattery/daly.py
mikejager/dbus-serialbattery
6c705db2167b65a8c1a60d2575f91d4edbb84091
[ "MIT" ]
null
null
null
etc/dbus-serialbattery/daly.py
mikejager/dbus-serialbattery
6c705db2167b65a8c1a60d2575f91d4edbb84091
[ "MIT" ]
null
null
null
etc/dbus-serialbattery/daly.py
mikejager/dbus-serialbattery
6c705db2167b65a8c1a60d2575f91d4edbb84091
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from battery import Protection, Battery, Cell from utils import * from struct import * class Daly(Battery): def __init__(self, port,baud,address): super(Daly, self).__init__(port,baud) self.c...
36.722628
126
0.665077
fdfdabff354a07cf82fe4ecd1a043416321cc1bf
269
py
Python
heat/utils/tests/test_vision_transforms.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
105
2018-05-18T11:34:03.000Z
2022-03-29T06:37:23.000Z
heat/utils/tests/test_vision_transforms.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
909
2018-05-18T07:50:26.000Z
2022-03-31T20:16:30.000Z
heat/utils/tests/test_vision_transforms.py
shssf/heat
9db0a936c92491fa5aa862f558cb385c9916216b
[ "MIT" ]
28
2018-05-24T14:39:18.000Z
2022-03-31T19:18:47.000Z
import heat as ht import unittest class TestVisionTransforms(unittest.TestCase): def test_vision_transforms_getattr(self): ht.utils.vision_transforms.ToTensor() with self.assertRaises(AttributeError): ht.utils.vision_transforms.asdf()
26.9
47
0.743494
50d0552a01d8597dda3d716524b61b1cacc7d61d
1,762
py
Python
sort/merge_sort.py
marcusljx/algorithms
9b388c6a9bf456f937fd09985d13a550d074d466
[ "MIT" ]
null
null
null
sort/merge_sort.py
marcusljx/algorithms
9b388c6a9bf456f937fd09985d13a550d074d466
[ "MIT" ]
null
null
null
sort/merge_sort.py
marcusljx/algorithms
9b388c6a9bf456f937fd09985d13a550d074d466
[ "MIT" ]
null
null
null
import argparse import math from random import shuffle def mergesort(unsorted_list, compare_func): """ MergeSort returns a sorted list from the elements of unsorted_list. compare_func is a function that takes in two arguments a and b(where a and b are of the same type in unsorted_list) and returns: ...
26.298507
112
0.625426
131b0a2a6c3e2cc9be4b5d6fd0170358dbbc8636
3,177
py
Python
label_maker/preview.py
PallawiSinghal/label-maker
9b6759f002c92818b11348ffff17e2d94d320ca6
[ "MIT" ]
null
null
null
label_maker/preview.py
PallawiSinghal/label-maker
9b6759f002c92818b11348ffff17e2d94d320ca6
[ "MIT" ]
null
null
null
label_maker/preview.py
PallawiSinghal/label-maker
9b6759f002c92818b11348ffff17e2d94d320ca6
[ "MIT" ]
null
null
null
# pylint: disable=unused-argument """Produce imagery examples for specified classes""" from os import path as op from os import makedirs import numpy as np from PIL import Image, ImageDraw from label_maker.utils import class_match, get_image_function def preview(dest_folder, number, classes, imagery, ml_type, image...
38.743902
108
0.629839
0e6f176b2c1cf2abd299d48f4d96b846c82176c0
9,756
py
Python
src/tables.py
XiaZeng0223/alps
72c5f9b02424bfef6b19c8ec9675774ae827242a
[ "MIT" ]
null
null
null
src/tables.py
XiaZeng0223/alps
72c5f9b02424bfef6b19c8ec9675774ae827242a
[ "MIT" ]
null
null
null
src/tables.py
XiaZeng0223/alps
72c5f9b02424bfef6b19c8ec9675774ae827242a
[ "MIT" ]
null
null
null
import numpy as np from numpy import dot, mean, absolute from numpy.linalg import norm import matplotlib.pyplot as plt import pandas as pd import argparse import glob, os import json parser = argparse.ArgumentParser() parser.add_argument('--results_dir', type=str, default='/home/xia/work/results/alps/models') parser.a...
46.018868
123
0.492927
76c8d10972bf7016db7c6afebc7bfdbea0b7f1e5
2,026
py
Python
zdiscord/util/logging/LogClear.py
xxdunedainxx/zdiscord
e79039621969fd7a2987ccac4e8d6fcff11ee754
[ "MIT" ]
null
null
null
zdiscord/util/logging/LogClear.py
xxdunedainxx/zdiscord
e79039621969fd7a2987ccac4e8d6fcff11ee754
[ "MIT" ]
57
2020-06-05T18:33:17.000Z
2020-08-17T18:28:37.000Z
zdiscord/util/logging/LogClear.py
xxdunedainxx/zdiscord
e79039621969fd7a2987ccac4e8d6fcff11ee754
[ "MIT" ]
null
null
null
from zdiscord.util.logging.LogFactory import LogFactory import os import datetime import random import shutil # TODO code could be enhanced & cleaned up class LogClear: Logger = None LogDir = None LogZipDestination = None LogMegabyteTop = None def __init__(self): pass @staticmethod ...
35.54386
111
0.611056
acb05056b10b08a8bbbac745ce20f83821e406b5
64
py
Python
pyqtetreemodel/__init__.py
summoningdark/pyqtetreemodel
ed83eaf7494c27ccffe501975bbca471f7ad797e
[ "MIT" ]
null
null
null
pyqtetreemodel/__init__.py
summoningdark/pyqtetreemodel
ed83eaf7494c27ccffe501975bbca471f7ad797e
[ "MIT" ]
null
null
null
pyqtetreemodel/__init__.py
summoningdark/pyqtetreemodel
ed83eaf7494c27ccffe501975bbca471f7ad797e
[ "MIT" ]
null
null
null
from .Models import EtreeModel from .Widgets import XmlTreeView
21.333333
32
0.84375
bd01247ec70fd8b4e7e0891e2214305875037759
11,529
py
Python
venv/Lib/site-packages/skimage/filters/_gaussian.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
4
2021-10-20T12:39:09.000Z
2022-02-26T15:02:08.000Z
venv/Lib/site-packages/skimage/filters/_gaussian.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
7
2021-06-08T21:46:24.000Z
2022-03-12T00:35:31.000Z
venv/Lib/site-packages/skimage/filters/_gaussian.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
20
2021-11-07T13:55:56.000Z
2021-12-02T10:54:01.000Z
from collections.abc import Iterable import numpy as np from scipy import ndimage as ndi from ..util import img_as_float from .._shared.utils import warn, convert_to_float __all__ = ['gaussian', 'difference_of_gaussians'] def gaussian(image, sigma=1, output=None, mode='nearest', cval=0, multichannel=N...
39.618557
79
0.64984
517bd517ad2a0b7b0c730759abd5bff6f5efae95
422
py
Python
tutorials/alice_bob_lab/{{cookiecutter.repo_name}}/{{cookiecutter.model_name}}/extracts/csv_extract.py
modelyst/dbgen-model-template
39c3b84527bc4f01ea3f810d7873e6edf8f056c3
[ "Apache-2.0" ]
null
null
null
tutorials/alice_bob_lab/{{cookiecutter.repo_name}}/{{cookiecutter.model_name}}/extracts/csv_extract.py
modelyst/dbgen-model-template
39c3b84527bc4f01ea3f810d7873e6edf8f056c3
[ "Apache-2.0" ]
null
null
null
tutorials/alice_bob_lab/{{cookiecutter.repo_name}}/{{cookiecutter.model_name}}/extracts/csv_extract.py
modelyst/dbgen-model-template
39c3b84527bc4f01ea3f810d7873e6edf8f056c3
[ "Apache-2.0" ]
null
null
null
import csv from typing import List from dbgen import Extract from pydantic import PrivateAttr class CSVExtract(Extract): data_dir: str outputs: List[str] = ["row"] _reader: PrivateAttr def setup(self, **_): csv_file = open(self.data_dir) reader = csv.reader(csv_file) self._re...
20.095238
38
0.637441
77d960c62d52f028013634ffd3612b9020359e51
3,165
py
Python
var/spack/repos/builtin/packages/netcdf-fortran/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-09-15T23:55:48.000Z
2019-09-15T23:55:48.000Z
var/spack/repos/builtin/packages/netcdf-fortran/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/netcdf-fortran/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2017-01-21T17:19:32.000Z
2017-01-21T17:19:32.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class NetcdfFortran(AutotoolsPackage): """NetCDF (network Common Data Form) is a set of software...
41.644737
95
0.679937
bd1f72bc207dea55dc6e78af11e8a24fecf7998d
29,345
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripControlHost.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripControlHost.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripControlHost.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class ToolStripControlHost( ToolStripItem, IComponent, IDisposable, IDropTarget, ISupportOleDropSource, IArrangedElement, ): """ Hosts custom controls or Windows Forms controls. ToolStripControlHost(c: Control) ToolStripControlHost(c: Control,name: str) """ de...
22.890016
221
0.659499
73a92732dd8df0a5bee5745112147947b7fc474f
842
py
Python
tests/programs/relative_import/RelativeImportMain.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
tests/programs/relative_import/RelativeImportMain.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
tests/programs/relative_import/RelativeImportMain.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
# Copyright 2022, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
36.608696
79
0.728029
5b96a3de729abdcbea916a9e9035501fbe49bc10
20,877
py
Python
code/bib/base.py
ribes96/TFG
b38ac01da641e40551c1b3fefc1dc3ebd1b8b0a9
[ "MIT" ]
null
null
null
code/bib/base.py
ribes96/TFG
b38ac01da641e40551c1b3fefc1dc3ebd1b8b0a9
[ "MIT" ]
null
null
null
code/bib/base.py
ribes96/TFG
b38ac01da641e40551c1b3fefc1dc3ebd1b8b0a9
[ "MIT" ]
null
null
null
"""Base classes for all estimators.""" # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # License: BSD 3 clause import copy import warnings from collections import defaultdict import numpy as np from scipy import sparse from .externals import six from .utils.fixes import signature from . import __version__ ...
34.39374
79
0.560138
3cb17f0e08ba1450d108248c2cfcbe8d4756ab38
3,699
py
Python
tools/c7n_azure/c7n_azure/resources/storage_container.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
8
2021-05-18T02:22:03.000Z
2021-09-11T02:49:04.000Z
tools/c7n_azure/c7n_azure/resources/storage_container.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
79
2019-03-20T12:27:06.000Z
2019-08-14T14:07:04.000Z
tools/c7n_azure/c7n_azure/resources/storage_container.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
3
2017-09-21T13:36:46.000Z
2021-09-20T16:38:29.000Z
# Copyright 2019 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.026786
86
0.646391
f085717ccd74ebad733fd6018d3fa3c88c20f2c3
26,487
py
Python
IPython/core/magic.py
ptone/ipython
b91d6a658d4526746dcbfb62e653d71c5d84eee9
[ "BSD-3-Clause-Clear" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
IPython/core/magic.py
lelegan/ipython
7d0bedb0698af89be54802f32a1947678074945a
[ "BSD-3-Clause-Clear" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
IPython/core/magic.py
lelegan/ipython
7d0bedb0698af89be54802f32a1947678074945a
[ "BSD-3-Clause-Clear" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# encoding: utf-8 """Magic functions for InteractiveShell. """ from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and # Copyright (C) 2001 Fernando Perez <fperez@colorado.edu> # Copyright (C) 2008...
37.677098
106
0.60675
cfda4c505095723081e407944d02b71104decde5
3,832
py
Python
dnacentersdk/models/validators/v2_1_1/jsd_208579ea4ed98f4f.py
wastorga/dnacentersdk
1a25aaef2eaa016fe54ebebbd7448919e0effa3f
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_1/jsd_208579ea4ed98f4f.py
wastorga/dnacentersdk
1a25aaef2eaa016fe54ebebbd7448919e0effa3f
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_1/jsd_208579ea4ed98f4f.py
wastorga/dnacentersdk
1a25aaef2eaa016fe54ebebbd7448919e0effa3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Add IP Pool in SDA Virtual Network data model. Copyright (c) 2019 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restri...
30.656
78
0.493737
2d2d2ba224de2485880a3e941bfe22331cf76037
2,345
pyw
Python
source/todolist.pyw
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
source/todolist.pyw
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
source/todolist.pyw
eclipse999/ToDoList
708eb31e112e6592a406e3f3f15d654c9f6fe7c2
[ "MIT" ]
null
null
null
import sys import os from PyQt5 import QtWidgets, QtCore from todo2 import Ui_MainWindow class Todo(QtWidgets.QMainWindow, Ui_MainWindow): i = 0 waitforadd = True cwd = os.getcwd() def __init__(self, parent=None): super().__init__() self.setupUi(self) self.addbtn.clicked.conn...
29.3125
69
0.58209
7bf2a5722d2e28a6ec6c1131de60ee383dd78f0f
2,722
py
Python
01_06_histograms_and_scatter_plots.py
shevc07/Machine_Learning_for_Trading
11581254168ece5ecebff71e7cee6c9efa10929d
[ "MIT" ]
null
null
null
01_06_histograms_and_scatter_plots.py
shevc07/Machine_Learning_for_Trading
11581254168ece5ecebff71e7cee6c9efa10929d
[ "MIT" ]
null
null
null
01_06_histograms_and_scatter_plots.py
shevc07/Machine_Learning_for_Trading
11581254168ece5ecebff71e7cee6c9efa10929d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import time import os from utils import get_data from utils import plot_data from utils import symbol_to_path def compute_daily_returns(df): dr = df.copy() dr[1:] = df / df.shift(1) - 1 dr.ix[0,:] = 0 return dr def p05_how_to_plo...
28.652632
95
0.627847
dfb5adae133a9c762707dca9bf91816a73b2ddd0
1,323
py
Python
tests/test_less_than_or_greater_than.py
artisanofcode/python-conjecture
5a7d57e407a4fb3e09a05d41ffda773136003289
[ "MIT" ]
null
null
null
tests/test_less_than_or_greater_than.py
artisanofcode/python-conjecture
5a7d57e407a4fb3e09a05d41ffda773136003289
[ "MIT" ]
null
null
null
tests/test_less_than_or_greater_than.py
artisanofcode/python-conjecture
5a7d57e407a4fb3e09a05d41ffda773136003289
[ "MIT" ]
null
null
null
"""test conjecture.less_than_or_equal_to.""" from __future__ import annotations import hypothesis import hypothesis.strategies as st import pytest import conjecture @pytest.mark.describe("less_than_or_equal_to") @pytest.mark.it("should match smaller value") @hypothesis.given( value=st.shared(base=st.integers(),...
30.767442
71
0.746032
a2e3c5e39cdac55f9140001a2055c1b738d17735
949
py
Python
manager/test.py
epicframework/EPIC-Core
c7649f42a3c06c0922281e53de12346ab19ae456
[ "MIT" ]
null
null
null
manager/test.py
epicframework/EPIC-Core
c7649f42a3c06c0922281e53de12346ab19ae456
[ "MIT" ]
7
2019-05-19T23:56:15.000Z
2019-05-20T15:11:11.000Z
manager/test.py
epicframework/EPIC-Core
c7649f42a3c06c0922281e53de12346ab19ae456
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from time import sleep import sys import json # Import HA/Connective bindings from bindings import new_ll, connect arg_id = sys.argv[1] arg_re = sys.argv[2] print(arg_re) ll = new_ll("../connective/connective/sharedlib/elconn.so") ll.elconn_init(0) connective = connect(ll, ar...
24.333333
68
0.562698
d7bf88f5e4739cce370e83e3949559d0709a2cf2
4,316
py
Python
apps/profiles/models.py
SatishTammineni/django-lms
3dcf11355994089eb5506c441a8b1374c0df1f86
[ "BSD-3-Clause" ]
null
null
null
apps/profiles/models.py
SatishTammineni/django-lms
3dcf11355994089eb5506c441a8b1374c0df1f86
[ "BSD-3-Clause" ]
null
null
null
apps/profiles/models.py
SatishTammineni/django-lms
3dcf11355994089eb5506c441a8b1374c0df1f86
[ "BSD-3-Clause" ]
2
2020-11-03T03:32:12.000Z
2022-03-02T18:14:52.000Z
import re, datetime from dateutil import relativedelta from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import Group, User from tinymce import models as tinymce_models from django.db.models import permalink from django.contrib.auth.models import User ...
31.50365
161
0.660797
514b45fbc5dcbbecfe56de9bd82b3254ed48386a
8,319
py
Python
model.py
zz803abc/quizXue
dc8d9f41f5c277d2310733c9a4186490dd3d5dc7
[ "MIT" ]
3
2020-11-11T00:47:40.000Z
2021-04-13T01:34:04.000Z
model.py
zz803abc/quizXue
dc8d9f41f5c277d2310733c9a4186490dd3d5dc7
[ "MIT" ]
null
null
null
model.py
zz803abc/quizXue
dc8d9f41f5c277d2310733c9a4186490dd3d5dc7
[ "MIT" ]
2
2020-11-11T00:47:45.000Z
2021-03-30T11:45:37.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' @file: model.py @author: kessil @contact: https://github.com/kessil/ @time: 2019年06月02日 15:57:45 @desc: Life is short, you need Python ''' from sqlalchemy import Column,Integer, String, Text, create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.decla...
30.472527
106
0.574107
ee23530c74aae480933a6754a6b196dd1fe8c969
5,865
py
Python
tests/test_nagbot.py
srosenthal/nagbot
07e3414ac5b76df6bfc7547e5c01406654962a5d
[ "MIT" ]
4
2020-02-06T21:23:27.000Z
2021-05-17T19:54:06.000Z
tests/test_nagbot.py
srosenthal/nagbot
07e3414ac5b76df6bfc7547e5c01406654962a5d
[ "MIT" ]
null
null
null
tests/test_nagbot.py
srosenthal/nagbot
07e3414ac5b76df6bfc7547e5c01406654962a5d
[ "MIT" ]
1
2020-06-18T21:31:36.000Z
2020-06-18T21:31:36.000Z
import sys import unittest import app from app import nagbot from app import parsing from app.sqaws import Instance class TestNagbot(unittest.TestCase): def setup_instance(self, state: str, stop_after: str = '', terminate_after: str = ''): return Instance(region_name='us-east-1', ...
50.128205
127
0.688491
22931180ca6a6fad31c6159080c44fdf117a2ce9
643
py
Python
yt/frontends/flash/api.py
kastalpes/yt
b1e197ca84433fbd61eaf44b28ff5cdb37981d4c
[ "BSD-3-Clause-Clear" ]
2
2021-03-02T18:59:49.000Z
2021-03-02T18:59:50.000Z
yt/frontends/flash/api.py
kastalpes/yt
b1e197ca84433fbd61eaf44b28ff5cdb37981d4c
[ "BSD-3-Clause-Clear" ]
4
2018-04-13T23:03:42.000Z
2018-05-08T17:50:43.000Z
yt/frontends/flash/api.py
kastalpes/yt
b1e197ca84433fbd61eaf44b28ff5cdb37981d4c
[ "BSD-3-Clause-Clear" ]
2
2020-05-16T15:29:37.000Z
2020-06-22T10:17:08.000Z
""" API for yt.frontends.flash """ #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #----------------...
21.433333
78
0.520995
c11c94c24682dcdff48d90f2fbbb39404e3f60f4
51
py
Python
Demo/Demo_gym/envs/atari/__init__.py
Remosy/iceHocekeyIRL
1ffeaf8a9bd9585038629be41a2da552e0a4473b
[ "MIT" ]
null
null
null
Demo/Demo_gym/envs/atari/__init__.py
Remosy/iceHocekeyIRL
1ffeaf8a9bd9585038629be41a2da552e0a4473b
[ "MIT" ]
3
2019-03-09T02:35:24.000Z
2019-09-27T11:05:01.000Z
Demo/Demo_gym/envs/atari/__init__.py
Remosy/iceHocekeyIRL
1ffeaf8a9bd9585038629be41a2da552e0a4473b
[ "MIT" ]
null
null
null
from Demo_gym.envs.atari.atari_env import AtariEnv
25.5
50
0.862745
708c258180b22e5708761aa3bd2f16061a7fdbbf
265
py
Python
lib/rucio/vcsversion.py
gabrielefronze/rucio
51fd277f3cf896583b1ad73048d5c57178063129
[ "Apache-2.0" ]
null
null
null
lib/rucio/vcsversion.py
gabrielefronze/rucio
51fd277f3cf896583b1ad73048d5c57178063129
[ "Apache-2.0" ]
null
null
null
lib/rucio/vcsversion.py
gabrielefronze/rucio
51fd277f3cf896583b1ad73048d5c57178063129
[ "Apache-2.0" ]
1
2021-06-17T14:15:15.000Z
2021-06-17T14:15:15.000Z
''' This file is automatically generated; Do not edit it. :) ''' VERSION_INFO = { 'final': True, 'version': '1.18.7', 'branch_nick': 'patch-0-Rucio_1_18_7_preparation', 'revision_id': '9ffbf2f72d6610ff7c2dea57bef9444fc256f4ae', 'revno': 7366 }
22.083333
62
0.664151
be8029a629b72ee794549f7387d444fd199d9c8a
1,093
py
Python
setup.py
panxuemiao111/THRED
58db5e6f3cf316952df3b1a02cfba14dff899e9c
[ "MIT" ]
102
2018-11-10T17:18:27.000Z
2022-03-22T07:04:08.000Z
setup.py
panxuemiao111/THRED
58db5e6f3cf316952df3b1a02cfba14dff899e9c
[ "MIT" ]
31
2019-01-10T08:50:06.000Z
2021-11-10T19:39:39.000Z
setup.py
panxuemiao111/THRED
58db5e6f3cf316952df3b1a02cfba14dff899e9c
[ "MIT" ]
27
2018-11-10T12:44:31.000Z
2022-03-03T09:14:07.000Z
from setuptools import find_packages, setup setup( name="thred", version="0.1.2", author="Nouha Dziri, Ehsan Kamalloo, Kory Mathewson", author_email="dziri@cs.ualberta.ca", description="Neural Response Generation Framework", long_description=open("README.md", "r", encoding='utf-8').read(), ...
37.689655
69
0.509607
a4b7e28b787bde396b58a6f8503fd6d9a60b6f49
5,569
py
Python
run_scripts_bm/svg_run.py
iclavera/meta-mb
a1204e573c1415161129403cfb287bf120488fd0
[ "MIT" ]
4
2021-01-07T08:22:51.000Z
2021-12-27T10:53:14.000Z
run_scripts_bm/svg_run.py
iclavera/meta-mb
a1204e573c1415161129403cfb287bf120488fd0
[ "MIT" ]
null
null
null
run_scripts_bm/svg_run.py
iclavera/meta-mb
a1204e573c1415161129403cfb287bf120488fd0
[ "MIT" ]
null
null
null
import os import json import numpy as np from experiment_utils.run_sweep import run_sweep from meta_mb.utils.utils import set_seed, ClassEncoder from meta_mb.envs.normalized_env import normalize from meta_mb.algos.svg_1 import SVG1 from meta_mb.trainers.svg_trainer import Trainer from meta_mb.samplers.sampler import Sa...
33.751515
102
0.614293
62564013f7b7a58d36221bb2cf467e71b99db3d3
1,480
py
Python
configs/configs.py
kaylode/caption-transformer
1572c7f71f2ad5a2fae5b4e2ef26d6858429164d
[ "MIT" ]
8
2021-09-02T12:56:26.000Z
2022-03-28T08:13:19.000Z
configs/configs.py
kaylode/caption-transformer
1572c7f71f2ad5a2fae5b4e2ef26d6858429164d
[ "MIT" ]
null
null
null
configs/configs.py
kaylode/caption-transformer
1572c7f71f2ad5a2fae5b4e2ef26d6858429164d
[ "MIT" ]
null
null
null
import yaml class Config(): """ Config class for storing all configuration """ def __init__(self, yaml_path): yaml_file = open(yaml_path) _attr = yaml.load(yaml_file, Loader=yaml.FullLoader)['settings'] for key, value in _attr.items(): self.__dict__[key] = value ...
25.517241
72
0.525676
b9cc7e213106f676328f6c88f575d9b003fe4591
55,018
py
Python
env/lib/python3.6/site-packages/pygments/lexers/_mapping.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.6/site-packages/pygments/lexers/_mapping.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.6/site-packages/pygments/lexers/_mapping.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.lexers._mapping ~~~~~~~~~~~~~~~~~~~~~~~~ Lexer mapping definitions. This file is generated by itself. Everytime you change something on a builtin lexer definition, run this script from the lexers folder to update it. Do not alter the LEXERS dictionary by ha...
109.162698
351
0.580083
df8ffea3179f6be18d8288647e231673a9768393
1,951
py
Python
workouts/integration_examples/keister.py
fjhickernell/QMCSoftware
1e8f080173f4cdc3adfe071b5c53d49592f61956
[ "Apache-2.0" ]
40
2019-09-15T03:31:17.000Z
2022-02-19T19:52:10.000Z
workouts/integration_examples/keister.py
fjhickernell/QMCSoftware
1e8f080173f4cdc3adfe071b5c53d49592f61956
[ "Apache-2.0" ]
152
2019-10-06T17:26:02.000Z
2022-03-01T04:17:04.000Z
workouts/integration_examples/keister.py
fjhickernell/QMCSoftware
1e8f080173f4cdc3adfe071b5c53d49592f61956
[ "Apache-2.0" ]
16
2019-09-17T23:33:48.000Z
2021-07-19T22:38:45.000Z
""" Keister example python workouts/integration_examples/keister.py > outputs/integration_examples/keister.log """ from qmcpy import * from copy import deepcopy bar = '\n'+'~'*100+'\n' def keister(dimension=3, abs_tol=.5): print(bar) # CubMCCLT discrete_distrib = IIDStdUniform(dimension, seed=7) in...
33.067797
91
0.717581
27c4860c5efe5cc9878765d162d4e2fd9f52750f
251
py
Python
manage.py
dmkent/cattrack
2387f72d7a384638731a70b377826562f4f22a31
[ "MIT" ]
null
null
null
manage.py
dmkent/cattrack
2387f72d7a384638731a70b377826562f4f22a31
[ "MIT" ]
11
2019-10-06T10:48:19.000Z
2022-02-10T08:25:05.000Z
manage.py
dmkent/cattrack
2387f72d7a384638731a70b377826562f4f22a31
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cattrack.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.818182
72
0.772908
71ffd7c745532a9bc0935f80072964eed7f9c49a
1,098
py
Python
src/enocean_packet_factory.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2020-12-01T17:10:14.000Z
2020-12-01T17:10:14.000Z
src/enocean_packet_factory.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
1
2021-09-19T13:38:02.000Z
2021-09-19T13:38:02.000Z
src/enocean_packet_factory.py
rosenloecher-it/enocean-mqtt-bridge
d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c
[ "MIT" ]
null
null
null
import copy from enocean.protocol.packet import RadioPacket from src.common.eep import Eep from src.tools.enocean_tools import EnoceanTools class EnoceanPacketFactory: _sender_id = None @classmethod def set_sender_id(cls, sender_id): if type(sender_id) == int: cls._sender_id = Enoc...
28.894737
91
0.663934
ca21f29b752aa5a4cc0b73e535ae818a563a22e6
194
py
Python
awtg/api/wrapper.py
kvxmmu/aw
134603864f624075bc7b06876b2df3386bbeef2d
[ "BSD-3-Clause" ]
2
2020-05-21T11:45:16.000Z
2020-07-28T16:35:38.000Z
awtg/api/wrapper.py
kvxmmu/aw
134603864f624075bc7b06876b2df3386bbeef2d
[ "BSD-3-Clause" ]
1
2020-05-20T09:35:19.000Z
2020-05-20T09:35:19.000Z
awtg/api/wrapper.py
kvxmmu/aw
134603864f624075bc7b06876b2df3386bbeef2d
[ "BSD-3-Clause" ]
2
2020-05-19T17:39:25.000Z
2020-07-01T15:05:06.000Z
from ..abstract.api import AbstractApi class ApiWrapper: """ Telegram api methods for humans """ api: AbstractApi def __init__(self, api: AbstractApi): self.api = api
13.857143
43
0.654639
cb8d808a28bc03e4576721f9f5dad90a064bdebd
1,364
py
Python
Python/PyEx/hashtable/linearEx.py
zionhan/TIL
2b74bf3f977ead3432bde64e9826f505af58de26
[ "MIT" ]
1
2019-12-28T11:03:27.000Z
2019-12-28T11:03:27.000Z
Python/PyEx/hashtable/linearEx.py
zionhan/TIL
2b74bf3f977ead3432bde64e9826f505af58de26
[ "MIT" ]
null
null
null
Python/PyEx/hashtable/linearEx.py
zionhan/TIL
2b74bf3f977ead3432bde64e9826f505af58de26
[ "MIT" ]
null
null
null
# Linear Probing 기법 hash_table = list( [ 0 for i in range( 8 ) ] ) def get_key( data ): return hash( data ) def hash_func( key ): return key % 8 def save_data( data, value ): index_key = get_key( data ) hash_address = hash_func( index_key ) if ( hash_table[hash_address] != 0 ) : ...
25.259259
63
0.545455
79e1d84a8cbc52c4ae3edc2577970d3f3607fccb
2,806
py
Python
train.py
kk2487/3dresnet
d7161a70ed6c2f8dcbe89f9b6bad2ef6cc5b5d94
[ "MIT" ]
null
null
null
train.py
kk2487/3dresnet
d7161a70ed6c2f8dcbe89f9b6bad2ef6cc5b5d94
[ "MIT" ]
null
null
null
train.py
kk2487/3dresnet
d7161a70ed6c2f8dcbe89f9b6bad2ef6cc5b5d94
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable import time import os import sys from apex import amp from utils import AverageMeter, calculate_accuracy import numpy as np def train_epoch(epoch, data_loader, model, criterion, optimizer, opt, epoch_logger, batch_logger): print('train at epoch {}'....
30.172043
69
0.535638
d114365d58606a80b2f5da53d1514a2f378b7330
769
py
Python
bucket/bucket.py
gcp825/public
a4c102b4a52611f59500f9dfbe61376a76a23014
[ "Apache-2.0" ]
null
null
null
bucket/bucket.py
gcp825/public
a4c102b4a52611f59500f9dfbe61376a76a23014
[ "Apache-2.0" ]
null
null
null
bucket/bucket.py
gcp825/public
a4c102b4a52611f59500f9dfbe61376a76a23014
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from gcp_tools import io_tools as io def run(): # find and replace: your-bucket-name # if target file name not supplied, defaults to the same as source file name # target path will be created if it does not exist storage_client = io.create_storage_client() bucket = ...
33.434783
97
0.676203
a88d35c48ad565393ed8b8f283a63f57063a39bc
7,005
py
Python
.pycharm_helpers/python_stubs/-583653458/_csv.py
pyy1988/management-system
3dee81b4abd54b1c869a509bdd30e09c8b91d05f
[ "Apache-2.0" ]
null
null
null
.pycharm_helpers/python_stubs/-583653458/_csv.py
pyy1988/management-system
3dee81b4abd54b1c869a509bdd30e09c8b91d05f
[ "Apache-2.0" ]
null
null
null
.pycharm_helpers/python_stubs/-583653458/_csv.py
pyy1988/management-system
3dee81b4abd54b1c869a509bdd30e09c8b91d05f
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # module _csv # from /home/pyy2/.virtualenvs/pyy3.5/lib/python3.5/lib-dynload/_csv.cpython-35m-x86_64-linux-gnu.so # by generator 1.145 """ CSV parsing and writing. This module provides classes that assist in the reading and writing of Comma Separated Value (CSV) files, and implements the interface d...
34.850746
121
0.6798
4b16b89b1bf756478e60e40b9ca4a9f958ce37a6
1,546
py
Python
Part-reID/opt.py
wangminjie920705/Part-reid
34a1e968a2eab692ba810332f309e82b441793f6
[ "MIT" ]
null
null
null
Part-reID/opt.py
wangminjie920705/Part-reid
34a1e968a2eab692ba810332f309e82b441793f6
[ "MIT" ]
null
null
null
Part-reID/opt.py
wangminjie920705/Part-reid
34a1e968a2eab692ba810332f309e82b441793f6
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description='reid') parser.add_argument('--data_path', default="/home/wangliu/zymount/dataset/Market-1501-v15.09.15", help='path of Market-1501-v15.09.15') parser.add_argument('--mode', default='train', choic...
31.55102
82
0.528461
fc157ee61806fd81e5d72850b227f25ad59a7afe
24,718
py
Python
myenv/lib/python2.7/site-packages/premailer/premailer.py
dkumarlinux/saleor
e3a852fed7da38e4141b0755bd282012f508c7b9
[ "BSD-3-Clause" ]
null
null
null
myenv/lib/python2.7/site-packages/premailer/premailer.py
dkumarlinux/saleor
e3a852fed7da38e4141b0755bd282012f508c7b9
[ "BSD-3-Clause" ]
2
2022-02-10T16:51:56.000Z
2022-02-10T18:23:52.000Z
myenv/lib/python2.7/site-packages/premailer/premailer.py
dkumarlinux/saleor
e3a852fed7da38e4141b0755bd282012f508c7b9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, unicode_literals, print_function import codecs import operator import os import re import warnings try: from collections import OrderedDict except ImportError: # pragma: no cover # some old python 2.6 thing then, eh? from ordereddict import OrderedDict import sys if ...
37.451515
101
0.54879
bd6709ec765511797a1abb443203134b889bc169
329
py
Python
pacote-download/Mundo2/ex040.py
ariadne-pereira/cev-python
b2c6bbebb5106bb0152c9127c04c83f23e9d7757
[ "MIT" ]
null
null
null
pacote-download/Mundo2/ex040.py
ariadne-pereira/cev-python
b2c6bbebb5106bb0152c9127c04c83f23e9d7757
[ "MIT" ]
null
null
null
pacote-download/Mundo2/ex040.py
ariadne-pereira/cev-python
b2c6bbebb5106bb0152c9127c04c83f23e9d7757
[ "MIT" ]
null
null
null
nota1 = float(input('Digite a primeira nota: ')) nota2 = float(input('Digite a segunda nota: ')) media = (nota1+nota2)/2 print('Nota 1: {}. Nota 2: {}. Média {}'.format(nota1, nota2, media)) if media < 5: print('Situação: Reprovado') elif media < 6.9: print('Situação: Recuperação') else: print('Situação: Ap...
29.909091
69
0.650456
d978f95d989ee0bb65229194ed73cc5cc88211f4
17,589
py
Python
pytests/cbas/cbas_system_event_logs.py
AnithaKuberan/TAF
9824c6a4f1680c320ab065e23c720ffa92d530d9
[ "Apache-2.0" ]
null
null
null
pytests/cbas/cbas_system_event_logs.py
AnithaKuberan/TAF
9824c6a4f1680c320ab065e23c720ffa92d530d9
[ "Apache-2.0" ]
null
null
null
pytests/cbas/cbas_system_event_logs.py
AnithaKuberan/TAF
9824c6a4f1680c320ab065e23c720ffa92d530d9
[ "Apache-2.0" ]
1
2019-05-22T09:10:44.000Z
2019-05-22T09:10:44.000Z
''' Created on 7-December-2021 @author: umang.agrawal ''' import random from cbas.cbas_base import CBASBaseTest from cbas_utils.cbas_utils import CBASRebalanceUtil, FlushToDiskTask import copy from remote.remote_util import RemoteMachineShellConnection, RemoteUtilHelper from SystemEventLogLib.analytics_events import A...
50.398281
88
0.654386
b4030615e3250496033c8bc1c77c95fde20db487
58
py
Python
labtoys/CTS/__init__.py
ppudo/labtoys_python
c8ca27637602b8aac0574e92da370a4a97e9fcad
[ "MIT" ]
null
null
null
labtoys/CTS/__init__.py
ppudo/labtoys_python
c8ca27637602b8aac0574e92da370a4a97e9fcad
[ "MIT" ]
null
null
null
labtoys/CTS/__init__.py
ppudo/labtoys_python
c8ca27637602b8aac0574e92da370a4a97e9fcad
[ "MIT" ]
null
null
null
#__init__.py from .ASCII_Proto_ETH import ASCII_Proto_ETH
19.333333
44
0.862069
9d1fa0584c20f651c9817dad5d067f7fbd2d2f5b
5,716
py
Python
tfx/types/standard_artifacts.py
lyschoening/tfx
ff87a97db07642e57e2c84cf50682dc5996f99a4
[ "Apache-2.0" ]
null
null
null
tfx/types/standard_artifacts.py
lyschoening/tfx
ff87a97db07642e57e2c84cf50682dc5996f99a4
[ "Apache-2.0" ]
null
null
null
tfx/types/standard_artifacts.py
lyschoening/tfx
ff87a97db07642e57e2c84cf50682dc5996f99a4
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
26.962264
77
0.709237
eef8001a6f90b07684c7ea61f561b495eb3eaf41
2,224
py
Python
thumt/utils/summary.py
Yuran-Zhao/THUMT
10f0433c1f2fe3f992d26ccb6f4f8dec457ce695
[ "BSD-3-Clause" ]
422
2018-12-03T19:47:06.000Z
2022-03-29T13:18:09.000Z
thumt/utils/summary.py
Yuran-Zhao/THUMT
10f0433c1f2fe3f992d26ccb6f4f8dec457ce695
[ "BSD-3-Clause" ]
60
2019-02-11T02:43:52.000Z
2022-02-20T07:24:40.000Z
thumt/utils/summary.py
Yuran-Zhao/THUMT
10f0433c1f2fe3f992d26ccb6f4f8dec457ce695
[ "BSD-3-Clause" ]
121
2018-12-29T03:40:40.000Z
2022-03-03T11:33:23.000Z
# coding=utf-8 # Copyright 2017-2020 The THUMT Authors from __future__ import absolute_import from __future__ import division from __future__ import print_function import queue import threading import torch import torch.distributed as dist import torch.utils.tensorboard as tensorboard _SUMMARY_WRITER = None _QUEUE ...
26.164706
78
0.635342
9c548b8ede93e6538642caa7993404547b3b445e
3,664
py
Python
src/ape/_cli.py
defidipshit/ape
5e003ee5003ca2491aeba9d0d262a8e9e138e084
[ "Apache-2.0" ]
1
2022-01-25T21:26:01.000Z
2022-01-25T21:26:01.000Z
src/ape/_cli.py
violetsummerzine/ape
8b39dc3d068dea98ec68e17c5b5446dfa8f9a7e3
[ "Apache-2.0" ]
1
2022-03-05T07:08:07.000Z
2022-03-11T17:05:13.000Z
src/ape/_cli.py
violetsummerzine/ape
8b39dc3d068dea98ec68e17c5b5446dfa8f9a7e3
[ "Apache-2.0" ]
null
null
null
import difflib import re import traceback from typing import Any, Dict import click import yaml from ape.cli import Abort, ape_cli_context from ape.exceptions import ApeException from ape.logging import LogLevel, logger from ape.plugins import clean_plugin_name try: from importlib import metadata # type: ignore...
29.788618
99
0.620087
a78cc0747930a163b8b1a1ee0e11429c0cc59d03
4,706
py
Python
gamestonk_terminal/technical_analysis/ta_menu.py
ooaj/GamestonkTerminal
6b5b494458b0e01a2db7a06890610454220d8a8f
[ "MIT" ]
2
2021-04-26T14:13:49.000Z
2021-05-24T04:19:44.000Z
gamestonk_terminal/technical_analysis/ta_menu.py
ooaj/GamestonkTerminal
6b5b494458b0e01a2db7a06890610454220d8a8f
[ "MIT" ]
null
null
null
gamestonk_terminal/technical_analysis/ta_menu.py
ooaj/GamestonkTerminal
6b5b494458b0e01a2db7a06890610454220d8a8f
[ "MIT" ]
null
null
null
import argparse from gamestonk_terminal.technical_analysis import overlap as ta_overlap from gamestonk_terminal.technical_analysis import momentum as ta_momentum from gamestonk_terminal.technical_analysis import trend as ta_trend from gamestonk_terminal.technical_analysis import volatility as ta_volatility from gamest...
33.140845
88
0.604972
ad147cabc0b3f5ff71da21e5df540c3c07a3d676
857
py
Python
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_textnearestneighborpredictbatchop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_textnearestneighborpredictbatchop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_textnearestneighborpredictbatchop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import unittest from pyalink.alink import * import numpy as np import pandas as pd class TestTextNearestNeighborPredictBatchOp(unittest.TestCase): def test_textnearestneighborpredictbatchop(self): df = pd.DataFrame([ [0, "a b c d e", "a a b c e"], [1, "a a c e d w", "a a b b e d"], ...
40.809524
132
0.597433
48cf5feeaf58af48d9790ace6650b0379a8ea085
312
py
Python
other/dingding/dingtalk/api/rest/OapiDepartmentListIdsRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiDepartmentListIdsRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiDepartmentListIdsRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2018.07.25 ''' from dingtalk.api.base import RestApi class OapiDepartmentListIdsRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.id = None def getHttpMethod(self): return 'GET' def getapiname(self): return 'dingtalk.oapi.department.list_ids'
20.8
44
0.753205
84e97bf1561801142f8f5fa4e4b1f24eae4be2be
22,282
py
Python
python/ccxt/async_support/gateio.py
victor95pc/ccxt
5c3e606296a1b15852a35f1330b645f451fa08d6
[ "MIT" ]
1
2019-03-17T22:44:30.000Z
2019-03-17T22:44:30.000Z
python/ccxt/async_support/gateio.py
Lara-Bell/ccxt
e09230b4b60d5c33e3f6ebc044002bab6f733553
[ "MIT" ]
null
null
null
python/ccxt/async_support/gateio.py
Lara-Bell/ccxt
e09230b4b60d5c33e3f6ebc044002bab6f733553
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
38.351119
126
0.509829