hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
93ef50dc82c1a8fc0034e94f208e2c997a490725
3,194
py
Python
data_loader.py
1048727525/fnm_pytorch
21511f3272b4a49fa5ca5bce126dd03fd559bb50
[ "MIT" ]
2
2020-11-09T02:26:35.000Z
2021-04-27T17:39:34.000Z
data_loader.py
1048727525/fnm_pytorch
21511f3272b4a49fa5ca5bce126dd03fd559bb50
[ "MIT" ]
null
null
null
data_loader.py
1048727525/fnm_pytorch
21511f3272b4a49fa5ca5bce126dd03fd559bb50
[ "MIT" ]
null
null
null
import os import scipy import numpy as np from util import * from PIL import Image from torchvision import transforms from torch.utils.data import Dataset, DataLoader class sample_dataset(Dataset): def __init__(self, list_path, img_root_path, crop_size, image_size, mode="train"): self.img_name_list = read_...
42.586667
132
0.685034
93ef8012dea8d5a3dff60ad580297deff45be19d
217
py
Python
utils/tests/browser/test_safari.py
letam/web-test-template
79b3b45925bbb4fe243f02085c0f92fa805ef03c
[ "MIT" ]
null
null
null
utils/tests/browser/test_safari.py
letam/web-test-template
79b3b45925bbb4fe243f02085c0f92fa805ef03c
[ "MIT" ]
null
null
null
utils/tests/browser/test_safari.py
letam/web-test-template
79b3b45925bbb4fe243f02085c0f92fa805ef03c
[ "MIT" ]
null
null
null
from pytest import fixture from utils.browser import Browser driver_name = "safari" @fixture(scope="module") def browser(): with Browser(driver_name) as browser: yield browser from ._tests import *
13.5625
41
0.718894
93efaec5a1c71de95300a25845bc3f5a9ad326d7
2,743
py
Python
src/tools/data/DataManualExamples/Simulations/writeback.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/data/DataManualExamples/Simulations/writeback.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/data/DataManualExamples/Simulations/writeback.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
############################################################################### # # Program: writeback.py # # Purpose: Connects to a running "writeback" simulation program and uses its # data to create a plot, modify the plot, save the modified data # back to the simulation, and plot that modified dat...
31.528736
79
0.66132
93efcdc6a71ee8eb1db907aa116dfd1c7b70c424
4,994
py
Python
examples/registry-read.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/registry-read.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/registry-read.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/python # Copyright (c) 2003-2015 CORE Security Technologies) # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: Alberto Solino (@agsolino) # # Description: A Windows Registry Reader Exam...
29.72619
141
0.651982
93efdc7d04b42128af7ce4b7ef12f81620f8dfd1
13,396
py
Python
haproxy/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
haproxy/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
haproxy/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
import os import copy import common from datadog_checks.haproxy import HAProxy from collections import defaultdict BASE_CONFIG = { 'url': 'http://localhost/admin?stats', 'collect_status_metrics': True, } def _assert_agg_statuses(aggregator, count_status_by_service=True, collate_status_tags_per_host=False):...
51.32567
112
0.710212
93efeb28c3ae351833e438427a750fe2f8bfddcb
4,150
py
Python
forager_backend/forager_backend_api/models.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
4
2021-09-21T01:58:21.000Z
2022-03-02T21:28:32.000Z
forager_backend/forager_backend_api/models.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
2
2021-10-19T19:39:52.000Z
2021-11-18T23:53:26.000Z
forager_backend/forager_backend_api/models.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import Q MEDIUM_STRING_LENGTH = 300 LONG_STRING_LENGTH = 600 class Dataset(models.Model): name = models.SlugField(unique=True) train_directory = models.CharField(max_length=LONG_STRING_LENGTH) val_directory = models.CharField(max_length=LONG_STRING_LENGT...
32.677165
86
0.68988
93eff39e7a1f5a2f5ecdc9162e6e5421359917a1
2,349
py
Python
sdk/search/azure-search-documents/samples/sample_semantic_search.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/search/azure-search-documents/samples/sample_semantic_search.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/search/azure-search-documents/samples/sample_semantic_search.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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. # --------------------------------------------------------------------...
36.138462
104
0.658152
93f0497365943dd9a295b95669c21b257b9253b4
6,769
py
Python
tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py
sarah-iot/openthread
8210a02400c145eb862b65e32040ed0415ba36c2
[ "BSD-3-Clause" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
tests/scripts/thread-cert/border_router/test_publish_meshcop_service.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
#!/usr/bin/env python3 # # Copyright (c) 2021, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
38.460227
119
0.641749
93f0546b5f830b6ddd3b4e2b82318f2da2f74b2a
30,872
py
Python
dags/itp_audit_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
null
null
null
dags/itp_audit_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
null
null
null
dags/itp_audit_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2020 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/l...
30.385827
173
0.394046
93f062655d9a4a854b55c3a9813620d1ec63b5db
2,110
py
Python
mco2/level_1/agents.py
AFAgarap/csc613m-dlsu
d05c23c5af705a6bd8da82b96290fa053386b3c1
[ "Apache-2.0" ]
null
null
null
mco2/level_1/agents.py
AFAgarap/csc613m-dlsu
d05c23c5af705a6bd8da82b96290fa053386b3c1
[ "Apache-2.0" ]
null
null
null
mco2/level_1/agents.py
AFAgarap/csc613m-dlsu
d05c23c5af705a6bd8da82b96290fa053386b3c1
[ "Apache-2.0" ]
null
null
null
from environment import after_action_state from environment import check_game_status from environment import tomark import random class BaseAgent(object): def __init__(self, mark): self.mark = mark def act(self, board, state, available_actions): for action in available_actions: ne...
33.492063
63
0.515166
93f075ffa6462e724d0fc123f08e2d725235124a
11,942
py
Python
tests/test_abstract.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
222
2019-02-13T07:56:28.000Z
2022-03-28T07:07:54.000Z
tests/test_abstract.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
107
2019-02-12T21:56:39.000Z
2022-03-12T01:08:03.000Z
tests/test_abstract.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
27
2017-11-14T17:58:15.000Z
2019-01-14T01:36:09.000Z
import asyncio import typing import numpy as np import pytest from myia import xtype as ty from myia.abstract import ( ALIASID, ANYTHING, DEAD, TYPE, VALUE, AbstractADT, AbstractBottom, AbstractClass, AbstractError, AbstractFunction, AbstractFunctionUnique, AbstractHand...
27.901869
80
0.647044
93f085e62a96f03c99c51e7e21d59b798d1f98b1
15,615
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 may ...
61.476378
172
0.884534
93f0a5f958369eb4430a00c36a168b1783fda002
735
py
Python
portal/middleware.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
43
2020-07-31T14:38:06.000Z
2022-03-07T11:28:28.000Z
portal/middleware.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
322
2020-07-23T19:38:26.000Z
2022-03-31T19:15:45.000Z
portal/middleware.py
cds-snc/covid-alert-portal
e7d56fa9fa4a2ad2d60f056eae063713661bd260
[ "MIT" ]
6
2020-11-28T19:30:20.000Z
2021-07-29T18:06:55.000Z
import pytz from django.conf import settings class TZMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): browser_tz = request.COOKIES.get("browserTimezone") tz = None if browser_tz: try: tz = p...
27.222222
75
0.642177
93f0ad82672ba9c53f249ddf737dd6dc1f7c94e3
1,719
py
Python
python/l0040.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0040.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0040.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
""" Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target. Each number in candidates may only be used once in the combination. Note: All numbers (including target) will be positive integers. The solutio...
26.045455
169
0.593368
93f0b5bd522f3b5a76dcfea3bf36454df2d8fec9
10,217
py
Python
test/test_MelfaRobot.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
null
null
null
test/test_MelfaRobot.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
314
2020-02-26T12:37:17.000Z
2021-08-02T00:32:32.000Z
test/test_MelfaRobot.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
2
2020-11-12T16:07:48.000Z
2020-11-16T09:14:48.000Z
import unittest.mock as mock from time import sleep from unittest.mock import MagicMock import pytest from src.Coordinate import Coordinate from src.clients.TcpClientR3 import TcpClientR3 from src.GCmd import GCmd from src.printer_components.MelfaRobot import MelfaRobot @pytest.fixture def tcp(): a = MagicMock(...
37.288321
118
0.633063
93f0bdb4dcefd0df72718515b9daa355af756e66
10,445
py
Python
doc/source/conf.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
pbuslaev/freud
ed83bdc63ee8fddba78f070ce9ddf2a0021d67b8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # freud documentation build configuration file, created by # sphinx-quickstart on Fri Aug 28 11:39:18 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
32.538941
79
0.70359
93f0ca6444b5732d6294f2887bdbd72a4f004f0d
2,570
py
Python
program_synthesis/naps/examples/seq2seq/test_pointer_seq2seq.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/naps/examples/seq2seq/test_pointer_seq2seq.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/naps/examples/seq2seq/test_pointer_seq2seq.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
import unittest import torch import numpy as np from program_synthesis.naps.examples.seq2seq import pointer_seq2seq from torch.autograd import Variable class TestPointerSeq2Seq(unittest.TestCase): def test_pointer_seq2seq(self): padded_texts = Variable(torch.LongTensor( [[0, 4, 5, 4, 1, -1],...
40.15625
98
0.372374
93f0de0948d018e50b1e0f98a702cea6ec20aca8
3,830
py
Python
train.py
fareesa1/person_reid
8e3a585373f001ad9e6e9b27a0fee517d7293a05
[ "MIT" ]
19
2018-06-27T17:28:22.000Z
2022-01-11T06:10:53.000Z
train.py
fareesa1/person_reid
8e3a585373f001ad9e6e9b27a0fee517d7293a05
[ "MIT" ]
12
2018-10-09T13:36:11.000Z
2021-06-28T08:26:15.000Z
train.py
fareesa1/person_reid
8e3a585373f001ad9e6e9b27a0fee517d7293a05
[ "MIT" ]
7
2018-10-09T08:20:05.000Z
2021-06-28T01:37:47.000Z
import keras import tensorflow as tf print('keras:\t', keras.__version__) print('tf:\t', tf.__version__) import json from pprint import pprint Settings = json.load(open('settings.txt')) pprint(Settings) print('') import matplotlib.pyplot as plt import sys sys.path.insert(0, '../') from reid.data import DataSampler fr...
26.783217
76
0.649869
93f0f7e4890c50bc8bb3b3332b76415812a31dcb
25,922
py
Python
speech_dia_@/src/pyannote_xxx/core/segment.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
1
2022-02-23T08:46:10.000Z
2022-02-23T08:46:10.000Z
speech_dia_@/src/pyannote_xxx/core/segment.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
null
null
null
speech_dia_@/src/pyannote_xxx/core/segment.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2014-2019 CNRS # 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 limita...
29.625143
148
0.543554
93f11e3f19efb93845fd28506d43d7618293223b
1,304
py
Python
bridgekeeper/rule_attribute_tests.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
null
null
null
bridgekeeper/rule_attribute_tests.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
null
null
null
bridgekeeper/rule_attribute_tests.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
3
2021-03-19T10:01:06.000Z
2021-04-08T08:08:48.000Z
import pytest from shrubberies.factories import StoreFactory, UserFactory from shrubberies.models import Store from .rules import Attribute @pytest.mark.django_db def test_constant_attribute(): user = UserFactory() s1 = StoreFactory(name='a') s2 = StoreFactory(name='b') p = Attribute('name', 'a') ...
25.076923
59
0.670245
93f147f17708fd3254201d1e9b8810989728415a
2,728
py
Python
powerline/lib/monotonic.py
zhaocai/powerline
8aae1145835b4b2a71f1ed71b81d490e2907bd39
[ "MIT" ]
19
2015-09-01T20:49:16.000Z
2022-01-08T22:13:23.000Z
powerline/lib/monotonic.py
zhaocai/powerline
8aae1145835b4b2a71f1ed71b81d490e2907bd39
[ "MIT" ]
null
null
null
powerline/lib/monotonic.py
zhaocai/powerline
8aae1145835b4b2a71f1ed71b81d490e2907bd39
[ "MIT" ]
6
2019-04-25T03:42:35.000Z
2020-06-05T15:25:23.000Z
# vim:fileencoding=utf-8:noet from __future__ import division, absolute_import try: try: # >=python-3.3, Unix from time import clock_gettime try: # >={kernel}-sources-2.6.28 from time import CLOCK_MONOTONIC_RAW as CLOCK_ID except ImportError: from time import CLOCK_MONOTONIC as CLOCK_ID # NOQA m...
26.230769
72
0.710411
93f17f1e37cb5a25854505028df6506ae03403f0
1,191
py
Python
Chapter12/01-chapter-content/tensorflow/introduction_tensorflow/tensorflow_basic_ops_scope.py
ProgrammerWaterworth/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
2
2021-06-29T22:00:47.000Z
2021-06-30T02:46:19.000Z
Chapter12/01-chapter-content/tensorflow/introduction_tensorflow/tensorflow_basic_ops_scope.py
araneto/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
null
null
null
Chapter12/01-chapter-content/tensorflow/introduction_tensorflow/tensorflow_basic_ops_scope.py
araneto/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
1
2019-10-03T20:34:43.000Z
2019-10-03T20:34:43.000Z
""" Basic Operations example using TensorFlow library creating scopes """ # Import required packages: import tensorflow as tf # Path to the folder that we want to save the logs for Tensorboard: logs_path = "./logs" # Define placeholders: X_1 = tf.placeholder(tf.int16, name="X_1") X_2 = tf.placeholder(tf.int16, name=...
37.21875
98
0.684299
93f18fd34deaa17f8317de37a20d274fca165a02
27,888
py
Python
impacket/dcerpc/v5/enum.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/dcerpc/v5/enum.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/dcerpc/v5/enum.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
"""Python Enumerations""" import sys as _sys __all__ = ['Enum', 'IntEnum', 'unique'] pyver = float('%s.%s' % _sys.version_info[:2]) try: any except NameError: def any(iterable): for element in iterable: if element: return True return False class _RouteClassAttri...
36.3125
113
0.587493
93f19a9cd5cf6c8812083f82d7ec44c792960409
18,227
py
Python
plugins/stickers+.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
1
2020-10-29T15:44:57.000Z
2020-10-29T15:44:57.000Z
plugins/stickers+.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
null
null
null
plugins/stickers+.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
4
2020-10-28T09:02:35.000Z
2020-12-27T22:45:57.000Z
"""Make / Download Telegram Sticker Packs without installing Third Party applications Available Commands: .kangsticker [Optional Emoji] .packinfo .getsticker""" import asyncio import datetime import math import os import zipfile from collections import defaultdict from io import BytesIO from pikabot.utils import admin...
40.147577
129
0.563011
93f1b1c388737390784832e7bab56b8f12644a0a
45,565
py
Python
napari/layers/labels/labels.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/layers/labels/labels.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/layers/labels/labels.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
import warnings from collections import deque from typing import Dict, Tuple, Union import numpy as np from scipy import ndimage as ndi from ...utils import config from ...utils._dtype import normalize_dtype from ...utils.colormaps import ( color_dict_to_colormap, label_colormap, low_discrepancy_image, ) ...
35.625489
208
0.59436
93f1ca58b97bf6b9f8cbbe375dc7cd874fac8ed7
337
py
Python
mhw_analysis/db/build_climate.py
profxj/mwh_analysis
bb3854ee9e6deee7be270967fe5a7e15a7636819
[ "BSD-3-Clause" ]
1
2020-06-22T21:19:41.000Z
2020-06-22T21:19:41.000Z
mhw_analysis/db/build_climate.py
profxj/mwh_analysis
bb3854ee9e6deee7be270967fe5a7e15a7636819
[ "BSD-3-Clause" ]
9
2020-06-05T16:16:48.000Z
2020-10-18T18:58:00.000Z
mhw_analysis/db/build_climate.py
profxj/mwh_analysis
bb3854ee9e6deee7be270967fe5a7e15a7636819
[ "BSD-3-Clause" ]
null
null
null
""" Module to generate a *large* Cube of MHW events""" import glob import numpy as np import pandas import sqlalchemy from datetime import date from IPython import embed from mhw_analysis.db import utils from mhw import climate from mhw import marineHeatWaves from mhw import utils as mhw_utils # MOVED BACK TO marin...
18.722222
54
0.801187
93f1e29323f17af3bb372cf6c38427daa3680271
1,458
py
Python
profiles/models.py
chandru-shane/django-forum-project
061325ce0234c7e183df7bdb180907fc23acc11e
[ "MIT" ]
null
null
null
profiles/models.py
chandru-shane/django-forum-project
061325ce0234c7e183df7bdb180907fc23acc11e
[ "MIT" ]
null
null
null
profiles/models.py
chandru-shane/django-forum-project
061325ce0234c7e183df7bdb180907fc23acc11e
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from django.contrib.auth import get_user_model # Create your models here. User = get_user_model() class UserProfile(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, related_name='profile', ...
41.657143
100
0.724966
93f1ea6a3f884d38956a0cef403031fd5484fe33
1,346
py
Python
mlogpp/error.py
albi-c/mlogpp
2f62922bbcb3e97e9fd861b453c0e7d9a7ce1d1b
[ "MIT" ]
null
null
null
mlogpp/error.py
albi-c/mlogpp
2f62922bbcb3e97e9fd861b453c0e7d9a7ce1d1b
[ "MIT" ]
null
null
null
mlogpp/error.py
albi-c/mlogpp
2f62922bbcb3e97e9fd861b453c0e7d9a7ce1d1b
[ "MIT" ]
null
null
null
import sys, inspect from .formatting import Format from .util import Position class MlogError(Exception): def __init__(self, msg: str, pos: Position = None): self.message = f"{msg}: {pos}" self.msg = msg self.pos = pos def print(self): if self.pos is not None: ...
23.614035
157
0.594354
93f200df442a6c5efab806b1e87ef9a784224bd0
2,857
py
Python
pretraining.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
59
2019-05-27T01:37:32.000Z
2022-03-23T05:41:40.000Z
pretraining.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
5
2019-05-27T04:15:27.000Z
2022-03-07T13:50:32.000Z
pretraining.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
16
2019-05-28T04:20:38.000Z
2022-03-22T06:43:09.000Z
import json import logging import os from lib_yolo import yolov3, train, utils def main(): config = { 'training': True, # edit: set to false for qualitative evaluation 'resume_training': False, # edit 'resume_checkpoint': 'last', # edit: either filename or 'last' the resume a training ...
41.405797
106
0.610081
93f22d2bfe88b7758cc2c1e48c864ccb8dcb9af7
1,746
py
Python
src/utils/objectives.py
imatge-upc/rvos-mots
38dd9d552685e5e685903c2154097917444b2676
[ "BSD-3-Clause" ]
6
2020-09-29T12:35:34.000Z
2021-11-24T02:56:22.000Z
src/utils/objectives.py
imatge-upc/rvos-mots
38dd9d552685e5e685903c2154097917444b2676
[ "BSD-3-Clause" ]
null
null
null
src/utils/objectives.py
imatge-upc/rvos-mots
38dd9d552685e5e685903c2154097917444b2676
[ "BSD-3-Clause" ]
1
2020-11-16T06:24:34.000Z
2020-11-16T06:24:34.000Z
import torch from utils.hungarian import softIoU, MaskedNLL, StableBalancedMaskedBCE, FocalLoss import torch.nn as nn from torch.autograd import Variable class MaskedNLLLoss(nn.Module): def __init__(self, balance_weight=None): super(MaskedNLLLoss,self).__init__() self.balance_weight=balance_weigh...
32.943396
85
0.652348
93f2473dd28460d65442eba9b3e4fa6ffc8055b5
251
py
Python
manage.py
machinalis/inventor
63732c77122364956a5df37c2df126e8781e49e5
[ "BSD-3-Clause" ]
2
2015-09-21T02:07:55.000Z
2018-04-06T05:07:20.000Z
manage.py
machinalis/inventor
63732c77122364956a5df37c2df126e8781e49e5
[ "BSD-3-Clause" ]
null
null
null
manage.py
machinalis/inventor
63732c77122364956a5df37c2df126e8781e49e5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "inventor.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.818182
72
0.772908
93f25a120614a1c4a163e5922b1f53662bc796a6
5,489
py
Python
jina/drivers/search.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/drivers/search.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/drivers/search.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" from typing import Iterable, Tuple, Optional from . import ( BaseExecutableDriver, QuerySetReader, FlatRecursiveMixin, ContextAwareRecursiveMixin, ) from ..types.document import Document from ..types....
36.111842
119
0.610129
93f25e724ddffb799f900b3243b4f30592c6ee68
512
py
Python
ads/hpo/visualization/_optimization_history.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/hpo/visualization/_optimization_history.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/hpo/visualization/_optimization_history.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-- # Copyright (c) 2021, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ import matplotlib.pyplot as plt from optuna.study import Study from optuna.visualization.matplotlib import pl...
25.6
104
0.740234
93f279b781557506688dc6d2e95abe47bbf28b43
1,422
py
Python
config/settings/test.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
config/settings/test.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
config/settings/test.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="XfVeOOcsT...
33.857143
80
0.510549
93f27a04f5c53da26bcd07a124fade0b45da65d5
11,043
py
Python
Pattern_Generator.py
CODEJIN/MLPSinger
404af5bdd092fbf91f615043bd50457c0fd80c23
[ "MIT" ]
18
2021-06-27T18:01:18.000Z
2022-03-26T08:48:46.000Z
Pattern_Generator.py
CODEJIN/MLPSinger
404af5bdd092fbf91f615043bd50457c0fd80c23
[ "MIT" ]
1
2021-09-23T02:56:21.000Z
2021-09-23T14:49:05.000Z
Pattern_Generator.py
CODEJIN/MLPSinger
404af5bdd092fbf91f615043bd50457c0fd80c23
[ "MIT" ]
3
2021-08-11T03:31:11.000Z
2022-02-06T18:33:32.000Z
from unicodedata import decimal import numpy as np import mido, os, pickle, yaml, argparse, math, librosa, hgtk from tqdm import tqdm from typing import List, Tuple from argparse import Namespace # for type import torch from meldataset import mel_spectrogram, spectrogram from Arg_Parser import Recursive_Parse def CS...
41.515038
168
0.615594
93f2a7e6ee28a25517b9e1da1b79980562795fcc
3,999
py
Python
tests/collections_tests/pagination_test.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
19
2016-08-06T20:06:21.000Z
2020-10-22T08:31:49.000Z
tests/collections_tests/pagination_test.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
104
2016-07-31T19:45:00.000Z
2021-09-15T08:13:36.000Z
tests/collections_tests/pagination_test.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
1
2017-12-30T09:07:38.000Z
2017-12-30T09:07:38.000Z
from unittest import mock from nose.plugins.attrib import attr from tests.base_testcase import BoilerTestCase from boiler.collections.pagination import paginate from pprint import pprint as pp @attr('kernel', 'collections', 'pagination') class PaginationTest(BoilerTestCase): def test_first_doesnt_go_below_zero(s...
31
73
0.6019
93f2b058deffd5b2b6b7bd3e8d8df5bb25e71570
2,506
py
Python
airflow/api_connexion/endpoints/connection_endpoint.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
airflow/api_connexion/endpoints/connection_endpoint.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
airflow/api_connexion/endpoints/connection_endpoint.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
null
null
null
# 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...
32.973684
100
0.739026
93f2e1aa111f7bedef0e424f8b0a62863dd1cf09
955
py
Python
Data/timestamp_to_pitch.py
dchoff/GuiTabs
975981359e6dc55d619023f00d7b75c416090bbf
[ "MIT" ]
null
null
null
Data/timestamp_to_pitch.py
dchoff/GuiTabs
975981359e6dc55d619023f00d7b75c416090bbf
[ "MIT" ]
null
null
null
Data/timestamp_to_pitch.py
dchoff/GuiTabs
975981359e6dc55d619023f00d7b75c416090bbf
[ "MIT" ]
null
null
null
from os import listdir from os.path import isfile, join import csv, numpy as np, librosa ## Turns timestamps from an audiofile into Pitches # take filename and arr of timestamps # returns: array of pitches at those timestamps def timestamp_to_pitch(filename, beats): pitches = [] print(beats) with open('./2...
34.107143
79
0.587435
93f308a1886fe8c18aafbf91bb1df4fd22efb58c
6,747
py
Python
tests/tests/common_update.py
spockfish/mender-integration
09441e4ec88c837605aa12d70db4faa8f1a16b59
[ "Apache-2.0" ]
null
null
null
tests/tests/common_update.py
spockfish/mender-integration
09441e4ec88c837605aa12d70db4faa8f1a16b59
[ "Apache-2.0" ]
null
null
null
tests/tests/common_update.py
spockfish/mender-integration
09441e4ec88c837605aa12d70db4faa8f1a16b59
[ "Apache-2.0" ]
1
2020-08-18T15:39:46.000Z
2020-08-18T15:39:46.000Z
#!/usr/bin/python # Copyright 2017 Northern.tech AS # # 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 a...
43.529032
138
0.635838
93f30e4a3b6d78c3ef524c4eb0ad823d88665a77
11,316
py
Python
viadot/tasks/supermetrics.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/tasks/supermetrics.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/tasks/supermetrics.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
from datetime import timedelta from typing import Any, Dict, List, Union import pandas as pd from prefect import Task from prefect.utilities.tasks import defaults_from_attrs from ..sources import Supermetrics class SupermetricsToCSV(Task): """ Task to downloading data from Supermetrics API to CSV file. ...
39.291667
113
0.614351
93f34d81f767bd5d85bb045c2650db18e6f93019
2,187
py
Python
development/scripts/prepro/split_dataset.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
7
2021-04-07T06:31:58.000Z
2022-01-27T09:49:51.000Z
development/scripts/prepro/split_dataset.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
null
null
null
development/scripts/prepro/split_dataset.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
2
2021-05-19T03:39:04.000Z
2021-08-12T08:20:19.000Z
import os, sys, yaml from pathlib import Path import argparse import math import numpy as np import random sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),"../../.."))) def getObjLinks(datasetRoot): objLinkPaths = [] for root, _, fnames in os.walk(datasetRoot): for fname in fnam...
30.802817
113
0.724737
93f35549571d3ddf05c9b8e77f1086117b8ef751
910
py
Python
ria/GreyMatter/general_conversations.py
sjsucohort6/amigo-chatbot
ca4be6e0b90cd581b34f7414159dfc6a50eca969
[ "MIT" ]
5
2017-06-16T00:23:31.000Z
2019-10-15T14:20:56.000Z
ria/GreyMatter/general_conversations.py
sjsucohort6/amigo-chatbot
ca4be6e0b90cd581b34f7414159dfc6a50eca969
[ "MIT" ]
null
null
null
ria/GreyMatter/general_conversations.py
sjsucohort6/amigo-chatbot
ca4be6e0b90cd581b34f7414159dfc6a50eca969
[ "MIT" ]
3
2017-10-01T18:11:42.000Z
2019-03-28T06:14:07.000Z
from SenseCells.tts import tts import random def who_are_you(): messages = ['I am Ria, your lovely personal assistant.', 'Ria, didnt I tell you before?', 'You ask that so many times! I am Ria.'] tts(random.choice(messages)) def how_am_i(): replies =['You are perfect!', 'My ...
32.5
83
0.628571
93f379c5db3821fc5e9def059c3b97e39363cd91
4,959
py
Python
advanced-lane-detection/advanced-lane-detection-algorithm/sliding_window.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
1
2018-11-22T16:08:15.000Z
2018-11-22T16:08:15.000Z
src/slidingwindow.py
theimgclist/SelfDrivingCarTerm1
4769975fae4d466990ac315f9650b6aaf416d239
[ "MIT" ]
null
null
null
src/slidingwindow.py
theimgclist/SelfDrivingCarTerm1
4769975fae4d466990ac315f9650b6aaf416d239
[ "MIT" ]
1
2022-03-31T10:33:45.000Z
2022-03-31T10:33:45.000Z
import numpy as np import matplotlib.image as mpimg import matplotlib.pyplot as plt import cv2 # Load our image binary_warped = mpimg.imread('warped_example.jpg') def find_lane_pixels(binary_warped): # Take a histogram of the bottom half of the image histogram = np.sum(binary_warped[binary_warped.shape[0]//2:...
39.991935
83
0.682799
93f37e5dce8f4137991659b123b96ecf4a4d0143
34,797
py
Python
topo/tkgui/plotgrouppanel.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
40
2015-02-05T14:53:10.000Z
2020-10-12T06:26:23.000Z
topo/tkgui/plotgrouppanel.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
95
2015-01-01T16:14:20.000Z
2022-02-11T22:50:27.000Z
topo/tkgui/plotgrouppanel.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
22
2015-05-03T10:24:17.000Z
2019-11-15T06:34:31.000Z
""" Classes providing GUI windows for PlotGroups, allowing sets of related plots to be displayed. """ import copy import ImageTk import Tkinter from Tkinter import Frame, TOP, YES, BOTH, X, LEFT, \ RIGHT, DISABLED, NORMAL, Canvas, Label, NSEW, \ NO, NONE,TclError import param # CEBALERT: here and elsewh...
38.029508
181
0.613214
93f38d2075c2e67b951e7147908e28f4a162944e
595
py
Python
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oload_dataset.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2017-03-28T09:10:12.000Z
2017-03-28T09:10:12.000Z
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oload_dataset.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oload_dataset.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type from h2o.frame import H2OFrame def h2oload_dataset(): """ Python API test: h2o.load_dataset(relative_path) """ try: prostate...
24.791667
66
0.715966
93f406ae43982dfbb9e1c90039182e08d00adda1
1,493
py
Python
tests/unit/plugins/resources/test_resource_directive.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
tests/unit/plugins/resources/test_resource_directive.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/resources/test_resource_directive.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
from kaybee import app from kaybee.plugins.resources.directive import ResourceDirective class TestResourceDirective: def test_import(self): assert 'ResourceDirective' == ResourceDirective.__name__ def test_construction(self, dummy_directive): assert 'dummy_directive' == dummy_directive.name ...
36.414634
64
0.636973
93f40c3ca71f7812208b64e11c39b183f3b7aa00
1,464
py
Python
src/dewloosh/geom/extrude.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
2
2021-12-11T17:25:51.000Z
2022-01-06T15:36:27.000Z
src/dewloosh/geom/extrude.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
src/dewloosh/geom/extrude.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from numpy import ndarray from numba import njit, prange __cache = True @njit(nogil=True, parallel=True, cache=__cache) def extrude_T3_TET4(points: ndarray, triangles: ndarray, h: float=1.0, zres: int=1): nT = triangles.shape[0] nP = points.shap...
31.148936
67
0.465164
93f437c2b5f0986f5cb71120803ed465f8d83112
1,718
py
Python
examples/BSTLD.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
examples/BSTLD.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
examples/BSTLD.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # # pylint: disable=wrong-import-position # pylint: disable=wrong-import-order # pylint: disable=not-callable # pylint: disable=ungrouped-imports # pylint: disable=import-error # pylint: disable=pointless-string-statement # pylint: disable=...
22.025641
81
0.717695
93f43b418cac4d987c60fdaca87d63b2f7070a15
359
py
Python
agents.py
sander-adam/four-in-a-row-competition
6a35d0375ce079ba94662d9fc9d2d54669a5725c
[ "MIT" ]
null
null
null
agents.py
sander-adam/four-in-a-row-competition
6a35d0375ce079ba94662d9fc9d2d54669a5725c
[ "MIT" ]
null
null
null
agents.py
sander-adam/four-in-a-row-competition
6a35d0375ce079ba94662d9fc9d2d54669a5725c
[ "MIT" ]
null
null
null
import random import numpy as np class RandomMove: def __init__(self): self.name = 'Random Move' def move(self, game): return random.choice(game.legal_moves()) class AllLeft: def __init__(self): self.name = 'All to the Left' def move(self, game): arr = np.array(game....
19.944444
48
0.618384
93f446380eccd72724131b20868003b1272b6c26
1,620
py
Python
tests/unit/test_cmdline.py
seddonym/python-layer-linter
ae27a29294999e58f3ce0acfc86e8ce7376c727a
[ "BSD-3-Clause" ]
63
2018-06-21T10:39:54.000Z
2021-06-04T14:28:44.000Z
tests/unit/test_cmdline.py
seddonym/python-layer-linter
ae27a29294999e58f3ce0acfc86e8ce7376c727a
[ "BSD-3-Clause" ]
86
2018-06-20T13:30:30.000Z
2019-06-04T12:47:28.000Z
tests/unit/test_cmdline.py
seddonym/python-layer-linter
ae27a29294999e58f3ce0acfc86e8ce7376c727a
[ "BSD-3-Clause" ]
4
2018-08-14T08:49:55.000Z
2019-02-16T09:24:47.000Z
from unittest.mock import patch import pytest from layer_linter import cmdline from layer_linter.cmdline import _normalise_verbosity, _main from layer_linter.report import VERBOSITY_HIGH, VERBOSITY_NORMAL, VERBOSITY_QUIET @pytest.mark.parametrize( 'verbosity,is_quiet,expected_result', ( (0, True, VERBOS...
34.468085
93
0.722222
93f44b235d55d5c1e81ab49d3021f0be8c913023
4,841
py
Python
venv/Lib/site-packages/nbdime/patching.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
2
2021-02-16T16:17:07.000Z
2021-11-08T20:27:13.000Z
venv/Lib/site-packages/nbdime/patching.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/nbdime/patching.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
4
2020-11-14T17:05:36.000Z
2020-11-16T18:44:54.000Z
# coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import unicode_literals import copy from six import string_types import nbformat from nbformat import NotebookNode from .diff_format import DiffOp, NBDiffFormatError from .diff_utils ...
33.618056
87
0.643462
93f471db22b46300b96aec50cd996c8e27eeecdc
266
py
Python
Common/StockType/Currencies/Crypto/CryptoCurrency.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/StockType/Currencies/Crypto/CryptoCurrency.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/StockType/Currencies/Crypto/CryptoCurrency.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from Common.StockType.Currencies.AbstractCurrency import AbstractCurrency class CryptoCurrency(AbstractCurrency): def __init__(self, c_name: str, t_name: str): super().__init__(c_name.replace(' ', '').replace('-', '')) self.__class = 'Crypto'
29.555556
73
0.695489
93f4739f74e245c691d0b91b8c21c10c3cbd5683
2,688
py
Python
torchdata/datapipes/iter/util/bz2fileloader.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
611
2021-09-27T18:19:16.000Z
2022-03-31T11:36:01.000Z
torchdata/datapipes/iter/util/bz2fileloader.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
271
2021-09-27T19:07:00.000Z
2022-03-30T19:55:14.000Z
torchdata/datapipes/iter/util/bz2fileloader.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
36
2021-09-27T19:22:32.000Z
2022-03-29T12:49:06.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import bz2 import warnings from io import BufferedIOBase from typing import Iterable, Iterator, Tuple from tor...
40.727273
116
0.685268
93f47a6304d11fa090193a369c5fa5cba338f03d
5,821
py
Python
flexget/plugins/urlrewrite_piratebay.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
flexget/plugins/urlrewrite_piratebay.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
1
2018-06-09T18:03:35.000Z
2018-06-09T18:03:35.000Z
flexget/plugins/urlrewrite_piratebay.py
sasese/Flexget
8cca4a6a3cacc919c7a5b36f428176e170739de5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import re import urllib import logging from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget.plugins.plugin_urlrewriting import UrlRewritingError from flexget.utils import requests from flexget.utils.so...
36.841772
115
0.542347
93f48e9cdb8154e9fd55b1f8c25ccdb61ee83232
3,349
py
Python
gpAux/extensions/gphdfs/regression/legacy/test_cdh_integration.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
gpAux/extensions/gphdfs/regression/legacy/test_cdh_integration.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
gpAux/extensions/gphdfs/regression/legacy/test_cdh_integration.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
41.345679
177
0.711556
93f4b0d49bd7720941bb6d26702f246266d2b6d5
18,114
py
Python
workflows/migrations/0001_initial.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
4
2017-12-13T10:59:42.000Z
2019-11-03T17:26:19.000Z
workflows/migrations/0001_initial.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
21
2017-04-05T08:03:54.000Z
2022-03-11T23:16:03.000Z
workflows/migrations/0001_initial.py
xflows/clowdflows-backend
9fae3a27d16035147bebac6efcd7617aec35e0f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-07-26 09:15 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import picklefield.fields import workflows.thumbs class Migration(migrations.Migration): initial = True dependencies = [ ...
64.924731
517
0.622723
93f4b2d91265ef6912cf72ea8d19884ad2f307bb
4,233
py
Python
src/pixel_ring_server.py
PTA84/vietbot
681f63d9118bd9b5ef80d6c0736332a7cdeaf761
[ "Apache-2.0" ]
9
2021-02-01T08:07:05.000Z
2021-08-25T15:22:46.000Z
src/pixel_ring_server.py
PTA84/vietbot
681f63d9118bd9b5ef80d6c0736332a7cdeaf761
[ "Apache-2.0" ]
null
null
null
src/pixel_ring_server.py
PTA84/vietbot
681f63d9118bd9b5ef80d6c0736332a7cdeaf761
[ "Apache-2.0" ]
9
2021-02-03T13:34:19.000Z
2021-12-27T13:28:24.000Z
#!/usr/bin/env python #! -*- coding: utf-8 -*- import os import time from pydbus import SystemBus from gi.repository import GLib from pixel_ring import pixel_ring import mraa import signal def setup_signals(signals, handler): """ This is a workaround to signal.signal(signal, handler) which does not work w...
26.45625
91
0.568627
93f55ff0315d287f22c31a5011458da16ad10f21
34,826
py
Python
common/middleware/tempauth.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
null
null
null
common/middleware/tempauth.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
null
null
null
common/middleware/tempauth.py
escudocloud/encswift_server
90a5a999c06b40da89d5f785795f80bd9d990640
[ "Apache-2.0" ]
1
2016-09-27T09:08:24.000Z
2016-09-27T09:08:24.000Z
# Copyright (c) 2011-2014 OpenStack Foundation # # 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 agree...
44.821107
79
0.585367
93f5b1708f7b47a114b0990a9941be1aa6ac3ebe
2,764
py
Python
tests/test_wrappers.py
innotrade24/python-amazon-mws1
7e387b076bcab489cf024624fefaa0dd3b1bcb2a
[ "Unlicense" ]
1
2018-06-29T06:13:02.000Z
2018-06-29T06:13:02.000Z
tests/test_wrappers.py
innotrade24/python-amazon-mws1
7e387b076bcab489cf024624fefaa0dd3b1bcb2a
[ "Unlicense" ]
null
null
null
tests/test_wrappers.py
innotrade24/python-amazon-mws1
7e387b076bcab489cf024624fefaa0dd3b1bcb2a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from mws.mws import validate_hash, DataWrapper, MWSError class FakeResponse(object): def __init__(self, content, hash=None, apparent_encoding=None): self.status_code = 200 self.encoding = 'Cp1252' # we overwrite this flag self.headers = {'content-md...
37.351351
98
0.667511
93f5b9f8abc98ecc52864dda0fec7500be217abb
5,859
py
Python
Tools/resultsdbpy/resultsdbpy/controller/archive_controller.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/resultsdbpy/resultsdbpy/controller/archive_controller.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/resultsdbpy/resultsdbpy/controller/archive_controller.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2019 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
45.418605
126
0.664107
93f5bff3227607da9a477161274a846833feb7d0
2,328
py
Python
test_pymeteobridge.py
briis/pymeteobridgeio
7a3f51d9d6bd29697b99ac088904ea7d289a0bb3
[ "MIT" ]
null
null
null
test_pymeteobridge.py
briis/pymeteobridgeio
7a3f51d9d6bd29697b99ac088904ea7d289a0bb3
[ "MIT" ]
5
2020-06-03T11:57:17.000Z
2020-06-29T05:34:26.000Z
test_pymeteobridge.py
briis/pymeteobridgeio
7a3f51d9d6bd29697b99ac088904ea7d289a0bb3
[ "MIT" ]
1
2020-06-07T12:44:10.000Z
2020-06-07T12:44:10.000Z
""" The test for the API """ """Run an example script to quickly test.""" import asyncio from aiohttp import ClientSession import time import json import logging from pymeteobridgeio import ( Meteobridge, RequestError, ResultError, InvalidCredentials, DEVICE_TYPE_BINARY_SENSOR, DEVICE_TYPE_SENS...
30.233766
243
0.693299
93f5c904a083285c5cbe8828e1dffbb6dfd567fa
73,523
py
Python
sample_mods/bfb/bfb_abs_cons7momdt_ht.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
sample_mods/bfb/bfb_abs_cons7momdt_ht.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
sample_mods/bfb/bfb_abs_cons7momdt_ht.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
from __future__ import division from pyomo.core.base import Constraint, sqrt, exp, Expression, log from nmpc_mhe.aux.cpoinsc import collptsgen from nmpc_mhe.aux.lagrange_f import lgr, lgry, lgrdot, lgrydot """ Version note implemented momentum balance and diffusive terms for the bubble region (gas) have pressure give...
40.419461
461
0.489221
93f600cca917da8624cc8853627021ca4c238803
10,131
py
Python
tests/graph/test_types.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
tests/graph/test_types.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
tests/graph/test_types.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np import pytest import aesara from aesara import scalar as aes from aesara.graph.basic import Apply, Variable from aesara.graph.op import COp from aesara.graph.type import CDataType, CEnumType, EnumList, EnumType, Type from aesara.tensor.type import TensorType, continuous_dtypes class MyT...
28.699717
88
0.549798
93f60d9de9d900120c27c77bc9305c8b967f16e7
1,085
py
Python
classes/generalfunctions.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
classes/generalfunctions.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
classes/generalfunctions.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
2
2020-12-15T11:53:41.000Z
2021-01-07T01:09:33.000Z
''' File for storing any general functions that get regularly reused Code for conditional read/create found at https://www.w3schools.com/python/ref_func_open.asp ''' import os import pygame from operator import itemgetter HIGH_SCORE_LOCATION = 'other_data/highscores.txt' def quitGame(): ''' Function to qu...
21.7
74
0.630415
93f60df86339b538e17b32ddb02fd1cf593314f1
41,891
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/_network_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/_network_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/_network_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 may ...
83.9499
3,510
0.831539
93f620c105aeff55674e36c3e32df77df0cadf4d
919
py
Python
analysis/poisson.py
TheGreatCabbage/ParticlePy
676d99cfa244b0365dbfb9693acaed1265910299
[ "MIT" ]
null
null
null
analysis/poisson.py
TheGreatCabbage/ParticlePy
676d99cfa244b0365dbfb9693acaed1265910299
[ "MIT" ]
null
null
null
analysis/poisson.py
TheGreatCabbage/ParticlePy
676d99cfa244b0365dbfb9693acaed1265910299
[ "MIT" ]
null
null
null
import pi_muons as mu import math from matplotlib import pyplot as plt import numpy as np from scipy.optimize import curve_fit import scipy as sp from scipy import stats counts = mu.get_counts() diffs = [] num_counts = len(counts) for i in range(0, num_counts): if i >= num_counts - 1: # Reached last value to fin...
24.837838
82
0.698585
93f647173eab3fe9ce3a1f950284e77f5c7e1677
9,522
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_restore_point_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_restore_point_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_restore_point_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
48.581633
269
0.690086
93f65b9bb0e6c652e1d94457f005feb32c42a4c5
5,016
py
Python
seq_graph_retro/data/dataset.py
vsomnath/graphretro
2a88730da980be59541780e790cdb0fbdc581828
[ "MIT" ]
5
2022-02-21T08:26:15.000Z
2022-03-31T12:05:47.000Z
seq_graph_retro/data/dataset.py
vsomnath/graphretro
2a88730da980be59541780e790cdb0fbdc581828
[ "MIT" ]
null
null
null
seq_graph_retro/data/dataset.py
vsomnath/graphretro
2a88730da980be59541780e790cdb0fbdc581828
[ "MIT" ]
2
2022-03-11T15:33:33.000Z
2022-03-23T06:28:07.000Z
import torch from typing import Any, Tuple, List import os import joblib from seq_graph_retro.utils.parse import ReactionInfo class BaseDataset(torch.utils.data.Dataset): """BaseDataset is an abstract class that loads the saved tensor batches and passes them to the model for training.""" def __init__(sel...
35.574468
121
0.590311
93f670573477c3b80c56b59260d00e5c4137de9f
2,789
py
Python
unet/plain_unet.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
unet/plain_unet.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
unet/plain_unet.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from basic_layers.tensorflow import conv from basic_layers.tensorflow import conv_bn_relu from basic_layers.tensorflow import maxpool from basic_layers.tensorflow import upsample from basic_layers.tensorflow import concat from basic_layers.tensorflow import softmax class PlainUnet: """ ...
34.012195
78
0.576551
93f693278ce735e799a9f90bf56af19c607fed3d
2,166
py
Python
python/q015/q15.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q015/q15.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q015/q15.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def threeSum(self, nums: List[int]) -> List[List[int]]: nums.sort() result = [] for index, item in enumerate(nums[:-2]): if item > 0: break if item == nums[index - 1] and index > 0: continue ...
30.507042
68
0.346722
93f6ac383ca57a9053c5c79963090f11183cc881
2,992
py
Python
cosmogrb/instruments/gbm/gbm_lightcurve.py
grburgess/cosmogrb
55182f2223a329f598bcbc43448f3b0ae9f45448
[ "BSD-2-Clause" ]
3
2020-03-08T18:20:32.000Z
2022-03-10T17:27:26.000Z
cosmogrb/instruments/gbm/gbm_lightcurve.py
grburgess/cosmogrb
55182f2223a329f598bcbc43448f3b0ae9f45448
[ "BSD-2-Clause" ]
11
2020-03-04T17:21:15.000Z
2020-06-09T12:20:00.000Z
cosmogrb/instruments/gbm/gbm_lightcurve.py
grburgess/cosmogrb
55182f2223a329f598bcbc43448f3b0ae9f45448
[ "BSD-2-Clause" ]
5
2020-03-18T18:05:05.000Z
2022-03-21T16:06:38.000Z
import numba as nb import numpy as np from cosmogrb.lightcurve.lightcurve import LightCurve from cosmogrb.utils.logging import setup_logger from cosmogrb.utils.tte_file import TTEFile logger = setup_logger(__name__) class GBMLightCurve(LightCurve): def __init__(self, source, background, response, name, grb_name...
26.477876
99
0.601939
93f6c2c8e09e96767c42ba612128f092f0efbc86
2,270
py
Python
run.py
thusithathilina/multiple-scheduling-2.0
f3897e4ac05f22505220ba0856f356691bc96843
[ "MIT" ]
null
null
null
run.py
thusithathilina/multiple-scheduling-2.0
f3897e4ac05f22505220ba0856f356691bc96843
[ "MIT" ]
null
null
null
run.py
thusithathilina/multiple-scheduling-2.0
f3897e4ac05f22505220ba0856f356691bc96843
[ "MIT" ]
null
null
null
from scripts.experiment import * from scripts.output_results import write_batch_experiment_summary from datetime import date, datetime from scripts.data_mode import DataMode repeat_num = 1 enable_fdia = False injection_percentage = 1/100 # household_nums = [2000, 4000, 6000, 8000, 10000] # household_nums = [20, 40, 60...
40.535714
116
0.703524
93f6c2e7ced6e46cbc0014ecc67e352e0fd72a27
490
py
Python
Practica2/N-Cube Sum/Iterativo/cubo.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
1
2021-09-30T20:05:41.000Z
2021-09-30T20:05:41.000Z
Practica2/N-Cube Sum/Iterativo/cubo.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
null
null
null
Practica2/N-Cube Sum/Iterativo/cubo.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
null
null
null
#Análisis de Algoritmos 3CV2 # Alan Romero Lucero # Josué David Hernández Ramírez # Práctica 2 Suma de las primeras n cúbicas "Iterativo" #Este es el algoritmo de las sumas de forma iterativa def cubo ( n ): _sum, count, cubelist = 0, 1, [ ] # Rango: Desde 1 <= i <= n. for i in range ( 1, n + 1 ): ...
27.222222
55
0.585714
93f6f94fc56808f5e146d14870b3b5f05f7fb0e0
39
py
Python
tests/__init__.py
WWU-AMM/pytimings
0a1b2a84e2820e5d9b447099f76b1a735663820b
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
WWU-AMM/pytimings
0a1b2a84e2820e5d9b447099f76b1a735663820b
[ "BSD-3-Clause" ]
14
2021-02-16T08:07:59.000Z
2021-11-30T11:51:58.000Z
tests/__init__.py
WWU-AMM/pytimings
0a1b2a84e2820e5d9b447099f76b1a735663820b
[ "BSD-3-Clause" ]
null
null
null
"""Unit test package for pytimings."""
19.5
38
0.692308
93f715e9820eb3b26cb06f746b8559df30a5125b
2,590
py
Python
optimize_example.py
airalcorn2/pytorch_trilinear_interpolation
b59c4e79b25aa77fa955217686bb46432e3bf314
[ "MIT" ]
1
2020-10-10T16:29:02.000Z
2020-10-10T16:29:02.000Z
optimize_example.py
airalcorn2/pytorch_volume_rotator
b59c4e79b25aa77fa955217686bb46432e3bf314
[ "MIT" ]
null
null
null
optimize_example.py
airalcorn2/pytorch_volume_rotator
b59c4e79b25aa77fa955217686bb46432e3bf314
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use("agg") from example_utils import * from torch import nn, optim if __name__ == "__main__": (feat_vol, colors, coord_map, inv_coord_map, vol_dim, r, g, b) = init_vol() if torch.cuda.is_available(): device = "cuda:0" else: device = "cpu" in_vol_img = p...
32.78481
87
0.603475
93f722de263bbf363bbecd2fe01cba44d1c144b2
546
py
Python
rlkit/torch/sac/policies/lvm_policy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1,662
2018-01-25T05:23:56.000Z
2021-07-19T10:14:06.000Z
rlkit/torch/sac/policies/lvm_policy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
121
2018-05-07T22:09:09.000Z
2021-07-08T16:33:37.000Z
rlkit/torch/sac/policies/lvm_policy.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
443
2018-03-04T17:53:25.000Z
2021-07-21T17:16:16.000Z
from rlkit.torch.networks.stochastic.distribution_generator import ( DistributionGenerator ) from rlkit.torch.sac.policies.base import ( TorchStochasticPolicy, PolicyFromDistributionGenerator, MakeDeterministic, ) from rlkit.torch.lvm.latent_variable_model import LatentVariableModel class LVMPolicy(L...
27.3
69
0.739927
93f7329215dc7c471ddd83d412484c85da102990
396
py
Python
04 - Structured Data, Mutability & High Level functions/02 - Functions like expressions/functions_like_expressions.py
MarquezLuis96/CompThink_Python
e8d3db42c5568c4fa1d6f4d6376a871b4bd3128e
[ "MIT" ]
null
null
null
04 - Structured Data, Mutability & High Level functions/02 - Functions like expressions/functions_like_expressions.py
MarquezLuis96/CompThink_Python
e8d3db42c5568c4fa1d6f4d6376a871b4bd3128e
[ "MIT" ]
null
null
null
04 - Structured Data, Mutability & High Level functions/02 - Functions like expressions/functions_like_expressions.py
MarquezLuis96/CompThink_Python
e8d3db42c5568c4fa1d6f4d6376a871b4bd3128e
[ "MIT" ]
null
null
null
# Date: 2020/11/17 # Author: Luis Marquez # Description: # This is a program to lear how to use functions like expressions # # #plus plus = lambda x, y : x + y #multiplication mult = lambda x, y : x* y #run: On this function we will run all the other functios written in our program def run(): ...
17.217391
80
0.651515
93f767b17ba6b9b8edcdb90ca1251c3063e08da5
5,330
py
Python
twirps/data_investigation.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
3
2015-05-08T16:19:40.000Z
2016-05-03T07:54:04.000Z
twirps/data_investigation.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
null
null
null
twirps/data_investigation.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp from sklearn.feature_extraction import DictVectorizer from sklearn.preprocessing import normalize import json, sys , sets import logging LOGGER = logging.getLogger(__name__) np.set_printoptions(threshold=1e9) """ basic implementation of kmeans: create MATRIX M: (370 x 30000)...
30.988372
105
0.657223
93f7d67cc0603e537a515b3ff07cb1f9b9885d12
145
py
Python
Python/String Split and join.py
shivendra90/HackerRank_Solutions
0e6f9b907c5f8ca93b2945787cb1fe7ed172bed6
[ "MIT" ]
null
null
null
Python/String Split and join.py
shivendra90/HackerRank_Solutions
0e6f9b907c5f8ca93b2945787cb1fe7ed172bed6
[ "MIT" ]
null
null
null
Python/String Split and join.py
shivendra90/HackerRank_Solutions
0e6f9b907c5f8ca93b2945787cb1fe7ed172bed6
[ "MIT" ]
null
null
null
def split_and_join(line): # write your code here line = str(line) line = line.split(" ") line = "-".join(line) return line
16.111111
26
0.57931
93f7e5dcff249bea2746d415ae70a3405ad51214
197
py
Python
hiicart/gateway/paypal/urls.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
hiicart/gateway/paypal/urls.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
5
2020-10-29T01:05:05.000Z
2020-10-29T01:05:19.000Z
hiicart/gateway/paypal/urls.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
import hiicart.gateway.paypal.views from django.conf.urls.defaults import * urlpatterns = patterns('', (r'ipn/?$', 'hiicart.gateway.paypal.views.ipn'), )
24.625
87
0.57868
93f872bcf2614375df6553e19d36dc105686ea97
14,173
py
Python
pywikibot/comms/eventstreams.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
pywikibot/comms/eventstreams.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
6
2021-02-27T03:35:42.000Z
2021-03-07T22:17:40.000Z
pywikibot/comms/eventstreams.py
ModelTemplate/WarframeWikiBot
7685057f65d95551ccdb7e958aac3bb58ee8b5b3
[ "MIT" ]
null
null
null
""" Server-Sent Events client. This file is part of the Pywikibot framework. This module requires sseclient to be installed:: pip install sseclient """ # # (C) Pywikibot team, 2017-2020 # # Distributed under the terms of the MIT license. # from distutils.version import LooseVersion from functools import partial ...
40.727011
79
0.595992
93f87485069a61245b52f89a7c9f18c843260c2f
13,451
py
Python
sdk/python/pulumi_kong/certificate.py
pulumi/pulumi-kong
775c17e4eac38934252410ed3dcdc6fc3bd40c5c
[ "ECL-2.0", "Apache-2.0" ]
4
2020-02-23T10:05:20.000Z
2020-05-15T14:22:10.000Z
sdk/python/pulumi_kong/certificate.py
pulumi/pulumi-kong
775c17e4eac38934252410ed3dcdc6fc3bd40c5c
[ "ECL-2.0", "Apache-2.0" ]
41
2020-04-21T22:04:23.000Z
2022-03-31T15:29:53.000Z
sdk/python/pulumi_kong/certificate.py
pulumi/pulumi-kong
775c17e4eac38934252410ed3dcdc6fc3bd40c5c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
40.884498
160
0.631254
93f87be6130f6e81adc8936bf050744eecaa9a53
58,452
py
Python
salt/loader.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/loader.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/loader.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The Salt loader is the core to Salt's plugin system, the loader scans directories for python loadable code and organizes the code into the plugin interfaces used by Salt. ''' # Import python libs from __future__ import absolute_import import os import imp import sys import salt import time ...
34.242531
131
0.556422
93f889bf34ff4b5e57c00a261785cedd907ecddd
1,590
py
Python
releasenotes/source/conf.py
kaptnemo/oslo.log
b97137fb8e418b08067b7ad49c176f4bfc45e916
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
kaptnemo/oslo.log
b97137fb8e418b08067b7ad49c176f4bfc45e916
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
kaptnemo/oslo.log
b97137fb8e418b08067b7ad49c176f4bfc45e916
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
31.8
75
0.67673
93f89785b9e8d281d58b4823aff7afd0006c2021
3,791
py
Python
prosper/datareader/robinhood/quotes.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
null
null
null
prosper/datareader/robinhood/quotes.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
14
2017-08-14T02:25:42.000Z
2018-11-16T19:15:52.000Z
prosper/datareader/robinhood/quotes.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
null
null
null
"""datareader.robinhood.quotes: gather price quote data from Robinhood""" from enum import Enum from datetime import datetime, timezone import dateutil.parser import requests from .. import config class Interval(Enum): """/quotes/historical helper for `interval` notation""" minute5 = '5minute' minute10 ...
24.616883
95
0.653917
93f8c5617c785a800c2b9fe53d41833e291f00aa
10,566
py
Python
qLearn/board.py
bckwalton/othello-rl
02f277c6849ea07464815988c5b21ac9b621bd90
[ "MIT" ]
17
2017-02-20T01:44:12.000Z
2021-01-12T06:57:27.000Z
qLearn/board.py
bckwalton/othello-rl
02f277c6849ea07464815988c5b21ac9b621bd90
[ "MIT" ]
null
null
null
qLearn/board.py
bckwalton/othello-rl
02f277c6849ea07464815988c5b21ac9b621bd90
[ "MIT" ]
9
2017-07-07T11:38:17.000Z
2020-10-31T22:45:09.000Z
import numpy as np from reinforce import Player from colorama import Fore, Back, Style from colorama import init init(autoreset=True) board = None def getRow(row): ret = "" for i in np.nditer(row): ret += getItem(i) return ret def getItem(item): if item == 1: return Fore.WHITE + "|...
30.626087
151
0.511925
93f9007b66b8e6e57db4b3c63f66e73516c3eff6
14,185
py
Python
axolotl/utils/data_problem.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
axolotl/utils/data_problem.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
axolotl/utils/data_problem.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
import uuid import os import pathlib import numpy import pandas as pd from d3m.container import pandas as container_pandas from d3m.container.dataset import Dataset from d3m.metadata import base as metadata_base from d3m.metadata.problem import Problem from axolotl.utils.schemas import PROBLEM_DEFINITION def make_un...
37.927807
125
0.625943
93f906c3ce2fcf45d966cfc5f0ab9f99c963bd9c
17,592
py
Python
oscar/lib/python2.7/site-packages/IPython/utils/_tokenize_py2.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/utils/_tokenize_py2.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/utils/_tokenize_py2.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Patched version of standard library tokenize, to deal with various bugs. Patches - Relevant parts of Gareth Rees' patch for Python issue #12691 (untokenizing), manually applied. - Newlines in comments and blank lines should be either NL or NEWLINE, depending on whether they are in a multi-line statement...
39.981818
81
0.501478
93f908d8592cec4b281c33a8398a34c9addf5a84
13,352
py
Python
apps/core/serializers/article.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
apps/core/serializers/article.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
apps/core/serializers/article.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
import typing from django.db import models from django.utils.translation import gettext from rest_framework import serializers from apps.core.documents import ArticleDocument from apps.core.models import Article, ArticleReadLog, Board, Block, Scrap, ArticleHiddenReason from apps.core.serializers.board import BoardSer...
35.892473
121
0.652337
93f91353438855c74a500d4d42ab237f8f2f9328
2,280
py
Python
examples/hyperparameters/optuna/td3_pendulum-v0.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
390
2020-05-03T17:34:02.000Z
2022-03-05T11:29:07.000Z
examples/hyperparameters/optuna/td3_pendulum-v0.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
306
2020-05-03T05:53:53.000Z
2022-03-12T00:27:28.000Z
examples/hyperparameters/optuna/td3_pendulum-v0.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
64
2020-05-05T20:23:30.000Z
2022-03-30T08:43:10.000Z
import numpy as np import optuna import torch from genrl.agents.td3.td3 import TD3 from genrl.environments.suite import VectorEnv from genrl.trainers.offpolicy import OffPolicyTrainer env = VectorEnv("Pendulum-v0") def objective(trial): lr_value = trial.suggest_float("lr_value", 1e-6, 1e-1, log=True) lr_pol...
28.5
87
0.642982
93f91643af36623672a5b1ce7062e47ea171401a
10,420
py
Python
arcface/resnet.py
DerryHub/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
4
2020-08-15T14:49:37.000Z
2022-01-16T08:34:07.000Z
arcface/resnet.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
null
null
null
arcface/resnet.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
2
2021-05-26T05:16:09.000Z
2021-06-09T09:07:49.000Z
import torch from torch import nn from collections import namedtuple from arcface.utils import l2_norm, Flatten, SentVec_TFIDF, IorV class SEModule(nn.Module): def __init__(self, channels, reduction): super(SEModule, self).__init__() self.avg_pool = nn.AdaptiveAvgPool2d(1) self.fc1 = nn.Co...
42.704918
111
0.596449
93f91d1e8ce47d37b4030e720d38c97ab3323e88
6,026
py
Python
plugins/robothor_plugin/configs/nav_base.py
prithv1/allenact
ee736e6a3aeed29b3661ee18fa0dc0a68a40201e
[ "MIT" ]
1
2020-09-10T13:09:14.000Z
2020-09-10T13:09:14.000Z
plugins/robothor_plugin/configs/nav_base.py
andrlima/allenact
f29dd6f0ec62425b02ca07fee815b1a82627a28e
[ "MIT" ]
null
null
null
plugins/robothor_plugin/configs/nav_base.py
andrlima/allenact
f29dd6f0ec62425b02ca07fee815b1a82627a28e
[ "MIT" ]
null
null
null
from typing import Dict, Any, List, Optional import abc import torch import torch.optim as optim from torch.optim.lr_scheduler import LambdaLR from core.base_abstractions.experiment_config import ExperimentConfig from utils.experiment_utils import Builder, PipelineStage, TrainingPipeline, LinearDecay from core.algori...
32.224599
88
0.579655
93f920177d5d0a91ee697e265a84e8db72315d36
3,078
py
Python
HA_Addon/rvc2mqtt/plugin_support.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
1
2022-01-30T18:02:13.000Z
2022-01-30T18:02:13.000Z
rvc2mqtt/plugin_support.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
null
null
null
rvc2mqtt/plugin_support.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
null
null
null
""" Plugin Management for Entities Copyright 2022 Sean Brogan 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-2.0 Unless...
35.790698
100
0.674464
93f93aebd3041a5867eef106f417b28a0cb26efd
2,946
py
Python
api/models/Multitask_CNN.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
74
2020-03-08T15:29:00.000Z
2022-03-05T14:57:33.000Z
api/models/Multitask_CNN.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
19
2020-03-06T08:56:51.000Z
2022-03-27T05:07:35.000Z
api/models/Multitask_CNN.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
23
2020-03-20T08:19:55.000Z
2022-03-16T17:40:09.000Z
import torch.nn as nn import sys sys.path.append("..") from config import OPT import torch from config import MODEL_DIR from utils import Head,Model, BackBone from torch.autograd import Variable import torch.nn.functional as F import copy import numpy as np ################################################## Model: ResN...
42.085714
159
0.587576
93f94b55b1db03f05efed4eb1a33973e0cf5063f
4,187
py
Python
tests/scripts/thread-cert/border_router/test_manual_maddress.py
sarah-iot/openthread
8210a02400c145eb862b65e32040ed0415ba36c2
[ "BSD-3-Clause" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
tests/scripts/thread-cert/border_router/test_manual_maddress.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
tests/scripts/thread-cert/border_router/test_manual_maddress.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
#!/usr/bin/env python3 # # Copyright (c) 2021, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
35.184874
112
0.653929
93f96235bac4260c9e7a3ed682c7a92d4184a22c
4,727
py
Python
tests/common/test_run/ascend/group_conv_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/group_conv_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/group_conv_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # 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...
41.831858
186
0.522107
93f9c8720fd892d24bbf422940c45ad29e91b1d7
2,144
py
Python
dataset/corpora.py
s-mizuki-nlp/semantic_specialization
4d00a461f18828ee8ebaccf7c737a32ccc11809f
[ "Apache-2.0" ]
null
null
null
dataset/corpora.py
s-mizuki-nlp/semantic_specialization
4d00a461f18828ee8ebaccf7c737a32ccc11809f
[ "Apache-2.0" ]
null
null
null
dataset/corpora.py
s-mizuki-nlp/semantic_specialization
4d00a461f18828ee8ebaccf7c737a32ccc11809f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import io, os, json from typing import Union, Collection, Optional, Dict, Any, Iterable, Callable, List from torch.utils.data import IterableDataset from dataset_preprocessor import utils from ._base import AbstractFormatDataset class NDJSONDataset(AbstractFormatDataset, ...
33.5
89
0.639459
93f9ca504d49ff873a2dd7fcc2dc0ebfda4d2457
4,991
py
Python
stimuli/motion.py
DrugowitschLab/motion-structure-identification
908f084b36c7387daf0cbfe75f16bab70cf96db9
[ "MIT" ]
null
null
null
stimuli/motion.py
DrugowitschLab/motion-structure-identification
908f084b36c7387daf0cbfe75f16bab70cf96db9
[ "MIT" ]
null
null
null
stimuli/motion.py
DrugowitschLab/motion-structure-identification
908f084b36c7387daf0cbfe75f16bab70cf96db9
[ "MIT" ]
null
null
null
from config import fps, DisplayConfig, ExperimentConfig from task import Task from utils.time import Timer from utils.lock import Lock from utils.device_input import Devices from utils.data import SimLogger import numpy as np from datetime import datetime __authors__ = "Johannes Bill & Sichao Yang" __contact__ = "sich...
40.577236
107
0.598277
93fa02635e219b66f0c29ccd112b2301ab85875b
2,040
py
Python
core/utils.py
DobroAlex/laolab-nmap-test
d4421fea4b1e3de580b9ad6b1c5952675ca8d68f
[ "Unlicense" ]
null
null
null
core/utils.py
DobroAlex/laolab-nmap-test
d4421fea4b1e3de580b9ad6b1c5952675ca8d68f
[ "Unlicense" ]
null
null
null
core/utils.py
DobroAlex/laolab-nmap-test
d4421fea4b1e3de580b9ad6b1c5952675ca8d68f
[ "Unlicense" ]
null
null
null
import platform import subprocess from dataclasses import dataclass from pathlib import Path from typing import Union, Optional import core.enums def get_abs_path(path_: Union[str, Path]) -> Path: return Path(str(path_)).expanduser().resolve().absolute() @dataclass class FinishedProcess: command: str w...
27.2
81
0.628431
93fa54d1ea53dcf77b157e5f6b66aab0e79b256a
10,329
py
Python
stage/test_groovy_processors.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2020-04-14T03:01:51.000Z
2020-04-14T03:01:51.000Z
stage/test_groovy_processors.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
null
null
null
stage/test_groovy_processors.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2019-09-14T08:30:23.000Z
2019-09-14T08:30:23.000Z
# Copyright 2017 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
37.69708
119
0.689709