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
e8083dbdd5c4e845ae69cfa8070a3ac9a5978c01
3,660
py
Python
browse/services/util/metatags.py
shinminjeong/arxiv-browse
d8f7101a016ad77d3a188139dcb914cafd9c833a
[ "MIT" ]
61
2019-01-10T21:15:00.000Z
2022-02-21T13:22:22.000Z
browse/services/util/metatags.py
shinminjeong/arxiv-browse
d8f7101a016ad77d3a188139dcb914cafd9c833a
[ "MIT" ]
91
2019-01-14T21:12:06.000Z
2022-03-09T19:52:59.000Z
browse/services/util/metatags.py
shinminjeong/arxiv-browse
d8f7101a016ad77d3a188139dcb914cafd9c833a
[ "MIT" ]
38
2019-01-10T22:01:30.000Z
2022-03-10T23:07:00.000Z
"""Functions to make HTML head metadata tags for DocMetadata.""" import re from datetime import datetime from typing import Union, Dict, List import pytz from flask import url_for from arxiv.util.authors import parse_author_affil_utf from browse.domain.metadata import DocMetadata def meta_tag_metadata(metadata: Do...
33.577982
85
0.626776
e80840d0d3fd7175cd6272259530cd9fb028729e
1,704
py
Python
leetcode/297.serialize-and-deserialize-binary-tree.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
leetcode/297.serialize-and-deserialize-binary-tree.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
leetcode/297.serialize-and-deserialize-binary-tree.py
schio/algorithm_test
c240faca428a9adb2970591338d4792b2f4fb7f3
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=297 lang=python3 # # [297] Serialize and Deserialize Binary Tree # # @lc code=start # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Codec: def serialize(self, ro...
25.058824
60
0.514085
e8084b221b3382957ce1a421058bd8d0b34bba7c
21,174
py
Python
src/sage/geometry/polyhedron/ppl_lattice_polygon.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/geometry/polyhedron/ppl_lattice_polygon.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/polyhedron/ppl_lattice_polygon.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
""" Fast Lattice Polygons using PPL. See :mod:`ppl_lattice_polytope` for the implementation of arbitrary-dimensional lattice polytopes. This module is about the specialization to 2 dimensions. To be more precise, the :class:`LatticePolygon_PPL_class` is used if the ambient space is of dimension 2 or less. These all al...
37.017483
109
0.589497
e808560f6374cc769acc494c07a45abaa571424f
4,530
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/_application_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/_application_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/aio/_application_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 ...
45.3
135
0.7117
e8087662534374ac96a7b95110ef64dfacea7d5d
1,364
py
Python
docs/conf.py
rueberger/observers
f6305d5941919bf5879c3bbba88b115f0d9afe27
[ "MIT" ]
null
null
null
docs/conf.py
rueberger/observers
f6305d5941919bf5879c3bbba88b115f0d9afe27
[ "MIT" ]
null
null
null
docs/conf.py
rueberger/observers
f6305d5941919bf5879c3bbba88b115f0d9afe27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx.ext...
25.259259
71
0.678152
e808a2b73acbd6baa20b57a66c05f6a3cb53631a
1,509
py
Python
test/unit/mocks/analytics_service_mocks.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
1
2020-12-24T10:49:02.000Z
2020-12-24T10:49:02.000Z
test/unit/mocks/analytics_service_mocks.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
test/unit/mocks/analytics_service_mocks.py
nccr-itmo/FedotWeb
763fb1f39ad2b69104b6568e6f941c4c67762e34
[ "BSD-3-Clause" ]
null
null
null
from dataclasses import dataclass from typing import List, Optional, Dict, Iterable import numpy as np from fedot.core.optimisers.fitness import SingleObjFitness from fedot.core.utilities.data_structures import UniqueList from fedot.core.utils import DEFAULT_PARAMS_STUB @dataclass class MockIndividualGraph: node...
20.391892
84
0.711067
e808b7aeddeeb3d5068f983241940fa343360084
4,451
py
Python
lrtc_lib/data_access/processors/process_trec_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
57
2020-11-18T15:13:06.000Z
2022-03-28T22:33:26.000Z
lrtc_lib/data_access/processors/process_trec_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
5
2021-02-23T22:11:07.000Z
2021-12-13T00:13:48.000Z
lrtc_lib/data_access/processors/process_trec_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
14
2021-02-10T08:55:27.000Z
2022-02-23T22:37:54.000Z
# (c) Copyright IBM Corporation 2020. # LICENSE: Apache License 2.0 (Apache-2.0) # http://www.apache.org/licenses/LICENSE-2.0 import os from typing import List, Mapping, Tuple, Sequence from lrtc_lib.data_access.core.data_structs import Document, TextElement, Label from lrtc_lib.data_access.core.utils import URI_SEP ...
47.351064
108
0.662323
e808d4e95ff6c6f53cc67e31561f42c96fc68b05
12,086
py
Python
snake/AI.py
uaiuaief/Machine-Learning-for-Snake-Game
1a36ef4468eea9f80f44fb1b8d115790262320c5
[ "MIT" ]
null
null
null
snake/AI.py
uaiuaief/Machine-Learning-for-Snake-Game
1a36ef4468eea9f80f44fb1b8d115790262320c5
[ "MIT" ]
null
null
null
snake/AI.py
uaiuaief/Machine-Learning-for-Snake-Game
1a36ef4468eea9f80f44fb1b8d115790262320c5
[ "MIT" ]
null
null
null
import os import numpy import random from snake.main import SnakeAPP class Gene: def __init__(self, parent_data=None): self.data = [] if parent_data is None: self.generate() else: self.data = parent_data def generate(self): for _ in range(12): ...
31.721785
146
0.586133
e808f9492a56f5f3a70d40ad617d7a53cc8d0b75
827
py
Python
setup.py
metno/pyromsobs
8479a13908797a5e7370f272a3462b7c6d59e45e
[ "MIT" ]
null
null
null
setup.py
metno/pyromsobs
8479a13908797a5e7370f272a3462b7c6d59e45e
[ "MIT" ]
null
null
null
setup.py
metno/pyromsobs
8479a13908797a5e7370f272a3462b7c6d59e45e
[ "MIT" ]
1
2019-05-24T08:53:28.000Z
2019-05-24T08:53:28.000Z
# -*- coding: utf-8 -*- # ------------------------------------ # setup-file for the pyromsobs package # Ann Kristin Sperrevik, <annksn@met.no> # MET Norway # 2017-05-05 # ------------------------------------ from setuptools import setup setup(name = 'pyromsobs', version = '0.1', description ...
28.517241
75
0.475212
e8093871b889df0ef34ce61780ae02fa8a10cee0
2,791
py
Python
alipay/aop/api/domain/PointLibResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/PointLibResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/PointLibResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class PointLibResult(object): def __init__(self): self._balance = None self._library_id = None self._library_name = None self._status = None self._sum_point = No...
27.633663
75
0.572196
e8093c2051977763dec605747f9e9abb3f5f6266
5,189
py
Python
gpMgmt/bin/gppylib/test/unit/test_unit_compare_segment_guc.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
gpMgmt/bin/gppylib/test/unit/test_unit_compare_segment_guc.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
gpMgmt/bin/gppylib/test/unit/test_unit_compare_segment_guc.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
from mock import * from gp_unittest import * from gpconfig_modules.compare_segment_guc import MultiValueGuc from gpconfig_modules.database_segment_guc import DatabaseSegmentGuc from gpconfig_modules.file_segment_guc import FileSegmentGuc class CompareSegmentGucTest(GpTestCase): def setUp(self): row = ['co...
48.495327
119
0.723068
e8093c6010d6ae96ca84274e81cfcb69e15488ef
6,150
py
Python
resources/lib/elementtree/ElementPath.py
FoxBuru/ampache-xbmc-plugin
dd95c3decfd6e1fb8b94322927521f9834d5e378
[ "MIT" ]
3
2015-01-11T15:11:28.000Z
2015-01-11T15:12:07.000Z
resources/lib/elementtree/ElementPath.py
FoxBuru/ampache-xbmc-plugin
dd95c3decfd6e1fb8b94322927521f9834d5e378
[ "MIT" ]
null
null
null
resources/lib/elementtree/ElementPath.py
FoxBuru/ampache-xbmc-plugin
dd95c3decfd6e1fb8b94322927521f9834d5e378
[ "MIT" ]
null
null
null
# # ElementTree # $Id: ElementPath.py 1858 2004-06-17 21:31:41Z Fredrik $ # # limited xpath support for element trees # # history: # 2003-05-23 fl created # 2003-05-28 fl added support for // etc # 2003-08-27 fl fixed parsing of periods in element names # # Copyright (c) 2003-2004 by Fredrik Lundh. Al...
31.218274
78
0.536911
e809b413e6b2ccd429e0bcf02868dd20332a152f
1,631
py
Python
end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post_some_nullable_object.py
JamesHinshelwood/openapi-python-client
08bc2acf91d50d4fcdd7f0e50a8b0d3f00a187d9
[ "MIT" ]
172
2020-02-15T20:14:16.000Z
2021-06-09T07:09:15.000Z
end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post_some_nullable_object.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
410
2020-02-15T19:39:29.000Z
2021-06-09T19:28:57.000Z
end_to_end_tests/golden-record/my_test_api_client/models/body_upload_file_tests_upload_post_some_nullable_object.py
guioliveirabh/openapi-python-client
d8d9cecffe41c5dc1c43bc667598b90f0d9253ca
[ "MIT" ]
38
2020-04-12T09:36:27.000Z
2021-06-11T08:57:07.000Z
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="BodyUploadFileTestsUploadPostSomeNullableObject") @attr.s(auto_attribs=True) class BodyUploadFileTestsUploadPostSomeNullableObject: """ Attributes: bar (Union[Unset, str]): ...
28.12069
89
0.664623
e809d087d5f17536c3848ef036544abc64cccbc3
1,871
py
Python
sitegate/signup_flows/base.py
idlesign/django-sitegate
ae53fa7f40e9ead0e4201bd7787682a9f1a3a122
[ "BSD-3-Clause" ]
19
2015-04-09T04:56:07.000Z
2019-12-26T03:56:42.000Z
sitegate/signup_flows/base.py
idlesign/django-sitegate
ae53fa7f40e9ead0e4201bd7787682a9f1a3a122
[ "BSD-3-Clause" ]
9
2015-04-19T10:20:07.000Z
2017-05-15T20:29:25.000Z
sitegate/signup_flows/base.py
idlesign/django-sitegate
ae53fa7f40e9ead0e4201bd7787682a9f1a3a122
[ "BSD-3-Clause" ]
4
2015-08-25T18:13:12.000Z
2017-09-17T05:32:25.000Z
from typing import Optional from django.forms import ModelForm from django.http import HttpRequest, HttpResponse from django.shortcuts import redirect from ..flows_base import FlowsBase from ..settings import SIGNUP_ENABLED, SIGNUP_DISABLED_TEXT from ..signals import sig_user_signup_success, sig_user_signup_fail if ...
35.301887
108
0.702298
e809dd45bb23f8b74d14e89313fb82b4641c1121
31,219
py
Python
vta/python/vta/ir_pass.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
1
2019-08-13T09:01:54.000Z
2019-08-13T09:01:54.000Z
vta/python/vta/ir_pass.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
null
null
null
vta/python/vta/ir_pass.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
1
2019-12-03T13:53:44.000Z
2019-12-03T13:53:44.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...
36.728235
94
0.530542
e809debfd35e119b1454e9f3e7169d7ce0fdfcd5
7,150
py
Python
tests/test_parser.py
sco1/scan-splitter
8f953abd0877fb9db12fcbf9db69629ee985de00
[ "MIT" ]
null
null
null
tests/test_parser.py
sco1/scan-splitter
8f953abd0877fb9db12fcbf9db69629ee985de00
[ "MIT" ]
null
null
null
tests/test_parser.py
sco1/scan-splitter
8f953abd0877fb9db12fcbf9db69629ee985de00
[ "MIT" ]
null
null
null
import itertools from textwrap import dedent import click import pytest from src import parser LINE_CLEANER_TEST_CASES = [ ( # Short-circuit on comment "1 ***** Body Fat / Fitness: *****", "***** Body Fat / Fitness: *****", ), ( # Swap tabs for spaces "1 AbdomenBack 5.6 7.8 ...
25.62724
100
0.531189
e80a09949f3fbca6353d3ebc369003b0ce8da959
1,616
py
Python
python/fundamentals/graphs/graph_adjacent_matrix.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/fundamentals/graphs/graph_adjacent_matrix.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/fundamentals/graphs/graph_adjacent_matrix.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('Console') log.setLevel(logging.INFO) consoleHandler = logging.StreamHandler() consoleHandler.name = 'SystemOut' consoleHandler.setLevel(logging.INFO) consoleHandler.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')) log.addHandler(consoleHandler) vis...
21.263158
91
0.595297
e80a448395a989d2f2f94b1c20e579d053708ca7
2,983
py
Python
prosper/datareader/intrinio/auth.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
null
null
null
prosper/datareader/intrinio/auth.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
14
2017-08-14T02:25:42.000Z
2018-11-16T19:15:52.000Z
prosper/datareader/intrinio/auth.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
null
null
null
"""prosper.datareader.intrinio.auth: handle authentication/validation""" import requests from .. import exceptions from .. import config BASE_URL = 'https://api.intrinio.com/' class IntrinioHelper(object): """parent class for handling requests to Intrininio Notes: See https://intrinio.com/account fo...
28.409524
77
0.601073
e80ae67eb055e5a288071485d196ced3fc127165
5,491
py
Python
numba/tests/npyufunc/test_errors.py
PABannier/numba
63bb6c38b592bacf3828f7df55428e5b43f4d1f3
[ "BSD-2-Clause" ]
null
null
null
numba/tests/npyufunc/test_errors.py
PABannier/numba
63bb6c38b592bacf3828f7df55428e5b43f4d1f3
[ "BSD-2-Clause" ]
1
2020-07-28T20:47:24.000Z
2020-07-28T20:47:24.000Z
numba/tests/npyufunc/test_errors.py
PABannier/numba
63bb6c38b592bacf3828f7df55428e5b43f4d1f3
[ "BSD-2-Clause" ]
null
null
null
import contextlib import sys import numpy as np from numba import vectorize, guvectorize from numba.tests.support import (TestCase, CheckWarningsMixin, skip_m1_fenv_errors) import unittest def sqrt(val): if val < 0.0: raise ValueError('Value must be positive') retur...
31.377143
72
0.557822
e80b28bcf3d6584c9e53582b5d11380738ca8a83
13,527
py
Python
abstar/utils/regions.py
gfinak/abstar
dde92f8cd8ddda84e98b53062fc39a7d103d9fba
[ "MIT" ]
1
2020-03-04T10:06:36.000Z
2020-03-04T10:06:36.000Z
abstar/utils/regions.py
shulp2211/abstar
9641ccfb792f72cc8cdd8a59ae2d43bc3620d38a
[ "MIT" ]
1
2019-02-28T21:15:10.000Z
2019-02-28T21:15:10.000Z
abstar/utils/regions.py
shulp2211/abstar
9641ccfb792f72cc8cdd8a59ae2d43bc3620d38a
[ "MIT" ]
1
2019-02-28T18:56:57.000Z
2019-02-28T18:56:57.000Z
#!/usr/bin/python # filename: regions.py # # Copyright (c) 2015 Bryan Briney # License: The MIT license (http://opensource.org/licenses/MIT) # # 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 w...
49.01087
126
0.615732
e80b42b18cc8a52021cac7b1bd44a8840f408ea6
713
py
Python
setup.py
JoelLefkowitz/walker
a6019cd15425df807dc368716aa5f868a11fe139
[ "MIT" ]
2
2021-02-03T02:32:30.000Z
2021-08-03T17:34:11.000Z
setup.py
JoelLefkowitz/walker
a6019cd15425df807dc368716aa5f868a11fe139
[ "MIT" ]
1
2021-06-02T04:08:24.000Z
2021-06-02T04:08:24.000Z
setup.py
JoelLefkowitz/walkmate
a6019cd15425df807dc368716aa5f868a11fe139
[ "MIT" ]
null
null
null
from setuptools import setup if __name__ == "__main__": setup( install_requires=[], console_scripts=[], extras_require={ "tests": [ "pytest-bdd", "pytest-cov", "pytest-html", "pytest-sugar", "pytest-...
23
31
0.319776
e80b826dd3c142bf42e156cfa5e619ae958dfef1
1,447
py
Python
tests/integration/modules/grains.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2016-07-07T18:43:05.000Z
2016-07-07T18:43:05.000Z
tests/integration/modules/grains.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/grains.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Test the grains module ''' import integration class TestModulesGrains(integration.ModuleCase): ''' Test the grains module ''' def test_items(self): ''' grains.items ''' opts = self.minion_opts self.assertEqual( self.run_function('grains.items')['...
22.261538
75
0.475466
e80b9881f5ee5229bfe9251fde2d6124ef87084d
1,137
py
Python
nova_rover_demos/pathfinding/pledge_family/labyrinth.py
matthomas15/novaRoverDemos
1c5386edb7c4061f663a2eaa802becb8936af237
[ "MIT" ]
11
2019-09-19T07:39:47.000Z
2021-09-14T05:48:22.000Z
nova_rover_demos/pathfinding/pledge_family/labyrinth.py
matthomas15/novaRoverDemos
1c5386edb7c4061f663a2eaa802becb8936af237
[ "MIT" ]
8
2019-09-19T11:43:09.000Z
2020-12-11T07:41:50.000Z
nova_rover_demos/pathfinding/pledge_family/labyrinth.py
JmcRobbie/novaRoverDemos
b6a39b3607ba3f3e81fd3afd2600778fcaa85e5a
[ "MIT" ]
9
2019-08-19T06:32:02.000Z
2020-07-31T05:09:14.000Z
import numpy as np class Labyrinth: def __init__(self, walls, start, end): self.walls = walls self.walls_dict = self.read_walls_to_dict() self.start_pos = tuple(start) self.goal = tuple(end) self.directions = [0, 1, 2, 3] self.movements = np.array([ [1,0], [0,1], ...
28.425
74
0.587511
e80ba17096fbd5d2439f01564a073c3b7e849b73
38
py
Python
profile/__init__.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
57
2015-02-01T21:03:34.000Z
2021-12-25T12:02:31.000Z
profile/__init__.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
6
2016-02-05T11:43:32.000Z
2019-09-05T13:38:49.000Z
profile/__init__.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
17
2015-05-12T08:53:23.000Z
2021-12-21T15:56:30.000Z
# hello, we do some profiling in here
19
37
0.736842
e80bb201fa03fcf94519a34309e21a5cb318106f
372
py
Python
webapp/core/migrations/0002_auto_20200128_1312.py
lucassouto/grua
3177ada381803ec0a6ac300aae674b1480fb12f0
[ "Apache-2.0" ]
null
null
null
webapp/core/migrations/0002_auto_20200128_1312.py
lucassouto/grua
3177ada381803ec0a6ac300aae674b1480fb12f0
[ "Apache-2.0" ]
null
null
null
webapp/core/migrations/0002_auto_20200128_1312.py
lucassouto/grua
3177ada381803ec0a6ac300aae674b1480fb12f0
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.5 on 2020-01-28 13:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("core", "0001_initial")] operations = [ migrations.AlterField( model_name="configurationparameter", name="raw_value", ...
21.882353
48
0.626344
e80bf959e94805f9db76f9106fdd752fc8814a2f
9,338
py
Python
input_pipeline.py
ahzz1207/ALBERT-TINYBERT
d7065a8c7316fd46bc6855ed238c45533e926c0e
[ "Apache-2.0" ]
12
2020-03-06T10:30:17.000Z
2022-03-23T02:18:25.000Z
input_pipeline.py
ahzz1207/ALBERT-TINYBERT
d7065a8c7316fd46bc6855ed238c45533e926c0e
[ "Apache-2.0" ]
5
2020-09-25T19:09:32.000Z
2022-02-09T23:36:28.000Z
input_pipeline.py
ahzz1207/ALBERT-TINYBERT
d7065a8c7316fd46bc6855ed238c45533e926c0e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.909091
134
0.684729
e80bf9ee4272c832f1ab53e6bf2b1f0cf6faafee
27,295
py
Python
tensorflow/python/ops/distributions/transformed_distribution.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/ops/distributions/transformed_distribution.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/ops/distributions/transformed_distribution.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.916667
88
0.699139
e80c1c51e041a9c05a8bf57d1c0a9a0da7cc39fc
1,709
py
Python
tests/parser_files/upload.py
gtsueng/outbreak_parser_tools
f97d0268e80edd62303b1aec08c5a907115b5567
[ "CC0-1.0" ]
null
null
null
tests/parser_files/upload.py
gtsueng/outbreak_parser_tools
f97d0268e80edd62303b1aec08c5a907115b5567
[ "CC0-1.0" ]
null
null
null
tests/parser_files/upload.py
gtsueng/outbreak_parser_tools
f97d0268e80edd62303b1aec08c5a907115b5567
[ "CC0-1.0" ]
1
2022-01-26T19:28:48.000Z
2022-01-26T19:28:48.000Z
import biothings.hub.dataload.uploader import biothings import config import requests biothings.config_for_app(config) MAP_URL = "https://raw.githubusercontent.com/SuLab/outbreak.info-resources/master/outbreak_resources_es_mapping.json" MAP_VARS = ["@type", "author", "curatedBy", "dateModified", "datePublished", "des...
34.18
196
0.629023
e80c410de24194641340319b23c0a432b5d9bdc2
263
py
Python
app/inner_app/inner_inner_app/arms.py
magicalcarpet/python_modules_and_packages
663a957674c41d0dc33e3f6ca7eefe4c808606b4
[ "MIT" ]
null
null
null
app/inner_app/inner_inner_app/arms.py
magicalcarpet/python_modules_and_packages
663a957674c41d0dc33e3f6ca7eefe4c808606b4
[ "MIT" ]
null
null
null
app/inner_app/inner_inner_app/arms.py
magicalcarpet/python_modules_and_packages
663a957674c41d0dc33e3f6ca7eefe4c808606b4
[ "MIT" ]
null
null
null
from legs import how_many_legs # from ..wheels import how_many_wheels # from pkg1.import module1 import fun1 from inner_app.wheels import how_many_wheels def how_many_arms(): print('I have two arms') how_many_legs() # how_many_wheels() print(__name__)
16.4375
44
0.771863
e80c6b0eda29cc9bacd16edb9484e4bc08b6fbcb
3,369
py
Python
HRI/TFVT_HRI/baselines/r2plus1d/train.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
146
2020-12-08T11:51:38.000Z
2022-03-23T12:58:43.000Z
HRI/TFVT_HRI/baselines/r2plus1d/train.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
10
2020-12-23T03:00:31.000Z
2022-03-23T09:55:30.000Z
HRI/TFVT_HRI/baselines/r2plus1d/train.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
43
2020-12-21T09:40:39.000Z
2022-03-31T06:41:32.000Z
import os import sys import argparse sys.path.append( os.path.realpath(os.path.join(os.path.dirname(__file__), '../..'))) from baselines.r2plus1d.dataset import FramesDataset from baselines.r2plus1d.model import R2plus1D def parse_args(): parser = argparse.ArgumentParser( description='Train R2plus1D...
34.731959
89
0.647373
e80c8900a7339ce68c790889d0fef7c88d7bae5c
12,969
py
Python
frappe/model/rename_doc.py
ibgadmin/frappe
bfe8ca8847817fed44dbfc279e0a23aebf17fc4b
[ "MIT" ]
null
null
null
frappe/model/rename_doc.py
ibgadmin/frappe
bfe8ca8847817fed44dbfc279e0a23aebf17fc4b
[ "MIT" ]
null
null
null
frappe/model/rename_doc.py
ibgadmin/frappe
bfe8ca8847817fed44dbfc279e0a23aebf17fc4b
[ "MIT" ]
1
2018-03-21T16:13:12.000Z
2018-03-21T16:13:12.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import cint from frappe.model.naming import validate_name from frappe.model.dynamic_links import get_dynamic_link_map from fra...
33.861619
130
0.692575
e80c904451d87cfb021336b8b3453f841fc31f6a
125
py
Python
skorecard/rescale/__init__.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
31
2021-06-10T13:35:07.000Z
2022-03-30T12:34:26.000Z
skorecard/rescale/__init__.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
50
2021-06-10T10:56:34.000Z
2022-01-26T18:23:31.000Z
skorecard/rescale/__init__.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
2
2021-09-09T00:44:17.000Z
2021-09-24T17:08:32.000Z
from .rescale import calibrate_to_master_scale, ScoreCardPoints __all__ = ["calibrate_to_master_scale", "ScoreCardPoints"]
25
63
0.832
e80c9666f415166e3aa7483d2fff2e87a58cf483
569
py
Python
scripts/examples/tools/depends.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
21
2019-10-24T04:59:52.000Z
2021-05-11T12:47:17.000Z
scripts/examples/tools/depends.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
null
null
null
scripts/examples/tools/depends.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
9
2019-10-26T16:56:08.000Z
2021-03-15T14:10:21.000Z
# Tool Imports from bph.tools.windows.depends import BphDepends as Depends # Core Imports from bph.core.server.template import BphTemplateServer as TemplateServer from bph.core.session import BphSession as Session from bph.core.sample import BphLabFile as LabFile session = Session(project_name='blackhat_arsen...
28.45
73
0.797891
e80ca8cfad657a727b35f9f936f13afac531bc25
12,945
py
Python
src/bloombox/schema/partner/PartnerLocation_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/partner/PartnerLocation_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/partner/PartnerLocation_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: partner/PartnerLocation.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import refl...
74.82659
1,882
0.794979
e80cc2064773b0cf973434e0efd8dc10b1cd0751
4,836
py
Python
experiments/ashvin/vae/reacher2d_close/test_vae_goal.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/reacher2d_close/test_vae_goal.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/reacher2d_close/test_vae_goal.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.multitask.multitask_env import MultitaskToFlatEnv from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv from rlkit.envs.mujoco.pusher2d import Pusher2DEnv from rlkit.envs.wrappers import NormalizedBoxEnv from rlkit.exploration_strategies.base import ( PolicyWrappedWithExplorationStrategy...
33.351724
105
0.662738
e80d25c5355ba912680a62a44f24dbc85d4a047e
180
py
Python
tests/integration/roots/test-kitchensink/kaybee_plugins/kitchensink_toctree.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
tests/integration/roots/test-kitchensink/kaybee_plugins/kitchensink_toctree.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
tests/integration/roots/test-kitchensink/kaybee_plugins/kitchensink_toctree.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
from kaybee.app import kb from kaybee.plugins.articles.base_toctree import BaseToctree @kb.toctree(context='kitchensink', system_order=40) class MyToctree(BaseToctree): pass
22.5
60
0.805556
e80d268312e31af658dc5d79050c4c07d96aeebb
5,654
py
Python
tests/archive/dbtests.py
dvanderweele/Cutesy_MVC
6e073adc34ef1deb4932dae018f3561176db9e8f
[ "MIT" ]
null
null
null
tests/archive/dbtests.py
dvanderweele/Cutesy_MVC
6e073adc34ef1deb4932dae018f3561176db9e8f
[ "MIT" ]
null
null
null
tests/archive/dbtests.py
dvanderweele/Cutesy_MVC
6e073adc34ef1deb4932dae018f3561176db9e8f
[ "MIT" ]
null
null
null
from datetime import datetime from cutesy_mvc.helpers import migrate, path from cutesy_mvc.helpers.db import Where, Table def getNixTs(): return datetime.now().timestamp() def nixTsToDateTime(ts): return datetime.fromtimestamp(ts) def hyphenatedTsStr(): parts = str(datetime.now().timestamp()).split('.') re...
21.416667
102
0.574814
e80d42b5a880e96068390d6a6e3a39aeaa0690a3
746
py
Python
misc/converters/dot_to_png.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
14
2021-06-01T16:45:19.000Z
2022-03-08T20:07:00.000Z
misc/converters/dot_to_png.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
null
null
null
misc/converters/dot_to_png.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
3
2021-08-05T16:37:47.000Z
2022-01-06T00:25:49.000Z
#Copyright (c) Facebook, Inc. and its affiliates. #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 sys import pygraphviz as pgv from sys import argv def converter(): file = sys.argv[1] hardware_dot_graph = pgv.AGraph(fi...
31.083333
112
0.725201
e80d4c3914d6352b1fd6e15847a4afb1b8f5904a
26,867
py
Python
data/raw/sub04.py
Amyunimus/catatt
94c022007d4f8246d7da56148b1ef78d0679d11d
[ "MIT" ]
null
null
null
data/raw/sub04.py
Amyunimus/catatt
94c022007d4f8246d7da56148b1ef78d0679d11d
[ "MIT" ]
null
null
null
data/raw/sub04.py
Amyunimus/catatt
94c022007d4f8246d7da56148b1ef78d0679d11d
[ "MIT" ]
null
null
null
Welcome to PsychoPy2! v1.83.04 () ################ Running: F:\users\emiwar\edited_new\catAtt.py ################# COM1 Serial<id=0x5246810, open=True>(port='COM1', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=2.5, xonxoff=False, rtscts=False, dsrdtr=False) 492 1 False [('b', 1.0746566760026042)]...
27.248479
154
0.682138
e80d93ae05487cbcc3a9d18106c80a31d7f4a878
1,628
py
Python
python/fundamentals/graphs/graph_common.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/fundamentals/graphs/graph_common.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/fundamentals/graphs/graph_common.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple from collections.abc import Mapping, Sequence class GraphNode: def __init__(self, value): self.value = value self.visited = False self.adjacent:[GraphNode] = [] class Graph: def __init__(self): self.nodes: [GraphNode] = [] self.weights:[[int]] = [] ...
30.148148
84
0.648034
e80ddd8f26def5671f8731ac74e8b575b3a0ac7c
1,667
py
Python
nexus/templatetags/nexus_helpers.py
Raekkeri/nexus
eeb3ac0870bc79473f37d7ecb2290c3da6dc6097
[ "Apache-2.0" ]
null
null
null
nexus/templatetags/nexus_helpers.py
Raekkeri/nexus
eeb3ac0870bc79473f37d7ecb2290c3da6dc6097
[ "Apache-2.0" ]
null
null
null
nexus/templatetags/nexus_helpers.py
Raekkeri/nexus
eeb3ac0870bc79473f37d7ecb2290c3da6dc6097
[ "Apache-2.0" ]
1
2021-11-18T13:03:26.000Z
2021-11-18T13:03:26.000Z
from django import template from django.core.urlresolvers import reverse from django.utils.datastructures import SortedDict from nexus import conf from nexus.modules import NexusModule register = template.Library() def nexus_media_prefix(): return conf.MEDIA_PREFIX.rstrip('/') register.simple_tag(nexus_media_pre...
29.245614
91
0.634673
e80decc7d0d656ba519b0ce89537cc79feb5de8d
5,086
py
Python
PythonProjects/99-CapstoneProject-202020c/labs/lab6_camera.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020c/labs/lab6_camera.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020c/labs/lab6_camera.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Capstone Team Project. Code to run on a ROBOT (NOT a laptop). This module is for testing STAND-ALONE code running on the ROBOT (WITHOUT having LAPTOP GUI code running on the LAPTOP at the same time). Authors: Your professors (for the framework) and PUT_YOUR_NAME_HERE. Winter term, 2019-2020. """ # TODO: 1. ...
41.016129
100
0.4884
e80e4aeee8b274b877b6c9db2dad704d4261890b
1,708
py
Python
misc/convert_case.py
thejoltjoker/python
4517065e64d83947648e2aad206ac4ec786b166e
[ "MIT" ]
null
null
null
misc/convert_case.py
thejoltjoker/python
4517065e64d83947648e2aad206ac4ec786b166e
[ "MIT" ]
null
null
null
misc/convert_case.py
thejoltjoker/python
4517065e64d83947648e2aad206ac4ec786b166e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ convert_case.py Description of convert_case.py. """ import argparse def convert_string_case(input_string): if input_string.upper: return input_string.input.upper() elif input_string.lower: return input_string.input.lower() elif input_string...
27.548387
67
0.563232
e80e4c5d15cd3253fadb855a82538abd46c359a5
4,428
py
Python
mslib/utils/__init__.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
33
2020-12-04T04:29:28.000Z
2022-03-05T17:11:49.000Z
mslib/utils/__init__.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
614
2020-12-06T16:54:44.000Z
2022-03-31T07:41:02.000Z
mslib/utils/__init__.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
51
2020-12-04T15:10:46.000Z
2022-03-20T02:02:11.000Z
# -*- coding: utf-8 -*- """ mslib.utils ~~~~~~~~~~~~~~ Collection of utility routines for the Mission Support System. This file is part of mss. :copyright: Copyright 2008-2014 Deutsches Zentrum fuer Luft- und Raumfahrt e.V. :copyright: Copyright 2011-2014 Marc Rautenhaus (mr) :copyright:...
34.59375
119
0.66215
e80e767c8b67eed4248c33eef33b6667f87de989
1,799
py
Python
torchdata/datapipes/iter/util/cycler.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
611
2021-09-27T18:19:16.000Z
2022-03-31T11:36:01.000Z
torchdata/datapipes/iter/util/cycler.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
271
2021-09-27T19:07:00.000Z
2022-03-30T19:55:14.000Z
torchdata/datapipes/iter/util/cycler.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. from typing import Iterator, Optional, TypeVar from torchdata.datapipes import functional_datapipe from torchd...
34.596154
112
0.654808
e80e974012471a9ff0f82c8170eb8359aa085622
569
py
Python
tests/test_utils.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/test_utils.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/test_utils.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
import pytest from pandas import DataFrame from datar.utils import * def test_head_tail(): df = DataFrame(range(20), columns=['x']) z = df >> head() assert z.shape[0] == 6 z = df >> head(3) assert z.shape[0] == 3 z = list(range(10)) >> head() assert len(z) == 6 with pytest.raises(NotIm...
22.76
44
0.56239
e80eb8f8a400e88defcebe9604a162d92ee86011
12,242
py
Python
kopf/reactor/observation.py
ankitdobhal/kopf
2765eda2a08e7e42195446cc23f02ba91603db53
[ "MIT" ]
null
null
null
kopf/reactor/observation.py
ankitdobhal/kopf
2765eda2a08e7e42195446cc23f02ba91603db53
[ "MIT" ]
null
null
null
kopf/reactor/observation.py
ankitdobhal/kopf
2765eda2a08e7e42195446cc23f02ba91603db53
[ "MIT" ]
null
null
null
""" Keeping track of the cluster setup: namespaces, resources (custom and builtin). The outcome of observation are "insights" -- a description of the cluster setup, including the "backbone" -- core resources to be used by the operator/framework. The resource specifications can be partial or even fuzzy (e.g. by catego...
48.19685
100
0.695883
e80ed23575cff0aa45b506bac11167ecb86f5895
2,355
py
Python
parity.py
merlinlikethewizard/DataTransfer
84645e55f56888dc0036a885fafffeaba1221a3a
[ "MIT" ]
null
null
null
parity.py
merlinlikethewizard/DataTransfer
84645e55f56888dc0036a885fafffeaba1221a3a
[ "MIT" ]
null
null
null
parity.py
merlinlikethewizard/DataTransfer
84645e55f56888dc0036a885fafffeaba1221a3a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from compression_utility import * from numpy import matrix G = matrix([[1, 1, 1, 0, 0, 0, 0], [1, 0, 0, 1, 1, 0, 0], [0, 1, 0, 1, 0, 1, 0], [1, 1, 0, 1, 0, 0, 1]]) def getCodeWord(data): ''' Takes four bits of data, returns the corresponding code ...
28.719512
78
0.582166
e80ee313f89df159ca62942637b682883dcb68a1
37,163
py
Python
core/controllers/suggestion_test.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
3
2021-06-26T09:45:19.000Z
2021-11-17T11:11:39.000Z
core/controllers/suggestion_test.py
import-keshav/oppia
899b9755a6b795a8991e596055ac24065a8435e0
[ "Apache-2.0" ]
4
2019-08-15T10:49:21.000Z
2022-03-02T05:10:20.000Z
core/controllers/suggestion_test.py
grishamjindal/oppia
3a29329a446e30b3b70641cf0286e23fad85418f
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
39.077813
111
0.603961
e80efa1b5c5422424226cb818c85e6d6e7097f01
2,322
py
Python
pixel_table/sprites/sprite.py
Spooner/pixel-table
87ac04adbb74702bee3dcaa5c6bded7786cf73e7
[ "MIT" ]
null
null
null
pixel_table/sprites/sprite.py
Spooner/pixel-table
87ac04adbb74702bee3dcaa5c6bded7786cf73e7
[ "MIT" ]
null
null
null
pixel_table/sprites/sprite.py
Spooner/pixel-table
87ac04adbb74702bee3dcaa5c6bded7786cf73e7
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from ..mixins.handles_events import HandlesEvents class Sprite(HandlesEvents): def __init__(self, x, y, width=1, height=1, color=(1.0, 1.0, 1.0)): self._x, self._y = x, y self._width, self._height = width, height ...
26.689655
110
0.593885
e80f0525a7726787d7b82b52bf4005a488590286
1,698
py
Python
tests/test_saver.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
null
null
null
tests/test_saver.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
null
null
null
tests/test_saver.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
null
null
null
import numpy as np import dynesty import os import multiprocessing as mp """ Run a series of basic tests to check whether anything huge is broken. """ # seed the random number generator np.random.seed(5647) nlive = 100 printing = False # EGGBOX # see 1306.2144 def loglike_egg(x): logl = ((2 + np.cos(x[0] / 2)...
27.387097
69
0.462898
e80f654c6b95c7502abb64d25f4275fb876df3c4
539
py
Python
setup.py
mvabdi/vsco-scraper
c95bcc0a8f434144dd80754e9ee0524a916a6141
[ "MIT" ]
94
2018-01-24T20:49:04.000Z
2022-03-20T12:26:30.000Z
setup.py
mvabdi/vsco-scraper
c95bcc0a8f434144dd80754e9ee0524a916a6141
[ "MIT" ]
22
2018-04-09T21:33:20.000Z
2022-03-28T23:22:11.000Z
setup.py
mvabdi/vsco-scraper
c95bcc0a8f434144dd80754e9ee0524a916a6141
[ "MIT" ]
25
2018-02-14T01:38:56.000Z
2021-12-27T22:11:21.000Z
from setuptools import find_packages, setup setup( name="vsco-scraper", version="0.53", description="Scrape a user's VSCO profile data", author="Mustafa Abdi", author_email="mustafabyabdi@gmail.com", packages=find_packages(), url="https://github.com/mvabdi/vsco-scraper", install_requir...
23.434783
52
0.634508
e80f75382e27b9bf6474f51b6ab51edab9abac34
22,166
py
Python
appengine/findit/findit_v2/services/test/chromium_api_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/findit_v2/services/test/chromium_api_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/findit_v2/services/test/chromium_api_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import hashlib import mock from go.chromium.org.luci.buildbucket.proto.build_pb2 import Build from go.chromium.org.luci.buildbucket.proto.common_pb2 import ...
34.580343
80
0.495128
e80fac8934a1132cddf707cb45172461dbbbc884
2,380
py
Python
setup.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
null
null
null
setup.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
null
null
null
setup.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # """PyPI Package definition for greentea-host (htrun).""" import os from io import open from distutils.core import setup from setuptools import find_packages DESCRIPTION = ( "greentea-host (htrun) is a ...
30.512821
77
0.672269
e80fb10d86a32ebe060352ab8cc14774b8783c33
4,244
py
Python
Tools/SeeDot/seedot/compiler/ast/printAST.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
1
2020-03-26T17:19:54.000Z
2020-03-26T17:19:54.000Z
Tools/SeeDot/seedot/compiler/ast/printAST.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
2
2020-03-26T02:59:12.000Z
2020-04-23T19:09:00.000Z
Tools/SeeDot/seedot/compiler/ast/printAST.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
3
2020-03-25T18:45:39.000Z
2020-12-17T19:09:54.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. ''' PrintAST can be used to print the generated AST for a given SeeDot program. ''' from seedot.compiler.antlr.seedotParser import seedotParser as SeeDotParser import seedot.compiler.ast.ast as AST from seedot.compiler.ast....
36.904348
107
0.645617
e80fd58dbccea369b8f7058c3b296533b0fc1db7
565
py
Python
problem13.py
hubenjm/projecteuler
544596a6693a2e64a88e1d4606ce85480486dab5
[ "MIT" ]
null
null
null
problem13.py
hubenjm/projecteuler
544596a6693a2e64a88e1d4606ce85480486dab5
[ "MIT" ]
null
null
null
problem13.py
hubenjm/projecteuler
544596a6693a2e64a88e1d4606ce85480486dab5
[ "MIT" ]
null
null
null
import time from math import ceil, log10 def get_numbers(): """ Returns list of numbers in data file """ filename = "problem13-data.txt" text_file = open(filename, "r") lines = text_file.readlines() text_file.close() L = [int(lines[i]) for i in range(len(lines))] return L def test(): L = get_numbers() pri...
18.225806
50
0.644248
e80fe78d43426a434567578d44a82ea58c7fb56d
164,428
py
Python
pypeit/core/coadd.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/core/coadd.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/core/coadd.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Coadding module. .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ import os import sys from pkg_resources import resource_filename from IPython import embed import numpy as np import scipy import matplotlib.pyplot as plt from matplotlib.ticker import...
51.625746
157
0.658866
e80ffaecdc71191f85163fc219cc570dd5af948c
3,350
py
Python
Tools/BuildSlaveSupport/ews-app/ews/views/submittoews.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/BuildSlaveSupport/ews-app/ews/views/submittoews.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/BuildSlaveSupport/ews-app/ews/views/submittoews.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2019-2020 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 ...
47.857143
153
0.727761
e80ffd8549d9454c3cbff177d39ae6e2ee5ff271
2,928
py
Python
tests/test_virtualization.py
funzoneq/pynetbox
d30984835b5a6264f6a8d859e1c6c43613bf2f1a
[ "Apache-2.0" ]
null
null
null
tests/test_virtualization.py
funzoneq/pynetbox
d30984835b5a6264f6a8d859e1c6c43613bf2f1a
[ "Apache-2.0" ]
null
null
null
tests/test_virtualization.py
funzoneq/pynetbox
d30984835b5a6264f6a8d859e1c6c43613bf2f1a
[ "Apache-2.0" ]
null
null
null
import unittest import six from .util import Response import pynetbox if six.PY3: from unittest.mock import patch else: from mock import patch api = pynetbox.api( "http://localhost:8000", version='2.0' ) nb = api.virtualization HEADERS = { 'accept': 'application/json; version=2.0;' } class G...
26.378378
63
0.527322
e810007fa3df47b1b6aae840da5c7116fe119be2
1,643
py
Python
synapse/register_plugin.py
mrmuxl/synapse-agent
615ccc8faefa0f7d66d070a7444fe57e67e3bae1
[ "MIT" ]
1
2016-06-23T05:56:53.000Z
2016-06-23T05:56:53.000Z
synapse/register_plugin.py
mrmuxl/synapse-agent
615ccc8faefa0f7d66d070a7444fe57e67e3bae1
[ "MIT" ]
null
null
null
synapse/register_plugin.py
mrmuxl/synapse-agent
615ccc8faefa0f7d66d070a7444fe57e67e3bae1
[ "MIT" ]
null
null
null
import sys import imp import os import ConfigParser import StringIO import logging from synapse.config import config registry = {} log = logging.getLogger('synapse.register_plugin') def register(mapping, cls): name = cls.__resource__ if not name in registry: path = os.path.dirname( ...
28.327586
75
0.644553
e8100ec17d7798352bbedbe45ecfd334cfd28b9d
7,649
py
Python
saf/common/timeintegration/tests/test_tvdrk3timeintegrator.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/common/timeintegration/tests/test_tvdrk3timeintegrator.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/common/timeintegration/tests/test_tvdrk3timeintegrator.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
import numpy as np import numpy.testing as npt from numpy import (cos, exp, log, pi, sin, sqrt) from ..tvdrk3timeintegrator import TVDRK3TimeIntegrator class TestTVDRK3TimeIntegrator: def test__exponential_growth__works_ok(self): rhs = lambda y: y dt = 0.1 tfinal = 1.0 t = 0.0 ...
28.018315
79
0.524121
e8102e52b358884d778c412db622b2b1d3836461
4,015
py
Python
alipay/aop/api/request/AlipayFundJointaccountFundplanCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayFundJointaccountFundplanCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayFundJointaccountFundplanCreateRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayFundJointaccountFundplanCreateModel import AlipayFundJointaccountFundplanCreateModel class AlipayFundJointaccountFundplanCreat...
27.689655
148
0.648568
e810a55eba4cf7dd26163f3edd9f0ff1ffdd49cc
105
py
Python
IORN_install/install/iorn/modules/__init__.py
NineSwordAlone/-IORN-An-Effective-Remote-Sensing-Image-Scene-Classification-Framework
82e05ee218a241bccb5b86b7d90ce87df729ae4e
[ "Apache-2.0" ]
15
2018-12-14T14:01:46.000Z
2022-01-04T07:36:54.000Z
IORN_install/install/iorn/modules/__init__.py
NineSwordAlone/ImprovedOrientatedResponseNetwork
82e05ee218a241bccb5b86b7d90ce87df729ae4e
[ "Apache-2.0" ]
2
2019-01-22T03:04:52.000Z
2019-12-20T02:45:14.000Z
IORN_install/install/iorn/modules/__init__.py
NineSwordAlone/ImprovedOrientatedResponseNetwork
82e05ee218a241bccb5b86b7d90ce87df729ae4e
[ "Apache-2.0" ]
2
2020-04-16T05:01:34.000Z
2021-05-15T08:22:26.000Z
from .ORConv import ORConv2d from .ORConv import ORBatchNorm2d __all__ = ['ORConv2d','ORBatchNorm2d']
26.25
38
0.771429
e810b0cc4163ce6d74cc1818f9672d0c15ebe24b
492
py
Python
sudoku_solver/ui/loop.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/ui/loop.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/ui/loop.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
import tkinter from sudoku_solver.shared.puzzle import SudokuPuzzle from sudoku_solver.ui.ui_constants import WIDTH, BUTTONS_WIDTH, HEIGHT from sudoku_solver.ui.ui import SudokuUI def run_ui_loop(sudoku_ui: SudokuUI): sudoku_ui.tk.geometry(f'{WIDTH + BUTTONS_WIDTH}x{HEIGHT}') sudoku_ui.tk.mainloop() def in...
28.941176
70
0.778455
e810ba0d88c4fc6e16ea7ebe413af2fcb4a054b7
1,170
py
Python
external/snake-0.3/snake/body.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
67
2015-01-25T18:33:39.000Z
2022-02-17T17:50:00.000Z
external/snake-0.3/snake/body.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
20
2015-01-25T05:29:30.000Z
2018-05-14T02:07:03.000Z
external/snake-0.3/snake/body.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
39
2015-01-22T16:32:11.000Z
2022-02-17T08:17:09.000Z
""" Implementation of the class `Body`. """ import numpy class Body(object): """ Contains information about an immersed body. """ def __init__(self, file_path=None, label=None): """ Reads the body coordinates from given file. Only works with two-dimensional bodies for now. Parameters -...
22.941176
72
0.635043
e810d0bdb7f4dccfddb0bc0b774d897ce16544d7
520
py
Python
models/models/participant.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
models/models/participant.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
models/models/participant.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
from typing import Optional, Dict, Any import json from pydantic import BaseModel class ParticipantModel(BaseModel): """Update participant model""" id: int external_id: str = None reported_sex: Optional[int] = None reported_gender: Optional[str] = None karyotype: Optional[str] = None meta...
24.761905
60
0.646154
e81191510a2ebafc4081769c9ed244ecea2fa99c
196
py
Python
app/time_utils.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
5
2018-03-19T19:04:53.000Z
2021-02-19T16:44:04.000Z
app/time_utils.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
6
2020-04-18T16:14:22.000Z
2021-08-14T09:23:16.000Z
app/time_utils.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
1
2021-01-10T18:47:38.000Z
2021-01-10T18:47:38.000Z
import pendulum def ts_to_utc(ts): return ts def rfc_3339_to_local_string(string): dt = pendulum.parse(string) local = dt.in_timezone("local") return local.strftime("%c")
21.777778
38
0.678571
e8119915290eb992113b15662807d985d7a51da2
6,760
py
Python
lib/layers.py
masadcv/ECONet-MONAILabel
284c83bf9f772932df2e1e39a9bddc0ecee514e2
[ "Apache-2.0" ]
4
2022-03-17T22:07:13.000Z
2022-03-27T22:02:53.000Z
lib/layers.py
masadcv/ECONet-MONAILabel
284c83bf9f772932df2e1e39a9bddc0ecee514e2
[ "Apache-2.0" ]
null
null
null
lib/layers.py
masadcv/ECONet-MONAILabel
284c83bf9f772932df2e1e39a9bddc0ecee514e2
[ "Apache-2.0" ]
null
null
null
import math import numbers from typing import Optional import torch import torch.nn as nn from monai.losses.dice import DiceLoss from torch.nn.modules.loss import _Loss class Conv3dBNAct(nn.Sequential): def __init__( self, in_channels, out_channels, kernel_size, stride, ...
31.44186
120
0.595562
e8119bf99f404aa9d4d7c898aa1d6868e68c689c
6,820
py
Python
babysaver/style.py
dssg/babies-public
0a03e95992bfd7b7b4c2f11b8a5e2c3961f193c6
[ "MIT" ]
5
2018-09-13T02:26:23.000Z
2019-10-21T12:38:16.000Z
babysaver/style.py
dssg/babies-public
0a03e95992bfd7b7b4c2f11b8a5e2c3961f193c6
[ "MIT" ]
null
null
null
babysaver/style.py
dssg/babies-public
0a03e95992bfd7b7b4c2f11b8a5e2c3961f193c6
[ "MIT" ]
3
2015-10-14T19:51:42.000Z
2022-03-29T07:12:39.000Z
def make_style_sheet(): style = """ body { font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height: 1.6; padding-top: 10px; padding-bottom: 10px; background-color: white; padding: 30px; color: #333; } body > *:first-child { margin-...
17.35369
121
0.513783
e8119ca1246c4cdcccf051a97094aa79cf95b413
453
py
Python
core/cost/ClsLogJointLikelihood.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/cost/ClsLogJointLikelihood.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/cost/ClsLogJointLikelihood.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
import tensorflow as tf from core.argo.core.network.AbstractModule import AbstractModule class ClsLogJointLikelihood(AbstractModule): def __init__(self, name="CLSLJL"): super().__init__(name=name) def create_id(self, cost_fuction_kwargs): _id = "HMLJLRWS" return _id def _buil...
21.571429
77
0.710817
e8119e41a9fbb2504a2135ddd80c750796448a5e
1,085
py
Python
brands/migrations/0001_initial.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
19
2022-02-16T20:00:08.000Z
2022-03-08T17:38:59.000Z
brands/migrations/0001_initial.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
3
2022-02-16T20:59:11.000Z
2022-02-23T20:40:12.000Z
brands/migrations/0001_initial.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.9 on 2022-02-12 08:44 import ckeditor_uploader.fields from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Brands', ...
31.911765
117
0.564055
e811b2f3cd07972142cf87da26bef18c555157c1
1,746
py
Python
leetcode/medium/210-Course_schedule_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
leetcode/medium/210-Course_schedule_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
leetcode/medium/210-Course_schedule_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" Leetcode #210 """ from typing import List from collections import defaultdict class Solution: def findOrder(self, numCourses: int, prerequisites: List[List[int]]) -> List[int]: if numCourses < 1: return [] if not prerequisites: return [i for i in range(numCourses)]...
27.28125
86
0.584765
e811bb41f26655c39ee3ced53aaace3c53e158e4
45,061
py
Python
deeplab/core/module.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
1
2017-08-28T13:13:48.000Z
2017-08-28T13:13:48.000Z
deeplab/core/module.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
null
null
null
deeplab/core/module.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
1
2021-11-05T20:44:54.000Z
2021-11-05T20:44:54.000Z
# -------------------------------------------------------- # Deformable Convolutional Networks # Copyright (c) 2016 by Contributors # Copyright (c) 2017 Microsoft # Licensed under The Apache-2.0 License [see LICENSE for details] # Modified by Zheng Zhang # -------------------------------------------------------- """A ...
42.073763
141
0.617985
e811c43a6e99da8cbdb18b491b0cd9a7099798ac
6,854
py
Python
scripts/pretrain_optuna.py
danielgafni/repalette
9317fc4f164ef04500a47e37a5b0bd3917a82516
[ "Apache-2.0" ]
18
2021-05-04T15:26:59.000Z
2022-01-04T17:17:23.000Z
scripts/pretrain_optuna.py
danielgafni/repalette
9317fc4f164ef04500a47e37a5b0bd3917a82516
[ "Apache-2.0" ]
3
2020-11-07T14:45:28.000Z
2021-05-05T17:04:22.000Z
scripts/pretrain_optuna.py
danielgafni/repalette
9317fc4f164ef04500a47e37a5b0bd3917a82516
[ "Apache-2.0" ]
2
2021-05-04T15:54:31.000Z
2021-05-05T00:15:20.000Z
import argparse import os from uuid import uuid1 import optuna from dotenv import load_dotenv from optuna.integration.pytorch_lightning import PyTorchLightningPruningCallback from pytorch_lightning import Trainer from pytorch_lightning.callbacks import EarlyStopping, GPUStatsMonitor, ModelCheckpoint from pytorch_light...
38.077778
101
0.690837
e811d005873013e103a3e153b014b5e0e7d7ae3e
26,859
py
Python
sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_models_py3.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 ...
42.43128
137
0.665103
e811d6bb74f84c464a7879270d96b9aaa0f33244
7,380
py
Python
Neural_Network/mlbp_nn.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
4
2017-06-19T06:33:38.000Z
2019-01-31T12:07:12.000Z
Neural_Network/mlbp_nn.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
null
null
null
Neural_Network/mlbp_nn.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
1
2017-12-06T08:41:06.000Z
2017-12-06T08:41:06.000Z
import numpy as np from sklearn.utils import check_random_state from _base import ACTIVATIONS, DERIVATIVES _SOLVER = ['sgd'] def sigmoid(x): return 1.0 / (1.0 + np.exp(-x)) def dsigmoid(x): y = sigmoid(x) return y - y * y def rectify(x): return x * (x > 0) def drectify(x): x = x.copy() ...
36.534653
174
0.532927
e811ea6857ae6c60b6d991070c44ec11469f907e
3,082
py
Python
Advanced Algorithms/Greedy Algorithms/Dijsktra.py
akhopkar01/Data-structures-and-Algorithms
bf8681179d3443d62f8a26332ce06106fb2dfdf6
[ "MIT" ]
1
2020-09-10T15:48:16.000Z
2020-09-10T15:48:16.000Z
Advanced Algorithms/Greedy Algorithms/Dijsktra.py
akhopkar01/Data-structures-and-Algorithms
bf8681179d3443d62f8a26332ce06106fb2dfdf6
[ "MIT" ]
null
null
null
Advanced Algorithms/Greedy Algorithms/Dijsktra.py
akhopkar01/Data-structures-and-Algorithms
bf8681179d3443d62f8a26332ce06106fb2dfdf6
[ "MIT" ]
null
null
null
from collections import defaultdict import numpy as np class Graph: def __init__(self): self.nodes = set() # A set cannot contain duplicate nodes self.neighbours = defaultdict( list) # Defaultdict is a child class of Dictionary that provides a default value for a key that does not exi...
37.585366
191
0.62719
e811fe5cd972d6a1202a9aa53d05dc747cf10f42
694
py
Python
src/pocimport/importing/views.py
wbar/poc-import
a54b8549db8b1eb29a46d50913bee0829da2fe1e
[ "MIT" ]
null
null
null
src/pocimport/importing/views.py
wbar/poc-import
a54b8549db8b1eb29a46d50913bee0829da2fe1e
[ "MIT" ]
null
null
null
src/pocimport/importing/views.py
wbar/poc-import
a54b8549db8b1eb29a46d50913bee0829da2fe1e
[ "MIT" ]
null
null
null
from django.contrib import messages from django.views.generic import TemplateView, RedirectView from .models import ImportProcess class IndexView(TemplateView): template_name = 'importing/index.html' class ImportProcessView(RedirectView): permanent = False pattern_name = 'importing:index' def get(s...
31.545455
118
0.713256
e8120900546c4732bd7d30eb779a96c75972b091
14,637
py
Python
storage/azurestorage.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
storage/azurestorage.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
storage/azurestorage.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
""" Azure storage driver. Based on: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-python-how-to-use-blob-storage """ import logging import os import io import uuid import copy import time from datetime import datetime, timedelta from azure.common import AzureException from azure.storage.blob import B...
37.530769
149
0.625128
e812207a8790fdb3136e7688c83c16d11bbd24dd
1,951
py
Python
RohdeSchwarz/RTM3000/RTM3000Acquire.py
deragent/python-lab-control
02ad3290f26cc548b420c61511fa29dc7598ce36
[ "MIT" ]
null
null
null
RohdeSchwarz/RTM3000/RTM3000Acquire.py
deragent/python-lab-control
02ad3290f26cc548b420c61511fa29dc7598ce36
[ "MIT" ]
null
null
null
RohdeSchwarz/RTM3000/RTM3000Acquire.py
deragent/python-lab-control
02ad3290f26cc548b420c61511fa29dc7598ce36
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 –*- import sys import datetime import numpy as np import argparse from RTM3000 import RTM3000 # Create the command line arguments parser = argparse.ArgumentParser( description='Acquire a waveform on every trigger.', formatter_class=argparse.ArgumentDefaultsHelpFormatte...
30.484375
178
0.635059
e8123861209df0e6de52482d07a11e58114e1b4d
2,533
py
Python
distributions.py
ethanabrooks/teacher-RL
41b44fa4de1e8ce7e0c3eac726919c28ede63538
[ "MIT" ]
null
null
null
distributions.py
ethanabrooks/teacher-RL
41b44fa4de1e8ce7e0c3eac726919c28ede63538
[ "MIT" ]
null
null
null
distributions.py
ethanabrooks/teacher-RL
41b44fa4de1e8ce7e0c3eac726919c28ede63538
[ "MIT" ]
null
null
null
# third party from abc import ABC import torch import torch.nn as nn # first party from torch.distributions import Distribution from utils import AddBias, init, init_normc_ """ Modify standard PyTorch distributions so they are compatible with this code. """ FixedCategorical = torch.distributions.Categorical old_s...
28.144444
81
0.692854
e812766de1c73a085a8f955d625dd96a61681971
2,258
py
Python
remora/fab/install/__init__.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
5
2017-11-24T11:14:39.000Z
2022-02-07T19:41:16.000Z
remora/fab/install/__init__.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
17
2017-04-11T01:35:03.000Z
2018-07-26T04:21:40.000Z
remora/fab/install/__init__.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
7
2017-03-08T04:44:09.000Z
2022-02-07T19:41:16.000Z
# # 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 # ...
24.021277
78
0.664305
e8127eb3970569773be424009822be2bb1bef8cc
2,479
py
Python
feincms/templatetags/feincms_admin_tags.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
325
2015-01-07T08:20:09.000Z
2022-03-22T02:55:13.000Z
feincms/templatetags/feincms_admin_tags.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
148
2015-01-09T06:19:35.000Z
2022-01-07T15:36:35.000Z
feincms/templatetags/feincms_admin_tags.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
109
2015-01-13T09:30:20.000Z
2022-01-03T09:24:07.000Z
from __future__ import absolute_import, unicode_literals from collections import OrderedDict from django import template from django.contrib.auth import get_permission_codename register = template.Library() @register.simple_tag(takes_context=True) def post_process_fieldsets(context, fieldset): """ Removes...
29.511905
74
0.626866
e81289d3dd012d1d3295f05d5b6077af4708e1ed
6,208
py
Python
encoders.py
ptarau/PythonProvers
17295bcc14999a86c4101cea0ce3eb87596826d5
[ "Apache-2.0" ]
4
2019-04-23T10:29:57.000Z
2021-04-13T01:23:09.000Z
encoders.py
ptarau/PythonProvers
17295bcc14999a86c4101cea0ce3eb87596826d5
[ "Apache-2.0" ]
null
null
null
encoders.py
ptarau/PythonProvers
17295bcc14999a86c4101cea0ce3eb87596826d5
[ "Apache-2.0" ]
2
2019-09-10T21:55:03.000Z
2021-10-01T12:17:09.000Z
from cmath import * from numpy.fft import * from numpy.polynomial import polynomial as P from dcolor import * from formulas import * from hprovers import hprove from utils import * def tdepth(t): return max(len(p) for p in path_of(t)) def leaf_count(t): return sum(1 for _ in path_of(t)) def tsize(t): ...
19.160494
74
0.487436
e81297d010ffd421e3822295146ed8a72e0392f5
1,854
py
Python
event_common.py
cartazio/SublimeHaskell
e6f12ea69de939d12212a6ec594bf0aae0603f6d
[ "MIT" ]
2
2021-07-07T16:41:48.000Z
2021-11-17T11:08:50.000Z
event_common.py
cartazio/SublimeHaskell
e6f12ea69de939d12212a6ec594bf0aae0603f6d
[ "MIT" ]
null
null
null
event_common.py
cartazio/SublimeHaskell
e6f12ea69de939d12212a6ec594bf0aae0603f6d
[ "MIT" ]
null
null
null
import SublimeHaskell.backend_cmds as BackendCmds import SublimeHaskell.check_lint as CheckAndLint import SublimeHaskell.internals.settings as Settings import SublimeHaskell.internals.utils as Utils import SublimeHaskell.sublime_haskell_common as Common def update_completions_async(autocompleter, project_name, files=...
47.538462
117
0.781014
e812b1ff91711593d3f6b097eb9e6d23f541e04b
13,744
py
Python
word_statistics.py
adam-rumpf/english-words
376bed21e5133a3280d7d12a3b6ea8410c6aa7b8
[ "Unlicense" ]
null
null
null
word_statistics.py
adam-rumpf/english-words
376bed21e5133a3280d7d12a3b6ea8410c6aa7b8
[ "Unlicense" ]
1
2021-02-20T06:10:21.000Z
2021-02-20T06:10:21.000Z
word_statistics.py
adam-rumpf/english-words
376bed21e5133a3280d7d12a3b6ea8410c6aa7b8
[ "Unlicense" ]
null
null
null
"""A script for gathering letter distribution statistics from a word list. The main public function, gather_stats(), can be used to gather letter statistics for a given word list file and write the contents of the statistic dictionaries to an INI file. If run as a script, the default word list is the dwyl English wor...
36.553191
79
0.512224
e812f0b0c4410fbc91b7b4cdc19e91fe03d96190
4,293
py
Python
fairseq/optim/adam.py
izzykayu/fairseq-py
7e86e30cc5b97db30403b738de2dbbb55f06a92b
[ "BSD-3-Clause" ]
3
2018-03-11T23:01:50.000Z
2021-07-17T05:58:03.000Z
fairseq/optim/adam.py
sliedes/fairseq-py
b7993be19ce87f1d6e35aaa3d42aeceab04d6f94
[ "BSD-3-Clause" ]
null
null
null
fairseq/optim/adam.py
sliedes/fairseq-py
b7993be19ce87f1d6e35aaa3d42aeceab04d6f94
[ "BSD-3-Clause" ]
1
2021-04-06T22:56:56.000Z
2021-04-06T22:56:56.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 import torch from to...
41.278846
116
0.578383
e813097e67e2df22edb200e34e2991835e925a5d
4,917
py
Python
ost/multitemporal/utils.py
Scartography/OpenSarToolkit
53c19e1c6c21260e73518eb9106ce7305539a83d
[ "MIT" ]
null
null
null
ost/multitemporal/utils.py
Scartography/OpenSarToolkit
53c19e1c6c21260e73518eb9106ce7305539a83d
[ "MIT" ]
null
null
null
ost/multitemporal/utils.py
Scartography/OpenSarToolkit
53c19e1c6c21260e73518eb9106ce7305539a83d
[ "MIT" ]
null
null
null
import os import imageio import glob import time import logging from os.path import join as opj import gdal import rasterio import numpy as np from ost.helpers import utils as h, raster as ras, vector as vec logger = logging.getLogger(__name__) def create_timeseries_animation( track_ts_folder, prod...
30.73125
82
0.613992
e8130ce7bef84e9c562582404168ecef0070c88d
16,715
py
Python
src/modeling.py
WillKoehrsen/nyserda-proptech-challenge
e841a98e03e9537acb42814f4b41fc90f808403c
[ "BSD-3-Clause" ]
3
2021-03-29T15:04:20.000Z
2021-09-28T09:21:39.000Z
src/modeling.py
WillKoehrsen/nyserda-proptech-challenge
e841a98e03e9537acb42814f4b41fc90f808403c
[ "BSD-3-Clause" ]
null
null
null
src/modeling.py
WillKoehrsen/nyserda-proptech-challenge
e841a98e03e9537acb42814f4b41fc90f808403c
[ "BSD-3-Clause" ]
1
2021-01-31T14:30:31.000Z
2021-01-31T14:30:31.000Z
import pandas as pd import plotly.express as px from plotly.offline import plot from sklearn.ensemble import RandomForestRegressor from src.constants import ( COVID_START_DATE, DATE_READ_SETTINGS, DATE_TIME_READ_SETTINGS, DEFAULT_FEATURES, EFFICIENT_DAYS_CSV_NAME, FINAL_TEST_PREDICTIONS_CSV_NAM...
32.903543
147
0.63105
e8134ad134aaaf441ed57d6232bc66729477aded
896
py
Python
sktime/transformers/single_series/tests/test_boxcox.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/transformers/single_series/tests/test_boxcox.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/transformers/single_series/tests/test_boxcox.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
#!/usr/bin/env python3 -u # coding: utf-8 # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __author__ = ["Markus Löning"] __all__ = [] import numpy as np import pytest from scipy.stats import boxcox from sktime.datasets import load_airline from sktime.transformers.single_series.boxcox import Bo...
26.352941
71
0.717634
e813716e1489db401b3a7764435fb222f9075c33
10,474
py
Python
deepctr/input_embedding.py
limingdata/DeepCTR
9569a171f2d1aa400e15175c09fea49cdd7ab5b7
[ "MIT" ]
2
2019-04-10T09:39:33.000Z
2019-04-10T09:39:35.000Z
deepctr/input_embedding.py
xy0210/DeepCTR
9569a171f2d1aa400e15175c09fea49cdd7ab5b7
[ "MIT" ]
null
null
null
deepctr/input_embedding.py
xy0210/DeepCTR
9569a171f2d1aa400e15175c09fea49cdd7ab5b7
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ Author: Weichen Shen,wcshen1994@163.com """ from collections import OrderedDict from itertools import chain from tensorflow.python.keras.initializers import RandomNormal from tensorflow.python.keras.layers import Concatenate, Dense, Embedding,Input, Reshape, add from tensorflow.python...
46.345133
139
0.623639
e813833b4a45d49e78b8c11fc760189c4595d08f
4,214
py
Python
migrations/versions/0044_jobs_to_notification_hist.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0044_jobs_to_notification_hist.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0044_jobs_to_notification_hist.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
"""empty message Revision ID: 0044_jobs_to_notification_hist Revises: 0043_notification_indexes Create Date: 2016-07-15 13:28:41.441009 """ # revision identifiers, used by Alembic. revision = "0044_jobs_to_notification_hist" down_revision = "0043_notification_indexes" import datetime import uuid from alembic impor...
47.886364
116
0.517561
e813e241aff35a048e74391a43158b6a0c56f36e
1,913
py
Python
lingcorpora/corpora/mon_corpus.py
OneAdder/lingcorpora.py
c481b4ae60c0d386544657749b3c7ab5570d32f8
[ "MIT" ]
3
2019-05-27T08:06:51.000Z
2022-03-28T10:40:53.000Z
lingcorpora/corpora/mon_corpus.py
OneAdder/lingcorpora.py
c481b4ae60c0d386544657749b3c7ab5570d32f8
[ "MIT" ]
31
2018-02-13T09:23:56.000Z
2022-02-16T05:50:49.000Z
lingcorpora/corpora/mon_corpus.py
OneAdder/lingcorpora.py
c481b4ae60c0d386544657749b3c7ab5570d32f8
[ "MIT" ]
6
2018-02-22T20:53:41.000Z
2020-03-20T06:27:42.000Z
from .arkhangelskiy_corpora import PageParser language = 'mongolian' results = 'http://web-corpora.net/MongolianCorpus/search/results.php' TEST_DATA = {'test_single_query': {'query': 'муур'}, 'test_multi_query': {'query': ['муур', 'хайр']} } __author__ = 'ustya-k' __doc__ = \ """ Mongolian ...
30.854839
144
0.680606
e813e4f180a501f5aea68c0d76ca4165b0e3fc96
973
py
Python
2021/day_02.py
IanFindlay/advent-of-code
e63cf710249cb15fb675920a5b3bb6c85e756168
[ "MIT" ]
24
2020-12-08T20:07:52.000Z
2022-01-18T20:08:06.000Z
2021/day_02.py
nestorhf/advent-of-code
1bb827e9ea85e03e0720e339d10b3ed8c44d8f27
[ "MIT" ]
null
null
null
2021/day_02.py
nestorhf/advent-of-code
1bb827e9ea85e03e0720e339d10b3ed8c44d8f27
[ "MIT" ]
10
2020-12-04T10:04:15.000Z
2022-02-21T22:22:26.000Z
#!/usr/bin/env python3 """Advent of Code 2021 Day 2 - Dive!""" with open('inputs/day_02.txt', 'r') as aoc_input: input_lines = [line.strip().split(' ') for line in aoc_input.readlines()] input_lines = [(x, int(y)) for [x, y] in input_lines] horizontal_position = 0 depth = 0 for move, amount in input_lines:...
23.166667
77
0.625899
e814102d8feb5e443e64a736e7733818e0a24685
9,705
py
Python
cuda/pointnet2/pointnet2_utils.py
zyh16143998882/SpareNet
1391a6828cf330ff32be8f5f3bcf90239b4ff92c
[ "MIT" ]
346
2019-04-15T09:41:44.000Z
2022-03-31T11:50:53.000Z
cuda/pointnet2/pointnet2_utils.py
zyh16143998882/SpareNet
1391a6828cf330ff32be8f5f3bcf90239b4ff92c
[ "MIT" ]
32
2019-04-16T08:46:38.000Z
2022-03-31T10:10:09.000Z
cuda/pointnet2/pointnet2_utils.py
zyh16143998882/SpareNet
1391a6828cf330ff32be8f5f3bcf90239b4ff92c
[ "MIT" ]
88
2019-04-17T07:00:44.000Z
2022-03-26T08:36:12.000Z
import torch from torch.autograd import Variable from torch.autograd import Function import torch.nn as nn from typing import Tuple import pointnet2_cuda as pointnet2 class FurthestPointSampling(Function): @staticmethod def forward(ctx, xyz: torch.Tensor, npoint: int) -> torch.Tensor: """ Use...
33.350515
118
0.616692
e81410a39c68baf1be063be2eaf2b17ae6ad017c
9,540
py
Python
K_sensibility_fine/K_sensibility_fine.py
KVSlab/sscp2019_5
757f7c632187f798b0d7ee942b716c0be1a68b24
[ "BSD-3-Clause" ]
null
null
null
K_sensibility_fine/K_sensibility_fine.py
KVSlab/sscp2019_5
757f7c632187f798b0d7ee942b716c0be1a68b24
[ "BSD-3-Clause" ]
null
null
null
K_sensibility_fine/K_sensibility_fine.py
KVSlab/sscp2019_5
757f7c632187f798b0d7ee942b716c0be1a68b24
[ "BSD-3-Clause" ]
1
2021-07-16T15:32:05.000Z
2021-07-16T15:32:05.000Z
# Importing important libraries from fenics import * import numpy as np import matplotlib.pyplot as plt import ufl import dolfin # Parameters for the solver parameters["form_compiler"]["quadrature_degree"] = 4 parameters["form_compiler"]["cpp_optimize"] = True parameters['allow_extrapolation'] = True # Loading the me...
38.780488
237
0.549266
e814193fcd063bd7b265b3b4c632350af6b88710
4,211
py
Python
main.py
SashaRyha/Map_generator
4247bf76418ba20c5c08d3459bc3a821a1691d6c
[ "MIT" ]
null
null
null
main.py
SashaRyha/Map_generator
4247bf76418ba20c5c08d3459bc3a821a1691d6c
[ "MIT" ]
null
null
null
main.py
SashaRyha/Map_generator
4247bf76418ba20c5c08d3459bc3a821a1691d6c
[ "MIT" ]
null
null
null
import folium from geopy.geocoders import Nominatim from geopy.exc import GeocoderUnavailable from haversine import haversine, Unit def read_file() -> list: """ Reads file locations.list and returns list of strings """ with open("locations.list", "r") as f: hello = f.readlines() return hel...
37.598214
127
0.53384
e814216315e848918973b16c137d36e40535fe7a
2,909
py
Python
ryu/app/event_dumper.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
1
2021-09-26T06:09:27.000Z
2021-09-26T06:09:27.000Z
ryu/app/event_dumper.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
ryu/app/event_dumper.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2012 Isaku Yamahata <yamahata at valinux co jp> # # 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://...
38.276316
79
0.68374
e814435a73bcceab0307f60e7c27fd089a09f7f5
11,662
py
Python
txdav/common/datastore/podding/store_api.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txdav/common/datastore/podding/store_api.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txdav/common/datastore/podding/store_api.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2013-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
47.6
210
0.749871
e8146ac73c66405fe34f7959fbf5001a281a987d
10,948
py
Python
concourse/model/traits/image_scan.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
15
2018-04-18T13:25:30.000Z
2022-03-04T09:25:41.000Z
concourse/model/traits/image_scan.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
221
2018-04-12T06:29:43.000Z
2022-03-27T03:01:40.000Z
concourse/model/traits/image_scan.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
29
2018-04-11T14:42:23.000Z
2021-11-09T16:26:32.000Z
# Copyright (c) 2019-2020 SAP SE or an SAP affiliate company. All rights reserved. This file is # licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
32.2
97
0.640665