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
f72a1840be2b7b6a8d90b8ea7f88260d3394c345
390
py
Python
api/ver1/offices/strings.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-22T19:34:32.000Z
2019-02-22T19:34:32.000Z
api/ver1/offices/strings.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
null
null
null
api/ver1/offices/strings.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-07T22:12:25.000Z
2019-02-07T22:12:25.000Z
""" string constants for office module """ fed_type = 'federal' leg_type = 'legislative' state_type = 'state' loc_gov_type = 'local government' office_type_list = [fed_type, leg_type, state_type, loc_gov_type] office_id_str = 'Office ID ' office_key = 'office' prezzo = 'President' mca = 'Member of County Assem...
27.857143
66
0.715385
f72a5a03842d93e765331b1fe8130fe4969fd3ea
3,462
py
Python
temperature.py
balena-io-playground/balena-edison-monitoring-artik
d02ba51cda8edcbc0decc80d0dab7f724dc46014
[ "Apache-2.0" ]
2
2020-04-25T08:46:41.000Z
2021-02-11T17:36:27.000Z
temperature.py
balena-io-playground/balena-edison-monitoring-artik
d02ba51cda8edcbc0decc80d0dab7f724dc46014
[ "Apache-2.0" ]
null
null
null
temperature.py
balena-io-playground/balena-edison-monitoring-artik
d02ba51cda8edcbc0decc80d0dab7f724dc46014
[ "Apache-2.0" ]
null
null
null
""" Temperature monitoring with Intel Edison and Samsung ARTIK Cloud """ import sys import os import time from math import log import statistics from collections import deque import artikcloud from artikcloud.rest import ApiException import pyupm_grove as grove import mraa import requests # Setting credentials from t...
29.589744
121
0.644136
f72a71fdb4445df86e6a963308c53723cb7372ed
43
py
Python
src/util/__init__.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
src/util/__init__.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
src/util/__init__.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
# import pandas as pd # import numpy as np
14.333333
21
0.72093
f72ad5b39fcaee399cd011abf25e5fda0c0342a6
24,914
py
Python
jina/flow/mixin/async_crud.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/flow/mixin/async_crud.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
2
2021-02-15T01:40:38.000Z
2021-02-15T02:00:21.000Z
jina/flow/mixin/async_crud.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
import warnings from typing import Union, Iterable, TextIO, Dict, Optional import numpy as np from ...clients.base import InputType, CallbackFnType from ...enums import DataInputType from ...helper import deprecated_alias class AsyncCRUDFlowMixin: """The asynchronous version of the Mixin for CRUD in Flow""" ...
40.70915
120
0.603837
f72adc47d855b9bd8cfb880f4445828ea9fe2109
9,267
py
Python
pysot/datasets/dataset_template.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/datasets/dataset_template.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/datasets/dataset_template.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json import logging import sys import os import cv2 import numpy as np from torch.utils.data import Dataset from...
34.449814
107
0.555627
f72b094590d5184ffbaf3cd4a122b4c8a53db388
7,097
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview/_container_registry_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview/_container_registry_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview/_container_registry_management_client.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 ...
53.360902
286
0.748908
f72b319c6f56785827dd2160e2b9d041dde23ada
5,281
py
Python
experiments/ashvin/icml2020/hand/brac/test_video1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/brac/test_video1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/brac/test_video1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
30.883041
80
0.566938
f72bac46a7bf89e92fd86af932bfe8a7135e61d2
13,197
py
Python
src/sardana/util/funcgenerator.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/util/funcgenerator.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/util/funcgenerator.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under the terms of the GNU Less...
35.286096
79
0.608169
f72badfdcc7c9b8294a786b553d4648ee517ad6c
12,634
py
Python
tests/python/pants_test/util/test_contextutil.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/util/test_contextutil.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/util/test_contextutil.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os import pstats import shutil import signal import sys import unittest import uui...
37.93994
100
0.679516
f72bca982790961f6bbe8bc31f1a60032438e1a2
154
py
Python
chat_assistant/chat_assistant_app/urls.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
1
2021-06-21T10:44:51.000Z
2021-06-21T10:44:51.000Z
chat_assistant/chat_assistant_app/urls.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
null
null
null
chat_assistant/chat_assistant_app/urls.py
mrhegemon/Rasa_zero_rpc_XR_bot
a468cc1f2b1a4e935ce18e97dcb7a11070bbea0b
[ "MIT" ]
1
2021-06-07T23:09:30.000Z
2021-06-07T23:09:30.000Z
from django.conf.urls import url from . import views urlpatterns = [ url('', views.chat, name='chat'), url('^chat/', views.chat, name='chat'), ]
19.25
43
0.62987
f72bd257412e17141e60758b6a2232418acfb73b
895
py
Python
sdks/python/test/test_PurgeResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_PurgeResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_PurgeResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
22.375
85
0.709497
f72bd93c4d17e05aa0d2db88c1b2ffb816c8ad18
2,936
py
Python
sdk/monitor/azure-monitor-query/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/monitor/azure-monitor-query/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-monitor-query/setup.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
33.363636
85
0.609673
f72c09ac05b9052d87975715d4ccabff57f26a58
12,756
py
Python
LaserRender.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
LaserRender.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
LaserRender.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
from math import floor import wx from PIL import Image from ZMatrix import ZMatrix from svgelements import * """ Laser Render provides GUI relevant methods of displaying the given project. """ DRAW_MODE_FILLS = 0x000001 DRAW_MODE_GUIDES = 0x000002 DRAW_MODE_GRID = 0x000004 DRAW_MODE_LASERPATH = 0x000...
37.189504
94
0.541863
f72c0ea16de779f16beca6532d9f0bc2298b0a63
214
py
Python
embiggen/sequences/generic_sequences/__init__.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/sequences/generic_sequences/__init__.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/sequences/generic_sequences/__init__.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Module providing generic sequences that are used throught Embiggen.""" from embiggen.sequences.generic_sequences.edge_prediction_sequence import EdgePredictionSequence __all__ = [ "EdgePredictionSequence" ]
35.666667
96
0.827103
f72c1952b0e4622f4b26e6cbf2935e7858d86d51
3,061
py
Python
BioNetGen-2.3.0/source_Atomizer/SBMLparser/atomizer/analyzeRDF.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/atomizer/analyzeRDF.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/atomizer/analyzeRDF.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 27 14:45:24 2012 @author: proto """ ''' this method classifies reactants according to the rdf information, and gives us information on which reactants are the same, and how do they differ (compartment etc) ''' from sbml2bngl import SBML2BNGL import libsbml import collec...
37.790123
107
0.662202
f72c19b9cb3d05c83471ebe6d0f7ab647fcf3c80
5,478
py
Python
saas/api/backend.py
markcstansberry/djaodjin-saas
0749dac36c3b039334fe9f115d92b3167eea03d6
[ "BSD-2-Clause" ]
null
null
null
saas/api/backend.py
markcstansberry/djaodjin-saas
0749dac36c3b039334fe9f115d92b3167eea03d6
[ "BSD-2-Clause" ]
4
2021-04-08T21:56:58.000Z
2022-02-10T13:26:56.000Z
saas/api/backend.py
markcstansberry/djaodjin-saas
0749dac36c3b039334fe9f115d92b3167eea03d6
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2019, DjaoDjin 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 t...
30.949153
78
0.667579
f72c2077893d50552e9dcf77f984503151020b67
2,825
py
Python
Testing/Alignment.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Testing/Alignment.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Testing/Alignment.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 Thom Janssen <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, w...
27.163462
79
0.593982
f72c27667d2dfd2d0ef541566592c06f430e047b
147
py
Python
scene/__init__.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
scene/__init__.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
scene/__init__.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
from .camera import * from .obj_file import * from .obj_parser import * from .ray_tracer import * from .scene_parser import * from .world import *
21
27
0.755102
f72c3198aa025287611b7e30ff0d1259ec7834b8
8,969
py
Python
cache_dependencies/tests/test_transaction.py
Tusky/cache-dependencies
6c19d0c2adfce19c3fdc53ad5704eddc6d84e106
[ "BSD-3-Clause" ]
3
2017-08-08T20:06:56.000Z
2018-09-19T03:16:20.000Z
cache_dependencies/tests/test_transaction.py
Tusky/cache-dependencies
6c19d0c2adfce19c3fdc53ad5704eddc6d84e106
[ "BSD-3-Clause" ]
1
2017-10-24T23:11:32.000Z
2017-10-24T23:11:32.000Z
cache_dependencies/tests/test_transaction.py
Tusky/cache-dependencies
6c19d0c2adfce19c3fdc53ad5704eddc6d84e106
[ "BSD-3-Clause" ]
8
2017-10-24T07:43:56.000Z
2021-06-17T07:03:02.000Z
import time import unittest from cache_dependencies import interfaces, transaction try: from unittest import mock except ImportError: import mock try: str = unicode # Python 2.* compatible string_types = (basestring,) integer_types = (int, long) except NameError: string_types = (str,) in...
38.659483
97
0.721485
f72c5ca5cbb2721d967ad9ef9dfa896f7ccce240
2,924
py
Python
tensorflow/python/estimator/canned/optimizers.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/estimator/canned/optimizers.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/estimator/canned/optimizers.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2017 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...
37.012658
80
0.719904
f72c705b69032d729b976d015ba6742b4d314c78
17,180
py
Python
src/olympia/files/tests/test_file_viewer.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/files/tests/test_file_viewer.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/files/tests/test_file_viewer.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import mimetypes import os import shutil import zipfile from django import forms from django.conf import settings from django.core.cache import cache from django.core.files.storage import default_storage as storage import pytest from freezegun import freeze_time from unittest.mock import Mock...
35.349794
79
0.626659
f72c7105b40a75a34bc96103e54bc62ef812eb03
4,785
py
Python
rapvis/rapvis_process.py
liuwell/rapvis
a69d06a31b1d7fe4510c1c90bfeee22b68a9b3b9
[ "MIT" ]
1
2020-10-25T10:23:45.000Z
2020-10-25T10:23:45.000Z
rapvis/rapvis_process.py
liuwell/rapvis
a69d06a31b1d7fe4510c1c90bfeee22b68a9b3b9
[ "MIT" ]
null
null
null
rapvis/rapvis_process.py
liuwell/rapvis
a69d06a31b1d7fe4510c1c90bfeee22b68a9b3b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import glob import argparse import numpy as np import subprocess import os import time import sys #from rapvis_merge import merge_profiles, merge_gene_counts #from rapvis_gene_dis import gene_dis #from rapvis_quality import rRNAratio from rapvis_general import current_time import rapvis_rRNA d...
47.376238
366
0.708255
f72c9587c2b7459c937e13b276ff7e0feb632297
3,314
py
Python
detect_image.py
YunYang1994/CodeFun
36fcdbfb4ed55fbb8f8dbc6f900842cc7bb9f068
[ "MIT" ]
150
2019-06-19T03:54:40.000Z
2019-10-21T07:09:02.000Z
detect_image.py
YunYang1994/cv-notebooks
36fcdbfb4ed55fbb8f8dbc6f900842cc7bb9f068
[ "MIT" ]
7
2019-11-26T07:27:42.000Z
2020-04-02T03:35:29.000Z
detect_image.py
YunYang1994/cv-notebooks
36fcdbfb4ed55fbb8f8dbc6f900842cc7bb9f068
[ "MIT" ]
25
2019-11-27T11:07:56.000Z
2020-03-19T15:44:20.000Z
#! /usr/bin/env python # coding=utf-8 #================================================================ # Copyright (C) 2020 * Ltd. All rights reserved. # # Editor : VIM # File name : detect_image.py # Author : YunYang1994 # Created date: 2020-03-19 14:05:53 # Description : # #==================...
36.822222
96
0.601992
f72caa4b74837bd62d61442cc130cfd18f4a2cb9
602
py
Python
src/command_modules/azure-cli-find/azure/cli/command_modules/find/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-find/azure/cli/command_modules/find/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-find/azure/cli/command_modules/find/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
37.625
94
0.465116
f72cbe35893af2f1b2c363e8fe4e587be57b909c
6,321
py
Python
InterventionsMIP/main.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
1
2021-06-24T19:27:01.000Z
2021-06-24T19:27:01.000Z
InterventionsMIP/main.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
null
null
null
InterventionsMIP/main.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
3
2021-12-15T13:32:25.000Z
2022-02-24T13:57:07.000Z
from InterventionsMIP import project_path, instances_path import multiprocessing as mp from threshold_policy import threshold_policy_search from interventions import Intervension from epi_params import EpiSetup, ParamDistribution from utils import parse_arguments from reporting.plotting import plot_stoch_simulations f...
64.5
150
0.424933
f72cc73266bff2259d90cfeb4bc45a0cffcbecaf
834
py
Python
p22.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
p22.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
p22.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
def read_from_file(filename): txt = open(filename) string_of_names = txt.read() return string_of_names def string_of_names_to_array(string_of_names): return string_of_names.replace('"','').split(",") def get_alpha_value(string): sum = 0 for char in string: sum += (ord(char) - 64) return sum def mai...
23.166667
60
0.708633
f72cea9211379eec544b1b493a257f6c5b6255c7
1,066
py
Python
api/utils/data_utils.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
74
2020-03-08T15:29:00.000Z
2022-03-05T14:57:33.000Z
api/utils/data_utils.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
19
2020-03-06T08:56:51.000Z
2022-03-27T05:07:35.000Z
api/utils/data_utils.py
wtomin/Multitask-Emotion-Recognition-with-Incomplete-Labels
e6df7ffc9b0318fdce405e40993c79785b47c785
[ "MIT" ]
23
2020-03-20T08:19:55.000Z
2022-03-16T17:40:09.000Z
from PIL import Image import numbers class RandomCrop(object): def __init__(self, size, v): if isinstance(size, numbers.Number): self.size = (int(size), int(size)) else: self.size = size self.v = v def __call__(self, img): w, h = img.size th, tw =...
31.352941
115
0.545028
f72cf7000c24d4d32e896071d41604079d19da89
3,666
py
Python
mpsci/distributions/binomial.py
WarrenWeckesser/mpsci
675f0f3b76700529558a3bae2a1b2ca09552233b
[ "BSD-2-Clause" ]
7
2019-03-27T17:25:41.000Z
2022-03-31T03:55:29.000Z
mpsci/distributions/binomial.py
WarrenWeckesser/mpsci
675f0f3b76700529558a3bae2a1b2ca09552233b
[ "BSD-2-Clause" ]
2
2019-05-09T16:09:45.000Z
2021-01-04T03:55:09.000Z
mpsci/distributions/binomial.py
WarrenWeckesser/mpsci
675f0f3b76700529558a3bae2a1b2ca09552233b
[ "BSD-2-Clause" ]
null
null
null
""" Binomial distribution --------------------- """ import mpmath from ..fun import logbinomial __all__ = ['pmf', 'logpmf', 'cdf', 'sf', 'mean', 'var'] def _validate_np(n, p): if p < 0 or p > 1: raise ValueError('p must be in the range [0, 1]') if n < 0: raise ValueError('n must be a nonne...
30.297521
78
0.563011
f72cfecb9a75e28d76c6235057fe3ad2011e3f3f
4,092
py
Python
code/txburstML.py
astrophys/Python_Debugging_Examples
510b4b6966166dddc14eda3f6813700386d2324f
[ "MIT" ]
null
null
null
code/txburstML.py
astrophys/Python_Debugging_Examples
510b4b6966166dddc14eda3f6813700386d2324f
[ "MIT" ]
null
null
null
code/txburstML.py
astrophys/Python_Debugging_Examples
510b4b6966166dddc14eda3f6813700386d2324f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import pandas as pd import numpy as np import warnings warnings.filterwarnings('ignore') from joblib import delayed,Parallel import os def whichKeep(est_params): kon = np.array(est_params)[:,0] koff = np.array(est_params)[:,1] ksyn = np.array(est_params)[:,2] which_ko...
35.582609
137
0.631232
f72d0862c33d21e1bd9da9c2c2fa5d10f09f06f4
4,140
py
Python
pystratis/api/federation/tests/test_federation.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/api/federation/tests/test_federation.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/api/federation/tests/test_federation.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
import pytest from pytest_mock import MockerFixture from pystratis.api.federation.responsemodels import * from pystratis.api.federation import Federation from pystratis.core.networks import StraxMain, CirrusMain def test_all_strax_endpoints_implemented(strax_swagger_json): paths = [key.lower() for key in strax_sw...
38.333333
100
0.700966
f72d089f873a7c0b075b4dd30a15b63980100580
20,269
py
Python
tools/ami-creator/scripts/win2019_cuda11_installer.py
mseth10/incubator-mxnet-ci
36a5050b9c7bd720a4aa87d225738400083d611d
[ "Apache-2.0" ]
10
2019-08-19T17:12:52.000Z
2021-11-07T21:25:32.000Z
tools/ami-creator/scripts/win2019_cuda11_installer.py
mseth10/incubator-mxnet-ci
36a5050b9c7bd720a4aa87d225738400083d611d
[ "Apache-2.0" ]
16
2019-10-22T17:07:40.000Z
2022-02-08T23:33:27.000Z
tools/ami-creator/scripts/win2019_cuda11_installer.py
mseth10/incubator-mxnet-ci
36a5050b9c7bd720a4aa87d225738400083d611d
[ "Apache-2.0" ]
15
2019-08-25T18:44:54.000Z
2021-11-07T21:25:25.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...
42.852008
227
0.660763
f72d316388cae4d3fa92f9185ec7e2b07efe7778
24,267
py
Python
source/spktype21.py
whiskie14142/spktype21
7ed22365fe92cdb74c416d27634df96a45712953
[ "MIT" ]
1
2021-10-21T20:07:04.000Z
2021-10-21T20:07:04.000Z
source/spktype21.py
whiskie14142/spktype21
7ed22365fe92cdb74c416d27634df96a45712953
[ "MIT" ]
1
2020-05-20T05:54:34.000Z
2020-05-20T05:54:34.000Z
source/spktype21.py
whiskie14142/spktype21
7ed22365fe92cdb74c416d27634df96a45712953
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """A supporting module for jplephem to handle data type 21 (Version 0.1.0) This module computes position and velocity of a celestial small body, from a NASA SPICE SPK ephemeris kernel file of data type 21 (Extended Modified Difference Arrays). http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FO...
36.712557
108
0.588536
f72d35520a9df35cca1aca5514b7eef3d130635f
1,121
py
Python
tests/test_dipdup/models.py
spruceid/dipdup-py
adc904196cfd66563938feec0f0afcc5f3df03e3
[ "MIT" ]
null
null
null
tests/test_dipdup/models.py
spruceid/dipdup-py
adc904196cfd66563938feec0f0afcc5f3df03e3
[ "MIT" ]
null
null
null
tests/test_dipdup/models.py
spruceid/dipdup-py
adc904196cfd66563938feec0f0afcc5f3df03e3
[ "MIT" ]
null
null
null
# generated by datamodel-codegen: # filename: storage.json from __future__ import annotations from typing import Dict, List, Optional from pydantic import BaseModel, Extra class ResourceMap(BaseModel): class Config: extra = Extra.forbid id: str rate: str class ResourceCollectorStorage(Bas...
23.354167
117
0.613738
f72d627417aaa695ea5bcada408ff82f6f850efa
11,113
py
Python
trajectory_generator.py
keshaviyengar/rl-baselines-zoo
6e39f5c7c6c2d30873297308ed064551bffaa52d
[ "MIT" ]
null
null
null
trajectory_generator.py
keshaviyengar/rl-baselines-zoo
6e39f5c7c6c2d30873297308ed064551bffaa52d
[ "MIT" ]
null
null
null
trajectory_generator.py
keshaviyengar/rl-baselines-zoo
6e39f5c7c6c2d30873297308ed064551bffaa52d
[ "MIT" ]
null
null
null
import rospy from geometry_msgs.msg import Pose, Point from std_msgs.msg import Bool import numpy as np import os # This script creates a square trajectory for a robot to follow. # Will output errors as well. class CircleTrajectory(object): def __init__(self, x_offset, y_offset, z_height, radius, theta_step): ...
41.778195
114
0.602268
f72d78d5dc3108cc117be1ea0357004699e0b64f
2,137
py
Python
rlberry/utils/torch.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
rlberry/utils/torch.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
rlberry/utils/torch.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
import os import re import shutil from subprocess import check_output, run, PIPE import numpy as np import torch import logging logger = logging.getLogger(__name__) def get_gpu_memory_map(): result = check_output( ["nvidia-smi", "--query-gpu=memory.used", "--format=csv,nounits,noheader"] ) return...
28.878378
101
0.617688
f72d7e72a009707d55813c1c29a5c3ce6628c6cf
41
py
Python
sciwing/engine/__init__.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
50
2019-09-13T10:32:29.000Z
2022-02-14T16:52:53.000Z
sciwing/engine/__init__.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
31
2019-09-03T11:06:03.000Z
2021-08-20T14:57:09.000Z
sciwing/engine/__init__.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
9
2019-09-16T03:25:15.000Z
2021-05-11T10:28:25.000Z
from sciwing.engine.engine import Engine
20.5
40
0.853659
f72d8f50dd5091fb3db1affbd4c3e936c1aff93a
2,332
py
Python
sqlalchemy_geonames/files.py
dionysio/sqlalchemy-geonames
0d2542cf53512b14415319f23ad53dc4994691a8
[ "BSD-2-Clause-FreeBSD" ]
17
2015-02-24T20:20:49.000Z
2021-07-21T02:32:15.000Z
sqlalchemy_geonames/files.py
dionysio/sqlalchemy-geonames
0d2542cf53512b14415319f23ad53dc4994691a8
[ "BSD-2-Clause-FreeBSD" ]
2
2016-11-13T17:00:26.000Z
2020-05-28T13:12:07.000Z
sqlalchemy_geonames/files.py
dionysio/sqlalchemy-geonames
0d2542cf53512b14415319f23ad53dc4994691a8
[ "BSD-2-Clause-FreeBSD" ]
6
2015-03-28T12:23:50.000Z
2020-05-28T08:41:50.000Z
BASE_DOWNLOAD_URL = 'http://download.geonames.org/export/dump/' def full_url(filename): return BASE_DOWNLOAD_URL + filename filename_config = { 'admin1CodesASCII.txt': { 'url': full_url('admin1CodesASCII.txt'), }, 'admin2Codes.txt': { 'url': full_url('admin2Codes.txt'), }, 'a...
25.626374
63
0.551458
f72d97d1ff332aa397f3106364df1be3656a74db
7,814
py
Python
make_prg/subcommands/update.py
leoisl/make_prg
9204cb8a60d8fae0985b4eb464c5dd99c1338d45
[ "MIT" ]
1
2021-05-07T02:04:07.000Z
2021-05-07T02:04:07.000Z
make_prg/subcommands/update.py
leoisl/make_prg
9204cb8a60d8fae0985b4eb464c5dd99c1338d45
[ "MIT" ]
9
2021-03-22T12:28:06.000Z
2021-12-17T06:46:51.000Z
make_prg/subcommands/update.py
leoisl/make_prg
9204cb8a60d8fae0985b4eb464c5dd99c1338d45
[ "MIT" ]
2
2021-06-29T04:54:22.000Z
2022-01-03T12:19:59.000Z
import multiprocessing import os import shutil from pathlib import Path from loguru import logger from make_prg import io_utils from make_prg.denovo_paths_reader import DenovoPathsDB from make_prg.prg_builder import PrgBuilderCollection, PrgBuilder, LeafNotFoundException from make_prg.utils import output_files_alread...
35.680365
110
0.677374
f72dc8316a82c5f73e59a6498145758dff2e6fa1
345
py
Python
python/ABC/2020-07-25_m-solutions2020/c.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
python/ABC/2020-07-25_m-solutions2020/c.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
python/ABC/2020-07-25_m-solutions2020/c.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline def main(): N, K = map(int, input().split()) A = tuple(map(int, input().split())) ans = [0] * (N - K) for i in range(N - K): if A[i] < A[K + i]: ans[i] = "Yes" else: ans[i] = "No" print("\n".join(ans)) if __name__ =...
15.681818
40
0.449275
f72e0a3f831f9e9c61a2e9d77828ffb12d8428b1
20,450
py
Python
tensorflow/contrib/training/python/training/training.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/training/python/training/training.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/training/python/training/training.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 applicable ...
37.454212
80
0.712567
f72e1011955a719906527c88ace33c87f218c56f
5,731
py
Python
docs/conf.py
kponder/astrorapid
91053af8049724a07d1f55baf4e1f60fc36b1101
[ "MIT" ]
12
2019-01-15T19:40:11.000Z
2020-12-17T11:36:18.000Z
docs/conf.py
kponder/astrorapid
91053af8049724a07d1f55baf4e1f60fc36b1101
[ "MIT" ]
9
2019-07-19T15:29:19.000Z
2022-03-12T00:59:37.000Z
docs/conf.py
kponder/astrorapid
91053af8049724a07d1f55baf4e1f60fc36b1101
[ "MIT" ]
11
2019-02-19T20:35:08.000Z
2021-07-16T05:56:28.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
30.005236
79
0.652242
f72e5d9a801e6d998e27b90743043c49babb6526
575
py
Python
jumpscale/packages/vdc_dashboard/services/provision_wallet_billing.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/packages/vdc_dashboard/services/provision_wallet_billing.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/packages/vdc_dashboard/services/provision_wallet_billing.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from jumpscale.loader import j from jumpscale.packages.vdc.billing import auto_extend_billing from jumpscale.tools.servicemanager.servicemanager import BackgroundService class AutoExtendbillingService(BackgroundService): def __init__(self, interval=60 * 60, *args, **kwargs): """Provisioning wallet service...
31.944444
86
0.735652
f72e6942e7acd082f6cba1fa9c3d70a58320e52f
611
py
Python
python/math/0204_count_primes.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/math/0204_count_primes.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/math/0204_count_primes.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
import math class Solution: def countPrimes(self, n): """ :type n: int :rtype: int 厄拉多塞筛法 比如求20以内质数的个数, 首先0,1不是质数。 2是第一个质数,然后把20以内所有2的倍数划去。 2后面紧跟的数即为下一个质数3,然后把3所有的倍数划去。 3后面紧跟的数即为下一个质数5,再把5所有的倍数划去,以此类推。 """ if n < 2: return...
21.821429
65
0.466448
f72e8e165d3d5f54741251e1676396f0a12b4e4f
5,929
py
Python
lian/ssh_deploy.py
catroll/lian
405fd0c8c4ce8557609bf595431284a07e7b443e
[ "Apache-2.0" ]
null
null
null
lian/ssh_deploy.py
catroll/lian
405fd0c8c4ce8557609bf595431284a07e7b443e
[ "Apache-2.0" ]
null
null
null
lian/ssh_deploy.py
catroll/lian
405fd0c8c4ce8557609bf595431284a07e7b443e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import re import time from collections import OrderedDict LOG = logging.getLogger(__name__) def md5sum_command(directory='.', find_type='f', match='', not_match=''): return ' '.join([i for i in [ 'find', directory, ('-type %s' % find_type) if find...
31.041885
110
0.608366
f72e975ec68de10ec951352b654b92d2aa5f1c53
908
py
Python
tests/xgboost_data/models.py
wmonteiro92/xmoai-examples
0286d57e15cb60693f57cdff386cbb246787442b
[ "MIT" ]
1
2021-03-22T11:31:00.000Z
2021-03-22T11:31:00.000Z
tests/xgboost_data/models.py
wmonteiro92/xmoai-examples
0286d57e15cb60693f57cdff386cbb246787442b
[ "MIT" ]
null
null
null
tests/xgboost_data/models.py
wmonteiro92/xmoai-examples
0286d57e15cb60693f57cdff386cbb246787442b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 17 21:16:08 2020 @author: wmonteiro92 """ from xgboost import XGBRegressor, XGBClassifier def train_ml_model(X, y, algorithm, random_state=0): """Train one dataset in Python. :param X: the input values. :type X: np.array :param y: the targ...
27.515152
76
0.643172
f72e9dda78207301c3e7659b1baf989a356f877b
9,707
py
Python
aesara/tensor/nnet/conv3d2d.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
aesara/tensor/nnet/conv3d2d.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
aesara/tensor/nnet/conv3d2d.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
import aesara from aesara import tensor as at from aesara.gradient import DisconnectedType from aesara.graph.basic import Apply from aesara.graph.op import Op from aesara.graph.opt import TopoOptimizer, copy_stack_trace, local_optimizer def get_diagonal_subtensor_view(x, i0, i1): """ Helper function for Diago...
29.685015
89
0.609457
f72f19778b0b87aa95ac05b779fa868ad2422b2a
256
py
Python
pybat/__init__.py
mbercx/pybat
e0cf610fd06a97979f5ec70757406de1f9a788ef
[ "MIT" ]
3
2019-04-08T13:10:15.000Z
2021-07-04T07:23:49.000Z
pybat/__init__.py
mbercx/pybat
e0cf610fd06a97979f5ec70757406de1f9a788ef
[ "MIT" ]
1
2019-02-28T12:51:57.000Z
2019-02-28T12:51:57.000Z
pybat/__init__.py
mbercx/pybat
e0cf610fd06a97979f5ec70757406de1f9a788ef
[ "MIT" ]
4
2018-07-30T12:58:35.000Z
2020-03-05T20:09:46.000Z
# These import commands make importing core classes easier, e.g. you can just import # Cathode using: # # from pybat import Cathode # # Instead of: # # from pybat.core import Cathode # from pybat.core import Cathode, LiRichCathode, Dimer, DimerNEBAnalysis
23.272727
84
0.765625
f72f39ea13255cbce714cd52ecd6820c01e3e27b
10,487
py
Python
tests/test_phase_change.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_phase_change.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_phase_change.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
34.840532
143
0.685229
f72f3a0ab9d913c2109ddb7b9fece41c54d596c4
11,902
py
Python
typhon/retrieval/common.py
gerritholl/typhon
dbde147be12922ec730bd072dc4797c9da9a6d6b
[ "MIT" ]
null
null
null
typhon/retrieval/common.py
gerritholl/typhon
dbde147be12922ec730bd072dc4797c9da9a6d6b
[ "MIT" ]
null
null
null
typhon/retrieval/common.py
gerritholl/typhon
dbde147be12922ec730bd072dc4797c9da9a6d6b
[ "MIT" ]
null
null
null
from ast import literal_eval import copy from importlib import import_module import json import numpy as np import pandas as pd from sklearn.pipeline import Pipeline from typhon.utils import to_array __all__ = [ 'RetrievalProduct', ] class NotTrainedError(Exception): """Should be raised if someone runs a no...
31.075718
77
0.582423
f72f3b30d80ddaeb33b04d28e7f95a0cabbea8cd
2,075
py
Python
integrations/tensorflow/e2e/broadcasting_test.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
1
2021-03-15T13:53:30.000Z
2021-03-15T13:53:30.000Z
integrations/tensorflow/e2e/broadcasting_test.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/broadcasting_test.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # 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/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
26.948052
74
0.723855
f72f41e99b9e572abeb953f1f643d46f46a98281
8,713
py
Python
ros2_ws/src/utils/logger/logger/logger.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
null
null
null
ros2_ws/src/utils/logger/logger/logger.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
2
2021-07-05T14:50:09.000Z
2021-09-14T15:21:11.000Z
ros2_ws/src/utils/logger/logger/logger.py
FastSense/metalbot
063c897a16129d9aa88c2c7c52bdf6547af894e4
[ "MIT" ]
null
null
null
import os import pandas as pd from matplotlib import pyplot as plt import rclpy import numpy as np from rclpy.node import Node from geometry_msgs.msg import Twist from nav_msgs.msg import Odometry from std_srvs.srv import Empty from logger.utils import convert_ros2_time_to_float from logger.create_graphs import build...
32.033088
111
0.596236
f72f4aa4e427e9d3ee2d0c986960f64ae8d9cdb5
1,029
py
Python
pyfatfs/__init__.py
abrasive/pyfatfs
a35586bfa2b1d3f8d4638142407db68f9318b86d
[ "MIT" ]
null
null
null
pyfatfs/__init__.py
abrasive/pyfatfs
a35586bfa2b1d3f8d4638142407db68f9318b86d
[ "MIT" ]
null
null
null
pyfatfs/__init__.py
abrasive/pyfatfs
a35586bfa2b1d3f8d4638142407db68f9318b86d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Python FAT filesystem module with :doc:`PyFilesystem2 <pyfilesystem2:index>` \ compatibility. pyfatfs allows interaction with FAT12/16/32 filesystems, either via :doc:`PyFilesystem2 <pyfilesystem2:index>` for file-level abstraction or direct interaction with the filesystem for low-level ac...
27.810811
78
0.696793
f72f5ff661ebbd7baa4fdc30f0fe55a852bc6baf
1,660
py
Python
pycondor/geodesic_test_proj.py
kant/pycondor
ee87854504e8f4023feda860d8a9ddbecc7a70da
[ "BSD-3-Clause" ]
6
2015-04-17T08:25:30.000Z
2020-04-11T23:58:16.000Z
pycondor/geodesic_test_proj.py
kant/pycondor
ee87854504e8f4023feda860d8a9ddbecc7a70da
[ "BSD-3-Clause" ]
3
2015-12-22T07:40:02.000Z
2019-01-21T15:07:00.000Z
pycondor/geodesic_test_proj.py
kant/pycondor
ee87854504e8f4023feda860d8a9ddbecc7a70da
[ "BSD-3-Clause" ]
6
2015-11-13T18:55:22.000Z
2020-03-12T19:32:56.000Z
#!/usr/bin/env python #-*- coding:utf-8 -*- import click import os #import json import pandas as pd import numpy as np import pyproj import matplotlib.pyplot as plt from geodesic import plot_geodesic @click.command() @click.argument('xls_filename') @click.option('--outdir', default='', help="Output directory - d...
26.349206
98
0.605422
f72f76abe1221bf6bd92370f84f0906ef075e999
3,133
py
Python
src/dataset_builder.py
elangovana/large-scale-ptm-ppi
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
1
2022-02-25T22:06:39.000Z
2022-02-25T22:06:39.000Z
src/dataset_builder.py
elangovana/ppi-aimed
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
null
null
null
src/dataset_builder.py
elangovana/ppi-aimed
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
null
null
null
import logging import os from torch.utils.data import DataLoader from locator import Locator class DatasetBuilder: def __init__(self, val_data, dataset_factory_name, tokenisor_factory_name, train_data=None, num_workers=None, batch_size=8, addition_args_dict=None): self._addition_args_d...
34.811111
116
0.635812
f72f8d11340df1f1d9eb56840c1b60800b76a5a8
827
py
Python
Calculator.py
EdvinAlvarado/Code-Wars
a3a06a44cda004052b5c0930f3693678c5c92e21
[ "BSD-2-Clause" ]
null
null
null
Calculator.py
EdvinAlvarado/Code-Wars
a3a06a44cda004052b5c0930f3693678c5c92e21
[ "BSD-2-Clause" ]
null
null
null
Calculator.py
EdvinAlvarado/Code-Wars
a3a06a44cda004052b5c0930f3693678c5c92e21
[ "BSD-2-Clause" ]
null
null
null
class Calculator(object): def evaluate(self, string): print(string) cmd = [int(s) if s.isdigit() else s for s in string.split(" ")] cmd = [float(s) if isinstance(s, str) and s.find('.') != -1 else s for s in cmd] print(cmd) for i in range(sum([1 if s == '*' or s == '/' else 0 for s in cmd])): for i...
22.972222
82
0.481258
f72f8e94a0df815f7d517e2b81ffc86c5c545f07
2,893
py
Python
tensorflow/contrib/autograph/utils/multiple_dispatch_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/autograph/utils/multiple_dispatch_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/autograph/utils/multiple_dispatch_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 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...
38.065789
80
0.733495
f72fa31aa61c2010032ba331da9c46f0c28c8f64
586
py
Python
recipys/types.py
gmso/recipys
8ca39a7b0ace2c678fe7a5c8271c6843db6c2c35
[ "MIT" ]
13
2021-07-24T20:49:35.000Z
2021-08-21T18:15:16.000Z
recipys/types.py
gmso/recipys
8ca39a7b0ace2c678fe7a5c8271c6843db6c2c35
[ "MIT" ]
2
2021-08-17T17:11:09.000Z
2021-09-01T19:05:17.000Z
recipys/types.py
gmso/recipys
8ca39a7b0ace2c678fe7a5c8271c6843db6c2c35
[ "MIT" ]
1
2021-07-29T16:36:35.000Z
2021-07-29T16:36:35.000Z
from dataclasses import dataclass from typing import Optional, List @dataclass class RecipeConstraints: meal: Optional[str] = None ingredients: Optional[List[str]] = None @dataclass class Printable: title: str = "" ingredients: str = "" preparation: str = "" error_message: Opt...
20.206897
44
0.677474
f72fac17ae338185f2e1470376f1a6802595e44a
1,514
py
Python
jnpy/app/vnpy_webtrader/__init__.py
jojoquant/jonpy
58692f8fbf398aab7be915a63d0a376e2e0e664c
[ "MIT" ]
5
2020-05-19T07:32:39.000Z
2022-03-14T09:09:48.000Z
jnpy/app/vnpy_webtrader/__init__.py
jojoquant/jonpy
58692f8fbf398aab7be915a63d0a376e2e0e664c
[ "MIT" ]
null
null
null
jnpy/app/vnpy_webtrader/__init__.py
jojoquant/jonpy
58692f8fbf398aab7be915a63d0a376e2e0e664c
[ "MIT" ]
3
2020-04-02T08:30:17.000Z
2020-05-03T12:12:05.000Z
# The MIT License (MIT) # # Copyright (c) 2015-present, Xiaoyou Chen # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to...
37.85
81
0.738441
f72fb1455f5a6d221b2e71016d342136e0b43efe
127
py
Python
instance/config.py
ags68/CS4398Project
a9652a3670fdbfd2f482104b77573a2d1f138c69
[ "Unlicense" ]
3
2017-02-27T02:13:52.000Z
2017-03-05T03:54:25.000Z
instance/config.py
ags68/CS4398Project
a9652a3670fdbfd2f482104b77573a2d1f138c69
[ "Unlicense" ]
null
null
null
instance/config.py
ags68/CS4398Project
a9652a3670fdbfd2f482104b77573a2d1f138c69
[ "Unlicense" ]
null
null
null
# instance/config.py SECRET_KEY = 'p9Bv<3Eid9%$i01' SQLALCHEMY_DATABASE_URI = 'mysql://esss_admin:esss2017@localhost/esss_db'
25.4
73
0.787402
f72fbfc6053fee1b605915399588d9a35599ebe1
13,242
py
Python
care/utils/tests/test_base.py
agzuniverse/care
952babf5b394921fcdb4fd4b1405cb571261f322
[ "MIT" ]
null
null
null
care/utils/tests/test_base.py
agzuniverse/care
952babf5b394921fcdb4fd4b1405cb571261f322
[ "MIT" ]
null
null
null
care/utils/tests/test_base.py
agzuniverse/care
952babf5b394921fcdb4fd4b1405cb571261f322
[ "MIT" ]
null
null
null
import abc import datetime from collections import OrderedDict from typing import Any, Dict import dateparser from django.contrib.gis.geos import Point from pytz import unicode from rest_framework import status from rest_framework.test import APITestCase from care.facility.models import ( CATEGORY_CHOICES, DI...
35.596774
118
0.589337
f72fcde236c44645e86f524db09b26ce3bfb931b
3,649
py
Python
server/core.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
null
null
null
server/core.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
null
null
null
server/core.py
cwza/deep_t2i
22877fdd28ad407984ddc3bc4d57109c54c22fc0
[ "Apache-2.0" ]
1
2020-11-30T06:11:02.000Z
2020-11-30T06:11:02.000Z
import os from pathlib import Path import numpy as np from PIL import Image import requests from google.cloud import storage import base64 from io import BytesIO import uuid __all__ = ['do', 'recaptcha_check'] def predict_and2jpg(model, cap): ''' cap: "white hair yellow eyes", returns: jpeg file buffer remember t...
34.424528
101
0.698822
f7300106c5722946f16c6d7a68325a64b58c05ce
787
py
Python
tests/test_convention.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
1
2021-01-18T13:55:40.000Z
2021-01-18T13:55:40.000Z
tests/test_convention.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
null
null
null
tests/test_convention.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik # Author: Dominik Gresch <greschd@gmx.ch> import numpy as np import pythtb as pt import tbmodels as tb def test_compare_pythtb(): pt_model = pt.tb_model(1, 1, lat=[[1]], orb=[[0], [0.2]]) tb_model = ...
32.791667
91
0.655654
f7300271abe53d1c530313d92118bc1bdad057e3
2,612
py
Python
ooni/report/cli.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/report/cli.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/report/cli.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import os import sys from ooni import canonical_bouncer from ooni.report import __version__ from ooni.report import tool from ooni.settings import config from twisted.python import usage class Options(usage.Options): synopsis = """%s [options] upload | status """ % (os.pa...
28.703297
74
0.561256
f7300bb85137e40f00493456c34280037c0a2f36
273
py
Python
src/oscar/apps/offer/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/offer/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/offer/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class OfferConfig(AppConfig): label = 'offer' name = 'oscar.apps.offer' verbose_name = _('Offer') def ready(self): from . import signals # noqa
22.75
56
0.663004
f7301503bf0efbff166667ede074659aa5f11e70
391
py
Python
Twitter/wsgi.py
sonus21/MiniTwitter
b62c0c540c1726fc7e6197b33514d7af15f1b58e
[ "BSD-2-Clause" ]
null
null
null
Twitter/wsgi.py
sonus21/MiniTwitter
b62c0c540c1726fc7e6197b33514d7af15f1b58e
[ "BSD-2-Clause" ]
null
null
null
Twitter/wsgi.py
sonus21/MiniTwitter
b62c0c540c1726fc7e6197b33514d7af15f1b58e
[ "BSD-2-Clause" ]
null
null
null
""" WSGI config for Twitter project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
f7301f02b847c99bc61b46703e6c682dfcb86ed7
2,745
py
Python
bidobe/astunit.py
pbrus/binary-doppler-beaming
fb7b8e58d36da41759d643a58270a76f61bd5c90
[ "MIT" ]
1
2018-06-19T18:35:55.000Z
2018-06-19T18:35:55.000Z
bidobe/astunit.py
pbrus/binary-doppler-beaming
fb7b8e58d36da41759d643a58270a76f61bd5c90
[ "MIT" ]
null
null
null
bidobe/astunit.py
pbrus/binary-doppler-beaming
fb7b8e58d36da41759d643a58270a76f61bd5c90
[ "MIT" ]
null
null
null
""" Store physical constants and calculate astronomical units from and to the International System of Units. """ class UnitsConverter: """ UnitsConverter converts different astronomical units from and to the International System of Units (SI). """ # All constants in SI units. G = 6.67408e-11...
30.5
74
0.660109
f7302747c69d4cf11b6c0eb5fdafe30a97f317af
4,356
py
Python
KoreanLipNet/training/overlapped_speakers/train.py
khujay15/koreanLipNet
9db7524c7f3a577841cff88c7cd195e941c06fd6
[ "MIT" ]
1
2020-05-19T01:47:24.000Z
2020-05-19T01:47:24.000Z
KoreanLipNet/training/overlapped_speakers/train.py
youda9/koreanLipNet
46e1304477b2bd275206559e21815d204a5d1a72
[ "MIT" ]
null
null
null
KoreanLipNet/training/overlapped_speakers/train.py
youda9/koreanLipNet
46e1304477b2bd275206559e21815d204a5d1a72
[ "MIT" ]
null
null
null
from keras.optimizers import Adam from keras.callbacks import TensorBoard, CSVLogger, ModelCheckpoint from lipnet.lipreading.generators import BasicGenerator from lipnet.lipreading.callbacks import Statistics, Visualize from lipnet.lipreading.curriculums import Curriculum from lipnet.core.decoders import Decoder from l...
49.5
161
0.688246
f730342ab5ef9de61150bbe987c938e724c98ab0
793
py
Python
taxcli/helper/invoice_files.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
taxcli/helper/invoice_files.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
taxcli/helper/invoice_files.py
Nukesor/taxcli
f313acd2f1c9a551361a535f8428a17c53e6b468
[ "MIT" ]
null
null
null
import os def get_invoice_files(invoices, year=False): for invoice in invoices: if invoice.invoice_file: # Get folder for this invoice and create it if it doesn't exist if not invoice.afa: folder = invoice.invoice_type.name else: folder =...
33.041667
75
0.538462
f7307ab549cd6a961231f29a99a04cc4dd37c4f8
2,822
py
Python
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_multi_out_stateful.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_multi_out_stateful.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_multi_out_stateful.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
"""This module contains examples of stream_func where f_type is 'element' and stream_func has a list of multiple input streams, a single output stream, and the operation is stateless. These examples must have a LIST of input streams and not a single input stream. The functions on static Python data structures are of t...
28.795918
82
0.642807
f7309bc8a28f4f8cdb7fb8535f464ad2bbe04bfe
392
py
Python
tests/test_invenio_circulation.py
NRodriguezcuellar/invenio-circulation
8e0c977849eb76ba9a342542dae3b6a6ef5bae16
[ "MIT" ]
1
2020-04-27T14:47:30.000Z
2020-04-27T14:47:30.000Z
tests/test_invenio_circulation.py
NRodriguezcuellar/invenio-circulation
8e0c977849eb76ba9a342542dae3b6a6ef5bae16
[ "MIT" ]
1
2020-06-09T15:23:04.000Z
2020-06-09T15:23:04.000Z
tests/test_invenio_circulation.py
NRodriguezcuellar/invenio-circulation
8e0c977849eb76ba9a342542dae3b6a6ef5bae16
[ "MIT" ]
1
2020-01-13T17:10:13.000Z
2020-01-13T17:10:13.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2018-2019 CERN. # Copyright (C) 2018-2019 RERO. # # Invenio-Circulation is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Module tests.""" def test_version(): """Test version import.""" ...
23.058824
77
0.701531
f730c75227bfe93ee337638f1e0109a02d1051eb
5,810
py
Python
examples/python/01-list-properties.py
lkucalaba/tiscamera
e1fa7b21bb4dd777ae8039dfa072cfa2daa88244
[ "Apache-2.0" ]
241
2015-02-20T09:10:41.000Z
2022-03-18T08:53:26.000Z
examples/python/01-list-properties.py
lkucalaba/tiscamera
e1fa7b21bb4dd777ae8039dfa072cfa2daa88244
[ "Apache-2.0" ]
435
2015-01-19T10:18:01.000Z
2022-03-28T08:03:08.000Z
examples/python/01-list-properties.py
lkucalaba/tiscamera
e1fa7b21bb4dd777ae8039dfa072cfa2daa88244
[ "Apache-2.0" ]
141
2015-01-03T17:54:08.000Z
2022-02-09T09:55:15.000Z
#!/usr/bin/env python3 # Copyright 2017 The Imaging Source Europe GmbH # # 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 a...
39.52381
111
0.492083
f730e637b6cdd9ca1951b596c2df73147bceb07c
13,442
py
Python
mlir/test/python/integration/dialects/linalg/opsrun.py
mgehre-xlx/sycl
2086745509ef4bc298d7bbec402a123dae68f25e
[ "Apache-2.0" ]
61
2019-04-12T18:49:57.000Z
2022-03-19T22:23:16.000Z
mlir/test/python/integration/dialects/linalg/opsrun.py
mgehre-xlx/sycl
2086745509ef4bc298d7bbec402a123dae68f25e
[ "Apache-2.0" ]
127
2019-04-09T00:55:50.000Z
2022-03-21T15:35:41.000Z
mlir/test/python/integration/dialects/linalg/opsrun.py
mgehre-xlx/sycl
2086745509ef4bc298d7bbec402a123dae68f25e
[ "Apache-2.0" ]
10
2019-04-02T18:25:40.000Z
2022-02-15T07:11:37.000Z
# RUN: %PYTHON %s 2>&1 | FileCheck %s import ctypes import sys from mlir.ir import * from mlir.dialects import builtin from mlir.dialects import linalg from mlir.dialects import std from mlir.passmanager import * from mlir.execution_engine import * # Log everything to stderr and flush so that we have a unified strea...
30.411765
79
0.651912
f730f61c0558a354a0cd7c399108c3d7b08479b3
4,692
py
Python
Tools/SeeDot/seedot/predictor.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
1
2020-03-26T17:19:54.000Z
2020-03-26T17:19:54.000Z
Tools/SeeDot/seedot/predictor.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
2
2020-03-26T02:59:12.000Z
2020-04-23T19:09:00.000Z
Tools/SeeDot/seedot/predictor.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. import os import subprocess import seedot.config as config import seedot.util as Util # Program to build and run the predictor project using msbuild # The accuracy and other statistics are written to the output file specifi...
29.509434
82
0.563725
f730f6f1c65f95e6079be44f28f2c5b909f64b71
1,999
py
Python
flagging_site/data/_store/refresh.py
danivalades/flagging
b1a097594e9b7d9e101edef9bb6abf98a333383c
[ "MIT" ]
null
null
null
flagging_site/data/_store/refresh.py
danivalades/flagging
b1a097594e9b7d9e101edef9bb6abf98a333383c
[ "MIT" ]
null
null
null
flagging_site/data/_store/refresh.py
danivalades/flagging
b1a097594e9b7d9e101edef9bb6abf98a333383c
[ "MIT" ]
null
null
null
"""The data store contains offline versions of the data so that you can run a demo version of the website without the vault keys, or simply develop parts of the website that don't require actively updated data without having to worry. This data is used for the actual website when the `USE_MOCK_DATA` config variable is...
37.018519
79
0.737869
f73108a0572bbd0f825ddaada87e96d987ccfd6b
8,856
py
Python
auxiliary/model.py
hellolele/PoseFromShape
b7cd6fc7eab5be7710e34557504c192d36c35000
[ "MIT" ]
2
2019-07-12T14:10:37.000Z
2019-07-12T14:10:39.000Z
auxiliary/model.py
tim885/PoseFromShape
7daf9e4889af065861d2719cd2bca2de8a45d185
[ "MIT" ]
null
null
null
auxiliary/model.py
tim885/PoseFromShape
7daf9e4889af065861d2719cd2bca2de8a45d185
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.parallel import torch.utils.data from torch.autograd import Variable import resnet # ============================================================================ # # Baseline network # # ====================...
47.106383
134
0.630872
f7310fabca6b6ef898997efb6b048ead96681b15
4,598
py
Python
plastering/evaluator.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
29
2018-09-19T01:16:27.000Z
2022-03-29T14:35:36.000Z
plastering/evaluator.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-04-12T18:37:36.000Z
2022-02-10T00:27:55.000Z
plastering/evaluator.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-03-05T23:44:11.000Z
2022-03-18T07:29:31.000Z
from copy import deepcopy from sklearn.metrics import f1_score from sklearn.preprocessing import LabelBinarizer, MultiLabelBinarizer from sklearn.preprocessing import LabelEncoder import numpy as np import pdb def binarize_labels(true_labels, pred_labels): srcids = list(pred_labels.keys()) tot_labels = [list(l...
38.966102
75
0.707916
f731159d8d119b22890a43bc26246da1964a17db
3,103
py
Python
alipay/aop/api/domain/AlipayOpenMiniAmpeTracerSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenMiniAmpeTracerSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenMiniAmpeTracerSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniAmpeTracerSyncModel(object): def __init__(self): self._device_id = None self._product_id = None self._spm_a = None self._spm_b = None self._s...
26.75
71
0.548179
f73133716abf93447f9a681574d785a552cadd2f
877
py
Python
setup.py
jomido/jogger
d105a5d701c7958bb5ad072af4c23477e82cd363
[ "MIT" ]
6
2015-08-06T00:54:48.000Z
2022-02-03T13:55:33.000Z
setup.py
jomido/jogger
d105a5d701c7958bb5ad072af4c23477e82cd363
[ "MIT" ]
null
null
null
setup.py
jomido/jogger
d105a5d701c7958bb5ad072af4c23477e82cd363
[ "MIT" ]
1
2015-05-19T11:45:34.000Z
2015-05-19T11:45:34.000Z
from setuptools import setup, find_packages setup( name='jogger', version='0.1.1', description='Navigate log files.', long_description=( open('README.md').read() ), url='http://github.com/jomido/jogger/', license='MIT', author='Jonathan Dobson', author_email='jon.m.dobson@gm...
29.233333
54
0.586089
f7316151b54b3cb3affdbe30c1d0eafb1b8f3f72
23,981
py
Python
scripts/casava_data_delivery.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
1
2016-03-21T14:04:09.000Z
2016-03-21T14:04:09.000Z
scripts/casava_data_delivery.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
35
2015-01-22T08:25:02.000Z
2020-02-17T12:09:12.000Z
scripts/casava_data_delivery.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
6
2015-01-16T15:32:08.000Z
2020-01-30T14:34:40.000Z
# A script to help doing the deliveries. # Now using the Casava directory structure # The user is asked to provide a project ID, a run name, and an UPPMAX project import sys import os import glob import re import grp from datetime import datetime import argparse import stat from subprocess import check_call, CalledPro...
46.206166
155
0.517285
f731716eb335aa711c9fca62072e00fad94f8a35
4,633
py
Python
sis-api/swagger_server/models/address.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/swagger_server/models/address.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/swagger_server/models/address.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class Address(Model): """NOTE: This class is auto generated by the swagger cod...
24.005181
149
0.564429
f73180ffb7b8ac7ff84ef16f39b5d76cd4a45949
255
py
Python
tests/urls.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
tests/urls.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
tests/urls.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('report1/', views.MonthlyProductSales.as_view(), name='report1'), path('product_crosstab_client/', views.ProductClientSalesMatrix.as_view(), name='product_crosstab_client'), ]
31.875
111
0.756863
f73184b337ca7e743751238f2a113e71bb8c75e0
7,364
py
Python
tests/rundb/test_sqldb.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
tests/rundb/test_sqldb.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
tests/rundb/test_sqldb.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
1
2021-05-05T14:19:46.000Z
2021-05-05T14:19:46.000Z
# Copyright 2019 Iguazio # # 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, softwa...
33.022422
85
0.629957
f731a7aa0c3b474639722781f113b0d34999a1c2
1,011
py
Python
nova/api/openstack/compute/legacy_v2/contrib/used_limits_for_admin.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/api/openstack/compute/legacy_v2/contrib/used_limits_for_admin.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/api/openstack/compute/legacy_v2/contrib/used_limits_for_admin.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright 2013 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 ...
38.884615
78
0.721068
f731d330a352677e2aec29c1fc65fdf8568da45c
1,747
py
Python
neuralmonkey/processors/alignment.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-24T21:10:03.000Z
2019-05-22T13:19:35.000Z
neuralmonkey/processors/alignment.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/processors/alignment.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-25T01:36:44.000Z
2019-12-13T15:04:03.000Z
import re from typing import List import numpy as np # pylint: disable=too-few-public-methods ID_SEP = re.compile(r"[-:]") class WordAlignmentPreprocessor(object): """A preprocessor for word alignments in a text format. One of the following formats is expected: s1-t1 s2-t2 ... s1:1/w1 s2...
30.12069
78
0.613051
f731d3eb4aae5e78db2bfaf2ea2d5f1e9832f7d4
9,108
py
Python
repos/system_upgrade/el7toel8/actors/systemfacts/libraries/systemfacts.py
adka1408/leapp-repository
be5a9603b57f86c65d395ba6a02b860cacae0fb6
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/actors/systemfacts/libraries/systemfacts.py
adka1408/leapp-repository
be5a9603b57f86c65d395ba6a02b860cacae0fb6
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/actors/systemfacts/libraries/systemfacts.py
adka1408/leapp-repository
be5a9603b57f86c65d395ba6a02b860cacae0fb6
[ "Apache-2.0" ]
null
null
null
import errno import functools import grp import json import logging import os import pwd import re from six.moves import configparser import six from leapp.libraries.stdlib import CalledProcessError, api, run from leapp.models import SysctlVariablesFacts, SysctlVariable, ActiveKernelModulesFacts, ActiveKernelModule, ...
33.485294
117
0.60639
f731f4063b2323508a137e94df93708a25ff3792
11,583
py
Python
evap/contributor/views.py
JannisBerndt/EvaP
a3ca8bcf091e811421084c4db14ae9666cf2a27f
[ "MIT" ]
26
2015-01-18T18:01:57.000Z
2018-10-12T14:37:15.000Z
evap/contributor/views.py
JannisBerndt/EvaP
a3ca8bcf091e811421084c4db14ae9666cf2a27f
[ "MIT" ]
737
2015-01-02T17:43:25.000Z
2018-12-10T20:45:10.000Z
evap/contributor/views.py
JannisBerndt/EvaP
a3ca8bcf091e811421084c4db14ae9666cf2a27f
[ "MIT" ]
83
2015-01-14T12:39:41.000Z
2018-10-29T16:36:43.000Z
from django.contrib import messages from django.core.exceptions import PermissionDenied, SuspiciousOperation from django.db import IntegrityError, transaction from django.db.models import Exists, Max, OuterRef, Q from django.forms.models import inlineformset_factory from django.shortcuts import get_object_or_404, redir...
39
131
0.723388
f731f62c057be653547c98aaf27b9d20dd30444f
8,308
py
Python
alipay/aop/api/domain/HealthServiceFamilyDoctorDrugDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/HealthServiceFamilyDoctorDrugDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/HealthServiceFamilyDoctorDrugDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class HealthServiceFamilyDoctorDrugDTO(object): def __init__(self): self._catalogue_listed = None self._dosage_forms = None self._drug_classification = None self._genera...
35.20339
103
0.630958
f731f79225b7db086a4396618b46b21004ef1931
7,642
py
Python
armi/physics/neutronics/isotopicDepletion/isotopicDepletionInterface.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
armi/physics/neutronics/isotopicDepletion/isotopicDepletionInterface.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
armi/physics/neutronics/isotopicDepletion/isotopicDepletionInterface.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
33.964444
110
0.691965
f73218bda9737f9a09039fb3e086c4956b2a87d2
1,903
py
Python
get_url.py
tracysmith/RGAPepPipe
f334c2a58f41d0b38c0d5884a430e24a21788304
[ "MIT" ]
3
2017-08-06T18:01:43.000Z
2018-06-20T04:54:49.000Z
get_url.py
tracysmith/RGAPepPipe
f334c2a58f41d0b38c0d5884a430e24a21788304
[ "MIT" ]
28
2015-01-05T18:00:48.000Z
2016-09-06T18:30:29.000Z
otherScripts/get_url.py
pepperell-lab/RGAPepPipe
0122dca9aca75756ad412599c7922bf08edc7f6d
[ "MIT" ]
2
2017-07-27T14:07:51.000Z
2018-07-25T15:00:05.000Z
#!/usr/bin/python import sys, argparse, os from subprocess import call from multiprocessing.dummy import Pool as ThreadPool ################################################################### #This is a phython script to download fastq files from ENA #You can use this directly with the enaFileParser output ##########...
31.716667
115
0.636889
f732394175903cc275173763bb703893ecd75976
369
py
Python
tests/test_initial_data.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
1
2016-10-05T05:17:35.000Z
2016-10-05T05:17:35.000Z
tests/test_initial_data.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
17
2016-09-30T13:43:20.000Z
2021-06-10T20:44:40.000Z
tests/test_initial_data.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
6
2016-04-11T14:41:44.000Z
2017-10-20T21:16:39.000Z
from django.test import TestCase from acp_calendar.initial_data import get_holidays_list class TestInitialData(TestCase): def test_get_holidays_list(self): holidays = get_holidays_list() self.assertEqual(144, len(holidays)) self.assertEqual('2006-01-01', holidays[0]['date']) self...
28.384615
60
0.710027
f7325e38e6b3e37a43fb029d0d2a6c0bc984703c
1,956
py
Python
experiments/Scripts for creating plots/sac_performance_over_generations.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
experiments/Scripts for creating plots/sac_performance_over_generations.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
experiments/Scripts for creating plots/sac_performance_over_generations.py
arlo-lib/ARLO
159669884044686e36e07bd1cc0948884ed7cc8d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt if __name__ == '__main__': x=np.arange(50) y=np.array([-59.00138158129509, -43.966695525591895, -52.5277642686108, -32.1793153104166, -37.81484603001339, -24.97787027415733,...
33.152542
37
0.463701
f7327283137a8089ad6e5e8c1b25b9b0b020b6c1
3,502
py
Python
salt/states/mdadm.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
salt/states/mdadm.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/states/mdadm.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Managing software RAID with mdadm ================================== A state module for creating or destroying software RAID devices. .. code-block:: yaml /dev/md0: raid.present: - opts: level=1 chunk=256 raid-devices=2 /dev/xvdd /dev/xvde ''' # Import python libs impor...
23.823129
76
0.540548
f732974670da14d5adf61de60ba71cb11ddc2b88
1,814
py
Python
pytorch_toolkit/face_recognition/model/blocks/mobilenet_v2_blocks.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/face_recognition/model/blocks/mobilenet_v2_blocks.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/face_recognition/model/blocks/mobilenet_v2_blocks.py
JinYAnGHe/openvino_training_extensions
a0b4456a3c9fe6c1b7eabc9d5eb4e74d01453dee
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
37.791667
91
0.677508
f732a1266d5c853c67006f483f36e4ebce514789
3,923
py
Python
tests/test_nidmm.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
4
2021-08-21T06:21:45.000Z
2021-12-27T05:27:43.000Z
tests/test_nidmm.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
51
2021-07-28T14:48:04.000Z
2022-03-25T02:35:40.000Z
tests/test_nidmm.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
2
2021-06-23T19:53:17.000Z
2022-03-27T20:10:27.000Z
import nidmm import pytest from nitsm.codemoduleapi import SemiconductorModuleContext from nitsm.pinquerycontexts import PinQueryContext @pytest.fixture def simulated_nidmm_sessions(standalone_tsm_context): instrument_names = standalone_tsm_context.get_all_nidmm_instrument_names() sessions = [ nidmm.S...
44.579545
92
0.748917
f7331f8ce198dccf836db66c2e0a80f3f5329d05
1,053
py
Python
leetcode/48_Rotate_Image.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-05-01T21:29:17.000Z
2020-05-01T21:29:17.000Z
leetcode/48_Rotate_Image.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
null
null
null
leetcode/48_Rotate_Image.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-06-12T23:32:14.000Z
2020-06-12T23:32:14.000Z
''' 48. Rotate Image Medium You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotation. ''' class Solution: def rotate(...
35.1
154
0.578348
f7332037c48c1a294de655fb80ab1613b7eb5f5e
4,220
py
Python
program_synthesis/algolisp/dataset/evaluation.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/algolisp/dataset/evaluation.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/algolisp/dataset/evaluation.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
import numpy as np from program_synthesis.algolisp.tools import bleu from program_synthesis.algolisp.dataset import executor def is_same_code(example, res): correct = False if hasattr(res, 'code_sequence'): if res.code_sequence is not None: correct = res.code_sequence == example.code_sequ...
40.576923
111
0.657346
f73331d5f5cbfc3043d4165144e1118dd13cb4da
601
py
Python
app/main/forms.py
theposter/food-server
d6a1a9e1300d35ff4642463f0a73074b1440c648
[ "MIT" ]
null
null
null
app/main/forms.py
theposter/food-server
d6a1a9e1300d35ff4642463f0a73074b1440c648
[ "MIT" ]
null
null
null
app/main/forms.py
theposter/food-server
d6a1a9e1300d35ff4642463f0a73074b1440c648
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import DataRequired, Length, ValidationError class SearchForm(FlaskForm): search_query = StringField('What cuisine are you in the mood for today?', validators=[DataRequired(), Length...
50.083333
106
0.685524
f733650de6530fb57a4ba3608b453116c353d1ef
13,365
py
Python
BlockServer/synoptic/synoptic_manager.py
ISISComputingGroup/EPICS-inst_servers
056fed778ebd1190421e06b9ac9c8a0bdae0d317
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:53.000Z
2020-08-20T23:38:53.000Z
BlockServer/synoptic/synoptic_manager.py
ISISComputingGroup/EPICS-inst_servers
056fed778ebd1190421e06b9ac9c8a0bdae0d317
[ "BSD-3-Clause" ]
88
2015-09-03T11:50:41.000Z
2021-02-18T19:13:04.000Z
BlockServer/synoptic/synoptic_manager.py
ISISComputingGroup/EPICS-inst_servers
056fed778ebd1190421e06b9ac9c8a0bdae0d317
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:05.000Z
2020-08-20T23:38:05.000Z
# This file is part of the ISIS IBEX application. # Copyright (C) 2012-2016 Science & Technology Facilities Council. # All rights reserved. # # This program is distributed in the hope that it will be useful. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License...
43.676471
157
0.655518
f73374d5193383680e6567226fe55556e50468a7
7,809
py
Python
parsl/utils.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/utils.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/utils.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
import inspect import logging import os import shlex import subprocess import time import typeguard from contextlib import contextmanager from typing import List import parsl from parsl.version import VERSION logger = logging.getLogger(__name__) @typeguard.typechecked def get_version() -> str: version = parsl._...
32.810924
145
0.631579
f7338f6dd3f181e895e19eec66ca21d59cbbdafa
14,786
py
Python
Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2014-2018 Apple Inc. All rights reserved. # Copyright (c) 2014 University of Washington. 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. Redistribution...
44.269461
148
0.653524