seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
tixi.updateDoubleElement(R_DES_MAXIMUM_PATH \
+ '/payload', out.payloads[3], '%g')
### FUEL CONSUMPTION =====================================================
add_uid(tixi, FDES_PATH, 'Fuel required for each flight phase '\
+ '[kg], with maximum payload.'... | ise-uiuc/Magicoder-OSS-Instruct-75K |
OPTIONS = None # optparse options
def main(arguments=None):
from . import stapler
stapler.main(arguments)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LOGGER = logging.getLogger("pystructure.graphviz_plot")
def dot_graph(deps):
dot = Digraph(comment="Component Graph")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
table_candidate = item["from"]
col_candidates = [0]
for col, par in enumerate(par_tab_nums[idx]):
if str(par) in table_candidate:
col_candidates.append(col)
from_candidates.append(col_candidates)
return from_candidates
def make_compound_table(dev_db_com... | ise-uiuc/Magicoder-OSS-Instruct-75K |
{
private ILearnerCreatorDataCache _dataCache;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_get_pending_file_rename_true_1(self):
"""
If one of the value names exists and is set, should return True
"""
patched_return = {"success": True, "vdata": "some value"}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ctx.text(&state.info, nk::TextAlignment::NK_TEXT_CENTERED as Flags)
}
ctx.end();
}
fn on_key_button_press(state: &mut State, key: kb::Key) {
match state.pairs.last_mut() {
Some(pair) => match pair.1 {
Some(_) if key.scan_code != 0 => state.pairs.push((Some(key.clone()), None)),
None => if pair.0.as_ref()... | ise-uiuc/Magicoder-OSS-Instruct-75K |
template<typename DATA_t = double, typename INDEX_t = int, typename CLUSTER_t = int, class V>
void compute_centroids(int ndim, INDEX_t nobs, const DATA_t* data, CLUSTER_t ncenters, DATA_t* centers, const CLUSTER_t* clusters, const V& sizes) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# * save ban.mask and ban.hostmask across reloads
# * allow to override quiet command (for quiet with ChanServ)
# * freenode:
# - support for bans with channel forward
# - support for extbans (?)
# * Sort completions by user activity
#
#
# History:
# 2013-05-24
# version 0.3.1: bug fixes
# * fix e... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#nvda_eoaProxy.pyw
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2014 NV Access Limited
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
"""NVDA proxy process for Ease of Access in Windows Vista/7.
This version of Ease of Access terminates ATs on every deskto... | ise-uiuc/Magicoder-OSS-Instruct-75K |
export SKIP_ABI_CHECKS=true
# rm -rf
rm -rf vendor/codeaurora/telephony
rm -rf vendor/qcom/opensource/data-ipa-cfg-mgr
# clone
git clone https://bitbucket.org/syberia-project/external_motorola_faceunlock.git -b 11.0 external/motorola/faceunlock
git clone https://github.com/Rit1X1/android_vendor_codeaurora_telephony.g... | ise-uiuc/Magicoder-OSS-Instruct-75K |
modification_date = datetime.datetime.fromtimestamp(absolute.stat().st_mtime).strftime(
"%Y%m%d_%H%M%S%f"
)
stored_file_hash = local_storage.fetch_one(absolute)
if stored_file_hash:
if stored_file_hash.modification_date >= modification_date:
retu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
- name of a model unit?
"""
from __future__ import print_function
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sweeps across the same Timeline, until a specified number of passes
has been completed or some signal is given to stop sweeping.
Classes:
- CycleSweep
"""
from typing import TypeVar, Union
from sources.abstract import Subscriber, Timeline
from .basesweep import Sweepline
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let superposition_unitary = try result.get_data(superposition_name)["unitary"] as? Matrix<Complex> else {
print("Unable to get unitary matrices")
return
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
package org.omnifaces.serve.ext.validator;
import javax.el.ValueExpression;
import javax.inject.Inject;
import org.omnifaces.serve.component.UIComponent;
import org.omnifaces.serve.component.UIInput;
import org.omnifaces.serve.ext.processor.ServeAttachedObjectProcessor;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from typer import Argument
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php
class Welcome_model extends CI_Model
{
function get_catalog_list($id_category = '',$limit, $start)
{
$sql = 'select * from catalog where id_category='.$id_category.' and status=1 order by id_category desc limit ' . $start . ', ' . $limit;
$query = $this->db->query($sql);
return... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return rendered
def get_val_from_obj(self, obj):
if VERSION < (2, 0):
return self._get_val_from_obj(obj)
if obj is not None:
return getattr(obj, self.attname)
else:
return self.get_default()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model_name='selectenrollmenttypeentrancestep',
name='review_info',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@pytest.mark.parametrize("size", [100, 200, 500])
def test_classification_imbalanced_small_dataset(size):
X = pd.DataFrame({"a": [i for i in range(size)]})
y = pd.Series([0] * int(0.8 * size) + [1] * int(0.2 * size))
bcs = BalancedClassificationSampler(balanced_ratio=1)
indices = bcs.fit_resample(X, y)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public void setDepartamento(Departamento departamento) {
this.departamento = departamento;
}
public Proveedores getProveedores() {
return this.proveedores;
}
public void setProveedores(Proveedores proveedores) {
this.proveedores = proveedores;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Grab the Composer directory.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(working_dir / "release.toml").write_text(_TOML_CONTENTS_EXTENDED_CONTENTS)
t_releaselogit = releaselogit.ReleaseLogIt(working_dir)
assert t_releaselogit.get_release_note_by_version("1.1.1") == {
"Title": "Release 1.1.1.",
"Description": [
"Description l... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pos = int(input("Enter an index: "))
if pos == -1:
return pos
elif pos >= len(word):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
test('checkbox passes value and event to onClick handler', () => {
const onClickMock = jest.fn();
render(<DropdownToggleAction id="action" aria-label="acton" onClick={onClickMock} />);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
terms = 2
time_step = 0.005
max_points = 2000
wave_choice = 1 # default to square (map at end of file)
###############
screen = pg.display.set_mode((width, height))
text = ["Select a wave:",
"1: Square 2: Sawtooth 3: Triangle",
"Up/Down: Number of terms ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<title><?php echo $GLOBALS['TITLE_TEXT'] . GLOBAL_WEBSITE::SAPDS_ORG_TITLE ?> </title>
<meta name="a... | ise-uiuc/Magicoder-OSS-Instruct-75K |
policy: PresentationPolicy,
zoomEvent?: ZoomEvent,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
root.left.right = root
root.left.left = root.right
root.left = root.right = None
return left if left else root
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pivr=[[] for c in mtx[0]]
for r,row in enumerate(mtx):
for c,col in enumerate(row):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def area(self):
return self.side**2
def perimeter(self):
return self.side * 4
class Rectangle():
def __init__(self, length, width):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--enable-workflow \
--admin-password <PASSWORD> \
--accept-terms-and-mlsa
}
do_test_deploy() {
workflow-ctl create-enterprise automate --ssh-pub-key-file /hab/svc/automate-workflow-server/var/etc/builder_key.pub
do_test_deploy_default
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MIN_DISTANCE_FOR_NEW_QUERY = 1000 # mts. Minimum distance to query area edge before issuing a new query.
FULL_STOP_MAX_SPEED = 1.39 # m/s Max speed for considering car is stopped.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self,functionList):
self.generatedApp=[]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ip_regex="((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?)"
if [[ ${adr} =~ ^$ip_regex$ ]]; then
echo "True"
else
echo "False"
fi | ise-uiuc/Magicoder-OSS-Instruct-75K |
cd tweet_tokens/subsample/tweet_tokens/day_1
split -d --lines=1000000 --suffix-length=2 --additional-suffix=".csv" ../../text_tokens_clean_days_1_unique.csv text_tokens_clean_days_1_unique_
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def EnQueue(self, item):
temp = Node(item)
if(self.back == None):
self.front = self.back = temp
return
self.back.next = temp
self.back = temp
def DeQueue(self):
if(self.isEmpty()):
return
temp = self.front
self.front ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>accounts/management/commands/run-stats.py
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:header-rows: 1
:widths: 30, 40
* - Name
- Description
* - | **run**
- | Runs a single simulation from a model specification file.
* - | **test**
- | Runs an example simulation that comes packaged with ``vivarium``.
| Useful as an installation test.
* ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
TEST(PtrMaybeTest, SmokeTest) {
detail::PtrMaybe<std::vector<uint32_t>> example;
EXPECT_FALSE(example.isJust());
EXPECT_TRUE(nullptr == example.fromMaybe(nullptr));
std::unique_ptr<std::vector<uint32_t>> v(new std::vector<uint32_t>);
v->push_back(42);
v->push_back(21);
example = std::move(v);
EXPECT_TRU... | ise-uiuc/Magicoder-OSS-Instruct-75K |
protected final GdbModelTargetAvailableContainer available;
protected final GdbModelTargetBreakpointContainer breakpoints;
private boolean accessible = true;
protected GdbModelSelectableObject focus;
protected String debugger = "gdb"; // Used by GdbModelTargetEnvironment
public GdbModelTargetSession(GdbModelIm... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if things:
thing = things[0]
symbol = thing[0]
color = thing[1]
if symbol in [symbols.PLAYER_LEFT, symbols.PLAYER_DOWN, symbols.PLAYER_RIGHT]:
symbol = symbols.PLAYER_UP
out_string += symbols.apply_color(symb... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def compute_params(data):
params = {}
params["n_rows"] = data.shape[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func sceneDidEnterBackground(_ scene: UIScene) {}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str... | ise-uiuc/Magicoder-OSS-Instruct-75K |
]
operations = [
migrations.RenameModel(
old_name='UserProfile',
new_name='Person',
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
declare module 'overmind' {
interface Config extends IConfig<typeof config> {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def print_figures():
files = [
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
return view('admin.news.create', ['listCategories' => $this->getCategoryList()]);
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return Response
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true)
final class SpringGitStatusParser implements GitStatusParser {
@NonNull Map<Character, GitStatusLineParser> parsers;
@Override
public Mono<GitStatus> apply(Flux<String> stringFlux) {
final var status = GitStatus.builder()
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
int n2 = (int)((change * 100) / 20);
if (n2 <= arr[2])
{
change -= n2 * 0.20m;
sumAfterChange -= n2 * 0.20m;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import os
import pytest
from stupid_ai.markov_chain import MarkovChain
@pytest.fixture
def markov_chain():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
abstract class Entity
{
/**
* @var string
*/
protected $property;
/**
* @param string $property
*/
public function __construct($property)
{
$this->property = $property;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if word in wdic:
wdic[word] += 1
else:
wdic[word] = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
key_str = ""
value_str = ""
for key in fields.keys():
key_str += f" {key},"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Table(object):
def __init__(self):
self.idn = ''
self.q = []
self.min_wait = datetime.timedelta(minutes = 0) | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_deploying_contract(client, hex_accounts):
pre_balance = client.get_balance(hex_accounts[1])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
contact = random.choice(orm.get_contact_list())
groups_with_contact = []
for group in all_groups:
if len(orm.get_contacts_in_group(group)) != 0:
groups_with_contact.append(group)
# Если нет, то добавить
if len(groups_with_contact) == 0:
group = random.choice(all_groups)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Pathfinder:
def __init__(self, points_container: "Points"):
self.points_container = points_container
self.current_path: List[Vector2] = []
self.shortest_path: List[Vector2] = []
self.current_distance = 0.0
self.shortest_distance = inf
self.iteration = 0
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'alpha': alpha,
}
async def train(self, data_split: TrainingDataSet) -> TrainedModel:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
isMode = True
if config.get('TURBO'):
turbo = digitalio.DigitalInOut(config.get('TURBO'))
turbo.direction = digitalio.Direction.INPUT
turbo.pull = digitalio.Pull.UP
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class DummyTable(Table):
columns = [
Column('name', header='Name'),
Column('status', header='Status', accessor=lambda x: 'OK' if x.get('status', None) in ['Excellent', 'Good'] else 'Unhealthy'),
]
class DummyTableNoHeaders(Table):
columns = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Base class for likelihoods used in Gaussian Process.
Every inherited class should implement a forward pass which
takes an input `f` and returns a sample `y`.
"""
def __init__(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import signals
from ...signals import send_signal
log = logging.getLogger(__name__)
class SparkPostUnsubscribeWebhook(View):
@method_decorator(csrf_exempt)
def dispatch(self, *args, **kwargs):
return super(SparkPostUnsubscribeWebhook, self).dispatch(*args, **kwargs)
def post(self, request... | ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
while not os.path.exists(file_path):
time.sleep(1)
print(".")
with open(file_path, "r") as f:
read_lines = f.readlines()
print("read_lines", read_lines)
assert message == read_lines[0]
self.ne... | ise-uiuc/Magicoder-OSS-Instruct-75K |
format = "%m-%d-%y_%H%M%S"
return today.strftime(format)
# Print count of VPN logins sorted by most logins by username
# and create gprah of logins
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return "Type<\(referenceType.textDescription)>"
case .protocol:
return "Protocol<\(referenceType.textDescription)>"
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.slyang.im.socketio.message.msgcontent;
public class TextMessage extends AbsMessage<String> {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if mode != .Update {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
max_length=10,
unique=True,
)
name = models.CharField(
max_length=80,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then
echo Not linked with a running Hub container 1>&2
exit 1
fi
REMOTE_HOST_PARAM=""
if [ ! -z "$REMOTE_HOST" ]; then
echo "REMOTE_HOST variable is set, appending -remoteHost"
REMOTE_HOST_PARAM="-remoteHost $REMOTE_HOST"
fi
if [ ! -z "$SE_OPTS" ]; then
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (num_archived + 1) % 25 == 0 {
if let Some(out_path) = &opts.out {
eprintln!("Writing intermediate results...");
write_results(&urls, out_path)?;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def upsample_2d(x, k=None, factor=2, gain=1, data_format="NCHW", impl="cuda"):
r"""Upsample a batch of 2D images with the given filter.
Accepts a batch of 2D images of the shape `[N, C, H, W]` or `[N, H, W, C]`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#Vumoo().scrape_movie('moana','2016','')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hits = ibbr.get_reads_by_id( #search for non-existent read
"NZ_GG703879.1_967999_968061_0_1_0_0_4:0:0_1:0:0_62bb")
assert_equal(len(hits), 0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dynamic builder = new DynamicXmlBuilder();
builder.Declaration();
builder.DeleteResult(new {xmlns = "http://s3.amazonaws.com/doc/2006-03-01/"},
DynamicXmlBuilder.Fragment(deleteResult =>
{
deleteResult.Deleted(DynamicXmlBuilder.Frag... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"validationSyntacticWarningFile", "validationSyntacticMountPoint", "validationSyntacticWarningConfigFile", 5);
ASSERT_EQ (validationSyntacticWarning.code (), ELEKTRA_WARNING_VALIDATION_SYNTACTIC);
ASSERT_EQ (validationSyntacticWarning.description (), "validationSyntacticWarningDescription");
ASSERT_EQ (validationS... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if not os.path.exists(PICKLEDIR):
os.mkdir(PICKLEDIR)
def to_dict(self):
config = {}
for key in dir(self):
if key.isupper():
config[key.lower()] = getattr(self, key)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Overrides
public class Sub: Base {
public override func disappearingMethod() {}
}
// CHECK-CRASH: error: fatal error encountered while reading from module 'Lib'; please file a bug report with your project and the crash log
// CHECK-CRASH-3-NOT: note
// CHECK-CRASH-4: note: compiling as Swift 4.0, with 'Lib' ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo apt-get install -y --no-install-recommends cuda-compiler-${CUDA_VERSION_DASHED} cuda-libraries-dev-${CUDA_VERSION_DASHED} cuda-driver-dev-${CUDA_VERSION_DASHED} cuda-cudart-dev-${CUDA_VERSION_DASHED}
sudo apt-get install -y --no-install-recommends libcudnn8-dev
sudo rm -rf /usr/local/cuda
sudo ln -s /usr/local/cud... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub trait ContextIterator<Context> {
type Item;
fn next(&mut self, context: &Context) -> Option<Self::Item>;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Unit test package for configuru."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case [0]:
if match[0]:
match[0] | ise-uiuc/Magicoder-OSS-Instruct-75K |
"reference \'{}\' is unknown".format(node.id))
else:
ref_name = node.id
ref = references[node.id]
if type(ref["node"].ctx) != ast.Store:
raise SetupParserError(
"reference \'{}\' has unsupported ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
tar -C /tmp/data-1 -czf /tmp/data-1.tar.gz .
tar -C /tmp/data-2 -czf /tmp/data-2.tar.gz .
stub buildkite-agent \
"artifact download --build 12345 /tmp/data-1.tar.gz . : echo Downloading compressing artifacts with args: --build 12345" \
"artifact download --build 12345 /tmp/data-2.tar.gz . : echo Downloadi... | ise-uiuc/Magicoder-OSS-Instruct-75K |
save_model(graph, 'reshape_fusion_internal_node_is_graph_output.onnx')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$panel_color = panelColor($scorecard, $compare);
?>
<!-- SINGLE PLAYBACK CONTAINER -->
<div id="single-scorecard"></div>
<div class="panel {{$panel_color}}">
<div class="panel-heading">
<h3 class="panel-title">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->title = 'Detalle Compra';
$this->params['breadcrumbs'][] = ['label' => 'Compras', 'url' => ['index']];
$this->params['breadcrumbs'][] = $model->id_compra;
$view = 'compra';
?>
<div class="compra-view">
<!--<h1><?= Html::encode($this->title) ?></h1>-->
| ise-uiuc/Magicoder-OSS-Instruct-75K |
generators = ArrayField(Int32Field, length_field='numGenerators')
accumulators = ArrayField(Int32Field, length_field='numAccumulators')
exchangers = ArrayField(Int32Field, length_field='numExchangers')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_participants(created_by, merged_by):
participants = ""
if created_by == merged_by or merged_by == "miss-islington":
participants = f"@{created_by}"
else:
participants = f"@{created_by} and @{merged_by}"
return participants
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.schedule.add(ChargeAgent2)
self.grid.position_agent(ChargeAgent2,6,9) #create chargepole
ControlAgent = Charging_Control_Agent('control_value',self)
self.schedule.add(ControlAgent)
self.grid.position_agent(ControlAgent,6,11) #create controlAgent
"""
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
V member = memberConverter.convert(item);
if (member == null) {
return null;
}
return ((RedisSetAsyncCommands<K, V>) commands).srem(key, member);
}
public static <K, V, T> SaddMemberBuilder<K, V, T> key(K key) {
return key(t -> key);
}
public static <K, V, T> SaddMemberBuilder<K, V, T> key(Converter<... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# filter out to show data for the selected node only
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async def setbreakpoint(sid, data):
addr = data['addr']
await gdb_sessions[sid].set_breakpoint(addr)
await sio.emit('breakpoints', gdb_sessions[sid].breakpoints(), room=sid)
@sio.on('unbreak')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return x_c, x_d
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.