hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7940711705a8a4416004da51be1863926ad797e8
17,124
py
Python
tests/unit/project_lifecycle/project/brenttests/test_validate.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
3
2021-07-19T09:46:01.000Z
2022-03-07T13:51:25.000Z
tests/unit/project_lifecycle/project/brenttests/test_validate.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
43
2019-08-27T12:36:29.000Z
2020-08-27T14:50:40.000Z
tests/unit/project_lifecycle/project/brenttests/test_validate.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
7
2020-09-22T20:32:17.000Z
2022-03-29T12:25:51.000Z
import os from tests.common.project_testing import (ProjectSimTestCase, PROJECT_CONTAINS_DIR, BRENT_DEFINITIONS_DIR, BRENT_DESCRIPTOR_DIR, BRENT_DESCRIPTOR_YML_FILE, BRENT_INFRASTRUCTURE_DIR, BRENT_INFRASTRUCTURE_MANIFEST_FILE, BRENT_L...
53.180124
483
0.740364
79407118d0d92676da1b7e0d8fe3a8cea8dfee75
3,906
py
Python
sam_annotations/extended/bad_samples.py
oaxiom/human
f0656c20e76ca253eda0b8e622fc37b982b8fb5d
[ "MIT" ]
1
2021-06-09T01:44:22.000Z
2021-06-09T01:44:22.000Z
sam_annotations/extended/bad_samples.py
oaxiom/human
f0656c20e76ca253eda0b8e622fc37b982b8fb5d
[ "MIT" ]
null
null
null
sam_annotations/extended/bad_samples.py
oaxiom/human
f0656c20e76ca253eda0b8e622fc37b982b8fb5d
[ "MIT" ]
null
null
null
bad_samples = set([ # <0.5e6 reads 'Caudate_nucleus_rp1', 'Caudate_nucleus_rp2', 'Caudate_nucleus_rp3', 'Caudate_nucleus_rp4', 'Caudate_nucleus_rp5', 'Frontal_pole_rp2', 'Frontal_pole_rp6', 'hESC_H1_rp15', 'Hippocampus_rp1', 'Hippocampus_rp2', 'Hippocampus_rp3', 'Hippocampus_rp3', 'Hippocampus_rp4',...
60.092308
148
0.747056
79407190f4b1b8dd7623034093a87613e0a3a06a
743
py
Python
setup.py
fakegit/pythonping
5b6d67228d982caf3503a3f26b6721aa7b3a612e
[ "MIT" ]
129
2018-11-26T15:23:36.000Z
2022-03-15T05:20:09.000Z
setup.py
MPCodeWriter21/pythonping
5b6d67228d982caf3503a3f26b6721aa7b3a612e
[ "MIT" ]
50
2018-03-31T09:49:09.000Z
2022-03-14T07:24:19.000Z
setup.py
MPCodeWriter21/pythonping
5b6d67228d982caf3503a3f26b6721aa7b3a612e
[ "MIT" ]
58
2019-02-09T18:49:33.000Z
2022-03-22T06:55:41.000Z
from setuptools import setup with open('README.md', 'r') as file: long_description = file.read() setup(name='pythonping', version='1.1.1', description='A simple way to ping in Python', url='https://github.com/alessandromaggio/pythonping', author='Alessandro Maggio', author_email='me@...
32.304348
59
0.637954
7940728b04061eeee3f5128428a4bbda8446bb81
3,748
py
Python
aiida/orm/implementation/django/users.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/orm/implementation/django/users.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/orm/implementation/django/users.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.168142
109
0.614194
79407365ae4b2eb51f5957deb8dbfd16903b9e02
7,825
py
Python
hermes/models.py
DemocracyClub/django-hermes
233bc41dd1c9c0da05639213a1fb5c5a638e6014
[ "MIT" ]
2
2017-02-22T11:20:23.000Z
2017-04-27T05:33:15.000Z
hermes/models.py
DemocracyClub/django-hermes
233bc41dd1c9c0da05639213a1fb5c5a638e6014
[ "MIT" ]
7
2017-02-04T18:29:58.000Z
2022-03-12T00:58:05.000Z
hermes/models.py
DemocracyClub/django-hermes
233bc41dd1c9c0da05639213a1fb5c5a638e6014
[ "MIT" ]
null
null
null
import os import operator from functools import reduce from django.contrib.postgres.fields import ArrayField try: from itertools import ifilter as filter except: pass # Must be python 3 from django.conf import settings as django_settings from django.db import models from django.urls import reverse from djan...
28.558394
93
0.65278
79407386557c663fbc4892ac56efa90f58064a52
35
py
Python
Database/Setup Database/File.py
a84885640/Python
5984f8384abfdbfc83470d1d93b7430297fa654b
[ "Unlicense" ]
19
2018-09-06T01:57:22.000Z
2022-03-23T04:12:12.000Z
Database/Setup Database/File.py
a84885640/Python
5984f8384abfdbfc83470d1d93b7430297fa654b
[ "Unlicense" ]
null
null
null
Database/Setup Database/File.py
a84885640/Python
5984f8384abfdbfc83470d1d93b7430297fa654b
[ "Unlicense" ]
43
2018-08-02T11:01:11.000Z
2022-01-03T13:37:27.000Z
#!/usr/bin/python3 import pymysql
8.75
18
0.742857
794074112b796b2ec05a0c9ad978de352229ddbb
2,075
py
Python
ledgerblue/mcuBootloader.py
DarthJahus/blue-loader-python
a40c61fc74e1e7236c96516308f26e9776e092e3
[ "Apache-2.0" ]
110
2016-09-15T06:32:56.000Z
2022-03-30T19:44:01.000Z
ledgerblue/mcuBootloader.py
DarthJahus/blue-loader-python
a40c61fc74e1e7236c96516308f26e9776e092e3
[ "Apache-2.0" ]
53
2016-04-17T18:16:39.000Z
2022-03-25T20:37:04.000Z
ledgerblue/mcuBootloader.py
DarthJahus/blue-loader-python
a40c61fc74e1e7236c96516308f26e9776e092e3
[ "Apache-2.0" ]
86
2016-04-14T21:08:13.000Z
2022-03-24T09:13:51.000Z
""" ******************************************************************************* * Ledger Blue * (c) 2016 Ledger * * 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....
37.053571
117
0.69253
7940752130368d4b41073f8590f6edc4cae1c94f
503
py
Python
WebGUI/DjangoAPI/myapi/urls.py
Twinparadox/DeepLearning
2746c22e987bb509eaa8257744f0d5248a1f1264
[ "MIT" ]
null
null
null
WebGUI/DjangoAPI/myapi/urls.py
Twinparadox/DeepLearning
2746c22e987bb509eaa8257744f0d5248a1f1264
[ "MIT" ]
null
null
null
WebGUI/DjangoAPI/myapi/urls.py
Twinparadox/DeepLearning
2746c22e987bb509eaa8257744f0d5248a1f1264
[ "MIT" ]
null
null
null
from django.urls import include, path from rest_framework import routers from . import views router = routers.DefaultRouter() router.register(r'samples', views.SampleViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ path('', includ...
33.533333
82
0.735586
7940755c2d2f568b40c5466ab1dd341cb3f6d151
888
py
Python
src/environments/_test_env/test_env.py
mad-rl/mad-rl-framework
61de0458e22a95ccec8f52a56ee7ab331641436f
[ "MIT" ]
6
2019-06-13T10:49:29.000Z
2020-07-12T11:13:23.000Z
src/environments/_test_env/test_env.py
mad-rl/mad-rl-framework
61de0458e22a95ccec8f52a56ee7ab331641436f
[ "MIT" ]
17
2019-06-15T15:43:23.000Z
2022-03-11T23:51:19.000Z
src/environments/_test_env/test_env.py
mad-rl/mad-rl-framework
61de0458e22a95ccec8f52a56ee7ab331641436f
[ "MIT" ]
null
null
null
''' This is a Mock Environment only for testing purposes. This Mock Environment implements the very mandatory methods that an RL environment should has. Usually you will use an Environment like OpenAI Gym which has almost the same main methods. ''' class Test_Env(): def __init__(self): self.ac...
30.62069
98
0.657658
794078d14ef5cbdf119d9abc9859774f028ee8d1
341
py
Python
grr/server/grr_response_server/gui/local/local.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/gui/local/local.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/gui/local/local.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
1
2020-07-09T01:08:48.000Z
2020-07-09T01:08:48.000Z
#!/usr/bin/env python """Additional (user-specific) UI logic.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from grr.core.grr_response_server.lib import registry class LocalGuiInitHook(registry.InitHook): """User-specific init logic.""" def Run...
22.733333
53
0.780059
794078e29f74ffea207d61a0ca65bf8121e8db19
2,693
py
Python
custom_components/gtasks/sensor.py
kubeeapp/kubee-gtasks
77d8c69c5b6c72f5d007472417a204d0a2b39a0b
[ "Apache-2.0" ]
null
null
null
custom_components/gtasks/sensor.py
kubeeapp/kubee-gtasks
77d8c69c5b6c72f5d007472417a204d0a2b39a0b
[ "Apache-2.0" ]
null
null
null
custom_components/gtasks/sensor.py
kubeeapp/kubee-gtasks
77d8c69c5b6c72f5d007472417a204d0a2b39a0b
[ "Apache-2.0" ]
null
null
null
"""Sensor platform for Gtasks.""" from homeassistant.helpers.entity import Entity from datetime import timedelta, date from .const import ( ATTRIBUTION, DEFAULT_NAME, DOMAIN_DATA, ICON, DOMAIN, SENSOR_UNIT_OF_MEASUREMENT, ) from datetime import datetime, timedelta async def async_setup_platfo...
27.20202
80
0.602674
794078f6921994f0252f7b2a7280cb1d9e65d0be
3,197
py
Python
Solution_File_D-Getting_SASPy_Environment_Info.py
ilankham/wuss-2019-half-day-class
7b872e5ee294e62c62a20c5cd7b4e441df63f70a
[ "MIT" ]
2
2019-09-04T03:29:12.000Z
2021-03-02T07:22:08.000Z
Solution_File_D-Getting_SASPy_Environment_Info.py
ilankham/wuss-2019-half-day-class
7b872e5ee294e62c62a20c5cd7b4e441df63f70a
[ "MIT" ]
null
null
null
Solution_File_D-Getting_SASPy_Environment_Info.py
ilankham/wuss-2019-half-day-class
7b872e5ee294e62c62a20c5cd7b4e441df63f70a
[ "MIT" ]
3
2019-09-04T05:57:02.000Z
2019-09-15T21:21:47.000Z
# Everything is better with friends: Executing SAS® code in Python scripts with # SASPy, and turbocharging your SAS programming with open-source tooling # # Half-day class, Western Users of SAS Software (WUSS) 2019 ############################################################################### # Exercise 10: Getting ...
42.065789
79
0.59681
79407a05cb0099811dcbe1a2fab4b5592e9a3d32
6,174
py
Python
protein_inference/benchmarking/benchmark_percolator_inference.py
MassDynamics/protein-inference
05cc9738a3fcd074d8e6789bb24979a9837082cf
[ "MIT" ]
4
2020-11-25T03:08:07.000Z
2020-11-25T23:28:06.000Z
protein_inference/benchmarking/benchmark_percolator_inference.py
MassDynamics/protein-inference
05cc9738a3fcd074d8e6789bb24979a9837082cf
[ "MIT" ]
null
null
null
protein_inference/benchmarking/benchmark_percolator_inference.py
MassDynamics/protein-inference
05cc9738a3fcd074d8e6789bb24979a9837082cf
[ "MIT" ]
1
2020-11-25T04:52:04.000Z
2020-11-25T04:52:04.000Z
import pandas as pd import plotly.express as px import plotly.graph_objects as go class ProcessPercolatorInference(): def load_protein_table(self, path): protein_table = pd.read_csv(path, sep="\t") protein_table["peptides"] = protein_table.peptideIds.str.split(r"\s") return protein_table[...
48.234375
107
0.521218
79407a58e267171f10bff394a3153f55e56d3621
4,143
py
Python
venv/Lib/site-packages/torch/optim/adagrad.py
countBMB/BenjiRepo
79d882263baaf2a11654ca67d2e5593074d36dfa
[ "Apache-2.0" ]
1
2020-02-24T06:23:07.000Z
2020-02-24T06:23:07.000Z
venv/Lib/site-packages/torch/optim/adagrad.py
countBMB/BenjiRepo
79d882263baaf2a11654ca67d2e5593074d36dfa
[ "Apache-2.0" ]
4
2021-06-02T00:49:27.000Z
2022-01-13T01:59:34.000Z
venv/Lib/site-packages/torch/optim/adagrad.py
countBMB/BenjiRepo
79d882263baaf2a11654ca67d2e5593074d36dfa
[ "Apache-2.0" ]
null
null
null
import torch from .optimizer import Optimizer class Adagrad(Optimizer): """Implements Adagrad algorithm. It has been proposed in `Adaptive Subgradient Methods for Online Learning and Stochastic Optimization`_. Arguments: params (iterable): iterable of parameters to optimize or dicts defining...
41.019802
109
0.562636
79407a79002883565f6e7eb9f81dba139fd8bebf
2,462
py
Python
dist/ba_data/python/ba/_asyncio.py
driftywinds/bombsquad-modded-server
504c8b47f978508c6d06dd684536883d8c36972e
[ "MIT" ]
1
2022-02-25T15:51:18.000Z
2022-02-25T15:51:18.000Z
dist/ba_data/python/ba/_asyncio.py
driftywinds/bombsquad-modded-server
504c8b47f978508c6d06dd684536883d8c36972e
[ "MIT" ]
null
null
null
dist/ba_data/python/ba/_asyncio.py
driftywinds/bombsquad-modded-server
504c8b47f978508c6d06dd684536883d8c36972e
[ "MIT" ]
null
null
null
# Released under the MIT License. See LICENSE for details. # """Asyncio related functionality. Exploring the idea of allowing Python coroutines to run gracefully besides our internal event loop. They could prove useful for networking operations or possibly game logic. """ from __future__ import annotations from typi...
33.726027
72
0.692526
79407a913c46a13f3ba0bde4da9b49aaa30d60e4
56,592
py
Python
pgmpy/tests/test_factors/test_discrete/test_Factor.py
daanknoope/pgmpy
b1ad5ec01837dc1fc369dd542971492fae642ab4
[ "MIT" ]
null
null
null
pgmpy/tests/test_factors/test_discrete/test_Factor.py
daanknoope/pgmpy
b1ad5ec01837dc1fc369dd542971492fae642ab4
[ "MIT" ]
20
2019-02-22T09:24:57.000Z
2019-02-25T14:53:54.000Z
pgmpy/tests/test_factors/test_discrete/test_Factor.py
daanknoope/pgmpy
b1ad5ec01837dc1fc369dd542971492fae642ab4
[ "MIT" ]
null
null
null
import unittest import warnings from collections import OrderedDict import numpy as np import numpy.testing as np_test from pgmpy.extern.six.moves import range from pgmpy.factors.discrete import DiscreteFactor from pgmpy.factors.discrete import JointProbabilityDistribution as JPD from pgmpy.factors import factor_divi...
53.74359
119
0.493232
79407aec16063aa8bec53b5b2c395fc6cefff38e
4,852
py
Python
qa/rpc-tests/httpbasics.py
proteanx/DeVault-Core
b866989b33f64fa462e0516933fecc681fa57f92
[ "MIT" ]
null
null
null
qa/rpc-tests/httpbasics.py
proteanx/DeVault-Core
b866989b33f64fa462e0516933fecc681fa57f92
[ "MIT" ]
null
null
null
qa/rpc-tests/httpbasics.py
proteanx/DeVault-Core
b866989b33f64fa462e0516933fecc681fa57f92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test rpc http basics # from test_framework.test_framework import DeVaultTestFramework from test_fram...
42.561404
108
0.63211
79407b2d222d26d99f7feaf5c7379ab57be629c6
2,404
py
Python
cirtorch/enhance/color/hsv.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
3
2021-01-15T13:58:22.000Z
2021-01-22T00:03:34.000Z
cirtorch/enhance/color/hsv.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
cirtorch/enhance/color/hsv.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
import math import torch import torch.nn as nn def rgb_to_hsv(image, eps=1e-6): """ Convert an image from RGB to HSV. The image data is assumed to be in the range of (0, 1). """ if not isinstance(image, torch.Tensor): raise TypeError("Input type is not a torch.Tensor. Got {}".for...
25.574468
112
0.505408
79407b391210e62b59481b6a88d7fc79a440a95f
7,143
py
Python
core/active/build.py
BIT-DA/RIPU
125edf112c9ded1e7497aedb2a092331824df100
[ "MIT" ]
9
2022-03-13T06:53:04.000Z
2022-03-31T11:28:09.000Z
core/active/build.py
BinhuiXie/RIPU
125edf112c9ded1e7497aedb2a092331824df100
[ "MIT" ]
null
null
null
core/active/build.py
BinhuiXie/RIPU
125edf112c9ded1e7497aedb2a092331824df100
[ "MIT" ]
5
2022-03-18T07:18:13.000Z
2022-03-31T11:28:11.000Z
import math import torch import numpy as np import torch.nn.functional as F from PIL import Image from tqdm import tqdm from .floating_region import FloatingRegionScore from .spatial_purity import SpatialPurity def PixelSelection(cfg, feature_extractor, classifier, tgt_epoch_loader): feature_extractor.eval() ...
43.03012
123
0.575248
79407b3a83b70aeea4b5a43698517db43179640d
4,426
py
Python
tests/integration/TestHazard.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
tests/integration/TestHazard.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
tests/integration/TestHazard.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
2
2020-04-03T04:14:42.000Z
2021-02-22T05:30:35.000Z
#!/usr/bin/env python -O """ This is the test class for testing Hazard module algorithms and models. """ # -*- coding: utf-8 -*- # # tests.integration.TestHazard.py is part of The RTK Project # # All rights reserved. # Copyright 2007 - 2017 Andrew Rowland andrew.rowland <AT> reliaqual <DOT> com # # Redistributio...
34.046154
79
0.682332
79407b552678a43c502326803b52b701468cb436
1,549
py
Python
src/genie/libs/parser/viptela/tests/ShowSystemStatus/cli/equal/golden_output3_expected.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/viptela/tests/ShowSystemStatus/cli/equal/golden_output3_expected.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/viptela/tests/ShowSystemStatus/cli/equal/golden_output3_expected.py
ykoehler/genieparser
b62cf622c3d8eab77c7b69e932c214ed04a2565a
[ "Apache-2.0" ]
null
null
null
expected_output = { 'boot_loader_version': 'Not applicable', 'build': 'Not applicable', 'chassis_serial_number': 'TTM25160B2Q', 'cloud_hosted_instance': 'false', 'commit_pending': 'false', 'configuration_template': 'None', 'controller_compatibility': '20.7', 'cpu_allocation': { '...
28.163636
52
0.556488
79407bb78bc358c44ce2fdd5b38afde044638ea1
5,349
py
Python
server/swagger_server/internal/db.py
kakwa/certascale
0df8da0f518506500117152fd0e28ee3286949af
[ "MIT" ]
null
null
null
server/swagger_server/internal/db.py
kakwa/certascale
0df8da0f518506500117152fd0e28ee3286949af
[ "MIT" ]
null
null
null
server/swagger_server/internal/db.py
kakwa/certascale
0df8da0f518506500117152fd0e28ee3286949af
[ "MIT" ]
2
2020-11-04T03:07:00.000Z
2020-11-05T08:14:33.000Z
import sqlalchemy from sqlalchemy import create_engine, ForeignKey from sqlalchemy import Column, Integer, String from sqlalchemy.types import DateTime, Boolean, LargeBinary from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from v...
32.222892
107
0.677884
79407c97c2d86e6478fb30d55ec3b496023fe448
760
py
Python
Learning/Example1.py
balarsen/pymc_learning
e4a077d492af6604a433433e64b835ce4ed0333a
[ "BSD-3-Clause" ]
null
null
null
Learning/Example1.py
balarsen/pymc_learning
e4a077d492af6604a433433e64b835ce4ed0333a
[ "BSD-3-Clause" ]
null
null
null
Learning/Example1.py
balarsen/pymc_learning
e4a077d492af6604a433433e64b835ce4ed0333a
[ "BSD-3-Clause" ]
1
2017-05-23T16:38:55.000Z
2017-05-23T16:38:55.000Z
# http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3097064/ from pylab import * import spacepy.plot as spp # for the styles import numpy as np import pymc as pm import pymc import numpy as np n = 5 * np.ones(4, dtype=int) x = np.array([-.86, -.3, -.05, .73]) alpha = pymc.Normal('alpha', mu=0, tau=.01) beta = pymc.Normal...
23.030303
70
0.632895
79407d00b03c431abf51d0414df956e00781d8c5
6,760
py
Python
tests/integration/garden/test_forms.py
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
tests/integration/garden/test_forms.py
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
tests/integration/garden/test_forms.py
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
from datetime import timedelta import pytest from django.core.exceptions import ValidationError from garden.forms import (GardenForm, INVALID_DURATION_ERR_MSG, MAX_VALUE_ERR_MSG, MIN_VALUE_ERR_MSG, REQUIRED_FIELD_ERR_MSG, NewGardenForm, WateringStationForm) from gar...
41.219512
155
0.726479
79407d15fd7f0cc7e2f39117854615b6331495fd
12,000
py
Python
tests/python/unittest/test_contrib_svrg_module.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
228
2018-12-06T09:34:01.000Z
2022-03-08T17:02:02.000Z
tests/python/unittest/test_contrib_svrg_module.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
187
2018-03-16T23:44:43.000Z
2021-12-14T21:19:54.000Z
tests/python/unittest/test_contrib_svrg_module.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.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...
38.216561
119
0.672
79407ec5732d2c521c813d686bec0cbe0e639c3d
2,683
py
Python
launch/no_roof_small_warehouse_launch.py
Adlink-ROS/aws-robomaker-small-warehouse-world
17c805aa48879ac879a159058187910180640b4a
[ "MIT-0" ]
null
null
null
launch/no_roof_small_warehouse_launch.py
Adlink-ROS/aws-robomaker-small-warehouse-world
17c805aa48879ac879a159058187910180640b4a
[ "MIT-0" ]
null
null
null
launch/no_roof_small_warehouse_launch.py
Adlink-ROS/aws-robomaker-small-warehouse-world
17c805aa48879ac879a159058187910180640b4a
[ "MIT-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...
35.773333
124
0.800596
79407f37642da2b0752564df5636422bc37dcabf
15,648
py
Python
esrally/utils/io.py
darrodri/rally
235ab99f08056699e8a105ec6df2158c7f79d5f7
[ "Apache-2.0" ]
null
null
null
esrally/utils/io.py
darrodri/rally
235ab99f08056699e8a105ec6df2158c7f79d5f7
[ "Apache-2.0" ]
null
null
null
esrally/utils/io.py
darrodri/rally
235ab99f08056699e8a105ec6df2158c7f79d5f7
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
35.085202
144
0.658998
79407f65e216bcc639f51f24c0e2539f2f385bcb
1,961
py
Python
setup.py
oPromessa/flickr-rsync
a7893e199e237f99b4a447a923c09cabb4090d17
[ "MIT" ]
null
null
null
setup.py
oPromessa/flickr-rsync
a7893e199e237f99b4a447a923c09cabb4090d17
[ "MIT" ]
null
null
null
setup.py
oPromessa/flickr-rsync
a7893e199e237f99b4a447a923c09cabb4090d17
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Python setuptools install script. Run with "python setup.py install" to install FlickrAPI """ from __future__ import print_function import os import sys import unittest # Check the Python version (major, minor) = sys.version_info[:2] if (major, minor) < (2, 7) or (major == 3 and minor < 6):...
26.863014
136
0.667517
79408124f194fe88a666c4bcfc498f812f80c3e4
1,685
py
Python
irobot/tests/commands_test.py
bhargav-nunna/irobot
9251f71267fa8cf5e9620f70aa892ae1b7a182f9
[ "Unlicense" ]
13
2018-08-19T07:09:36.000Z
2021-08-10T22:52:31.000Z
irobot/tests/commands_test.py
bhargav-nunna/irobot
9251f71267fa8cf5e9620f70aa892ae1b7a182f9
[ "Unlicense" ]
null
null
null
irobot/tests/commands_test.py
bhargav-nunna/irobot
9251f71267fa8cf5e9620f70aa892ae1b7a182f9
[ "Unlicense" ]
4
2019-01-21T20:03:36.000Z
2021-01-26T23:59:00.000Z
__author__ = 'Matthew Witherwax (lemoneer)' import unittest from irobot.openinterface.commands import * def to_str(data): return '[' + '|'.join((('0x%0.2X' % b) for b in data)) + ']' class TestCommands(unittest.TestCase): def test_drive(self): cmd = drive(-200, 500) self.asse...
39.186047
118
0.616024
7940826070eb362f82a378bdf82d9c1a7acfa5c8
164
py
Python
CourseExampleAssignements/primes.py
Dazpoet/Learning-python
60550fc95a1be6e454e688f89644adca2316d164
[ "BSD-3-Clause" ]
null
null
null
CourseExampleAssignements/primes.py
Dazpoet/Learning-python
60550fc95a1be6e454e688f89644adca2316d164
[ "BSD-3-Clause" ]
null
null
null
CourseExampleAssignements/primes.py
Dazpoet/Learning-python
60550fc95a1be6e454e688f89644adca2316d164
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- for n in range (2,25): for i in range(2, n): if n % i == 0: break else: print(n)
18.222222
25
0.445122
794082c50f813c49511b9893139cc290bb8e2395
14,616
py
Python
lambda_functions/odigo/odigo.py
Robyo12121/rightcall
c2dd5d6b01f44a0299e19d67b148f802a86c30fa
[ "Unlicense" ]
null
null
null
lambda_functions/odigo/odigo.py
Robyo12121/rightcall
c2dd5d6b01f44a0299e19d67b148f802a86c30fa
[ "Unlicense" ]
2
2019-02-12T14:10:16.000Z
2019-02-13T13:54:13.000Z
lambda_functions/odigo/odigo.py
Robyo12121/rightcall
c2dd5d6b01f44a0299e19d67b148f802a86c30fa
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- import os import sys import time import datetime import pandas as pd from bs4 import BeautifulSoup from requestium import Session from selenium.webdriver.common.action_chains import ActionChains from dotenv import load_dotenv from lxml import html load_dotenv() usern...
35.389831
197
0.638273
7940831e92f4c1b77f11c637a38a596f09102845
1,083
py
Python
boneik/io.py
cheind/bone-solve-ik
e95ad73e438923c7e63e668b109e8a4734b62a96
[ "MIT" ]
1
2022-01-08T12:14:03.000Z
2022-01-08T12:14:03.000Z
boneik/io.py
cheind/bone-solve-ik
e95ad73e438923c7e63e668b109e8a4734b62a96
[ "MIT" ]
null
null
null
boneik/io.py
cheind/bone-solve-ik
e95ad73e438923c7e63e668b109e8a4734b62a96
[ "MIT" ]
null
null
null
import json import numpy as np from pathlib import Path from . import kinematics from . import utils def load_json(jsonpath: Path) -> kinematics.Body: jsonpath = Path(jsonpath) assert jsonpath.is_file() data = json.load(open(jsonpath, "r")) b = kinematics.BodyBuilder() def _convert_interval(i): ...
23.543478
77
0.588181
794084ddc3f4bffafd53731c0fb7c04056de43e7
15,334
py
Python
donphan/_insertable.py
bijij/Donphan
fabe2ea77fed0c4921dc370124b338ab8c1420ce
[ "MIT" ]
17
2019-11-09T18:22:31.000Z
2021-08-24T22:40:03.000Z
donphan/_insertable.py
bijij/Donphan
fabe2ea77fed0c4921dc370124b338ab8c1420ce
[ "MIT" ]
2
2021-05-30T17:03:01.000Z
2021-10-13T09:51:45.000Z
donphan/_insertable.py
bijij/Donphan
fabe2ea77fed0c4921dc370124b338ab8c1420ce
[ "MIT" ]
3
2020-09-28T16:30:53.000Z
2022-02-06T03:21:34.000Z
""" MIT License Copyright (c) 2019-present Josh B Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
31.230143
111
0.594039
794085d0032e6a1a732c0ea0bc9c288f99ad3b57
2,473
py
Python
sdks/python/apache_beam/internal/http_client.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/apache_beam/internal/http_client.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
71
2018-05-23T22:20:02.000Z
2019-04-30T15:37:46.000Z
sdks/python/apache_beam/internal/http_client.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.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 us...
33.418919
78
0.754145
794086c00bdb488d58e9465d3bbae4142b8fd280
435
py
Python
src/parser.py
dotfortun/wumpys
01eac1045ee0844972d01b6d75ee842390c60d26
[ "MIT" ]
null
null
null
src/parser.py
dotfortun/wumpys
01eac1045ee0844972d01b6d75ee842390c60d26
[ "MIT" ]
null
null
null
src/parser.py
dotfortun/wumpys
01eac1045ee0844972d01b6d75ee842390c60d26
[ "MIT" ]
null
null
null
import csv class Parser(object): """docstring for Parser.""" def __init__(self, _lang = 'en_us'): super(Parser, self).__init__() reader = [] self.strings = {} with open(_lang + '.csv', 'rb') as localization: reader = csv.reader(localization) for row in reader...
27.1875
56
0.570115
794086ce36a97fec1f377ce2158aa0d7289e1295
21,980
py
Python
pw_env_setup/py/pw_env_setup/env_setup.py
silvergasp/pigweed
b095218bcd7064ddcc5af5f689ce235fc9e4cc91
[ "Apache-2.0" ]
null
null
null
pw_env_setup/py/pw_env_setup/env_setup.py
silvergasp/pigweed
b095218bcd7064ddcc5af5f689ce235fc9e4cc91
[ "Apache-2.0" ]
null
null
null
pw_env_setup/py/pw_env_setup/env_setup.py
silvergasp/pigweed
b095218bcd7064ddcc5af5f689ce235fc9e4cc91
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2020 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.660031
80
0.608098
794087a7086892c12de4f1ca32b5366b45b9d017
2,006
py
Python
scripts/generate_README.py
nmningmei/melody_embedding
e82b4c897b421e61a1909e5b4f44523e3cb7aa61
[ "MIT" ]
null
null
null
scripts/generate_README.py
nmningmei/melody_embedding
e82b4c897b421e61a1909e5b4f44523e3cb7aa61
[ "MIT" ]
null
null
null
scripts/generate_README.py
nmningmei/melody_embedding
e82b4c897b421e61a1909e5b4f44523e3cb7aa61
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Oct 12 10:40:48 2019 @author: nmei """ import os import pandas as pd import torch from torchvision import models from torchvision.transforms import functional as TF from torch import optim from torch.utils.data import...
27.108108
92
0.61665
79408870623797bbab98ea5420ab6c0a60facbeb
12,690
py
Python
setup.py
hwangdeyu/onnxruntime
989fe2498f4dd0beaf1b4324bf74a39abaf86a29
[ "MIT" ]
null
null
null
setup.py
hwangdeyu/onnxruntime
989fe2498f4dd0beaf1b4324bf74a39abaf86a29
[ "MIT" ]
null
null
null
setup.py
hwangdeyu/onnxruntime
989fe2498f4dd0beaf1b4324bf74a39abaf86a29
[ "MIT" ]
1
2020-11-09T07:51:33.000Z
2020-11-09T07:51:33.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. #-------------------------------------------------------------------------- from setuptools import setup, find_packages, Extension from distutils impo...
36.889535
153
0.660126
794089c7037c1c328f01dc0db6fa6994316830a5
6,449
py
Python
3d-tracking/lib/utils/net_utils.py
sadjadasghari/3d-vehicle-tracking
af05d52be81db32fc6a21bf60a757ebc46557998
[ "BSD-3-Clause" ]
2
2019-10-11T02:19:58.000Z
2019-10-11T02:20:22.000Z
3d-tracking/lib/utils/net_utils.py
reinforcementdriving/3d-vehicle-tracking
f8433f72a51dd1a7190570e63e9fda4a924a81f0
[ "BSD-3-Clause" ]
null
null
null
3d-tracking/lib/utils/net_utils.py
reinforcementdriving/3d-vehicle-tracking
f8433f72a51dd1a7190570e63e9fda4a924a81f0
[ "BSD-3-Clause" ]
null
null
null
import random import cv2 import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from model.roi_crop.functions.roi_crop import RoICropFunction from model.utils.config import cfg from torch.autograd import Variable def save_net(fname, net): import h5py h5f = h5py.File(fname, mode...
30.709524
78
0.540394
79408a451c0657a529f04c32b42c3f4958c0bb35
7,031
py
Python
BSSN/BSSN_stress_energy_source_terms.py
ksible/nrpytutorial
4ca6e9da22def2a9c9bcbcad75847fd1db159f4b
[ "BSD-2-Clause" ]
1
2021-12-13T05:51:18.000Z
2021-12-13T05:51:18.000Z
BSSN/BSSN_stress_energy_source_terms.py
ksible/nrpytutorial
4ca6e9da22def2a9c9bcbcad75847fd1db159f4b
[ "BSD-2-Clause" ]
null
null
null
BSSN/BSSN_stress_energy_source_terms.py
ksible/nrpytutorial
4ca6e9da22def2a9c9bcbcad75847fd1db159f4b
[ "BSD-2-Clause" ]
null
null
null
# As documented in the NRPy+ tutorial module # Tutorial-BSSN_stress_energy_source_terms.ipynb, # this module will construct expressions for # BSSN stress-energy source terms, in terms of # elements of T^{mu nu}. # Author: Zachariah B. Etienne # zachetie **at** gmail **dot* com import sympy as sp ...
43.401235
125
0.637747
79408bc3c9a32ddcd3c5c6049cd695e96e409be8
4,764
py
Python
model.py
rashidhaffadi/EGT
827eab656548ba47a07cfe21c1e0f4335c74f52a
[ "MIT" ]
null
null
null
model.py
rashidhaffadi/EGT
827eab656548ba47a07cfe21c1e0f4335c74f52a
[ "MIT" ]
null
null
null
model.py
rashidhaffadi/EGT
827eab656548ba47a07cfe21c1e0f4335c74f52a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.functional import F def load_model(output_size, num_of_ngrams=200000,pretrained=False, path="/", name="checkpoint1.state_dict"): device = torch.device("cuda" if torch.cuda.is_available() else "cpu") model = SequenceModel().to(device).eval() if pretrained:...
29.590062
118
0.65932
79408cb104f56eb379d7c716fedaab025c28d03c
2,409
py
Python
python/snippets/stt_streaming_recognize_gender_identification.py
dchebakov/voicekit-examples
bb77eddafcb50d409fb8e6a1c80331d92dbc2be9
[ "Apache-2.0" ]
24
2019-11-01T22:31:32.000Z
2021-10-08T10:30:36.000Z
python/snippets/stt_streaming_recognize_gender_identification.py
dchebakov/voicekit-examples
bb77eddafcb50d409fb8e6a1c80331d92dbc2be9
[ "Apache-2.0" ]
19
2019-10-23T21:24:33.000Z
2021-12-08T21:06:06.000Z
python/snippets/stt_streaming_recognize_gender_identification.py
dchebakov/voicekit-examples
bb77eddafcb50d409fb8e6a1c80331d92dbc2be9
[ "Apache-2.0" ]
24
2019-12-03T09:48:53.000Z
2021-12-10T10:50:15.000Z
#!/usr/bin/env python3 import sys sys.path.append("..") from tinkoff.cloud.stt.v1 import stt_pb2_grpc, stt_pb2 from auth import authorization_metadata import grpc import os import wave endpoint = os.environ.get("VOICEKIT_ENDPOINT") or "api.tinkoff.ai:443" api_key = os.environ["VOICEKIT_API_KEY"] secret_key = os.envi...
44.611111
110
0.723537
79408cc9e791305bf6465c4f1b14ed37d820447d
186
py
Python
src/api_rutas/routers/catalogo.py
PythonistaMX/py261
614de0c8c78f26f10d485f1f46fc2c673fc79b6f
[ "MIT" ]
null
null
null
src/api_rutas/routers/catalogo.py
PythonistaMX/py261
614de0c8c78f26f10d485f1f46fc2c673fc79b6f
[ "MIT" ]
null
null
null
src/api_rutas/routers/catalogo.py
PythonistaMX/py261
614de0c8c78f26f10d485f1f46fc2c673fc79b6f
[ "MIT" ]
null
null
null
from fastapi import APIRouter from typing import List from data import CARRERAS router = APIRouter() @router.get("/carreras") def consulta_carreras(): return {'carreras': CARRERAS}
20.666667
33
0.763441
79408d48586f955811db76842dda8219b438116f
3,384
py
Python
django/contrib/gis/gdal/libgdal.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
23
2020-09-07T02:32:09.000Z
2022-01-29T06:49:43.000Z
virtual/lib/python3.6/site-packages/django/contrib/gis/gdal/libgdal.py
kahenya-anita/Insta-Clone
4894e959c17170505e73aee6dc497aeb29d55a71
[ "MIT" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
virtual/lib/python3.6/site-packages/django/contrib/gis/gdal/libgdal.py
kahenya-anita/Insta-Clone
4894e959c17170505e73aee6dc497aeb29d55a71
[ "MIT" ]
11
2020-07-31T08:20:43.000Z
2020-08-21T04:08:29.000Z
import logging import os import re from ctypes import CDLL, CFUNCTYPE, c_char_p, c_int from ctypes.util import find_library from django.contrib.gis.gdal.error import GDALException from django.core.exceptions import ImproperlyConfigured logger = logging.getLogger('django.contrib.gis') # Custom library path set? try: ...
27.966942
92
0.695331
79408e3c3fd329be9483d69a8d6e7964c98b998e
4,986
py
Python
allennlp/allennlp/modules/stacked_alternating_lstm.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
allennlp/allennlp/modules/stacked_alternating_lstm.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
allennlp/allennlp/modules/stacked_alternating_lstm.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
""" A stacked LSTM with LSTM layers which alternate between going forwards over the sequence and going backwards. """ from typing import Optional, Tuple, Union, List import torch from torch.nn.utils.rnn import PackedSequence from allennlp.modules.augmented_lstm import AugmentedLstm from allennlp.common.checks import C...
39.888
87
0.654232
79408e7bad606937443c0ef22182273ec2de712e
5,024
py
Python
project_1_2/src/bbox.py
tillaczel/Deep-Learning-in-Computer-Vision
792e90a3ad5bafdb30e0267226c2c75b8afd01e3
[ "MIT" ]
null
null
null
project_1_2/src/bbox.py
tillaczel/Deep-Learning-in-Computer-Vision
792e90a3ad5bafdb30e0267226c2c75b8afd01e3
[ "MIT" ]
null
null
null
project_1_2/src/bbox.py
tillaczel/Deep-Learning-in-Computer-Vision
792e90a3ad5bafdb30e0267226c2c75b8afd01e3
[ "MIT" ]
1
2021-06-08T09:28:01.000Z
2021-06-08T09:28:01.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches import os import torch import wandb from torch import nn from tqdm import tqdm from project_1_2.src.data import get_data_raw def plt_bboxes(img, bboxes, labels, filename=None): fig, axs = plt.subplots(1, 1, figsize=(10, 10))...
40.845528
127
0.600916
79408fd7b054da64da452849eb1ca6b7ec8962c9
1,141
py
Python
Plugins/Aspose-Cells-Java-for-Jython/asposecells/WorkingWithWorksheets/ProtectingWorksheet.py
mnote/Aspose.Cells-for-Java
bf71d5a86806effd279af93fd511dbefd90106e5
[ "MIT" ]
90
2016-04-14T10:14:58.000Z
2022-03-29T07:40:21.000Z
Plugins/Aspose-Cells-Java-for-Jython/asposecells/WorkingWithWorksheets/ProtectingWorksheet.py
mnote/Aspose.Cells-for-Java
bf71d5a86806effd279af93fd511dbefd90106e5
[ "MIT" ]
19
2018-03-23T09:50:42.000Z
2021-11-01T09:37:38.000Z
Plugins/Aspose-Cells-Java-for-Jython/asposecells/WorkingWithWorksheets/ProtectingWorksheet.py
mnote/Aspose.Cells-for-Java
bf71d5a86806effd279af93fd511dbefd90106e5
[ "MIT" ]
72
2016-04-09T07:16:12.000Z
2022-03-23T20:28:09.000Z
from asposecells import Settings from com.aspose.cells import Workbook from com.aspose.cells import SaveFormat class ProtectingWorksheet: def __init__(self): dataDir = Settings.dataDir + 'WorkingWithWorksheets/ProtectingWorksheet/' #Instantiating a Excel object by excel file pa...
32.6
82
0.672217
794090e5dbc49acfbf7cdb2b57dd503ec9221c82
719
py
Python
test/test_images_audits_api.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
2
2022-01-27T10:36:33.000Z
2022-03-09T14:21:12.000Z
test/test_images_audits_api.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
7
2022-01-13T10:44:19.000Z
2022-02-15T23:44:44.000Z
test/test_images_audits_api.py
p-fruck/python-contabo
c3abd362a0b90783118f36bec0e557bdbe5a8f2c
[ "Apache-2.0" ]
null
null
null
""" Contabo API The version of the OpenAPI document: 1.0.0 Contact: support@contabo.com Generated by: https://openapi-generator.tech """ import unittest import pfruck_contabo from pfruck_contabo.api.images_audits_api import ImagesAuditsApi # noqa: E501 class TestImagesAuditsApi(unittest.TestCase...
19.972222
78
0.67733
794092c7c6167735d303d2de57e5b852a5a23c19
897
py
Python
examples/undocumented/python_modular/kernel_sparse_linear_modular.py
srgnuclear/shogun
33c04f77a642416376521b0cd1eed29b3256ac13
[ "Ruby", "MIT" ]
1
2015-11-05T18:31:14.000Z
2015-11-05T18:31:14.000Z
examples/undocumented/python_modular/kernel_sparse_linear_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
examples/undocumented/python_modular/kernel_sparse_linear_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
#!/usr/bin/env python from tools.load import LoadMatrix lm=LoadMatrix() traindat = lm.load_numbers('../data/fm_train_real.dat') testdat = lm.load_numbers('../data/fm_test_real.dat') parameter_list = [[traindat,testdat,1.1],[traindat,testdat,1.2]] def kernel_sparse_linear_modular (fm_train_real=traindat,fm_test_real=...
30.931034
89
0.816054
794096875d29da17c61cd2ad7231b29f1af38cba
12,482
py
Python
boto/emr/emrobject.py
scriptsrc/boto
5506aba84638f921bc84b125f78d5e1c600d14fb
[ "MIT" ]
null
null
null
boto/emr/emrobject.py
scriptsrc/boto
5506aba84638f921bc84b125f78d5e1c600d14fb
[ "MIT" ]
1
2021-04-30T21:35:51.000Z
2021-04-30T21:35:51.000Z
boto/emr/emrobject.py
scriptsrc/boto
5506aba84638f921bc84b125f78d5e1c600d14fb
[ "MIT" ]
null
null
null
# Copyright (c) 2010 Spotify AB # Copyright (c) 2010 Jeremy Thurgood <firxen+boto@gmail.com> # Copyright (c) 2010-2011 Yelp # # 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 restricti...
25.114688
79
0.585563
794096e126e50af4d55931eb91660da94428a383
5,554
py
Python
deep CNN features/xception_extract.py
subhankar01/Covid-Chestxray-lambda-fuzzy
dff45f39a6cacda2848319ce192d2bd88d4a0d13
[ "MIT" ]
5
2021-09-21T05:36:38.000Z
2022-03-27T11:46:31.000Z
deep CNN features/xception_extract.py
kirti031/covidfs-aihc
188d766569d768332ff0f0ee392bdf4d438e3da2
[ "MIT" ]
1
2022-03-28T05:35:23.000Z
2022-03-28T05:35:23.000Z
deep CNN features/xception_extract.py
kirti031/covidfs-aihc
188d766569d768332ff0f0ee392bdf4d438e3da2
[ "MIT" ]
5
2021-07-26T07:18:09.000Z
2022-02-08T20:11:31.000Z
import os from os.path import basename, join, exists import numpy as np import math np.random.seed(777) import tensorflow_addons as tfa from tensorflow.keras import models from tensorflow.keras import layers from tensorflow.keras import models from tensorflow.keras import optimizers from tensorflow.keras imp...
39.112676
153
0.725423
794097a539c0527c4d1eddbba8dada197ad99e92
136
py
Python
New folder/Re5.py
piyushparastiwari/python-project
5dba0ef4e77f1d2528f510327de4224b60b1d4ba
[ "Apache-2.0" ]
null
null
null
New folder/Re5.py
piyushparastiwari/python-project
5dba0ef4e77f1d2528f510327de4224b60b1d4ba
[ "Apache-2.0" ]
null
null
null
New folder/Re5.py
piyushparastiwari/python-project
5dba0ef4e77f1d2528f510327de4224b60b1d4ba
[ "Apache-2.0" ]
null
null
null
import re st=re.findall("amit","amit and amita belongs to same family") print(st) print(type(st)) for val in st: print(val)
17
62
0.661765
794099b79690a01fc125091849af22f3f674a9b8
12,764
py
Python
cryptoapis/model/get_transaction_details_by_transaction_idribsl_vout.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/get_transaction_details_by_transaction_idribsl_vout.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/get_transaction_details_by_transaction_idribsl_vout.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
45.423488
484
0.595425
794099f3733d9f29ae16bb1fe07e87791b9c79f9
83,138
py
Python
lib/tests/test_transaction.py
keepkeyjon/electrum
71c5e4f6bcfcfbf8944b1a1d84693a1a65b694bd
[ "MIT" ]
null
null
null
lib/tests/test_transaction.py
keepkeyjon/electrum
71c5e4f6bcfcfbf8944b1a1d84693a1a65b694bd
[ "MIT" ]
null
null
null
lib/tests/test_transaction.py
keepkeyjon/electrum
71c5e4f6bcfcfbf8944b1a1d84693a1a65b694bd
[ "MIT" ]
null
null
null
import unittest from lib import transaction from lib.bitcoin import TYPE_ADDRESS from lib.keystore import xpubkey_to_address from lib.util import bh2u unsigned_blob = '01000000012a5c9a94fcde98f5581cd00162c60a13936ceb75389ea65bf38633b424eb4031000000005701ff4c53ff0488b21e03ef2afea18000000089689bff23e1e7fb2f161daa37270a...
111.29585
3,841
0.899144
79409a19e31a597a2549497e81e88c1c1590a076
143
py
Python
languages/python/django-oso/tests/test_app/__init__.py
connec/oso
a12d94206807b69beb6fe7a9070b9afcacdfc845
[ "Apache-2.0" ]
2,167
2020-07-28T15:49:48.000Z
2022-03-31T06:11:28.000Z
languages/python/django-oso/tests/test_app/__init__.py
connec/oso
a12d94206807b69beb6fe7a9070b9afcacdfc845
[ "Apache-2.0" ]
1,060
2020-07-25T18:37:07.000Z
2022-03-30T05:49:44.000Z
languages/python/django-oso/tests/test_app/__init__.py
connec/oso
a12d94206807b69beb6fe7a9070b9afcacdfc845
[ "Apache-2.0" ]
118
2020-08-05T19:27:14.000Z
2022-03-31T16:37:39.000Z
from django.apps import AppConfig default_app_config = "test_app.TestAppAppConfig" class TestAppAppConfig(AppConfig): name = "test_app"
17.875
48
0.79021
79409a515f5f170bb6ab591d1f25de3a58b77860
273
py
Python
.idea/fileTemplates/internal/Python Script.py
AndyZ-Salz/Photo_adjust
edfc629d22b48d9d77e7b18f9a7fceabd413e85f
[ "MIT" ]
null
null
null
.idea/fileTemplates/internal/Python Script.py
AndyZ-Salz/Photo_adjust
edfc629d22b48d9d77e7b18f9a7fceabd413e85f
[ "MIT" ]
null
null
null
.idea/fileTemplates/internal/Python Script.py
AndyZ-Salz/Photo_adjust
edfc629d22b48d9d77e7b18f9a7fceabd413e85f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ --------------------------------------- @file : ${NAME} @Version : ?? @Author : Andy Zang @software: ${PRODUCT_NAME} @For : --------------------------------------- """ # History: # ${DATE}: Create if __name__ == '__main__': pass
15.166667
39
0.369963
79409a7464792823835489041f33726d7bbe7745
5,817
py
Python
PECNet/social_eth_ucy_utils.py
Mykko/Human-Path-Prediction
956fcf16b98c81cf8e23133f9a766192e17e63e0
[ "MIT" ]
null
null
null
PECNet/social_eth_ucy_utils.py
Mykko/Human-Path-Prediction
956fcf16b98c81cf8e23133f9a766192e17e63e0
[ "MIT" ]
null
null
null
PECNet/social_eth_ucy_utils.py
Mykko/Human-Path-Prediction
956fcf16b98c81cf8e23133f9a766192e17e63e0
[ "MIT" ]
null
null
null
import pickle import numpy as np from IPython import embed import csv import torch from torch import nn from torch.utils import data import os import sys sys.path.append('../') from eth_ucy_utils import * def get_pickle_path(set_name, set_type): _dir = os.path.dirname(__file__) if _dir: return _dir + '/datasets/{0...
31.106952
160
0.691937
79409aef19d0ff8b8d84f29dd09951c8689529fc
808
py
Python
ex101.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
1
2022-01-24T02:01:32.000Z
2022-01-24T02:01:32.000Z
ex101.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
ex101.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
# Crie um programa que tenha uma função chamada voto() que vai receber como parâmetro o ano de nascimento # de uma pessoa, retornando um valor literal indicando se uma pessoa tem voto NEGADO, OPCIONAL e # OBRIGATÓRIO nas eleições. def vote(birth_year): """ Verifica se a pessoa pode votar :param birth_year:...
32.32
105
0.670792
79409c7cc45ee6b8a1f165303ea3cb10bfff085e
2,969
py
Python
lib/bes/system/console.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
lib/bes/system/console.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
lib/bes/system/console.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- from os import path import os, sys from .host import host from .execute import execute class console(object): 'Class to deal with the console in a cross platform manner.' @classmethod def output(clazz, message, console ...
26.04386
96
0.634557
79409d5e7350cdb70ba95cd381679143f629cef5
887
py
Python
aversiestofunciona.py
juanitopereza/Granulacion
07e455fee338f86bf4dc5eae068b677e87a534d0
[ "MIT" ]
null
null
null
aversiestofunciona.py
juanitopereza/Granulacion
07e455fee338f86bf4dc5eae068b677e87a534d0
[ "MIT" ]
null
null
null
aversiestofunciona.py
juanitopereza/Granulacion
07e455fee338f86bf4dc5eae068b677e87a534d0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from os import listdir #%% def find_nearest(array,value): idx = np.argsort(np.abs(array-value))[0:2] return idx #%% mibisec = {} archivos = listdir("./lineas") NAVE = np.loadtxt("lineas_NAVE.txt") c = 299792458.0 # CODATA grav_red = 625.0 # redshift gravitaci...
23.342105
82
0.677565
79409dc6f34bba687c1e515aab356eb244aeca8b
828
py
Python
mp_demo11.py
xinhui94/hades
aed748df9b163337151093b54eebb78d66d74d81
[ "MIT" ]
null
null
null
mp_demo11.py
xinhui94/hades
aed748df9b163337151093b54eebb78d66d74d81
[ "MIT" ]
null
null
null
mp_demo11.py
xinhui94/hades
aed748df9b163337151093b54eebb78d66d74d81
[ "MIT" ]
null
null
null
from multiprocessing import Pool import time def f(x): return x*x if __name__ == '__main__': with Pool(processes=4) as pool: # start 4 worker processes # evaluate "f(10)" asynchronously in a single process result = pool.apply_async(f, (10,)) # prints "100" unless your compute...
30.666667
72
0.561594
79409e7c7c3a9a38f7992535f3a9c59fc9d41539
19,625
py
Python
service/cluster_service.py
reportportal/service-auto-analyzer
38508e012d0ceeb621c508ad09f16ad6b5a88602
[ "Apache-2.0" ]
8
2020-06-04T10:32:27.000Z
2022-02-17T08:11:00.000Z
service/cluster_service.py
reportportal/service-auto-analyzer
38508e012d0ceeb621c508ad09f16ad6b5a88602
[ "Apache-2.0" ]
9
2019-12-12T11:18:37.000Z
2022-02-19T16:17:28.000Z
service/cluster_service.py
reportportal/service-auto-analyzer
38508e012d0ceeb621c508ad09f16ad6b5a88602
[ "Apache-2.0" ]
12
2020-04-01T15:19:40.000Z
2022-03-03T14:41:55.000Z
""" * Copyright 2019 EPAM Systems * * 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,...
47.175481
103
0.551643
79409e7ec7ce04a51c73b38a7219038811ba556c
10,395
py
Python
mop/ui/module.py
HolisticCoders/mop
dc464021c7e69975fa9fcc06595cc91113768e5e
[ "MIT" ]
8
2019-09-21T07:17:54.000Z
2022-02-09T03:33:24.000Z
mop/ui/module.py
ProjectBorealis/master-of-puppets
dc464021c7e69975fa9fcc06595cc91113768e5e
[ "MIT" ]
102
2019-01-10T21:00:28.000Z
2019-03-28T11:32:45.000Z
mop/ui/module.py
HolisticCoders/mop
dc464021c7e69975fa9fcc06595cc91113768e5e
[ "MIT" ]
3
2020-01-12T01:37:34.000Z
2021-10-08T11:34:08.000Z
import logging from collections import defaultdict from functools import partial from operator import attrgetter from weakref import WeakValueDictionary import maya.cmds as cmds import maya.api.OpenMaya as om2 from mop.vendor.Qt import QtCore, QtWidgets from mop.ui.signals import publish, subscribe, unsubscribe from ...
35.968858
83
0.631457
7940a13699228f8aca62b7b55dc8a66cd172d41c
1,706
py
Python
parsers/AW.py
oscarmrom/electricitymap-contrib
1fcbb9a9003a50aa0dccc4e4ca703126f76f2c89
[ "MIT" ]
1,582
2018-07-16T10:52:36.000Z
2021-12-06T06:03:32.000Z
parsers/AW.py
oscarmrom/electricitymap-contrib
1fcbb9a9003a50aa0dccc4e4ca703126f76f2c89
[ "MIT" ]
1,463
2018-07-09T12:23:35.000Z
2021-12-06T08:11:37.000Z
parsers/AW.py
oscarmrom/electricitymap-contrib
1fcbb9a9003a50aa0dccc4e4ca703126f76f2c89
[ "MIT" ]
650
2018-07-10T02:07:17.000Z
2021-12-03T11:05:45.000Z
#!/usr/bin/env python3 import arrow import requests import datetime def fetch_production(zone_key='AW', session=None, target_datetime=None, logger=None): if target_datetime: raise NotImplementedError('This parser is not yet able to parse past dates') r = session or requests.session() url = 'http...
33.45098
141
0.641266
7940a226c621c69d22ee06321ae53cb525180953
1,603
py
Python
etl/parsers/etw/Microsoft_Windows_GenericRoaming.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_GenericRoaming.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_GenericRoaming.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-GenericRoaming GUID : 4eacb4d0-263b-4b93-8cd6-778a278e5642 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from ...
29.685185
123
0.699314
7940a25c8f9fb37e1103fd4dd28d18e241213cfc
7,193
py
Python
airflow/api_connexion/endpoints/dag_endpoint.py
MoBagel/airflow
0905e386f17e34d96f6ee575404c62b13242c75d
[ "Apache-2.0" ]
null
null
null
airflow/api_connexion/endpoints/dag_endpoint.py
MoBagel/airflow
0905e386f17e34d96f6ee575404c62b13242c75d
[ "Apache-2.0" ]
null
null
null
airflow/api_connexion/endpoints/dag_endpoint.py
MoBagel/airflow
0905e386f17e34d96f6ee575404c62b13242c75d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.521978
109
0.735993
7940a292ef846ac7fd692755bef29a3a90c05154
1,975
py
Python
neutron/agent/ovsdb/impl_idl.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
null
null
null
neutron/agent/ovsdb/impl_idl.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
null
null
null
neutron/agent/ovsdb/impl_idl.py
ilay09/neutron
b7f9803c88b17a6ebd40fd44d15d4336bea7b394
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
33.474576
78
0.72557
7940a38cdb7906cf408040552ebfd1f441fd2105
7,469
py
Python
extraPackages/matplotlib-3.0.3/examples/specialty_plots/leftventricle_bulleye.py
dolboBobo/python3_ios
877f8c2c5890f26292ddd14909bea62a04fe2889
[ "BSD-3-Clause" ]
130
2018-02-03T10:25:54.000Z
2022-03-25T22:27:22.000Z
extraPackages/matplotlib-3.0.2/examples/specialty_plots/leftventricle_bulleye.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
9
2018-12-14T07:31:42.000Z
2020-12-09T20:29:28.000Z
extraPackages/matplotlib-3.0.2/examples/specialty_plots/leftventricle_bulleye.py
spacetime314/python3_ios
e149f1bc2e50046c8810f83dae7739a8dea939ee
[ "BSD-3-Clause" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
""" ===================== Leftventricle Bulleye ===================== This example demonstrates how to create the 17 segment model for the left ventricle recommended by the American Heart Association (AHA). """ import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt def bullseye_plot(ax, data, s...
35.398104
78
0.59834
7940a5fc7c9e4761c2a3cb7c5baac81300af08c7
406
py
Python
36_Valid Sudoku.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
36_Valid Sudoku.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
36_Valid Sudoku.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
class Solution: def isValidSudoku(self, board: List[List[str]]) -> bool: if not board or not board[0]: return tmp = [] for r in range(len(board)): for c in range(len(board[0])): if board[r][c] != ".": tmp += [(board[r][c],...
33.833333
87
0.448276
7940a71c3d1f64e0c68ac003a49ba6ca705cc5c5
14,362
py
Python
google/cloud/pubsublite_v1/services/cursor_service/transports/grpc_asyncio.py
renovate-bot/python-pubsublite
9da1e81ba8565c220fae2a58768315e87c57b5bd
[ "Apache-2.0" ]
null
null
null
google/cloud/pubsublite_v1/services/cursor_service/transports/grpc_asyncio.py
renovate-bot/python-pubsublite
9da1e81ba8565c220fae2a58768315e87c57b5bd
[ "Apache-2.0" ]
null
null
null
google/cloud/pubsublite_v1/services/cursor_service/transports/grpc_asyncio.py
renovate-bot/python-pubsublite
9da1e81ba8565c220fae2a58768315e87c57b5bd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
44.190769
88
0.64239
7940a75991b3edb04750627106718ce47a98b548
67
py
Python
nvvm/typedefs.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvvm/typedefs.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvvm/typedefs.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
from ctypes import c_void_p nvvmProgram = c_void_p #opaque handle
16.75
37
0.820896
7940a7aef274305e2bdd828262502a1de769a9b0
3,455
py
Python
projects/control/single_demo_grasp/simulation_ws/src/single_demo_grasping_demo/scripts/panda_ros.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
3
2021-06-24T01:54:25.000Z
2021-12-12T16:21:24.000Z
projects/control/single_demo_grasp/simulation_ws/src/single_demo_grasping_demo/scripts/panda_ros.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
79
2021-06-23T10:40:10.000Z
2021-12-16T07:59:42.000Z
projects/control/single_demo_grasp/simulation_ws/src/single_demo_grasping_demo/scripts/panda_ros.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
5
2021-07-04T07:38:50.000Z
2021-12-12T16:18:47.000Z
#!/usr/bin/env python # Copyright 1996-2020 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.989583
112
0.665991
7940a8d50b22e8fe5c61d1e2647a3ed618ee660d
262
py
Python
orders/urls.py
garcia116/ecommerce-django
6c416b20446f0daba5774040715313ae28501cf9
[ "PostgreSQL" ]
null
null
null
orders/urls.py
garcia116/ecommerce-django
6c416b20446f0daba5774040715313ae28501cf9
[ "PostgreSQL" ]
null
null
null
orders/urls.py
garcia116/ecommerce-django
6c416b20446f0daba5774040715313ae28501cf9
[ "PostgreSQL" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('place_order/', views.place_order, name='place_order'), path('payments/', views.payments, name='payments'), path('order_complete/', views.order_complete, name='order_complete') ]
29.111111
72
0.717557
7940a8d96137e806db1ba8d535858d3f1c0cef53
3,875
py
Python
mercury_ml/common/providers/artifact_storage/local.py
gabrieloexle/mercury-ml
cc663f84a26ee66ae105bbfc0cd1cbd5629031cd
[ "MIT" ]
null
null
null
mercury_ml/common/providers/artifact_storage/local.py
gabrieloexle/mercury-ml
cc663f84a26ee66ae105bbfc0cd1cbd5629031cd
[ "MIT" ]
null
null
null
mercury_ml/common/providers/artifact_storage/local.py
gabrieloexle/mercury-ml
cc663f84a26ee66ae105bbfc0cd1cbd5629031cd
[ "MIT" ]
null
null
null
import os import json def store_h2o_frame(data, directory, filename, force=False, parts=1): """ Export a given H2OFrame to a path on the machine this python session is currently connected to. :param data: the Frame to save to disk. :param directory: the directory to the save point on disk. :param ...
33.119658
122
0.682065
7940a924acab9a8a069c85212db65869632c064f
770
py
Python
foxtrot/fconstyle.py
dsnezhkov/foxtrot
7b9adc68d111ffbe21ed5fc91bd7042721d741ff
[ "MIT" ]
46
2018-02-27T20:22:11.000Z
2021-03-06T04:01:29.000Z
foxtrot/fconstyle.py
claudijd/foxtrot
94a68d3a54a6d13642d401b160c38a0036c7c839
[ "MIT" ]
1
2021-06-01T21:47:52.000Z
2021-06-01T21:47:52.000Z
foxtrot/fconstyle.py
dsnezhkov/foxtrot
7b9adc68d111ffbe21ed5fc91bd7042721d741ff
[ "MIT" ]
4
2018-05-29T07:44:43.000Z
2020-02-22T17:54:12.000Z
from pygments.style import Style from pygments.token import Token from pygments.styles.default import DefaultStyle class AgentStyle(Style): styles = { Token.Menu.Completions.Completion.Current: 'bg:#00aaaa #000000', Token.Menu.Completions.Completion: 'bg:#008888 #ffffff', Token.Menu.Compl...
27.5
72
0.612987
7940aa1f6db9066e2f4a4d9acced1e39879ec6bf
19,321
py
Python
BERT/tokenization.py
justusmattern/dist-embeds
2a5fd97bcfc3eed5c7f11e76d82c4ff49709cbe8
[ "MIT" ]
8
2021-06-18T10:32:27.000Z
2022-01-16T06:46:25.000Z
adversarial-transfer-nlp/BERT/tokenization.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
2
2021-08-25T15:14:12.000Z
2022-02-09T23:55:46.000Z
adversarial-transfer-nlp/BERT/tokenization.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
43.223714
179
0.610579
7940abbb7fe5a31650988a120367193e7b568baa
87
py
Python
HackerRank/Python/Built_Ins/Input().py
AdityaChirravuri/CompetitiveProgramming
642550e8916b3f7939a1fdd52d10f5f8ae43f161
[ "MIT" ]
1
2021-07-13T01:49:25.000Z
2021-07-13T01:49:25.000Z
HackerRank/Python/Built_Ins/Input().py
AdityaChirravuri/CompetitiveProgramming
642550e8916b3f7939a1fdd52d10f5f8ae43f161
[ "MIT" ]
null
null
null
HackerRank/Python/Built_Ins/Input().py
AdityaChirravuri/CompetitiveProgramming
642550e8916b3f7939a1fdd52d10f5f8ae43f161
[ "MIT" ]
null
null
null
x, k = map(int, input().split()) s = input() print( eval(s) == k) © 2021 GitHub, Inc.
14.5
32
0.551724
7940abf8418fe66ef7f37e42d8af98581cdee924
6,967
py
Python
core/dbt/graph/selector_spec.py
f1fe/dbt
e943b9fc842535e958ef4fd0b8703adc91556bc6
[ "Apache-2.0" ]
3,156
2017-03-05T09:59:23.000Z
2021-06-30T01:27:52.000Z
core/dbt/graph/selector_spec.py
f1fe/dbt
e943b9fc842535e958ef4fd0b8703adc91556bc6
[ "Apache-2.0" ]
2,608
2017-02-27T15:39:40.000Z
2021-06-30T01:49:20.000Z
core/dbt/graph/selector_spec.py
f1fe/dbt
e943b9fc842535e958ef4fd0b8703adc91556bc6
[ "Apache-2.0" ]
693
2017-03-13T03:04:49.000Z
2021-06-25T15:57:41.000Z
import os import re from abc import ABCMeta, abstractmethod from dataclasses import dataclass from dbt.dataclass_schema import StrEnum from typing import ( Set, Iterator, List, Optional, Dict, Union, Any, Iterable, Tuple ) from .graph import UniqueId from .selector_methods import MethodName from dbt.exceptions imp...
29.901288
78
0.624803
7940ace3e6257b46f5b10eb8cca349068f46729d
1,340
py
Python
REF/login/SoftDev/2.py
Apizz789/Project_SOFTDEV
b2e389289e201b284cb1b1b545be25279b677fe0
[ "MIT" ]
2
2021-11-17T04:27:26.000Z
2022-01-20T06:17:17.000Z
REF/login/SoftDev/2.py
Apizz789/Project_SOFTDEV
b2e389289e201b284cb1b1b545be25279b677fe0
[ "MIT" ]
null
null
null
REF/login/SoftDev/2.py
Apizz789/Project_SOFTDEV
b2e389289e201b284cb1b1b545be25279b677fe0
[ "MIT" ]
null
null
null
alp = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] inp = int(input("Enter Number : ")) i = 0 j=0 copy_inp = inp while inp > 0 : inp -= i+1 i += 1 inp = copy_inp while inp > 0 : j += 1 for k in range(j+1) : inp -= 1 ...
25.283019
112
0.393284
7940ad2a069a396e744feb0c59cbd7dfdf5d76c5
66,696
py
Python
nova/tests/fixtures/libvirt_data.py
oshiro3/nova
a6983621d40261adca9e4ab9feb14910881e9f92
[ "Apache-2.0" ]
null
null
null
nova/tests/fixtures/libvirt_data.py
oshiro3/nova
a6983621d40261adca9e4ab9feb14910881e9f92
[ "Apache-2.0" ]
null
null
null
nova/tests/fixtures/libvirt_data.py
oshiro3/nova
a6983621d40261adca9e4ab9feb14910881e9f92
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
33.132638
92
0.571309
7940aea0fe34deaa2168095ff2772bcff833d572
2,914
py
Python
src/kumo.py
rekyuu/kumo-manga
81c061f13fe678f05bb70e5b57bb7fa049b59d19
[ "MIT" ]
3
2015-09-15T23:56:39.000Z
2016-09-04T22:57:50.000Z
src/kumo.py
bo1g/kumo-manga
81c061f13fe678f05bb70e5b57bb7fa049b59d19
[ "MIT" ]
8
2015-09-16T02:35:18.000Z
2016-10-16T04:39:32.000Z
src/kumo.py
bo1g/kumo-manga
81c061f13fe678f05bb70e5b57bb7fa049b59d19
[ "MIT" ]
4
2015-09-16T01:29:08.000Z
2016-11-30T04:27:53.000Z
import io, json, imp from lists import folder, manga from flask import Flask, render_template, send_file from flask_httpauth import HTTPBasicAuth app = Flask(__name__) auth = HTTPBasicAuth() using_redis = True try: import redis except ImportError: using_redis = False r = redis.Redis(host='localhost', port=6...
21.115942
56
0.653054
7940aee65ddab890ecf88b2c88b4fdf1e07ce0f7
3,140
py
Python
src/models/record.py
MarkHershey/Networks_Lab2
9c2d6b4fad9dfe237aacae955d5d782ac16dbe71
[ "MIT" ]
null
null
null
src/models/record.py
MarkHershey/Networks_Lab2
9c2d6b4fad9dfe237aacae955d5d782ac16dbe71
[ "MIT" ]
null
null
null
src/models/record.py
MarkHershey/Networks_Lab2
9c2d6b4fad9dfe237aacae955d5d782ac16dbe71
[ "MIT" ]
null
null
null
from datetime import datetime from typing import List, Optional, Tuple from puts.logger import logger from pydantic import BaseModel, validator from ..functional import uid_gen class Record(BaseModel): uid: Optional[str] = None # imply time of record creation username: Optional[str] = None date_time: O...
34.505495
86
0.661465
7940afb762dd41e104d6dd3f4408ab3dd625b60f
2,456
py
Python
lib/googlecloudsdk/api_lib/bigtable/clusters.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/bigtable/clusters.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/googlecloudsdk/api_lib/bigtable/clusters.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
30.7
78
0.751629
7940b12a836409ac5e37a59260e28a2a75037c66
7,262
py
Python
test.py
starlightdreamer/CommonRegex
7c40ebd86331bd550e415687d5f4338df1ccc358
[ "MIT" ]
null
null
null
test.py
starlightdreamer/CommonRegex
7c40ebd86331bd550e415687d5f4338df1ccc358
[ "MIT" ]
null
null
null
test.py
starlightdreamer/CommonRegex
7c40ebd86331bd550e415687d5f4338df1ccc358
[ "MIT" ]
null
null
null
# coding: utf-8 from commonregex import CommonRegex import unittest class RegexTestCase(unittest.TestCase): def setUp(self): self.parser = CommonRegex() class TestDates(RegexTestCase): def test_numeric(self): matching = ["1-19-14", "1.19.14", "1.19.14", "01.19.14"] for s in matchin...
35.598039
102
0.605205
7940b1f21f13a2395d436196b9a0d8fe4901563e
1,384
py
Python
superset/migrations/versions/1a48a5411020_adding_slug_to_dash.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/migrations/versions/1a48a5411020_adding_slug_to_dash.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/migrations/versions/1a48a5411020_adding_slug_to_dash.py
zhwXF/Superset
14c3488c79f8f3cdbd1123e8f7a92f8746c2db09
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04: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...
32.186047
88
0.74422
7940b23a55bee5e8b155568f62db07fedbbcdd49
5,018
py
Python
cli/src/pcluster/validators/s3_validators.py
rdimaio/aws-parallelcluster
b12f6fb3c6887a9040ff7b03d6c12216e6cc8577
[ "Apache-2.0" ]
415
2018-11-13T15:02:15.000Z
2022-03-31T15:26:06.000Z
cli/src/pcluster/validators/s3_validators.py
rdimaio/aws-parallelcluster
b12f6fb3c6887a9040ff7b03d6c12216e6cc8577
[ "Apache-2.0" ]
2,522
2018-11-13T16:16:27.000Z
2022-03-31T13:57:10.000Z
cli/src/pcluster/validators/s3_validators.py
lukeseawalker/aws-parallelcluster
16d427429dae8e638f4350fc3369b751afeeb69b
[ "Apache-2.0" ]
164
2018-11-14T22:47:46.000Z
2022-03-22T11:33:22.000Z
import re import time from urllib.error import HTTPError, URLError from urllib.request import urlopen from pcluster.aws.aws_api import AWSApi from pcluster.aws.common import AWSClientError from pcluster.utils import get_url_scheme from pcluster.validators.common import FailureLevel, Validator from pcluster.validators....
39.203125
113
0.589876
7940b345cffc4b38e2b8ffa015b2374c612f11ba
1,439
py
Python
view_get_entries.py
masaminh/notify_sire
e20405de1fce924a841bf105ac99529dfc337ab4
[ "MIT" ]
null
null
null
view_get_entries.py
masaminh/notify_sire
e20405de1fce924a841bf105ac99529dfc337ab4
[ "MIT" ]
1
2019-10-28T15:39:21.000Z
2019-10-28T15:39:21.000Z
view_get_entries.py
masaminh/notify_sire
e20405de1fce924a841bf105ac99529dfc337ab4
[ "MIT" ]
null
null
null
"""出走予定のビュー.""" from itertools import groupby import line import mojimoji from interface_view_get_entries import IViewGetEntries from viewmodel_get_entries import ViewModelGetEntries import settings class ViewGetEntriesConsole(IViewGetEntries): """出走予定のビュー.""" def update(self, viewmodel: ViewModelGetEntries...
28.78
91
0.650452
7940b3b66f93d329f86da4870a43d79432a4fd0d
328
py
Python
arcade/examples/t_2.py
philipbergen/arcade
d4741f6fcb82ca72de021bd71df17a8219da8549
[ "MIT" ]
null
null
null
arcade/examples/t_2.py
philipbergen/arcade
d4741f6fcb82ca72de021bd71df17a8219da8549
[ "MIT" ]
null
null
null
arcade/examples/t_2.py
philipbergen/arcade
d4741f6fcb82ca72de021bd71df17a8219da8549
[ "MIT" ]
null
null
null
import arcade class MyGame(arcade.Window): """ Our custom Window Class""" def __init__(self): super().__init__(800, 600, "t_2") self.coin_list = arcade.SpriteList() arcade.set_background_color(arcade.color.AMAZON) def on_draw(self): arcade.start_render() MyGame() arcad...
17.263158
56
0.643293
7940b3c9e4d20a830cb2ee6d154e44179ad581df
1,887
py
Python
molecule/resources/tests/test_default.py
popstas/ansible-role-kapacitor
d5896000522359f93f3ec55377250badf3e11819
[ "MIT" ]
null
null
null
molecule/resources/tests/test_default.py
popstas/ansible-role-kapacitor
d5896000522359f93f3ec55377250badf3e11819
[ "MIT" ]
null
null
null
molecule/resources/tests/test_default.py
popstas/ansible-role-kapacitor
d5896000522359f93f3ec55377250badf3e11819
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner import pytest testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_kapacitor_running_and_enabled(host): kapacitor = host.service("kapacitor") assert kapacitor.is_running assert ...
29.030769
63
0.63328
7940b47648cab52ab45cef2d1dd867992913aef2
2,445
py
Python
setup.py
pbaustert/brightway2-data
bcf62306b069e68bb67948874c06bd049f8e8fb5
[ "BSD-3-Clause" ]
null
null
null
setup.py
pbaustert/brightway2-data
bcf62306b069e68bb67948874c06bd049f8e8fb5
[ "BSD-3-Clause" ]
null
null
null
setup.py
pbaustert/brightway2-data
bcf62306b069e68bb67948874c06bd049f8e8fb5
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup import os packages = [] root_dir = os.path.dirname(__file__) if root_dir: os.chdir(root_dir) for dirpath, dirnames, filenames in os.walk('bw2data'): # Ignore dirnames that start with '.' if '__init__.py' in filenames: pkg = dirpath.replace(os.path.sep, '.') if ...
31.346154
88
0.582004
7940b49bcef5cf8691b89397cf9d2e91293f0828
2,904
py
Python
ADE Eval Shared Resources/OSE_AE_evaluation_v1_0/scripts/visualize.py
Xiaoyao-Bao/UoM-Y3-ADR_Extractor
3afe206abe85c7524e502fe5a347d97e43a9ad94
[ "Apache-2.0" ]
1
2020-03-02T13:36:29.000Z
2020-03-02T13:36:29.000Z
ADE Eval Shared Resources/OSE_AE_evaluation_v1_0/scripts/visualize.py
Xiaoyao-Bao/UoM-Y3-ADR_Extractor
3afe206abe85c7524e502fe5a347d97e43a9ad94
[ "Apache-2.0" ]
null
null
null
ADE Eval Shared Resources/OSE_AE_evaluation_v1_0/scripts/visualize.py
Xiaoyao-Bao/UoM-Y3-ADR_Extractor
3afe206abe85c7524e502fe5a347d97e43a9ad94
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 The MITRE Corporation. See the toplevel # file LICENSE.txt for license terms. # The goal here is to generate BRAT visualizations, but embed the whole thing # in non-server HTML. import os, sys, shutil, csv, json def Usage(): print >> sys.stderr, "Usage: visualize.py [ 'ose_gold' | 'ose_submi...
41.485714
184
0.671832
7940b5389b299b65a3a12362c79acfd6e40ec586
1,475
py
Python
mathematical_model_exercises/main_problem4.py
dreaming-qin/python_algorithm
f5277cec71aad6f62e665e171e0a96f33abd1671
[ "Apache-2.0" ]
1
2022-01-13T15:21:51.000Z
2022-01-13T15:21:51.000Z
mathematical_model_exercises/main_problem4.py
dreaming-qin/python_algorithm
f5277cec71aad6f62e665e171e0a96f33abd1671
[ "Apache-2.0" ]
null
null
null
mathematical_model_exercises/main_problem4.py
dreaming-qin/python_algorithm
f5277cec71aad6f62e665e171e0a96f33abd1671
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import math import sys import random from term_influnce import format_data, get_follower, get_music_feature, get_term_MS filename='../2021_ICM_Problem_D_Data/full_music_data.csv' df = pd.read_csv(filename) data = np.array(df.iloc[:,:].values) # 名称 influnce_name='The Rolling Sto...
27.830189
83
0.734915
7940b54645d8da5f58b9eaa5f2a861dc79455ca9
4,367
py
Python
tgap_ng/edge_simplify/ontriangle.py
erbasualex/tgap-ng
3e9ec9e93ee8dfd79d9878b34ed12296a8af6301
[ "MIT" ]
2
2022-01-12T17:11:49.000Z
2022-01-14T09:23:46.000Z
tgap_ng/edge_simplify/ontriangle.py
erbasualex/tgap-ng
3e9ec9e93ee8dfd79d9878b34ed12296a8af6301
[ "MIT" ]
null
null
null
tgap_ng/edge_simplify/ontriangle.py
erbasualex/tgap-ng
3e9ec9e93ee8dfd79d9878b34ed12296a8af6301
[ "MIT" ]
1
2022-02-26T16:50:45.000Z
2022-02-26T16:50:45.000Z
def orient2d(pa, pb, pc): """Twice signed area of triangle formed by points a, b and c Direction from pa to pc, via pb, where returned value is as follows: left : + [ = ccw ] straight : 0. right : - [ = cw ] :param pa: point :type pa: sequence :param pb: point :type pb...
27.639241
88
0.481795
7940b5d4b064e05d672afe1358a0bee256336b38
1,873
py
Python
src/automation/setup.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/automation/setup.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/automation/setup.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
#!/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. # ---------------------------------------------...
31.745763
94
0.632675
7940b7b301162ee9b1ab5d50ef09045b29d1f1a3
687
py
Python
pymtl3/dsl/__init__.py
mondO/pymtl3
9869dda28c01926cee6da94ebdeac2a210150c62
[ "BSD-3-Clause" ]
1
2022-01-03T06:22:11.000Z
2022-01-03T06:22:11.000Z
pymtl3/dsl/__init__.py
mondO/pymtl3
9869dda28c01926cee6da94ebdeac2a210150c62
[ "BSD-3-Clause" ]
null
null
null
pymtl3/dsl/__init__.py
mondO/pymtl3
9869dda28c01926cee6da94ebdeac2a210150c62
[ "BSD-3-Clause" ]
null
null
null
""" These objects are only for developers to use. Other objects are exposed to users in pymtl/__init__.py """ from .Component import Component from .ComponentLevel3 import connect from .ComponentLevel5 import method_port from .ComponentLevel6 import non_blocking from .ComponentLevel7 import blocking from .Connectable i...
21.46875
71
0.732169
7940b7e896648caad90ad6b5b4813a8069b152d6
648
py
Python
121-best-time-to-buy-and-sell-stock.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
121-best-time-to-buy-and-sell-stock.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
121-best-time-to-buy-and-sell-stock.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ if len(prices) < 2: return 0 size = len(prices) min_before = [prices[0]] * size max_after = [prices[-1]] * size for idx, p in enumerat...
25.92
63
0.492284
7940b95428f2bffbd009b433fa2a5e2c28be0c92
3,365
py
Python
zosapi/base.py
sashank27/Aulign
51e34746afb5ea796d36dcf7dd3ad79673ad633c
[ "MIT" ]
null
null
null
zosapi/base.py
sashank27/Aulign
51e34746afb5ea796d36dcf7dd3ad79673ad633c
[ "MIT" ]
null
null
null
zosapi/base.py
sashank27/Aulign
51e34746afb5ea796d36dcf7dd3ad79673ad633c
[ "MIT" ]
null
null
null
from win32com.client.gencache import EnsureDispatch, EnsureModule from win32com.client import constants """ The base application to extablish connection to the Zemax win32 client using ZOS-API. """ class PythonStandaloneApplication(object): class LicenseException(Exception): pass class ConnectionExc...
36.576087
98
0.683804
7940b97b6370969e99c1c92252bdc302c750ebd6
10,660
py
Python
Lib/test/test_threadsignals.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
1
2020-10-25T16:33:22.000Z
2020-10-25T16:33:22.000Z
Lib/test/test_threadsignals.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
null
null
null
Lib/test/test_threadsignals.py
Krrishdhaneja/cpython
9ae9ad8ba35cdcece7ded73cd2207e4f8cb85578
[ "0BSD" ]
null
null
null
"""PyUnit testing that threads honor our signal semantics""" import unittest import signal import os import sys from test import support from test.support import threading_helper import _thread as thread import time if (sys.platform[:3] == 'win'): raise unittest.SkipTest("Can't test signal on %s" % sy...
42.811245
86
0.59409
7940ba03b8455150ccafa31f7adfc4f5f4ca11ad
18,515
py
Python
tests_python/tests_alpha/test_basic.py
d4hines/marigold-tezos
d106ccb9208af16d673aaa4ca48878eeba37527b
[ "MIT" ]
null
null
null
tests_python/tests_alpha/test_basic.py
d4hines/marigold-tezos
d106ccb9208af16d673aaa4ca48878eeba37527b
[ "MIT" ]
1
2022-02-18T09:54:32.000Z
2022-02-18T09:54:32.000Z
tests_python/tests_alpha/test_basic.py
d4hines/marigold-tezos
d106ccb9208af16d673aaa4ca48878eeba37527b
[ "MIT" ]
null
null
null
from os import path import pytest from client.client import Client from tools.paths import ACCOUNT_PATH from tools.utils import assert_run_failure from .contract_paths import CONTRACT_PATH BAKE_ARGS = ['--max-priority', '512', '--minimal-timestamp'] TRANSFER_ARGS = ['--burn-cap', '0.257'] @pytest.mark.incremental c...
36.956088
80
0.576344
7940ba49d235f001cc224d6d6230a4a4241fad3e
9,675
py
Python
tests/torch/sparsity/rb/test_algo.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
136
2020-06-01T14:03:31.000Z
2020-10-28T06:10:50.000Z
tests/torch/sparsity/rb/test_algo.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
133
2020-05-26T13:48:04.000Z
2020-10-28T05:25:55.000Z
tests/torch/sparsity/rb/test_algo.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
36
2020-05-28T08:18:39.000Z
2020-10-27T14:46:58.000Z
""" Copyright (c) 2019-2022 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 w...
38.855422
108
0.725995