repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
hyperas
hyperas-master/examples/use_intermediate_functions.py
from __future__ import print_function from hyperopt import Trials, STATUS_OK, tpe from hyperas import optim from hyperas.distributions import choice, uniform from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation from keras.optimizers import RMSprop from keras.datasets import mni...
3,226
32.968421
87
py
hyperas
hyperas-master/examples/hyperas_in_intermediate_fns.py
import numpy import random from keras.datasets import mnist from keras.models import Model from keras.layers import Input, Flatten, Dense, Dropout, Lambda from keras.optimizers import RMSprop from keras import backend as K from hyperopt import Trials, STATUS_OK, tpe from hyperas import optim from hyperas.distributions...
4,820
35.801527
149
py
hyperas
hyperas-master/examples/cnn_lstm.py
from __future__ import print_function from hyperopt import Trials, STATUS_OK, rand from hyperas import optim from hyperas.distributions import uniform, choice import numpy as np from keras.preprocessing import sequence from keras.datasets import imdb from keras.models import Sequential from keras.layers.core import Den...
2,541
35.84058
84
py
hyperas
hyperas-master/examples/cifar_generator_cnn.py
from __future__ import print_function from hyperopt import Trials, STATUS_OK, tpe from hyperas import optim from hyperas.distributions import uniform from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Convolution2D, MaxPooling2D f...
4,262
36.394737
94
py
hyperas
hyperas-master/tests/test_functional_api.py
from __future__ import print_function from hyperopt import Trials, STATUS_OK, tpe from hyperas import optim from hyperas.distributions import choice from keras.models import Model from keras.layers import Dense, Input from keras.optimizers import RMSprop from keras.datasets import mnist from keras.utils import np_uti...
3,058
35.416667
90
py
hyperas
hyperas-master/tests/test_lr_plateau.py
from __future__ import print_function from hyperopt import Trials, STATUS_OK, tpe from hyperas import optim from hyperas.distributions import choice from keras.models import Sequential from keras.layers import Dense, Activation from keras.datasets import mnist from keras.utils import np_utils from keras.callbacks imp...
2,006
34.839286
77
py
hyperas
hyperas-master/tests/test_distributions.py
0
0
0
py
hyperas
hyperas-master/tests/test_e2e.py
from __future__ import print_function from hyperopt import Trials, STATUS_OK, tpe from hyperas import optim from hyperas.distributions import choice, uniform from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation from keras.optimizers import RMSprop from keras.datasets import mni...
3,714
31.587719
87
py
hyperas
hyperas-master/tests/test_ensemble.py
0
0
0
py
hyperas
hyperas-master/tests/test_utils.py
import os from hyperopt import hp from hyperas.utils import ( extract_imports, remove_imports, remove_all_comments, temp_string, write_temp_files, with_line_numbers, determine_indent, unpack_hyperopt_vals, eval_hyperopt_space, find_signature_end) TEST_SOURCE = """ from __future__ import print_function from...
5,277
26.778947
89
py
hyperas
hyperas-master/tests/test_optim.py
from keras.datasets import mnist from keras.utils import np_utils from hyperas.optim import retrieve_data_string def test_data(): (X_train, y_train), (X_test, y_test) = mnist.load_data() X_train = X_train.reshape(60000, 784) X_test = X_test.reshape(10000, 784) X_train = X_train.astype('float32') ...
1,049
31.8125
82
py
autoagora-agents
autoagora-agents-master/main.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import argparse from sacred import SETTINGS import experiment from autoagora_agents import controller from simulation import environment # For good reason, sacred disallows modifying your config file in the code. # However, our code does som...
1,600
33.804348
83
py
autoagora-agents
autoagora-agents-master/algorithmconfig.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from autoagora_agents import algorithm_ingredient @algorithm_ingredient.config def config(): agents = [ { "kind": "ppobandit", "group": "indexer", "count": 1, "bufferlength": 10, ...
863
26
53
py
autoagora-agents
autoagora-agents-master/experimentconfig.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from experiment import experiment_ingredient @experiment_ingredient.config def config(): seed = 0
180
17.1
44
py
autoagora-agents
autoagora-agents-master/simulationconfig.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np from simulation import simulation_ingredient @simulation_ingredient.config def config(): nproducts = 1 # This is a convenience variable. Does not actually get used by the simulation. ntimesteps = 10000 nepisod...
1,548
26.175439
98
py
autoagora-agents
autoagora-agents-master/experiment/array.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np def applybounds( a: np.ndarray, l: float | np.ndarray, h: float | np.ndarray ) -> np.ndarray: """Set out of bounds values to be between bounds. Bounds are inclusive. Arguments: a (np.ndarray): The ...
741
26.481481
87
py
autoagora-agents
autoagora-agents-master/experiment/config.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import importlib.util import sacred def experiment(*, name: str, spath: str, apath: str, epath: str): """Create an experiment. Keyword Arguments: name (str): The name of the experiment spath (str): The path to the py...
1,479
33.418605
86
py
autoagora-agents
autoagora-agents-master/experiment/factory.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from typing import Any, Callable def factory(n: str, d: dict[str, Callable], *args, **kwargs) -> Any: """Construct an object from the factory. Arguments: n (str): The name of associated with the function to call. d (d...
1,128
26.536585
97
py
autoagora-agents
autoagora-agents-master/experiment/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import sacred from experiment.array import applybounds from experiment.config import experiment from experiment.factory import decoratorfactoryhelper, factory experiment_ingredient = sacred.Ingredient("experiment")
293
25.727273
62
py
autoagora-agents
autoagora-agents-master/tests/fixture.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from simulation import environment @pytest.fixture def agentconfig(): return { "kind": "agent", "count": 7, "group": "indexer", "state": { "kind": "price", ...
5,654
23.911894
82
py
autoagora-agents
autoagora-agents-master/tests/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0
75
24.333333
37
py
autoagora-agents
autoagora-agents-master/tests/experiment/test_factory.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import pytest import experiment from .helper import add, sub @pytest.fixture def d(): return {"add": add, "sub": sub} def test_factory_executes_correct_function(d): n = "add" assert experiment.factory(n, d, 2, b=1, c=2) == 6 ...
624
20.551724
81
py
autoagora-agents
autoagora-agents-master/tests/experiment/test_config.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import pytest import experiment def test_importn(): assert experiment.config.importn("foo", "tests/experiment/helper.py") == "foo" # type: ignore
230
20
98
py
autoagora-agents
autoagora-agents-master/tests/experiment/helper.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 foo = "foo" def add(a, *, b, c): return a * (b + c) def sub(a, *, b, c): return a * (b - c)
180
12.923077
37
py
autoagora-agents
autoagora-agents-master/tests/experiment/test_array.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import experiment def inbounds(a: np.ndarray, l: float | np.ndarray, h: float | np.ndarray) -> np.bool_: """Check if array is in between lower and upper bounds. Bounds are inclusive. Arguments: ...
1,341
22.54386
87
py
autoagora-agents
autoagora-agents-master/tests/experiment/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0
75
24.333333
37
py
autoagora-agents
autoagora-agents-master/tests/simulation/test_dynamics.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np from simulation.dynamics import * from simulation.entity.action import * from simulation.entity.state import * def test_pricestate_priceaction_dynamics(): state = { "kind": "price", "low": np.zeros(3), ...
1,846
23.959459
58
py
autoagora-agents
autoagora-agents-master/tests/simulation/test_observation.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np from simulation import observation from simulation.entity.entity import entitygroupfactory from ..fixture import * def test_bandit_observation(agentconfig): agentconfig["observation"] = [ {"kind": "bandit"}, ...
652
30.095238
89
py
autoagora-agents
autoagora-agents-master/tests/simulation/test_distributor.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np from simulation import distributor from simulation.entity import entitygroupfactory from ..fixture import * def test_softmaxdistributor_softmaxmask_degenerate(): # All values are False in the mask # Should return ...
3,121
32.212766
84
py
autoagora-agents
autoagora-agents-master/tests/simulation/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0
75
24.333333
37
py
autoagora-agents
autoagora-agents-master/tests/simulation/test_environment.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from simulation.distributor import SoftmaxDistributor from ..fixture import * def test_environment_construction(env): # Two groups created assert len(env.groups) == 2 assert isinstance(env.distri...
2,191
23.909091
75
py
autoagora-agents
autoagora-agents-master/tests/simulation/test_reward.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np from simulation import reward from simulation.entity.entity import entitygroupfactory from ..fixture import * def test_traffic_reward(agentconfig): agentconfig["reward"] = [ {"kind": "traffic", "multiplier": -...
1,378
32.634146
82
py
autoagora-agents
autoagora-agents-master/tests/simulation/entity/test_action.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from simulation.entity import action @pytest.fixture def a(): return action.Action(low=0, high=3, shape=(3,), seed=0) def test_action_init(a): assert (a.space.low == np.zeros(3)).all() assert (a...
1,338
21.316667
59
py
autoagora-agents
autoagora-agents-master/tests/simulation/entity/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0
75
24.333333
37
py
autoagora-agents
autoagora-agents-master/tests/simulation/entity/test_state.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from simulation.entity import state @pytest.fixture def s(): return state.State(low=0, high=3, initial=np.array([1, 2, 3])) def test_state_init(): a = np.array([1, 2, 3]) s = state.State(low=0, ...
1,738
22.186667
66
py
autoagora-agents
autoagora-agents-master/tests/simulation/entity/test_entity.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from simulation.entity import Agent, Entity, entity from simulation.entity.action import * from simulation.entity.state import * @pytest.fixture def entityconfig(): return { "kind": "entity", ...
1,523
23.190476
59
py
autoagora-agents
autoagora-agents-master/tests/autoagora_agents/test_algorithm.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import torch from autoagora_agents import algorithm from ..fixture import * def test_predetermined(predeterminedconfig): agent = algorithm.algorithmgroupfactory(**predeterminedconfig)[0] obs = np.zer...
3,131
36.285714
116
py
autoagora-agents
autoagora-agents-master/tests/autoagora_agents/test_distribution.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import torch from autoagora_agents import distribution from ..fixture import * def test_gaussiandistribution_reset(gaussianconfig): dist = distribution.distributionfactory(**gaussianconfig) v = dist.mean # type: ignore dist._me...
3,506
39.310345
88
py
autoagora-agents
autoagora-agents-master/tests/autoagora_agents/test_buffer.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import torch from autoagora_agents import buffer def test_buffer(): maxlen = 10 b = buffer.buffer(maxlength=maxlen) sample = { "reward": torch.as_tensor([1, 2, 3]), "action": torch.as_tensor([3, 2, 1]), } ...
549
19.37037
45
py
autoagora-agents
autoagora-agents-master/tests/autoagora_agents/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0
75
24.333333
37
py
autoagora-agents
autoagora-agents-master/simulation/environment.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from typing import Any import gymnasium import numpy as np from simulation.distributor import distributorfactory from simulation.dynamics import dynamics from simulation.entity import Agent, Entity, entitygroupfactory from simulation.observat...
6,681
33.984293
95
py
autoagora-agents
autoagora-agents-master/simulation/distributor.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from abc import ABC, abstractmethod import numpy as np import experiment from simulation.entity import Entity class Distributor(ABC): """The indexer selection algorithm base class. Attributes: source (str): The group from w...
3,794
33.5
92
py
autoagora-agents
autoagora-agents-master/simulation/reward.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import experiment from simulation.entity import Agent, Entity class Reward: """The Reward base class.""" def __init__(self) -> None: pass def __call__(self, *, agent: Agent, entities: dict[str, list[E...
3,377
31.796117
104
py
autoagora-agents
autoagora-agents-master/simulation/observation.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import experiment from simulation.entity import Agent, Entity class Observation: """The Observation base class.""" def __init__(self) -> None: pass def __call__( self, *, agent: Agent, entitie...
2,372
26.917647
87
py
autoagora-agents
autoagora-agents-master/simulation/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from typing import Any import numpy as np import sacred from simulation.environment import Environment simulation_ingredient = sacred.Ingredient("simulation") @simulation_ingredient.capture def environment( distributor: dict[str, Any],...
1,074
25.219512
80
py
autoagora-agents
autoagora-agents-master/simulation/dynamics.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from multipledispatch import dispatch from simulation.entity.action import * from simulation.entity.state import * @dispatch(PriceState, PriceAction) def dynamics(s: PriceState, a: PriceAction) -> None: # type: ignore """Update the stat...
1,267
25.978723
78
py
autoagora-agents
autoagora-agents-master/simulation/entity/state.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import gymnasium import numpy as np from numpy.typing import NDArray import experiment class State: """State of an entity. Attributes: low (float | NDArray): The lower bound of the state space. high (float | NDArray)...
3,132
28.556604
90
py
autoagora-agents
autoagora-agents-master/simulation/entity/action.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import gymnasium import numpy as np import experiment class Action: """Action of an entity. Keyword Arguments: low (float | np.ndarray): The lower bound of the action space high (float | np.ndarray): The upper bound ...
3,469
26.539683
86
py
autoagora-agents
autoagora-agents-master/simulation/entity/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from simulation.entity.entity import Agent, Entity, entitygroupfactory
147
28.6
70
py
autoagora-agents
autoagora-agents-master/simulation/entity/entity.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import random import experiment from simulation.entity.action import actionfactory from simulation.entity.state import statefactory class Entity: """An entity is an object with a state space, but without an action space. Attributes:...
2,015
27.8
88
py
autoagora-agents
autoagora-agents-master/autoagora_agents/algorithm.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from abc import ABC, abstractmethod import numpy as np import torch from torch import optim import experiment from autoagora_agents import buffer from autoagora_agents.distribution import distributionfactory class Algorithm(ABC): """Bas...
15,179
31.229299
93
py
autoagora-agents
autoagora-agents-master/autoagora_agents/distribution.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from abc import ABC, abstractmethod, abstractproperty from typing import Union import numpy as np import torch from torch import nn import experiment ArrayLike = Union[np.ndarray, torch.Tensor] class Distribution(ABC): """The base clas...
11,376
31.229462
88
py
autoagora-agents
autoagora-agents-master/autoagora_agents/buffer.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from collections import deque from typing import Any import torch def buffer(*, maxlength: int) -> deque[dict[str, Any]]: """Create a buffer. Keyword Arguments: maxlength (int): The maximum length of the buffer. Returns...
909
22.333333
58
py
autoagora-agents
autoagora-agents-master/autoagora_agents/controller.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 import random from typing import Any import numpy as np import torch from autoagora_agents.algorithm import Algorithm, algorithmgroupfactory class Controller: """Holds all algorithms and routes information to each. Keyword Argument...
2,147
28.833333
87
py
autoagora-agents
autoagora-agents-master/autoagora_agents/__init__.py
# Copyright 2022-, Semiotic AI, Inc. # SPDX-License-Identifier: Apache-2.0 from typing import Any import sacred from autoagora_agents.controller import Controller algorithm_ingredient = sacred.Ingredient("algorithm") @algorithm_ingredient.capture def controller(*, agents: list[dict[str, Any]], seed: int) -> Contr...
686
26.48
89
py
flink
flink-master/tools/list_deps.py
#!/usr/bin/env python ################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The...
2,350
36.31746
85
py
flink
flink-master/flink-end-to-end-tests/flink-python-test/python/python_job.py
################################################################################ # 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...
3,521
38.573034
102
py
flink
flink-master/flink-end-to-end-tests/flink-python-test/python/add_one.py
################################################################################ # 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...
1,152
43.346154
80
py
flink
flink-master/flink-end-to-end-tests/flink-python-test/python/datastream/functions.py
################################################################################ # 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...
1,103
41.461538
80
py
flink
flink-master/flink-end-to-end-tests/flink-python-test/python/datastream/__init__.py
################################################################################ # 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...
958
52.277778
80
py
flink
flink-master/flink-end-to-end-tests/flink-python-test/python/datastream/data_stream_job.py
################################################################################ # 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...
3,893
46.487805
100
py
flink
flink-master/flink-end-to-end-tests/test-scripts/python3_fileserver.py
################################################################################ # 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...
1,271
38.75
80
py
flink
flink-master/flink-end-to-end-tests/test-scripts/python2_fileserver.py
################################################################################ # 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...
1,281
39.0625
80
py
flink
flink-master/flink-python/setup.py
################################################################################ # 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...
15,513
43.19943
99
py
flink
flink-master/flink-python/apache-flink-libraries/setup.py
################################################################################ # 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...
9,763
39.853556
99
py
flink
flink-master/flink-python/docs/conf.py
################################################################################ # 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...
7,437
32.205357
80
py
flink
flink-master/flink-python/dev/pip_test_code.py
################################################################################ # 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...
2,198
38.267857
85
py
flink
flink-master/flink-python/pyflink/serializers.py
################################################################################ # 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...
5,422
30.52907
96
py
flink
flink-master/flink-python/pyflink/pyflink_gateway_server.py
################################################################################ # 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...
10,611
37.449275
98
py
flink
flink-master/flink-python/pyflink/gen_protos.py
################################################################################ # 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...
9,238
46.137755
100
py
flink
flink-master/flink-python/pyflink/java_gateway.py
################################################################################ # 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...
8,189
40.785714
100
py
flink
flink-master/flink-python/pyflink/shell.py
#!/usr/bin/env python ################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. ...
8,093
67.59322
242
py
flink
flink-master/flink-python/pyflink/version.py
################################################################################ # 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...
1,132
46.208333
84
py
flink
flink-master/flink-python/pyflink/find_flink_home.py
#!/usr/bin/env python ################################################################################# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership....
3,270
35.752809
95
py
flink
flink-master/flink-python/pyflink/__init__.py
################################################################################ # 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...
1,969
36.169811
88
py
flink
flink-master/flink-python/pyflink/pyflink_callback_server.py
################################################################################ # 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...
1,351
39.969697
86
py
flink
flink-master/flink-python/pyflink/datastream/checkpointing_mode.py
################################################################################ # 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...
4,575
49.844444
99
py
flink
flink-master/flink-python/pyflink/datastream/window.py
################################################################################ # 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...
65,024
36.761324
100
py
flink
flink-master/flink-python/pyflink/datastream/execution_mode.py
################################################################################ # 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...
2,550
39.492063
96
py
flink
flink-master/flink-python/pyflink/datastream/output_tag.py
################################################################################ # 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...
2,996
38.434211
98
py
flink
flink-master/flink-python/pyflink/datastream/checkpoint_config.py
################################################################################ # 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...
22,936
43.45155
103
py
flink
flink-master/flink-python/pyflink/datastream/state_backend.py
################################################################################ # 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...
50,081
46.561254
100
py
flink
flink-master/flink-python/pyflink/datastream/stream_execution_environment.py
################################################################################ # 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...
49,739
45.312849
100
py
flink
flink-master/flink-python/pyflink/datastream/state.py
################################################################################ # 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...
38,741
37.320475
100
py
flink
flink-master/flink-python/pyflink/datastream/functions.py
################################################################################ # 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...
58,855
35.107975
100
py
flink
flink-master/flink-python/pyflink/datastream/utils.py
################################################################################ # 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...
5,238
41.942623
92
py
flink
flink-master/flink-python/pyflink/datastream/data_stream.py
################################################################################ # 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...
137,180
45.739693
100
py
flink
flink-master/flink-python/pyflink/datastream/timerservice.py
################################################################################ # 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...
3,384
37.033708
100
py
flink
flink-master/flink-python/pyflink/datastream/checkpoint_storage.py
################################################################################ # 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...
16,747
45.010989
100
py
flink
flink-master/flink-python/pyflink/datastream/time_domain.py
################################################################################ # 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...
1,321
40.3125
95
py
flink
flink-master/flink-python/pyflink/datastream/slot_sharing_group.py
################################################################################ # 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...
10,515
34.768707
99
py
flink
flink-master/flink-python/pyflink/datastream/time_characteristic.py
################################################################################ # 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...
5,047
51.583333
96
py
flink
flink-master/flink-python/pyflink/datastream/__init__.py
################################################################################ # 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...
18,158
50.735043
100
py
flink
flink-master/flink-python/pyflink/datastream/formats/orc.py
################################################################################ # 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...
4,057
39.178218
96
py
flink
flink-master/flink-python/pyflink/datastream/formats/avro.py
################################################################################ # 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...
10,081
40.319672
100
py
flink
flink-master/flink-python/pyflink/datastream/formats/__init__.py
################################################################################ # 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...
958
52.277778
80
py
flink
flink-master/flink-python/pyflink/datastream/formats/parquet.py
################################################################################ # 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...
9,309
42.302326
100
py
flink
flink-master/flink-python/pyflink/datastream/formats/json.py
################################################################################ # 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...
5,720
36.887417
100
py
flink
flink-master/flink-python/pyflink/datastream/formats/csv.py
################################################################################ # 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...
16,754
34.19958
100
py
flink
flink-master/flink-python/pyflink/datastream/formats/tests/test_csv.py
################################################################################ # 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...
16,384
38.105012
100
py