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
0c8d67b72bebab14d679478ded74697c6f36da24
144,052
py
Python
cinder/tests/unit/volume/drivers/vmware/test_vmware_vmdk.py
traghavendra/cinder-train
49af592c61da3216c04f5771b8ebf0927c5ce1c8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/vmware/test_vmware_vmdk.py
traghavendra/cinder-train
49af592c61da3216c04f5771b8ebf0927c5ce1c8
[ "Apache-2.0" ]
1
2021-03-31T19:22:03.000Z
2021-03-31T19:22:03.000Z
cinder/tests/unit/volume/drivers/vmware/test_vmware_vmdk.py
alokchandra11/cinder
121d9f512b4a6d1afe6a690effb7c2b379040a7b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 VMware, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
43.705097
79
0.662545
748ebce56d353cd40c4d6fe0e7b26b10e22de5d3
6,616
py
Python
dreampylib.py
michaelndn/dreampylib
d1448007c45d41a6cd6bf4be5c23da4dc2c8dff3
[ "Apache-2.0" ]
1
2018-10-28T10:33:31.000Z
2018-10-28T10:33:31.000Z
dreampylib.py
michaelndn/dreampylib
d1448007c45d41a6cd6bf4be5c23da4dc2c8dff3
[ "Apache-2.0" ]
null
null
null
dreampylib.py
michaelndn/dreampylib
d1448007c45d41a6cd6bf4be5c23da4dc2c8dff3
[ "Apache-2.0" ]
null
null
null
# Dreampylib - version 1.0 # (c) 2009 by Laurens Simonis # See licence.txt for licencing info # updated 2013 by Michael Rodriguez # UUID is needed to generate a nice random uuid for dreamhost import uuid import urllib, urllib2 DEBUG = False defaultReturnType = 'dict' class _RemoteCommand(object): # some magic t...
29.145374
91
0.53416
9427f8153b079c6d85d57e14059db811942f0647
8,085
py
Python
optics/work_407/work_407_window.py
Zelenyy/python-optics-lab
01c40f185c9de06ccdb907370df3d35403527336
[ "MIT" ]
4
2020-04-07T06:21:40.000Z
2020-05-20T17:07:18.000Z
optics/work_407/work_407_window.py
TopCoder2K/python-optics-lab
0c31777f3cd49ed47991381fafe502e1d65816e9
[ "MIT" ]
null
null
null
optics/work_407/work_407_window.py
TopCoder2K/python-optics-lab
0c31777f3cd49ed47991381fafe502e1d65816e9
[ "MIT" ]
1
2020-04-22T06:46:29.000Z
2020-04-22T06:46:29.000Z
import numpy as np from PyQt5.QtWidgets import QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLayout, QGroupBox, QCheckBox, QSpinBox, \ QFormLayout, QPushButton, QDoubleSpinBox, QLabel from matplotlib.backends.qt_compat import is_pyqt5 from matplotlib.figure import Figure from matplotlib.ticker import MultipleLoc...
33
118
0.628077
93da62791df4f3389e731cef910323fae565e417
20,357
py
Python
Codes/Python32/Lib/http/cookies.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
Codes/Python32/Lib/http/cookies.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
Codes/Python32/Lib/http/cookies.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
#!/usr/bin/env python3 # #### # Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu> # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software # and its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in...
35.589161
80
0.5462
f26c8e58cccd7591550c10ba23bb21ee124b1057
4,960
py
Python
lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
305
2019-09-14T17:16:05.000Z
2022-03-31T15:05:20.000Z
lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
410
2019-06-06T20:52:32.000Z
2022-01-18T14:21:48.000Z
lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
50
2019-05-10T21:12:24.000Z
2022-01-21T06:39:47.000Z
"""Test stepping over watchpoints.""" import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestStepOverWatchpoint(TestBase): mydir = TestBase.compute_mydir(__file__) NO_DEBUG_INFO_TESTCASE = True @expectedFailureAll( ...
41.333333
153
0.623589
dd43d33e8f1e58b523c9d7096339c814478b0217
38,246
py
Python
FilmSetBuilder/__init__.py
ajaybhaga/blender-addon-filmsetbuilder
8f2572b230f01705fb3c249bb031d86540f4de83
[ "MIT" ]
4
2021-09-01T03:16:05.000Z
2021-09-08T14:58:21.000Z
FilmSetBuilder/__init__.py
ajaybhaga/blender-addon-filmsetbuilder
8f2572b230f01705fb3c249bb031d86540f4de83
[ "MIT" ]
null
null
null
FilmSetBuilder/__init__.py
ajaybhaga/blender-addon-filmsetbuilder
8f2572b230f01705fb3c249bb031d86540f4de83
[ "MIT" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
35.152574
152
0.536762
de3f9a7f5790f0495788bf2dfad02e020d9c9b43
2,402
py
Python
plugin/CustomerSupportArchive/Lane_Diagnostics/tools/adc.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
plugin/CustomerSupportArchive/NucStepSpatialV2/tools/adc.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
plugin/CustomerSupportArchive/Lane_Diagnostics/tools/adc.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
""" Contains helpful functions to unravel or ravel chip data between physical columns and per-adc quasi-columns. """ import numpy as np def block_reshape( data, blocksize ): ''' Reshapes the 2D data into 3D data, with the 3rd dimension being adjacent pixels ''' rows, cols = data.shape numR = rows/blocksiz...
42.140351
119
0.618235
0a83b0f192f8ae0b243051eb123c961cac04032e
16,014
py
Python
volta/volta/train_utils.py
e-bug/cross-modal-ablation
130288670e3d898179998c2d727c5b8e82e49b60
[ "MIT" ]
17
2021-09-12T07:20:07.000Z
2022-01-17T06:45:22.000Z
volta/volta/train_utils.py
e-bug/cross-modal-ablation
130288670e3d898179998c2d727c5b8e82e49b60
[ "MIT" ]
null
null
null
volta/volta/train_utils.py
e-bug/cross-modal-ablation
130288670e3d898179998c2d727c5b8e82e49b60
[ "MIT" ]
2
2021-10-08T12:04:16.000Z
2022-03-09T08:30:40.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) 2020, Emanuele Bugliarello (@e-bug). # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import logging from io import open from tensorboardX import SummaryWriter impor...
46.961877
146
0.642625
669b85a63f2892044ea8c40315bca4a8f053453c
4,661
py
Python
tests/test_mbgdml_predict.py
keithgroup/mbGDML
a68b2a41c26c8e7e8e2f4527939c4564402f36bc
[ "MIT" ]
6
2020-08-03T03:44:33.000Z
2022-02-24T21:50:03.000Z
tests/test_mbgdml_predict.py
keithgroup/mbGDML
a68b2a41c26c8e7e8e2f4527939c4564402f36bc
[ "MIT" ]
null
null
null
tests/test_mbgdml_predict.py
keithgroup/mbGDML
a68b2a41c26c8e7e8e2f4527939c4564402f36bc
[ "MIT" ]
1
2022-02-25T03:03:40.000Z
2022-02-25T03:03:40.000Z
#!/usr/bin/env python # MIT License # # Copyright (c) 2020-2021, Alex M. Maldonado # # 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 ri...
42.761468
98
0.625617
1a13ff100a6ba7f2c407d2a7cf0ac2a442f0cf67
17,600
py
Python
librosa/core/notation.py
jyun25/librosa
a297cac125175afe57fccbf5eecb65b79d088181
[ "0BSD" ]
4,795
2016-05-12T04:39:33.000Z
2022-03-30T21:34:30.000Z
librosa/core/notation.py
jyun25/librosa
a297cac125175afe57fccbf5eecb65b79d088181
[ "0BSD" ]
1,110
2016-05-12T16:56:48.000Z
2022-03-31T19:26:42.000Z
librosa/core/notation.py
jyun25/librosa
a297cac125175afe57fccbf5eecb65b79d088181
[ "0BSD" ]
919
2016-05-12T09:17:06.000Z
2022-03-27T07:09:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Music notation utilities""" import re import numpy as np from .._cache import cache from ..util.exceptions import ParameterError __all__ = [ "key_to_degrees", "key_to_notes", "mela_to_degrees", "mela_to_svara", "thaat_to_degrees", "list_mela", ...
25.360231
89
0.509545
314da09607550dc6e8552b044bfc1ac0aed88356
259
py
Python
accounting_app/accounting_app/doctype/purchase_invoice/purchase_invoice.py
nidhipurohit11/Accounting-App
e35dfef3720efab92e72ade91d9ef457f02ea4fe
[ "MIT" ]
2
2021-06-02T08:01:59.000Z
2021-12-21T04:56:27.000Z
accounting_app/accounting_app/doctype/purchase_invoice/purchase_invoice.py
nidhipurohit11/Accounting-App
e35dfef3720efab92e72ade91d9ef457f02ea4fe
[ "MIT" ]
null
null
null
accounting_app/accounting_app/doctype/purchase_invoice/purchase_invoice.py
nidhipurohit11/Accounting-App
e35dfef3720efab92e72ade91d9ef457f02ea4fe
[ "MIT" ]
2
2021-06-02T08:01:59.000Z
2021-08-23T10:06:30.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Nidhi and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class PurchaseInvoice(Document): pass
23.545455
49
0.776062
3b077bdea13188917c4591a6aed2b68fc01e9fc1
342
py
Python
opentelemetry-sdk/src/opentelemetry/sdk/_metrics/sdk_configuration.py
thedrow/opentelemetry-python
a659966b950ed055f270e8700f9e39e36e5c4eda
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/_metrics/sdk_configuration.py
thedrow/opentelemetry-python
a659966b950ed055f270e8700f9e39e36e5c4eda
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/_metrics/sdk_configuration.py
thedrow/opentelemetry-python
a659966b950ed055f270e8700f9e39e36e5c4eda
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Sequence from opentelemetry.sdk._metrics.metric_reader import MetricReader from opentelemetry.sdk.resources import Resource @dataclass class SdkConfiguration: resource: Resource # TODO: once views are added # views: Sequence[View] metric_readers: S...
24.428571
65
0.80117
099aa3c0ea5c2ee6be77e5b358081c3ec474ab4b
9,055
py
Python
train_sentiment.py
HLTCHKUST/sentiment-lookahead
1c076b7c5c31b0f7c454720377db4e733838ebb2
[ "MIT" ]
13
2020-02-19T03:33:37.000Z
2021-11-30T07:35:39.000Z
train_sentiment.py
HLTCHKUST/sentiment_lookahead
1c076b7c5c31b0f7c454720377db4e733838ebb2
[ "MIT" ]
2
2020-10-14T01:59:55.000Z
2021-05-03T12:18:07.000Z
train_sentiment.py
HLTCHKUST/sentiment_lookahead
1c076b7c5c31b0f7c454720377db4e733838ebb2
[ "MIT" ]
1
2020-06-17T16:27:36.000Z
2020-06-17T16:27:36.000Z
import os import math import random import numpy as np from sklearn.metrics import f1_score from tqdm import tqdm import torch import torch.nn as nn import torch.nn.functional as F from pytorch_pretrained_bert.optimization import BertAdam from utils import constant, masked_cross_entropy from utils.bleu import moses_...
37.417355
142
0.564108
0fcc8436befac877fd08225ab4c8a7b9b58ebd30
2,159
py
Python
test.py
PanPapag/Context-Aware-Crowd-Counting
66a7f10c8e232d8b1f98389c240ba55b7b1d1297
[ "MIT" ]
5
2020-11-22T08:07:22.000Z
2021-01-13T09:30:15.000Z
test.py
PanPapag/Context-Aware-Crowd-Counting
66a7f10c8e232d8b1f98389c240ba55b7b1d1297
[ "MIT" ]
1
2021-03-04T10:32:26.000Z
2021-03-04T10:32:26.000Z
test.py
PanPapag/Context-Aware-Crowd-Counting
66a7f10c8e232d8b1f98389c240ba55b7b1d1297
[ "MIT" ]
null
null
null
import argparse import os import matplotlib.pyplot as plt import matplotlib.cm as CM import torch import torch.nn as nn from torchvision import transforms from model import CANNet from dataset import ShanghaiTechPartA def make_args_parser(): # create an ArgumentParser object parser = argparse.ArgumentParser...
37.877193
88
0.622974
ef6319b8f8bbaa62dd36532865bb6043aab2b16f
5,964
py
Python
ocs_ci/ocs/ui/validation_ui.py
keemano/ocs-ci
643ce73aceef3f92b695fda1bafdea83f6fb0402
[ "MIT" ]
null
null
null
ocs_ci/ocs/ui/validation_ui.py
keemano/ocs-ci
643ce73aceef3f92b695fda1bafdea83f6fb0402
[ "MIT" ]
null
null
null
ocs_ci/ocs/ui/validation_ui.py
keemano/ocs-ci
643ce73aceef3f92b695fda1bafdea83f6fb0402
[ "MIT" ]
null
null
null
import logging from ocs_ci.ocs.ui.base_ui import PageNavigator from ocs_ci.ocs.ui.views import locators from ocs_ci.utility.utils import get_ocp_version, TimeoutSampler from ocs_ci.framework import config from ocs_ci.ocs import constants logger = logging.getLogger(__name__) class ValidationUI(PageNavigator): "...
34.674419
88
0.635983
2a8b2ccc049d3be77d8050739266608491b2ff94
17,067
py
Python
superset/views/utils.py
amitmiran137/incubator-superset
8593a13f00754973117beb0a95e7aca7fec4b00e
[ "Apache-2.0" ]
30
2020-10-24T02:30:31.000Z
2022-03-29T23:21:48.000Z
superset/views/utils.py
amitmiran137/incubator-superset
8593a13f00754973117beb0a95e7aca7fec4b00e
[ "Apache-2.0" ]
4
2021-03-02T01:53:30.000Z
2021-10-06T22:56:01.000Z
superset/views/utils.py
aerhuasi/superset
b4cd57b7bd2d87092ea50cfb2a38f27458195bf4
[ "Apache-2.0" ]
9
2020-12-21T16:20:20.000Z
2022-03-18T06:04:37.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.478788
88
0.680553
0cd02843b299f94598bad77525945a9d1d44d1d9
36,377
py
Python
source/gui/__init__.py
ruifontes/nvda
8d8f60639e92627184151e2080052c7ec2730500
[ "bzip2-1.0.6" ]
1,592
2015-11-10T12:05:44.000Z
2022-03-31T11:50:40.000Z
source/gui/__init__.py
ruifontes/nvda
8d8f60639e92627184151e2080052c7ec2730500
[ "bzip2-1.0.6" ]
9,479
2015-11-10T20:56:48.000Z
2022-03-31T23:51:30.000Z
source/gui/__init__.py
ruifontes/nvda
8d8f60639e92627184151e2080052c7ec2730500
[ "bzip2-1.0.6" ]
682
2015-11-10T11:19:23.000Z
2022-03-31T07:51:29.000Z
# -*- coding: UTF-8 -*- # A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2006-2021 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Mesar Hameed, Joseph Lee, # Thomas Stivers, Babbage B.V., Accessolutions, Julien Cochuyt # This file is covered by the GNU General Public License. # See the file COPYING f...
43.513158
351
0.74712
9da42c5d37e4e8b3e804f03b4aa0c97ec973371f
2,745
py
Python
PDFSentenceReader.py
Hicks48/pdf-word-analyzer
f903011070330e4bd999d0ecd25d95a887d92ec3
[ "Unlicense" ]
null
null
null
PDFSentenceReader.py
Hicks48/pdf-word-analyzer
f903011070330e4bd999d0ecd25d95a887d92ec3
[ "Unlicense" ]
14
2020-01-28T21:47:59.000Z
2022-03-11T23:23:50.000Z
PDFSentenceReader.py
Hicks48/pdf-word-analyzer
f903011070330e4bd999d0ecd25d95a887d92ec3
[ "Unlicense" ]
null
null
null
from PDFTextReader import PDFTextReader import re class PDFSentenceReader: def __init__(self): self.temp_file = None self.current_sentence = 0 self.current_character = 0 self.total_sentences = 0 def open(self, pdf_file_path, temp_file_path): self._pdf_to_text(pdf_fil...
27.45
136
0.614208
ab3b6e3081870eca0a0daca8d185c4c9a6075984
13,060
py
Python
regression/trans_maml.py
MichalisLazarou/cavia
ce476f2e1bc7899ae309c9ae9f23d236eca12555
[ "MIT" ]
null
null
null
regression/trans_maml.py
MichalisLazarou/cavia
ce476f2e1bc7899ae309c9ae9f23d236eca12555
[ "MIT" ]
null
null
null
regression/trans_maml.py
MichalisLazarou/cavia
ce476f2e1bc7899ae309c9ae9f23d236eca12555
[ "MIT" ]
null
null
null
""" Regression experiment using MAML """ import copy import os import time import numpy as np import scipy.stats as st import torch import torch.nn.functional as F import torch.optim as optim import utils import tasks_sine, tasks_celebA import maml_model as fsn from logger import Logger from maml_model import MamlMod...
41.72524
131
0.617841
51cc815099bd7827c399b6b1856eea5b7496dd90
10,098
py
Python
cogs/levelling.py
londarks/Athus-Discord-Bot
720a8c0a2280077712b8d954e7d48dec366953dd
[ "MIT" ]
3
2020-04-04T11:41:19.000Z
2021-06-02T22:56:27.000Z
cogs/levelling.py
londarks/Athus-Discord-Bot
720a8c0a2280077712b8d954e7d48dec366953dd
[ "MIT" ]
null
null
null
cogs/levelling.py
londarks/Athus-Discord-Bot
720a8c0a2280077712b8d954e7d48dec366953dd
[ "MIT" ]
null
null
null
import sqlite3 import discord from discord.ext import commands import asyncio import requests from io import BytesIO from PIL import Image, ImageDraw, ImageFont, ImageOps import time class Levelling(commands.Cog): def __init__(self,client): self.client = client @commands.Cog.listener() async def ...
44.289474
315
0.561596
2783d608dc76fde706edd50b0b7aabce7fd79a5b
1,048
py
Python
bluebottle/assignments/migrations/0025_auto_20210301_1546.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/assignments/migrations/0025_auto_20210301_1546.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/assignments/migrations/0025_auto_20210301_1546.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2021-03-01 14:46 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('activities', '0038_auto_20210127_1358'), ('assignments', '0024_auto_20201112_1519'), ] ...
24.372093
51
0.549618
616b77414b2897b364e82c1eb234ea26f616fa8a
634
py
Python
backend/manage.py
crowdbotics-apps/chatlata-29726
fcf979a4e31ed0178c5812b2bb074212fe84e072
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/chatlata-29726
fcf979a4e31ed0178c5812b2bb074212fe84e072
[ "FTL", "AML", "RSA-MD" ]
14
2021-08-15T17:12:39.000Z
2022-01-23T17:02:34.000Z
backend/manage.py
crowdbotics-apps/chatlata-29726
fcf979a4e31ed0178c5812b2bb074212fe84e072
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "chatlata_29726.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise...
28.818182
78
0.68612
aa35d9e81b21c0295a186e99c055c0c3ac3855c9
2,891
py
Python
jax3d/projects/nesf/utils/file_utils.py
google-research/jax3d
f08ae174c80cd6c597f8fe5417168c82857eb236
[ "Apache-2.0" ]
33
2021-12-15T12:59:28.000Z
2022-03-30T05:29:09.000Z
jax3d/projects/nesf/utils/file_utils.py
google-research/jax3d
f08ae174c80cd6c597f8fe5417168c82857eb236
[ "Apache-2.0" ]
5
2021-12-15T15:15:03.000Z
2021-12-15T17:25:27.000Z
jax3d/projects/nesf/utils/file_utils.py
google-research/jax3d
f08ae174c80cd6c597f8fe5417168c82857eb236
[ "Apache-2.0" ]
1
2022-01-29T18:30:02.000Z
2022-01-29T18:30:02.000Z
# Copyright 2022 The jax3d 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 wr...
28.067961
90
0.72155
bfaa96effc6e882262eb89c8b2428ae275124bd1
9,798
py
Python
mmdet/core/bbox/assigners/max_iou_assigner.py
Brym-Gyimah/mmdetection
d5d749afe57c77e2ec4500395faed3566fdfedae
[ "Apache-2.0" ]
20,190
2018-09-10T01:11:53.000Z
2022-03-31T22:31:33.000Z
mmdet/core/bbox/assigners/max_iou_assigner.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
6,736
2018-09-17T09:45:51.000Z
2022-03-31T22:54:10.000Z
mmdet/core/bbox/assigners/max_iou_assigner.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
7,837
2018-09-11T02:58:23.000Z
2022-03-31T22:31:38.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch from ..builder import BBOX_ASSIGNERS from ..iou_calculators import build_iou_calculator from .assign_result import AssignResult from .base_assigner import BaseAssigner @BBOX_ASSIGNERS.register_module() class MaxIoUAssigner(BaseAssigner): """Assign a co...
45.785047
79
0.602164
56ecd305b4b5bf5249c4d3ed049b0e94d29dbb81
1,313
py
Python
metrics.py
thelawofueki/viptest
5827b1cba812b06ffa5fd1341162ad4547b6c3cc
[ "MIT" ]
null
null
null
metrics.py
thelawofueki/viptest
5827b1cba812b06ffa5fd1341162ad4547b6c3cc
[ "MIT" ]
null
null
null
metrics.py
thelawofueki/viptest
5827b1cba812b06ffa5fd1341162ad4547b6c3cc
[ "MIT" ]
null
null
null
from datetime import datetime from viptela import Viptela MAPPING = { "rx_pkts": "network-in-packets.%s.cntr", "tx_pkts": "network-out-packets.%s.cntr", } def get_metrics(event, context): VIPTELA_USERNAME = event["credentials"]["username"] VIPTELA_PSWD = event["credentials"]["password"] VIPTELA_S...
26.795918
71
0.616146
c2d6633686af99a03c3307ae6e81be8428de5d12
3,279
py
Python
examples/cycle_gan.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
18
2019-05-02T16:32:15.000Z
2021-04-16T09:33:54.000Z
examples/cycle_gan.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
5
2019-10-14T13:46:49.000Z
2021-06-08T11:48:34.000Z
examples/cycle_gan.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
12
2019-05-12T21:34:24.000Z
2021-07-15T14:14:16.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as func from torch.utils.data import Dataset from torchvision.datasets import ImageFolder from torchsupport.modules.basic import MLP from torchsupport.training.translation import CycleGANTraining, PairedGANTraining class MiniEdges2Shoe...
30.64486
81
0.673376
8647131633b9d7a5a6638341c24b844904b8df81
731
py
Python
blog/migrations/0001_initial.py
naritotakizawa/django-notify-sample
c9673e98503b822adcdae738accbb30182ba6817
[ "MIT" ]
2
2019-07-29T00:24:31.000Z
2019-08-04T13:28:13.000Z
blog/migrations/0001_initial.py
naritotakizawa/django-notify-sample
c9673e98503b822adcdae738accbb30182ba6817
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
naritotakizawa/django-notify-sample
c9673e98503b822adcdae738accbb30182ba6817
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-07-27 01:20 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=...
29.24
115
0.581395
b7c26aa36485b8d6f8ad21f57ef4fa601473a6ec
2,149
py
Python
testonly/mpush2/m_stat.py
y12studio/pi
c815b0b2a2421036ec99e085ffa92b1e3b5145f9
[ "Apache-2.0" ]
1
2016-10-28T07:30:34.000Z
2016-10-28T07:30:34.000Z
testonly/mpush2/m_stat.py
y12studio/pi
c815b0b2a2421036ec99e085ffa92b1e3b5145f9
[ "Apache-2.0" ]
null
null
null
testonly/mpush2/m_stat.py
y12studio/pi
c815b0b2a2421036ec99e085ffa92b1e3b5145f9
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Y12Studio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.816667
94
0.660772
7b1fa5259ebb0004788694e7128e15a0eb8067d0
1,589
py
Python
src/grammar_tester/commands.py
akolonin/language-learning
022c34a3066aa97ea0d007419e026247a4f78dd5
[ "MIT" ]
null
null
null
src/grammar_tester/commands.py
akolonin/language-learning
022c34a3066aa97ea0d007419e026247a4f78dd5
[ "MIT" ]
null
null
null
src/grammar_tester/commands.py
akolonin/language-learning
022c34a3066aa97ea0d007419e026247a4f78dd5
[ "MIT" ]
null
null
null
from typing import List from .optconst import * def get_sed_regex(options: int) -> str: # If BIT_ULL_IN sed filters links leaving only sentences and removes square brackets around tokens if any. if options & BIT_ULL_IN: return r'/\(^[0-9].*$\)\|\(^$\)/d;s/\[\([a-z0-9A-Z.,:\@"?!*~()\/\#\$&;^%_`\0xe2\x...
46.735294
156
0.569541
dadd0fc5017cd8ecb24d18485dde6d10801a8fd3
330
py
Python
coding_interviews/leetcode/easy/find_the_highest_altitude/find_the_highest_altitude.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
205
2018-12-01T17:49:49.000Z
2021-12-22T07:02:27.000Z
coding_interviews/leetcode/easy/find_the_highest_altitude/find_the_highest_altitude.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
2
2020-01-01T16:34:29.000Z
2020-04-26T19:11:13.000Z
coding_interviews/leetcode/easy/find_the_highest_altitude/find_the_highest_altitude.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
50
2018-11-28T20:51:36.000Z
2021-11-29T04:08:25.000Z
# https://leetcode.com/problems/find-the-highest-altitude def largest_altitude(gain): highest_altitude, current_altitude = 0, 0 for net_gain in gain: current_altitude += net_gain if current_altitude > highest_altitude: highest_altitude = current_altitude return highes...
30
57
0.70303
1533d277a3e94c8299bac6573e487ee30b5f2ac8
7,157
py
Python
ml_analysis/SVM.py
damien-marion/analysis
110fed55d24802e85ff3e8fc224376481a822649
[ "MIT" ]
null
null
null
ml_analysis/SVM.py
damien-marion/analysis
110fed55d24802e85ff3e8fc224376481a822649
[ "MIT" ]
null
null
null
ml_analysis/SVM.py
damien-marion/analysis
110fed55d24802e85ff3e8fc224376481a822649
[ "MIT" ]
null
null
null
""" File: SVM.py Project: analysis Last Modified: 2022-2-7 Created Date: 2022-2-7 Copyright (c) 2021 Author: AHMA project (Univ Rennes, CNRS, Inria, IRISA) """ ################################################################################ import sys, os, glob import logging import numpy ...
38.069149
141
0.523683
cdc4f12df7fb563cdb6dbc9505ad04e30b02ad96
3,450
py
Python
solutions/year_2020/day_7/handy_haversacks.py
svandermeulen/advent_of_code
99fe936a564f8ee66f8f28aaac4e36e013ebc28d
[ "MIT" ]
null
null
null
solutions/year_2020/day_7/handy_haversacks.py
svandermeulen/advent_of_code
99fe936a564f8ee66f8f28aaac4e36e013ebc28d
[ "MIT" ]
null
null
null
solutions/year_2020/day_7/handy_haversacks.py
svandermeulen/advent_of_code
99fe936a564f8ee66f8f28aaac4e36e013ebc28d
[ "MIT" ]
null
null
null
""" -*- coding: utf-8 -*- Written by: sme30393 Date: 07/12/2020 """ import os import re from typing import List from solutions.config import Config from solutions.year_2020.utils.file_manager import read_txt_file def parse_rules(data: List[str]) -> dict: data = [re.split("contain|, ", rule) for rule in data] ...
33.823529
106
0.70029
62a20df2712c6e0e8d6457dd147f60ab64a91712
273
py
Python
lcc/compiler.py
ronyhe/lcc
f352a8c973352e7ed49efdd11099182f21fdd06b
[ "MIT" ]
6
2017-03-05T09:26:06.000Z
2017-11-16T06:46:58.000Z
lcc/compiler.py
ronyhe/lcc
f352a8c973352e7ed49efdd11099182f21fdd06b
[ "MIT" ]
null
null
null
lcc/compiler.py
ronyhe/lcc
f352a8c973352e7ed49efdd11099182f21fdd06b
[ "MIT" ]
null
null
null
from lcc import lexical, syntactical def run_compile(source_text): lexer = lexical.Lexer(source_text) parser = syntactical.Parser(lexer) program = parser.parse_program() program.validate_free_variables() python = program.to_python() return python
24.818182
38
0.739927
093822f4103e60ffee1963cd75831b7de4553361
23,353
py
Python
tensorflow_probability/python/internal/backend/numpy/gen/linear_operator_util.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
2
2020-12-17T20:43:24.000Z
2021-06-11T22:09:16.000Z
tensorflow_probability/python/internal/backend/numpy/gen/linear_operator_util.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/backend/numpy/gen/linear_operator_util.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
1
2020-12-19T13:05:15.000Z
2020-12-19T13:05:15.000Z
# Copyright 2020 The TensorFlow Probability Authors. All Rights Reserved. # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # THIS FILE IS AUTO-GENERATED BY `gen_linear_operators.py`. # DO NOT MODIFY DIRECTLY. # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
37.726979
122
0.674389
742df2ad8cd3b9f7c3100a0e1ad98777af373bf7
57,590
py
Python
ovpr_atp/awards/migrations/0054_auto__add_field_awardacceptance_pta_modification.py
pawanacharya1979/Awdportal
f0ed6ad723d70fae4737e517d4dca07b2aef176a
[ "MIT" ]
null
null
null
ovpr_atp/awards/migrations/0054_auto__add_field_awardacceptance_pta_modification.py
pawanacharya1979/Awdportal
f0ed6ad723d70fae4737e517d4dca07b2aef176a
[ "MIT" ]
null
null
null
ovpr_atp/awards/migrations/0054_auto__add_field_awardacceptance_pta_modification.py
pawanacharya1979/Awdportal
f0ed6ad723d70fae4737e517d4dca07b2aef176a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'AwardAcceptance.pta_modification' db.add_column(u'awards_...
102.47331
195
0.574787
71610a6f2ac030f04efc9eb38d9e9fb36116fca8
4,781
py
Python
skbio/stats/distance/tests/test_permanova.py
shiffer1/scikit-bio
a9b6eddad4e53c96f6132f27bc1c31e6b7d8ea1b
[ "BSD-3-Clause" ]
null
null
null
skbio/stats/distance/tests/test_permanova.py
shiffer1/scikit-bio
a9b6eddad4e53c96f6132f27bc1c31e6b7d8ea1b
[ "BSD-3-Clause" ]
null
null
null
skbio/stats/distance/tests/test_permanova.py
shiffer1/scikit-bio
a9b6eddad4e53c96f6132f27bc1c31e6b7d8ea1b
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
40.516949
78
0.533989
243fcc472d5f541f75d5d0cb5c1f8854d67105f3
6,982
py
Python
forge/blade/core/market/new_visualizer.py
narendasan/neural-mmo
36a588db0021cccd7275cebef2cbdc5ee8eb40d5
[ "MIT" ]
4
2020-11-08T22:33:15.000Z
2020-11-21T15:45:43.000Z
forge/blade/core/market/new_visualizer.py
ThomasCloarec/neural-mmo
094744f49ad2cff179ec21e27285258903b70098
[ "MIT" ]
1
2021-09-30T07:57:46.000Z
2021-10-02T00:39:11.000Z
forge/blade/core/market/new_visualizer.py
ThomasCloarec/neural-mmo
094744f49ad2cff179ec21e27285258903b70098
[ "MIT" ]
2
2021-09-16T16:43:03.000Z
2021-09-28T18:12:41.000Z
from pdb import set_trace as T import time import ray from functools import partial from threading import Thread from random import random from bokeh.server.server import Server from bokeh.models import ColumnDataSource from bokeh.models import Band from bokeh.plotting import curdoc, figure, show from bokeh.themes i...
27.706349
78
0.545402
f6367b0d97cca9da857152bd98167d4adc8ce731
5,488
py
Python
lab/numpy/generic.py
patel-zeel/lab
cc0df2c03196863041e78fa4179445341e86958c
[ "MIT" ]
null
null
null
lab/numpy/generic.py
patel-zeel/lab
cc0df2c03196863041e78fa4179445341e86958c
[ "MIT" ]
null
null
null
lab/numpy/generic.py
patel-zeel/lab
cc0df2c03196863041e78fa4179445341e86958c
[ "MIT" ]
null
null
null
from types import FunctionType import numpy as np import scipy.special as sps from plum import Union from . import B, dispatch, Numeric from ..custom import bvn_cdf as _bvn_cdf from ..types import NPNumeric, NPDType, Int, NPRandomState __all__ = [] @dispatch def isabstract(a: Numeric): return False @dispatch...
17.422222
74
0.663812
1e14d6651d60705702f1524ab63f8a9985cfcb52
5,067
py
Python
webscan_backend/views.py
imfiver/Sec-Tools
a828e31c2e371c37f1256f0a574707a24776530d
[ "Apache-2.0" ]
144
2021-11-05T10:45:05.000Z
2022-03-31T03:17:19.000Z
webscan_backend/views.py
imfiver/Sec-Tools
a828e31c2e371c37f1256f0a574707a24776530d
[ "Apache-2.0" ]
6
2021-11-07T02:47:41.000Z
2022-03-06T05:50:15.000Z
webscan_backend/views.py
imfiver/Sec-Tools
a828e31c2e371c37f1256f0a574707a24776530d
[ "Apache-2.0" ]
41
2021-11-07T13:35:02.000Z
2022-03-29T00:09:36.000Z
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required # Create your views here. # -*- coding:utf-8 -*- from django.views.decorators.csrf import csrf_exempt from .plugins.common.common import success, error, addslashes, getdomain, get...
32.902597
164
0.610026
dfce96b8227f698c658b065374b735f3ecdb0d7f
2,844
py
Python
src/hexagonal/services/raw_python_project_importer.py
rfrezino/hexagonal-sanity-check
78c8711d9be6ec173abead4ab344f7ac57d5d4ac
[ "MIT" ]
1
2022-03-14T10:17:38.000Z
2022-03-14T10:17:38.000Z
src/hexagonal/services/raw_python_project_importer.py
rfrezino/hexagonal-sanity-check
78c8711d9be6ec173abead4ab344f7ac57d5d4ac
[ "MIT" ]
null
null
null
src/hexagonal/services/raw_python_project_importer.py
rfrezino/hexagonal-sanity-check
78c8711d9be6ec173abead4ab344f7ac57d5d4ac
[ "MIT" ]
2
2021-12-14T10:35:24.000Z
2022-01-31T14:17:36.000Z
import os from glob import glob from typing import List from hexagonal.domain.raw_python_file import RawPythonFile from hexagonal.services.hexagonal_composition import HexagonalComposition from hexagonal.services.raw_python_file_builder import RawPythonFileBuilder class RawPythonFilesImporter: _composition: Hexa...
38.958904
120
0.701828
80cb853821050314a843d25e8e8e6e9e41411d5c
965
py
Python
huobi/model/mbprequest.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2020-12-28T07:04:45.000Z
2020-12-28T07:04:45.000Z
huobi/model/mbprequest.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
null
null
null
huobi/model/mbprequest.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2022-03-27T10:36:04.000Z
2022-03-27T10:36:04.000Z
from huobi.constant.result import OutputKey from huobi.impl.utils.channelparser import ChannelParser from huobi.model import * class MbpRequest: """ The price depth received by subscription of price depth. :member symbol: The symbol you subscribed. timestamp: The UNIX formatted timestamp ...
26.081081
75
0.645596
e6cd3f473e84bccb38060ab2d97b66fee5917e66
3,422
py
Python
monitoring/tracer/check_rid_flights.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
null
null
null
monitoring/tracer/check_rid_flights.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
null
null
null
monitoring/tracer/check_rid_flights.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
null
null
null
#!env/bin/python3 import argparse import logging from typing import Dict import requests import s2sphere import yaml from monitoring.monitorlib import rid from monitoring.tracer import polling from monitoring.tracer.resources import ResourceSet logging.basicConfig() _logger = logging.getLogger('check_rid_flights')...
29.5
157
0.680304
150607637b7cd27c4cd7ac06874d377e68159776
4,982
py
Python
.ycm_extra_conf.py
uasys/ACF-Coalescing-LLVM
db811bda15bb7c4a951644130ab55f5cb5848351
[ "MIT" ]
1
2020-06-23T00:18:56.000Z
2020-06-23T00:18:56.000Z
.ycm_extra_conf.py
uasys/ACF-Coalescing-LLVM
db811bda15bb7c4a951644130ab55f5cb5848351
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
uasys/ACF-Coalescing-LLVM
db811bda15bb7c4a951644130ab55f5cb5848351
[ "MIT" ]
null
null
null
# Generated by YCM Generator at 2017-01-06 11:15:26.344080 # This file is NOT licensed under the GPLv3, which is the license for the rest # of YouCompleteMe. # # Here's the license text for this file: # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publis...
33.891156
79
0.718386
4fabbc336161434c7f78966242944eb239c20406
5,729
py
Python
init.py
lccatala/ENet-Real-Time-Semantic-Segmentation
e8efbfa8232000baf78910b9b91282f1ee193902
[ "BSD-3-Clause" ]
268
2019-01-17T09:19:52.000Z
2022-02-17T05:19:21.000Z
init.py
lccatala/ENet-Real-Time-Semantic-Segmentation
e8efbfa8232000baf78910b9b91282f1ee193902
[ "BSD-3-Clause" ]
25
2019-01-24T08:15:06.000Z
2021-06-24T21:44:50.000Z
init.py
lccatala/ENet-Real-Time-Semantic-Segmentation
e8efbfa8232000baf78910b9b91282f1ee193902
[ "BSD-3-Clause" ]
75
2019-01-17T10:43:09.000Z
2021-09-29T19:28:02.000Z
import numpy as np import argparse from train import * from test import * color_map = { 'unlabeled' : ( 0, 0, 0), 'dynamic' : (111, 74, 0), 'ground' : ( 81, 0, 81), 'road' : (128, 64,128), 'sidewalk' : (244, 35,232), 'parking' : (250,170,160), 'rail...
36.490446
93
0.440915
4282b59f442a5388a7e9404b7377ddcf51c94b32
2,283
py
Python
unifuncnet/Fetchers/Gene_Fetchers/Gene_Fetcher.py
PedroMTQ/UniFuncNet
cde0170241aff8502862df84756662fae7f5d8b3
[ "MIT" ]
4
2022-02-14T15:49:31.000Z
2022-03-22T10:37:36.000Z
unifuncnet/Fetchers/Gene_Fetchers/Gene_Fetcher.py
PedroMTQ/UniFuncNet
cde0170241aff8502862df84756662fae7f5d8b3
[ "MIT" ]
null
null
null
unifuncnet/Fetchers/Gene_Fetchers/Gene_Fetcher.py
PedroMTQ/UniFuncNet
cde0170241aff8502862df84756662fae7f5d8b3
[ "MIT" ]
null
null
null
from unifuncnet.Fetchers.Global_Fetcher import * class Gene_Fetcher(Global_Fetcher): def __init__(self,gene_id,extra_args={},memory_storage=None): Global_Fetcher.__init__(self,memory_storage=memory_storage) self.gene_id=gene_id self.db= None self.gene=None self.convergence_a...
42.277778
163
0.700394
4bfaac8ddefcae9436f814ecc6c2419a61946633
7,213
py
Python
src/multi_label.py
nagmakhan/multi-label-analysis
4d2a16e39c520a2a519e9f1827feece7408d3225
[ "MIT" ]
5
2020-07-22T09:19:05.000Z
2021-10-11T12:58:52.000Z
src/multi_label.py
nagmakhan/multi-label-analysis
4d2a16e39c520a2a519e9f1827feece7408d3225
[ "MIT" ]
3
2020-09-24T03:22:00.000Z
2021-05-15T05:42:15.000Z
src/multi_label.py
nagmakhan/multi-label-analysis
4d2a16e39c520a2a519e9f1827feece7408d3225
[ "MIT" ]
2
2020-03-23T13:29:53.000Z
2020-04-01T13:23:34.000Z
from sklearn.model_selection import train_test_split from sklearn.metrics import hamming_loss, fbeta_score, confusion_matrix, precision_recall_fscore_support from skmultilearn.problem_transform import BinaryRelevance # to help stratify while sampling import scipy.io import numpy as np import time ## Loading data prin...
32.638009
147
0.761126
bd6d1c50086b0cf0eaff55e620c563640d7b9ff6
14,599
py
Python
frameworks/helloworld/tests/test_canary_strategy.py
jorgelopez1/hdfs
892589180438b90486ec7530d2a63c218b20e79f
[ "Apache-2.0" ]
null
null
null
frameworks/helloworld/tests/test_canary_strategy.py
jorgelopez1/hdfs
892589180438b90486ec7530d2a63c218b20e79f
[ "Apache-2.0" ]
null
null
null
frameworks/helloworld/tests/test_canary_strategy.py
jorgelopez1/hdfs
892589180438b90486ec7530d2a63c218b20e79f
[ "Apache-2.0" ]
null
null
null
import logging import pytest import sdk_cmd import sdk_install import sdk_marathon import sdk_plan import sdk_tasks import sdk_utils import shakedown from tests import config log = logging.getLogger(__name__) # global pytest variable applicable to whole module pytestmark = sdk_utils.dcos_1_9_or_higher @pytest.fixt...
34.513002
117
0.646551
87ee46b5937e58d5aba854d6f628d4794eeb86cb
11,374
py
Python
otcextensions/sdk/dcaas/v2/_proxy.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dcaas/v2/_proxy.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/dcaas/v2/_proxy.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
42.125926
80
0.649815
5ff49ceb29e27809383b538b93194ee8ddfb9b58
11,374
py
Python
dbsync/client/pull.py
bintlabs/python-sync-db
bb23d77abf560793696f906e030950aec04c3361
[ "MIT" ]
42
2015-02-15T05:37:08.000Z
2022-02-09T04:19:43.000Z
dbsync/client/pull.py
bintlabs/python-sync-db
bb23d77abf560793696f906e030950aec04c3361
[ "MIT" ]
1
2017-02-22T03:01:43.000Z
2020-09-27T02:25:16.000Z
dbsync/client/pull.py
bintlabs/python-sync-db
bb23d77abf560793696f906e030950aec04c3361
[ "MIT" ]
9
2016-10-27T10:32:13.000Z
2020-12-02T06:40:15.000Z
""" Pull, merge and related operations. """ import collections from sqlalchemy.orm import make_transient from dbsync.lang import * from dbsync.utils import class_mapper, get_pk, query_model from dbsync import core from dbsync.models import Operation from dbsync import dialects from dbsync.messages.pull import PullMe...
36.690323
79
0.648497
e3e6300ded951bd09be70108f792b14fa4f79846
898
py
Python
salt/wheel/key.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2015-10-06T22:25:22.000Z
2015-10-06T22:25:22.000Z
salt/wheel/key.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/wheel/key.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
''' Wheel system wrapper for key system ''' # Import salt libs import salt.key def list_all(): ''' List the keys under a named status ''' skey = salt.key.Key(__opts__) return skey.all_keys() def accept(match): ''' Accept keys based on a glob match ''' skey = salt.key.Key(__opts__...
17.96
40
0.61804
9b9e45c6ca0e6e04b6693bec41d0dbd8eac7be93
1,911
py
Python
tests/property/lambda_getter.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
25
2015-04-16T04:31:49.000Z
2022-03-10T15:53:28.000Z
tests/property/lambda_getter.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2018-11-21T22:40:02.000Z
2018-11-26T17:53:11.000Z
tests/property/lambda_getter.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2021-03-26T03:36:19.000Z
2021-03-26T03:36:19.000Z
class PropertyBase(Exception): pass class PropertyGet(PropertyBase): pass class PropertySet(PropertyBase): pass class PropertyDel(PropertyBase): pass class BaseClass(object): def __init__(self): self._spam = 5 @property def spam(self): """BaseClass.getter""" retu...
20.771739
56
0.642595
19aec18e81c202e38c2a04bec4797820453bd8a0
1,493
py
Python
openwater/zone/validation.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
openwater/zone/validation.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
openwater/zone/validation.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
import copy from typing import Optional, Type, Any, Dict from cerberus import Validator from cerberus.errors import ErrorList from openwater.zone.model import BaseZone ATTR_SCHEMA = { "soil_type": {"type": "string"}, "precip_rate": {"type": "float"}, } RUN_SCHEMA = { "id": {"type": "integer"}, "zone...
31.104167
83
0.633624
d8134ecf11d4f75ec933f8411b9f4ae231d16803
2,126
py
Python
.test-infra/jenkins/dependency_check/version_comparer.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
5,279
2016-12-29T04:00:44.000Z
2022-03-31T22:56:45.000Z
.test-infra/jenkins/dependency_check/version_comparer.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
14,149
2016-12-28T00:43:50.000Z
2022-03-31T23:50:22.000Z
.test-infra/jenkins/dependency_check/version_comparer.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
3,763
2016-12-29T04:06:10.000Z
2022-03-31T22:25:49.000Z
#!/usr/bin/env python # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lic...
40.884615
115
0.749294
f131b6a60584004f95db454d56f84288153024a6
32,263
py
Python
tests/test_bifacial_radiance.py
kperrynrel/bifacial_radiance
cf5ae46b4ef93990e3e1619956a186376cb4fd8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_bifacial_radiance.py
kperrynrel/bifacial_radiance
cf5ae46b4ef93990e3e1619956a186376cb4fd8a
[ "BSD-3-Clause" ]
null
null
null
tests/test_bifacial_radiance.py
kperrynrel/bifacial_radiance
cf5ae46b4ef93990e3e1619956a186376cb4fd8a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 27 10:08:25 2018 @author: cdeline Using pytest to create unit tests for bifacial_radiance. to run unit tests, run pytest from the command line in the bifacial_radiance directory to run coverage tests, run py.test --cov-report term-missing --cov=bifacial_radiance """ ...
57.305506
225
0.672721
deb7ee9d7067dedb7c9115f551139c837f8c59ab
13,699
py
Python
pyscf/prop/zfs/uhf.py
fishjojo/properties
6eb98707e0c681f182deefbedf800911feaa7d1f
[ "Apache-2.0" ]
4
2021-03-01T03:46:02.000Z
2022-03-14T05:34:33.000Z
pyscf/prop/zfs/uhf.py
fishjojo/properties
6eb98707e0c681f182deefbedf800911feaa7d1f
[ "Apache-2.0" ]
1
2022-02-23T02:52:45.000Z
2022-02-23T02:53:55.000Z
pyscf/prop/zfs/uhf.py
fishjojo/properties
6eb98707e0c681f182deefbedf800911feaa7d1f
[ "Apache-2.0" ]
3
2021-05-24T02:29:13.000Z
2022-03-14T05:34:34.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
37.634615
98
0.600263
1bc4e215c8ea9219fdb57485160c5c4dbc196e81
1,681
py
Python
vsts/vsts/operations/v4_0/models/operation.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/operations/v4_0/models/operation.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/operations/v4_0/models/operation.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
43.102564
94
0.556217
a49026d60e1ab40e10ba64f8c3d8c2320b5aa578
4,501
py
Python
tests/checkout_repo/basicgit_test.py
vincent-l-j/micropython-stubber
7dbbc937baffedd7fdbd5ac9f94555f2c93b98d0
[ "MIT" ]
null
null
null
tests/checkout_repo/basicgit_test.py
vincent-l-j/micropython-stubber
7dbbc937baffedd7fdbd5ac9f94555f2c93b98d0
[ "MIT" ]
null
null
null
tests/checkout_repo/basicgit_test.py
vincent-l-j/micropython-stubber
7dbbc937baffedd7fdbd5ac9f94555f2c93b98d0
[ "MIT" ]
null
null
null
import sys import os import pytest import subprocess from pathlib import Path from pytest_mock import MockerFixture from mock import MagicMock from typing import List from subprocess import CompletedProcess # make sure that the source can be found RootPath = Path(os.getcwd()) src_path = str(RootPath / "src") if not sr...
27.278788
134
0.672962
3937fc704bc83ed2d9a1b6ec40beb740bb224d4c
801
py
Python
Tests/test_escapes.py
ZiRO-Bot/TagScript
99a7999d61d891b0ed75ad2f2767eb49a7a9abc6
[ "CC-BY-4.0" ]
9
2021-03-12T19:52:15.000Z
2022-01-23T11:50:32.000Z
Tests/test_escapes.py
ZiRO-Bot/TagScript
99a7999d61d891b0ed75ad2f2767eb49a7a9abc6
[ "CC-BY-4.0" ]
7
2021-03-19T05:15:31.000Z
2021-07-03T10:24:49.000Z
Tests/test_escapes.py
ZiRO-Bot/TagScript
99a7999d61d891b0ed75ad2f2767eb49a7a9abc6
[ "CC-BY-4.0" ]
15
2021-03-08T01:17:01.000Z
2022-03-21T09:47:42.000Z
import TagScriptEngine as tse blocks = [ tse.MathBlock(), tse.RandomBlock(), tse.RangeBlock(), tse.AnyBlock(), tse.IfBlock(), tse.AllBlock(), tse.BreakBlock(), tse.StrfBlock(), tse.StopBlock(), tse.AssignmentBlock(), tse.FiftyFiftyBlock(), tse.ShortCutRedirectBlock("args...
23.558824
99
0.657928
81a49b79c8d75b44625460e0bf51c5a5c0e543a7
1,066
py
Python
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_info.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_info.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_info.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
28.810811
76
0.58818
512beab7e34165f7e5d4a64811732687b99087fc
881
py
Python
AI_Web/GA/migrations/0001_initial.py
xwy27/ArtificialIntelligenceProjects
e2b0154f07d749084e2d670260fa82f8f5ea23ed
[ "MIT" ]
4
2018-12-19T14:10:56.000Z
2021-07-12T06:05:17.000Z
AI_Web/GA/migrations/0001_initial.py
xwy27/ArtificialIntelligenceProjects
e2b0154f07d749084e2d670260fa82f8f5ea23ed
[ "MIT" ]
1
2019-08-06T01:57:41.000Z
2019-08-06T01:57:41.000Z
AI_Web/GA/migrations/0001_initial.py
xwy27/ArtificialIntelligenceProjects
e2b0154f07d749084e2d670260fa82f8f5ea23ed
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-11-09 08:24 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='City', fields=[ ('id', models.IntegerField(pr...
27.53125
90
0.531215
b72cdb4e64e78b2861781d88c438526200fc7489
3,907
py
Python
vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/openocd.py
ictk-solution-dev/amazon-freertos
cc76512292ddfb70bba3030dbcb740ef3c6ead8b
[ "MIT" ]
2
2020-06-23T08:05:58.000Z
2020-06-24T01:25:51.000Z
vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/openocd.py
ictk-solution-dev/amazon-freertos
cc76512292ddfb70bba3030dbcb740ef3c6ead8b
[ "MIT" ]
2
2022-03-29T05:16:50.000Z
2022-03-29T05:16:50.000Z
vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/openocd.py
ictk-solution-dev/amazon-freertos
cc76512292ddfb70bba3030dbcb740ef3c6ead8b
[ "MIT" ]
null
null
null
#! /usr/bin/env python # Copyright (C) 2018 Marvell International Ltd. # All Rights Reserved. # Load application to ram helper script # Note: sys.stdout.flush() and sys.stderr.flush() are required for proper # console output in eclipse import os, sys, platform, getopt, subprocess from sys import platform as ...
34.575221
170
0.571794
6049b71e95e6893b0e7e17183df1ca3bf420baf5
28,574
py
Python
multiqc_sav/modules/sav.py
MultiQC/MultiQC_SAV
bd057a454108b5c6f4af2ad077e895f4476dc688
[ "MIT" ]
1
2021-06-01T08:47:19.000Z
2021-06-01T08:47:19.000Z
multiqc_sav/modules/sav.py
MultiQC/MultiQC_SAV
bd057a454108b5c6f4af2ad077e895f4476dc688
[ "MIT" ]
2
2021-06-16T09:15:25.000Z
2022-01-28T12:57:28.000Z
multiqc_sav/modules/sav.py
MultiQC/MultiQC_SAV
bd057a454108b5c6f4af2ad077e895f4476dc688
[ "MIT" ]
null
null
null
#!/usr/bin/env python import glob import logging import os import re import xml.etree.ElementTree as ET from collections import OrderedDict from datetime import datetime from typing import Dict import interop import numpy import pandas as pd from interop import py_interop_plot from multiqc import config from multiqc....
37.99734
208
0.549591
bc33d893f264ec12e3f913cdc3c2bf1da97767dc
2,309
py
Python
MP4_concentration.py
wolfiex/ropacode
2b5caa4ed52d985c9b6eb626f364655af20d97f3
[ "CC0-1.0" ]
null
null
null
MP4_concentration.py
wolfiex/ropacode
2b5caa4ed52d985c9b6eb626f364655af20d97f3
[ "CC0-1.0" ]
null
null
null
MP4_concentration.py
wolfiex/ropacode
2b5caa4ed52d985c9b6eb626f364655af20d97f3
[ "CC0-1.0" ]
null
null
null
import numpy as np import matplotlib, datetime matplotlib.use("Agg") import matplotlib.pyplot as plt import matplotlib.animation as animation import pandas as pd import sys,os,re,multiprocessing,netCDF4 from netCDF4 import Dataset #netcdf file path ncfile = sys.argv[1] netCDF_data = Dataset(ncfile, mode='r') # Set ...
27.819277
133
0.672586
addd8bb8ee3b05343d23885eaff761193ac4bd4a
2,127
py
Python
1-Getting Started with Python/basics3.py
hchs-hdac/git-tutorial
c2a89b3219c89185b44c312c8db22e469ea2ffe5
[ "CC0-1.0" ]
1
2020-04-12T20:12:54.000Z
2020-04-12T20:12:54.000Z
1-Getting Started with Python/basics3.py
hchs-hdac/git-tutorial
c2a89b3219c89185b44c312c8db22e469ea2ffe5
[ "CC0-1.0" ]
null
null
null
1-Getting Started with Python/basics3.py
hchs-hdac/git-tutorial
c2a89b3219c89185b44c312c8db22e469ea2ffe5
[ "CC0-1.0" ]
5
2020-04-09T20:16:03.000Z
2020-11-20T01:42:38.000Z
# Conditionals (if/elif/else) - will run commands only if the statement is true x = 1 lst = ['Corn Flakes', 'Cheerios', 'Special K'] if x == 1: # the == signifies "equal to" - this is in order to distinguish from = which assigns variables print('X is 1.') # if x is 1, Python will execute this line else: print...
44.3125
144
0.708039
9f283f7aa7d975680710816dd589caa3936fc170
1,500
py
Python
nff/utils/scatter.py
torchmd/mdgrad
77bd7685b74b41acf54a9483546e1e8cb545eb01
[ "MIT" ]
54
2021-03-10T18:35:49.000Z
2022-03-28T13:54:47.000Z
nff/utils/scatter.py
wwang2/torchmd
77bd7685b74b41acf54a9483546e1e8cb545eb01
[ "MIT" ]
1
2021-03-17T07:01:02.000Z
2021-03-17T07:01:02.000Z
nff/utils/scatter.py
torchmd/mdgrad
77bd7685b74b41acf54a9483546e1e8cb545eb01
[ "MIT" ]
5
2021-06-08T02:44:35.000Z
2021-12-17T11:50:08.000Z
from itertools import repeat from torch.autograd import grad def compute_grad(inputs, output, create_graph=True, retain_graph=True): """Compute gradient of the scalar output with respect to inputs. Args: inputs (torch.Tensor): torch tensor, requires_grad=True output (torch.Tensor): scalar...
32.608696
90
0.664667
e160aaf0a90f9957dbc9c31bdca7a559b5c338f3
22,996
py
Python
Test/undoManager_test.py
justvanrossum/jundo
16e806cef60a2bd88d3916bff61d2befc3db5956
[ "MIT" ]
12
2018-12-29T13:56:54.000Z
2021-09-19T13:04:03.000Z
Test/undoManager_test.py
justvanrossum/jundo
16e806cef60a2bd88d3916bff61d2befc3db5956
[ "MIT" ]
1
2020-01-30T18:22:38.000Z
2021-09-19T18:51:53.000Z
Test/undoManager_test.py
justvanrossum/jundo
16e806cef60a2bd88d3916bff61d2befc3db5956
[ "MIT" ]
null
null
null
from collections.abc import Mapping, Sequence, Set import pytest from jundo.undoManager import ( Change, UndoManager, UndoManagerError, UndoProxy, UndoProxyAttributeObject, UndoProxyBase, UndoProxyMapping, UndoProxySequence, UndoProxySet, addItem, addNestedItem, getItem, ...
32.297753
112
0.51435
72c58b4e9db8405c2e1faaf42f85d952d8aa9bea
3,447
py
Python
sympy/matrices/expressions/funcmatrix.py
Geektrovert/sympy
30e7f9f4f2c26ec8f3e1577b9bf163e4851ab3d5
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/expressions/funcmatrix.py
Geektrovert/sympy
30e7f9f4f2c26ec8f3e1577b9bf163e4851ab3d5
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/expressions/funcmatrix.py
Geektrovert/sympy
30e7f9f4f2c26ec8f3e1577b9bf163e4851ab3d5
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division from .matexpr import MatrixExpr from sympy.core.basic import Basic from sympy.core.function import FunctionClass, Lambda from sympy.core.sympify import _sympify, sympify from sympy.matrices import Matrix from sympy.functions.elementary.complexes import re, im class Fun...
28.487603
73
0.610966
fe723f70f6b0acf4bf27dd808690e85f3db331ab
3,086
py
Python
pydsm/correlations.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
pydsm/correlations.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
pydsm/correlations.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2012, Sergio Callegari # All rights reserved. # This file is part of PyDSM. # PyDSM is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
27.553571
74
0.631886
b714daaa0b411d193c53c638ad323afc0e6b9996
4,205
py
Python
examples/pervasive/criterions/archive/multi_cross_entropy.py
EricLina/attn2d
982653439dedc7306e484e00b3dfb90e2cd7c9e1
[ "MIT" ]
490
2018-08-18T14:25:38.000Z
2022-03-25T12:19:35.000Z
examples/pervasive/criterions/archive/multi_cross_entropy.py
VivianLiangB/attn2d
43babb8a00c723abc2e87c9ec3212de3010d9200
[ "MIT" ]
17
2018-08-23T06:04:29.000Z
2022-03-26T07:35:26.000Z
examples/pervasive/criterions/archive/multi_cross_entropy.py
VivianLiangB/attn2d
43babb8a00c723abc2e87c9ec3212de3010d9200
[ "MIT" ]
80
2018-08-20T09:54:49.000Z
2022-03-22T01:18:23.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import math from fairseq import u...
40.432692
103
0.629251
b932c53435d89a32f1906047cd46ae1cbbe03e4e
47
py
Python
tests/__init__.py
Trim21/beancount-fetch
20ba65cd06dfae5de7c0e831fb88c2893b84b657
[ "MIT" ]
null
null
null
tests/__init__.py
Trim21/beancount-fetch
20ba65cd06dfae5de7c0e831fb88c2893b84b657
[ "MIT" ]
2
2020-09-24T23:18:32.000Z
2020-09-25T09:10:19.000Z
tests/__init__.py
Trim21/beancount-fetch
20ba65cd06dfae5de7c0e831fb88c2893b84b657
[ "MIT" ]
null
null
null
"""Unit test package for beancount_fetcher."""
23.5
46
0.744681
e1de8bb2f68914de9dede24c9fd477fd4808da36
723
py
Python
tests/test_siaf_interface.py
mtakahiro/mirage
782bb01b46cba078f0f0afb9192e8439cf4ae5fc
[ "BSD-3-Clause" ]
37
2018-10-03T13:42:11.000Z
2022-03-10T14:44:47.000Z
tests/test_siaf_interface.py
mtakahiro/mirage
782bb01b46cba078f0f0afb9192e8439cf4ae5fc
[ "BSD-3-Clause" ]
531
2018-06-26T18:18:24.000Z
2022-03-31T13:09:36.000Z
tests/test_siaf_interface.py
mtakahiro/mirage
782bb01b46cba078f0f0afb9192e8439cf4ae5fc
[ "BSD-3-Clause" ]
39
2018-06-26T19:13:08.000Z
2022-03-02T02:22:26.000Z
"""Test the functions provided by siaf_interface. Authors ------- - Johannes Sahlmann Use --- >>> pytest -s test_siaf_interface.py """ from pysiaf import iando from mirage.utils import siaf_interface def test_sci_subarray_corners(): """Unit test for siaf_interface.sci_subarray_corners.""" instrum...
24.931034
85
0.709544
c6a60725b02d0b878a5be3af785d5399a2bff48f
91
py
Python
DQMOffline/Muon/python/muonPFAnalyzer_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQMOffline/Muon/python/muonPFAnalyzer_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQMOffline/Muon/python/muonPFAnalyzer_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMOffline.Muon.muonPFAnalyzer_cfi import *
22.75
48
0.846154
84ff5e3e995caff4edbbd811e9cfeaa2824e732a
4,809
py
Python
venv/lib/python3.6/site-packages/nlp/datasets/xquad/d77ebc147170f49904a4c13b55ba63a39324810caad218d09a857227b8956df5/xquad.py
MachineLearningBCAM/minimax-risk-classifier
82586c632268c103de269bcbffa5f7849b174a29
[ "MIT" ]
2
2021-09-28T01:36:21.000Z
2021-12-22T08:24:17.000Z
venv/lib/python3.6/site-packages/nlp/datasets/xquad/d77ebc147170f49904a4c13b55ba63a39324810caad218d09a857227b8956df5/xquad.py
MachineLearningBCAM/minimax-risk-classifier
82586c632268c103de269bcbffa5f7849b174a29
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/nlp/datasets/xquad/d77ebc147170f49904a4c13b55ba63a39324810caad218d09a857227b8956df5/xquad.py
MachineLearningBCAM/minimax-risk-classifier
82586c632268c103de269bcbffa5f7849b174a29
[ "MIT" ]
1
2020-12-08T10:36:30.000Z
2020-12-08T10:36:30.000Z
"""TODO(xquad): Add a description here.""" from __future__ import absolute_import, division, print_function import json import nlp _CITATION = """\ @article{Artetxe:etal:2019, author = {Mikel Artetxe and Sebastian Ruder and Dani Yogatama}, title = {On the cross-lingual transferability of monolin...
33.165517
121
0.587024
0a433b922ebb456f6df50b8b0ef0fc2c879c9c70
2,708
py
Python
Cogs/Game.py
chaejm55/discord_velog_bot
38574e2564f5eda2114c5a257e7ed8e1c5b3d29a
[ "MIT" ]
1
2021-11-26T00:21:21.000Z
2021-11-26T00:21:21.000Z
Cogs/Game.py
chaejm55/discord_velog_bot
38574e2564f5eda2114c5a257e7ed8e1c5b3d29a
[ "MIT" ]
null
null
null
Cogs/Game.py
chaejm55/discord_velog_bot
38574e2564f5eda2114c5a257e7ed8e1c5b3d29a
[ "MIT" ]
1
2021-11-26T00:21:21.000Z
2021-11-26T00:21:21.000Z
import random import os from discord.ext import commands from discord.ext.commands import MissingRequiredArgument async def make_dir(directory_name): try: if not os.path.exists(directory_name): os.makedirs(directory_name) except OSError: print('Error: makedirs()') async def add_r...
33.85
104
0.580871
9d623e84c4d9d1f6d0468a3bd49b37220365a694
3,150
py
Python
calm/dsl/cli/project_commands.py
LevyForchh/calm-dsl
ff6e021628c0ef8c04aaa5e37c80fe1fbff729e6
[ "Apache-2.0" ]
null
null
null
calm/dsl/cli/project_commands.py
LevyForchh/calm-dsl
ff6e021628c0ef8c04aaa5e37c80fe1fbff729e6
[ "Apache-2.0" ]
20
2020-06-30T01:00:36.000Z
2021-03-23T01:03:39.000Z
calm/dsl/cli/project_commands.py
LevyForchh/calm-dsl
ff6e021628c0ef8c04aaa5e37c80fe1fbff729e6
[ "Apache-2.0" ]
null
null
null
import click from .projects import ( get_projects, delete_project, create_project, describe_project, update_project, ) from .main import create, get, update, delete, describe from calm.dsl.tools import get_logging_handle from calm.dsl.builtins import read_spec LOG = get_logging_handle(__name__) ...
27.391304
87
0.677143
28f1c46d8de7e0612b8de14e4ddd32023aa14fa6
2,587
py
Python
orgjunk.py
genlikan/lazy-junk-organizer
5f833b3343c885c680a93463c90c6d5c18d7bbf7
[ "MIT" ]
null
null
null
orgjunk.py
genlikan/lazy-junk-organizer
5f833b3343c885c680a93463c90c6d5c18d7bbf7
[ "MIT" ]
null
null
null
orgjunk.py
genlikan/lazy-junk-organizer
5f833b3343c885c680a93463c90c6d5c18d7bbf7
[ "MIT" ]
null
null
null
""" -*- coding: utf-8 -*- ======================== Python Lazy Junk Files Organizer ======================== ======================== """ import os from pathlib import Path DIRECTORIES = { "HTML": [".html5", ".html", ".htm", ".xhtml"], "IMAGES": [".jpeg", ".jpg", ".tiff", ".gif", ".bmp", ".png", ".bpg", ".sv...
30.797619
109
0.424043
473a9d8511b59239abbcdf62d14c36b1ce35f3e4
38
py
Python
helper/__init__.py
jyotint/aws-python
6f9eec2c259a0298eba769e510b9b294c8b69815
[ "Apache-2.0" ]
null
null
null
helper/__init__.py
jyotint/aws-python
6f9eec2c259a0298eba769e510b9b294c8b69815
[ "Apache-2.0" ]
null
null
null
helper/__init__.py
jyotint/aws-python
6f9eec2c259a0298eba769e510b9b294c8b69815
[ "Apache-2.0" ]
null
null
null
# import constants # import timeHelper
19
19
0.815789
650d7209e43b92463d32f1db8cc7e3565b9885c0
917
py
Python
meraki_sdk/models/mode_2_enum.py
meraki/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki_sdk/models/mode_2_enum.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki_sdk/models/mode_2_enum.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
17
2019-04-30T23:53:21.000Z
2022-02-07T22:57:44.000Z
# -*- coding: utf-8 -*- """ meraki_sdk This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class Mode2Enum(object): """Implementation of the 'Mode2' enum. Either 'renew' or 'addDevices'. 'addDevices' will increase the license limit, while ...
29.580645
95
0.684842
a7e70ad48aa58c241515eec6acf8db52bfc1f641
2,980
py
Python
pipeline.py
maciekszul/freesurfer_proc
37ca127cbf04766e07548448729da56888697d55
[ "BSD-3-Clause" ]
null
null
null
pipeline.py
maciekszul/freesurfer_proc
37ca127cbf04766e07548448729da56888697d55
[ "BSD-3-Clause" ]
null
null
null
pipeline.py
maciekszul/freesurfer_proc
37ca127cbf04766e07548448729da56888697d55
[ "BSD-3-Clause" ]
null
null
null
from tools import files import os.path as op import json import argparse import subprocess as sp json_file = "pipeline_params.json" # argparse input des = "pipeline script" parser = argparse.ArgumentParser(description=des) parser.add_argument( "-f", type=str, nargs=1, default=json_file, help="JS...
20.985915
68
0.57047
3358e0363acb1277a40adecca74fd2b21f5061d7
4,500
py
Python
python/ee/tests/featurecollection_test.py
gninglaity586/gningGIS
f0424abe81f1495797d9c45b924e8ea04f24efd5
[ "Apache-2.0" ]
1
2021-01-28T01:45:40.000Z
2021-01-28T01:45:40.000Z
python/ee/tests/featurecollection_test.py
liangliang12/earthengine-api
f0424abe81f1495797d9c45b924e8ea04f24efd5
[ "Apache-2.0" ]
null
null
null
python/ee/tests/featurecollection_test.py
liangliang12/earthengine-api
f0424abe81f1495797d9c45b924e8ea04f24efd5
[ "Apache-2.0" ]
3
2017-08-25T05:12:46.000Z
2019-06-28T07:17:03.000Z
#!/usr/bin/env python """Test for the ee.featurecollection module.""" import mock import unittest import ee from ee import apitestcase class FeatureCollectionTestCase(apitestcase.ApiTestCase): def testConstructors(self): """Verifies that constructors understand valid parameters.""" from_id = ee.Featur...
38.461538
80
0.676667
f3159321d7b74ed2ee361bdf753593813ae10c35
3,631
py
Python
REST_Countries/unit_tests.py
Jay4C/Cloud_Computing
74d77acd77eae7123948441a85e7e6b570d21bc2
[ "MIT" ]
null
null
null
REST_Countries/unit_tests.py
Jay4C/Cloud_Computing
74d77acd77eae7123948441a85e7e6b570d21bc2
[ "MIT" ]
null
null
null
REST_Countries/unit_tests.py
Jay4C/Cloud_Computing
74d77acd77eae7123948441a85e7e6b570d21bc2
[ "MIT" ]
null
null
null
import unittest import requests class UnitTestsRestCountriesAPI(unittest.TestCase): def test_all(self): url = "https://restcountries.eu/rest/v2/all" payload = {} headers = {} response = requests.request("GET", url, headers=headers, data=payload) print(response.text.encode('...
34.913462
85
0.599835
0941c4a1e2cdc1cbaf15f8a870e228b60430fd75
671
py
Python
Algorithms/Implementation/DesignerPDFViewer.py
gelaim/HackerRank
8b0e51d064a390f6112d54166942db440c88b579
[ "MIT" ]
null
null
null
Algorithms/Implementation/DesignerPDFViewer.py
gelaim/HackerRank
8b0e51d064a390f6112d54166942db440c88b579
[ "MIT" ]
null
null
null
Algorithms/Implementation/DesignerPDFViewer.py
gelaim/HackerRank
8b0e51d064a390f6112d54166942db440c88b579
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'designerPdfViewer' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER_ARRAY h # 2. STRING word # def designerPdfViewer(h, word): # Write your code ...
18.135135
50
0.652757
4617eebdfaa536d847ace94707c6c33e45489645
6,164
py
Python
topintersections/intersection_ui.py
uberparagon/mgn
87eacb93177c9d41edb525bb71ae03ae45f18d14
[ "MIT" ]
null
null
null
topintersections/intersection_ui.py
uberparagon/mgn
87eacb93177c9d41edb525bb71ae03ae45f18d14
[ "MIT" ]
7
2020-03-17T18:07:48.000Z
2021-03-19T12:54:49.000Z
topintersections/intersection_ui.py
uberparagon/mgn
87eacb93177c9d41edb525bb71ae03ae45f18d14
[ "MIT" ]
1
2020-02-20T09:28:51.000Z
2020-02-20T09:28:51.000Z
""" This file implements the user interface. This is the file that should be loaded by the user. It will import everything you need. """ from __future__ import absolute_import #from six.moves.cPickle import dump, load, UnpicklingError import pickle try: from .intersection7 import * from .TautRing3 import Mg...
37.357576
372
0.609507
083aeb2563bc391f69079e59851bb405b0b8a926
4,264
py
Python
server/tracking.py
MrRedbloX/SmartphoneToVirtuality
287e0677a12cf1f13ae18a9d5f7354ec20681060
[ "MIT" ]
null
null
null
server/tracking.py
MrRedbloX/SmartphoneToVirtuality
287e0677a12cf1f13ae18a9d5f7354ec20681060
[ "MIT" ]
null
null
null
server/tracking.py
MrRedbloX/SmartphoneToVirtuality
287e0677a12cf1f13ae18a9d5f7354ec20681060
[ "MIT" ]
null
null
null
import cv2 from VideoCaptureAsync import VideoCaptureAsync import numpy as np from math import * from operator import and_,truth,add from functools import reduce from itertools import * from more_itertools import * import argparse from client import ODUdp from time import time from reconstruction import Reconstruct...
31.820896
104
0.665338
1b8fdc440f69c2eeab595e914ac2c8e98a97b725
20,052
py
Python
vispy/app/canvas.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
vispy/app/canvas.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
vispy/app/canvas.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. from __future__ import division, print_function import numpy as np from ._default_app import default_app from ..util.event import EmitterGroup, Event, WarningEmitter from .....
33.198675
79
0.592509
a12a4c4a5e8878baa8e02622ebde5d5722f131db
1,134
py
Python
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/tests/storage/test_impl_log.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
2
2018-11-07T20:52:53.000Z
2019-10-20T15:57:01.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/tests/storage/test_impl_log.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
3
2021-12-14T20:57:54.000Z
2022-01-21T23:50:36.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/tests/storage/test_impl_log.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
2
2018-11-16T04:20:06.000Z
2019-03-28T23:49:13.000Z
# # Copyright 2012 New Dream Network, LLC (DreamHost) # # Author: Doug Hellmann <doug.hellmann@dreamhost.com> # # 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.apac...
36.580645
76
0.662257
386381eebbd8b236919f3d51ecbc5193c0ebc65e
572
py
Python
terrascript/provider/invidian/stdlib.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/invidian/stdlib.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/invidian/stdlib.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/invidian/stdlib.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:27:59 UTC) import terrascript class stdlib(terrascript.Provider): """Terraform provider with collection of useful data sources""" __description__ = "Terraform provider with collection of useful data sour...
28.6
81
0.729021
3b546852b0c60a8f241edbab80c55123aa487877
10,597
py
Python
airbyte-integrations/connectors/source-google-sheets/unit_tests/test_helpers.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-google-sheets/unit_tests/test_helpers.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-google-sheets/unit_tests/test_helpers.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 Airbyte Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
43.430328
134
0.66868
d1de6a08c19e8651d45bf0dd7c7ba9d604a53b84
3,165
py
Python
scripts/evaluate_on_all.py
ikergarcia1996/word-embeddings-benchmarks
da035aacf799d268a707f8e8f98a69f1f4618d73
[ "MIT" ]
null
null
null
scripts/evaluate_on_all.py
ikergarcia1996/word-embeddings-benchmarks
da035aacf799d268a707f8e8f98a69f1f4618d73
[ "MIT" ]
null
null
null
scripts/evaluate_on_all.py
ikergarcia1996/word-embeddings-benchmarks
da035aacf799d268a707f8e8f98a69f1f4618d73
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script calculates embedding results against all available fast running benchmarks in the repository and saves results as single row csv table. Usage: ./evaluate_on_all -f <path to file> -o <path to output file> NOTE: * script doesn't evaluate on WordRep (nor...
35.965909
111
0.64455
2067bc826451757bd1a58930dce910f188db5412
671
py
Python
textkit/tokenize/words.py
learntextvis/textkit
6c482ea7d378022e10ee1002f9d9db7925856294
[ "MIT" ]
29
2016-01-13T00:55:53.000Z
2022-02-03T06:38:10.000Z
textkit/tokenize/words.py
irealva/textkit
858053a0e4c1f2cc4160873a4eb429c518f48ca2
[ "MIT" ]
46
2016-01-18T19:17:50.000Z
2019-12-20T04:55:04.000Z
textkit/tokenize/words.py
irealva/textkit
858053a0e4c1f2cc4160873a4eb429c518f48ca2
[ "MIT" ]
9
2016-04-24T20:01:37.000Z
2019-01-15T08:54:11.000Z
import click import nltk from textkit.utils import output @click.command() @click.argument('text', type=click.Path(exists=True), nargs=-1) def text2words(text): '''Tokenize text into word tokens. Punctuation is considered as a separate token.''' content = '\n'.join([open(f).read() for f in text]) toke...
31.952381
73
0.66468
30a27d90c416beedfdef7467bbbe5ecc57082231
684
py
Python
blocks/metrics.py
Aaron-Jin-Xu/probabilistic-semantic-image-inpainting
8ce630eaf7e8f9ef5fc5ad19d5474d050d71807d
[ "MIT" ]
1
2020-04-19T22:48:25.000Z
2020-04-19T22:48:25.000Z
blocks/metrics.py
Aaron-Jin-Xu/probabilistic-semantic-image-inpainting
8ce630eaf7e8f9ef5fc5ad19d5474d050d71807d
[ "MIT" ]
null
null
null
blocks/metrics.py
Aaron-Jin-Xu/probabilistic-semantic-image-inpainting
8ce630eaf7e8f9ef5fc5ad19d5474d050d71807d
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np # def nats_per_dim(nll, dim): # -nll / dim + np.log(128) # # def nats_to_bits(nats): # return nats / np.log(2) # # def bits_per_dim(nll, dim): # return nats_to_bits(nats_per_dim(nll, dim)) # # def nats_per_dim_tf(nll, dim): # return -nll / dim + tf.math.log(12...
27.36
98
0.678363
ee7044dbb8c3a91a8de2801ac338b16e46b90274
193
py
Python
source_code/pypeflow/core/__init__.py
TomLXXVI/pypeflow
49e42621180ec3125afa238d3ca56ae9f3a7662a
[ "MIT" ]
4
2020-05-26T01:11:08.000Z
2021-09-15T20:24:31.000Z
source_code/pypeflow/core/__init__.py
robertspark/pypeflow
49e42621180ec3125afa238d3ca56ae9f3a7662a
[ "MIT" ]
null
null
null
source_code/pypeflow/core/__init__.py
robertspark/pypeflow
49e42621180ec3125afa238d3ca56ae9f3a7662a
[ "MIT" ]
1
2022-01-19T20:26:11.000Z
2022-01-19T20:26:11.000Z
""" # Core modules around which PyFlow is built """ from pypeflow.core.pipe import Pipe from pypeflow.core.fitting import Fitting from pypeflow.core.valves import BalancingValve, ControlValve
24.125
61
0.803109
8d828599024b8a15235d4225ef224e9f9144a56e
2,473
py
Python
scripts/pineapple/pydwarf.useablemats.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
49
2015-05-21T19:40:41.000Z
2021-09-30T03:04:32.000Z
scripts/pineapple/pydwarf.useablemats.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
6
2015-05-30T01:50:01.000Z
2021-09-22T14:22:41.000Z
scripts/pineapple/pydwarf.useablemats.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
13
2015-05-23T16:26:31.000Z
2021-09-05T18:46:36.000Z
import pydwarf default_options = { 'scales': ('SCALE_TEMPLATE', '[LEATHER][ITEMS_LEATHER][MATERIAL_REACTION_PRODUCT:TAN_MAT:LOCAL_CREATURE_MAT:SCALE]'), 'feathers': ('FEATHER_TEMPLATE', '[PEARL][ITEMS_SOFT]'), 'chitin': ('CHITIN_TEMPLATE', '[SHELL][ITEMS_HARD][ITEMS_SCALED]') } @pydwarf.urist( nam...
44.963636
121
0.656692
6ae928358b8beef0b0312cdcce2f1a11d78075b5
171
py
Python
yatube_api/yatube_api/wsgi.py
ilyarogozin/api_final_yatube
bb5e15eb66ab109b2fb529c4b47648d7a51f29ee
[ "MIT" ]
null
null
null
yatube_api/yatube_api/wsgi.py
ilyarogozin/api_final_yatube
bb5e15eb66ab109b2fb529c4b47648d7a51f29ee
[ "MIT" ]
null
null
null
yatube_api/yatube_api/wsgi.py
ilyarogozin/api_final_yatube
bb5e15eb66ab109b2fb529c4b47648d7a51f29ee
[ "MIT" ]
null
null
null
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'yatube_api.settings') application = get_wsgi_application()
21.375
70
0.830409
4e58476d0e7ccbb9157fb627d38f8541ffd2a549
2,159
py
Python
neo4j_api/test_model_interface.py
jasonjimnz/ORT
2006e5cdb11850bbe2e5b955cfaaeb08b8ef864d
[ "MIT" ]
null
null
null
neo4j_api/test_model_interface.py
jasonjimnz/ORT
2006e5cdb11850bbe2e5b955cfaaeb08b8ef864d
[ "MIT" ]
null
null
null
neo4j_api/test_model_interface.py
jasonjimnz/ORT
2006e5cdb11850bbe2e5b955cfaaeb08b8ef864d
[ "MIT" ]
null
null
null
import random import requests from faker import Faker fake = Faker('es_ES') class PersonGenerator: faker_instance = fake minube_api_key = None cities_list = [] def __init__(self, minube_api_key, cities=None): self.minube_api_key = minube_api_key if cities: self.cities_list...
23.725275
84
0.509032
7617fe67eaa90a5537d5abbd75f936a46f4d72bf
1,908
py
Python
infomemes/to_from_file.py
luiztauffer/infomemes
7a54546aa688b703e6e020e53eeabae9dc922619
[ "MIT" ]
null
null
null
infomemes/to_from_file.py
luiztauffer/infomemes
7a54546aa688b703e6e020e53eeabae9dc922619
[ "MIT" ]
null
null
null
infomemes/to_from_file.py
luiztauffer/infomemes
7a54546aa688b703e6e020e53eeabae9dc922619
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import json def save_stepwise_data(sim, fname): # Simulation metadata metadata = { 'duration': sim.current_step, } metadata.update(sim.config) file_dict = {} file_dict['metadata'] = metadata file_dict['data'] = sim.stepwise_values with o...
26.136986
123
0.623166
36fc6e8ad2ae01f31c61a039701e70915a3df20e
673
py
Python
mercury_ml/tensorflow/model_loading.py
mercury-ml-team/mercury-ml
8d27816490f0be46f871e889e4635e9223b7044c
[ "MIT" ]
43
2019-02-01T15:22:09.000Z
2020-02-21T12:51:42.000Z
mercury_ml/tensorflow/model_loading.py
mercury-ml-team/mercury-ml
8d27816490f0be46f871e889e4635e9223b7044c
[ "MIT" ]
17
2019-02-15T12:52:18.000Z
2019-05-09T15:42:51.000Z
mercury_ml/tensorflow/model_loading.py
mercury-ml-team/mercury-ml
8d27816490f0be46f871e889e4635e9223b7044c
[ "MIT" ]
12
2019-02-02T16:48:10.000Z
2019-12-16T15:40:15.000Z
def load_hdf5_model(local_dir, filename, extension=".h5", custom_objects=None): """ Loads a Keras model that was saved in ".h5" format :param string local_dir: Local directory where the model is saved :param string filename: Filename with which the model is saved :param string extension: Extension ...
51.769231
127
0.744428
fd9b66d8186461a6e4cbe8f09a7935d19155cf82
462
py
Python
OpenEyetap_Applications/Nanoleaf/nanotest.py
JustinLokHinWu/OpenEyeTap
cb0b23917663668fb8a95b01417c900d7001f594
[ "MIT" ]
null
null
null
OpenEyetap_Applications/Nanoleaf/nanotest.py
JustinLokHinWu/OpenEyeTap
cb0b23917663668fb8a95b01417c900d7001f594
[ "MIT" ]
null
null
null
OpenEyetap_Applications/Nanoleaf/nanotest.py
JustinLokHinWu/OpenEyeTap
cb0b23917663668fb8a95b01417c900d7001f594
[ "MIT" ]
null
null
null
import requests import json auth = "akYZIxhpNARKoOr18kDAOy3ihz3JhS8F" path = "10.0.0.204:16021" def get_path(): return "http://" + path + "/api/v1/" + auth + "/" # r = requests.get(get_path()) while(True): command = input().split(' ') if(command[0] == "get"): r = requests.get(get_path() + comma...
20.086957
78
0.58658
bd0c6ed5b615bda8f08b8258f4fe2e177e6e8d48
430
py
Python
packages/python/plotly/plotly/validators/icicle/domain/_row.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/icicle/domain/_row.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/icicle/domain/_row.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class RowValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__(self, plotly_name="row", parent_name="icicle.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edi...
33.076923
81
0.644186
361ac8d0a619d0ebec5c64949885e9228a71353a
251
py
Python
基础教程/A1-Python与基础知识/算法第一步/ExampleCodes/chapter06/6-6.py
microsoft/ai-edu
2f59fa4d3cf19f14e0b291e907d89664bcdc8df3
[ "Apache-2.0" ]
11,094
2019-05-07T02:48:50.000Z
2022-03-31T08:49:42.000Z
基础教程/A1-Python与基础知识/算法第一步/ExampleCodes/chapter06/6-6.py
microsoft/ai-edu
2f59fa4d3cf19f14e0b291e907d89664bcdc8df3
[ "Apache-2.0" ]
157
2019-05-13T15:07:19.000Z
2022-03-23T08:52:32.000Z
基础教程/A1-Python与基础知识/算法第一步/ExampleCodes/chapter06/6-6.py
microsoft/ai-edu
2f59fa4d3cf19f14e0b291e907d89664bcdc8df3
[ "Apache-2.0" ]
2,412
2019-05-07T02:55:15.000Z
2022-03-30T06:56:52.000Z
print("The price of this %s is %d dollars." % ("hotdog", 4.0)) print("The price of this %s is %s dollars." % ("hotdog", 4.0)) print("The price of this %s is %d dollars." % ("meal", 12.25)) print("The price of this %s is %s dollars." % ("meal", 12.25))
62.75
62
0.605578