seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
admin.site.register(UserSession) | ise-uiuc/Magicoder-OSS-Instruct-75K |
* listed in table texbo.1
*
* For each format it should allocate memory block of size 128 *
* texel_size_for_format.
*
* Use glBufferData to initialize a buffer object's data store.
* glBufferData should be given a pointer to allocated memory that will be
* copied into the data store for initialization.
*
* The buffer object should be used as texture buffer's data store by calling
*
* TexBufferEXT(TEXTURE_BUFFER_EXT, format_name, buffer_id );
*
* The function glGetTexLevelParameteriv called with
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# (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
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rfk.CONFIG.get('database', 'username'),
rfk.CONFIG.get('database', 'password'),
rfk.CONFIG.get('database', 'host'),
rfk.CONFIG.get('database', 'database')))
try:
daemon = LiquidsoapDaemon(rfk.CONFIG.get('liquidsoap-daemon', 'socket'))
if args.debug:
daemon.set_debug(args.debug)
if args.foreground:
daemon.enable_stdout()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# test_model()
# test_single()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ProwlValidationMessage(BaseMessage):
"""
a prowl validation message to validate a user key
"""
def __init__(self, **kwargs):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
smtp_port: 25
smtp_login: False
smtp_username:
smtp_password:
smtp_tls: False
smtp_ssl: False
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$ativo = TRUE;
}else{
$ativo = FALSE;
}
//Carrega os dados
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def run_model(model_name, model, X, target, iters=10):
print(model_name)
predictions = []
for _ in range(iters):
X_train, X_test, y_train, y_test = train_test_split(
X, target, test_size=0.33)
clf = model.fit(X_train, y_train)
predicted = clf.predict(X_test)
correct = np.mean(predicted == y_test)
print(' {}'.format(correct))
predictions.append(correct)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
id: string;
name: string;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}]
ds_train = ds.GeneratorDataset(dataset_generator,
["image", "label"])
ds_test = ds.GeneratorDataset(dataset_generator,
["image", "label"])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Article', (i + 1), end=':')
print()
print(headers[i].text.strip(), '\n', 'More:', paragraphs[i].text.strip(), '\n') | ise-uiuc/Magicoder-OSS-Instruct-75K |
gerrit_url=common.get_gerrit_url(),
gerrit_version=common.get_version(),
form=form)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# if input_img_data[0][i][j][k][0] > 0 :
# ax.scatter (i, j, k, c='r')
if ypred[id_val] == cl :
plt.savefig (root_name + '_visual_correct_' + str (id_val) + '.png')
else :
plt.savefig (root_name + '_visual_wrong_' + str (id_val) + '.png')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
await self._do_backoff()
except asyncio.CancelledError:
raise
except Exception as exc:
self._logger.exception("Connection 0x%x for session %s: "
"unhandled exception %s",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return {
x: containerRect.left + container.clientLeft,
y: containerRect.top + container.clientTop
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
group.add_argument('--file-data', '-f',
help='Path to JSON file with commands in key/value format. '
'(e.g. {"azure-cli":"2.0.0", ...})',
type=_type_json_file)
parser.add_argument('--version', '-v', required=True,
help="The version to name the packaged release.")
parser.add_argument('--dest', '-d',
help="The destination directory to place the archive. "
"Defaults to current directory.")
args = parser.parse_args()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public long getQueryTimeout() {
return query_timeout;
}
/**
* Sets the max execution time available for ranking in a submitted search query.
* @param query_timeout An integer representing the max allowed time (in milliseconds).
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
currentNode: RootNode | TemplateChildNode | null
helper<T extends symbol>(name: T): T
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not os.path.exists(model_dir):
os.makedirs(model_dir)
formatter = logging.Formatter(
"[ %(levelname)s: %(asctime)s ] - %(message)s"
)
logging.basicConfig(level=logging.DEBUG,
format="[ %(levelname)s: %(asctime)s ] - %(message)s")
logger = logging.getLogger("Pytorch")
fh = logging.FileHandler(log_file)
fh.setFormatter(formatter)
logger.addHandler(fh)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
toast.info('This is an info', {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app.run(host='0.0.0.0', port=port)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try _ = tn.attr("text", "kablam &")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
log.error("Tcpdump does not exist at path \"%s\", network "
"capture aborted", tcpdump)
return
# TODO: this isn't working. need to fix.
# mode = os.stat(tcpdump)[stat.ST_MODE]
# if (mode & stat.S_ISUID) == 0:
# log.error("Tcpdump is not accessible from this user, "
# "network capture aborted")
# return
pargs = [
#tcpdump, "-U", "-q", "-s", "0", "-n",
tcpdump, "-B", "524288", "-s", "0",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
start_idx_x = 0
end_idx_x = image.shape[0]
if image.shape[1] > patch_size:
start_idx_y = int(np.round(np.random.random() * (image.shape[1]-patch_size)))
end_idx_y = start_idx_y + patch_size
else:
start_idx_y = 0
end_idx_y = image.shape[1]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns
-------
pd.DataFrame
Dataframe of transaction history
"""
a = ally.Ally()
return a.balances(dataframe=True)
def get_stock_quote(ticker: str) -> pd.DataFrame:
"""Gets quote for stock ticker
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except UnicodeEncodeError:
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export JAVA_OPTS="-Xmx712m -XX:MaxPermSize=250m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8764"
nohup /opt/java/jdk1.8.0_71/bin/java $JAVA_OPTS -jar vojtitko.jar
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from config import keybinds
class MonkeyVillage(Tower):
name = 'monkey_village'
range = 215
width = 119
height = 103
size = 'xl'
keybind = keybinds[name]
aquatic = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
sys.path.insert(0, "..")
import typesentry # noqa
_tc = typesentry.Config()
typed = _tc.typed
TypeError = _tc.TypeError
ValueError = _tc.ValueError
__all__ = ("typed", "TypeError", "ValueError")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path('admin/', admin.site.urls),
path('wiebetaaltwat/', include('wiebetaaltwat.urls')),
path('', include('orders.urls')),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from Helpers.Helpers import getEndPoint
from Render.Camera import Camera
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
from .. import linear as Float
from .module import QATModule
class Linear(Float.Linear, QATModule):
r"""
A :class:`~.QATModule` version of :class:`~.module.Linear`.
Could be applied with :class:`~.Observer` and :class:`~.FakeQuantize`.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$content_file = file_get_contents($totalName);
$note = Note::findOrNew(0);
$note->setAttribute("mime", $mime);
$note->setAttribute("username", Auth::user()->email);
$note->setAttribute("content_file", $content_file);
$note->setAttribute("filename", $filename);
$note->setAttribute("folder_id", $folderId);
$note->save();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns:
tuple[list[str], tuple[int, int]]:
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super(cluster, policy);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* - Redistributions of source code must retain the above copyright notice, this list of conditions
* and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright notice, this list of
| ise-uiuc/Magicoder-OSS-Instruct-75K |
password = forms.CharField(label='Password', max_length=250)
class RegisterForm(forms.Form):
email = forms.EmailField(label='Email', max_length=250)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
var content = (IPublishedContent)serializer.Deserialize(reader, typeof(PublishedContent));
return content;
}
}
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
// possible to protect time ranges of the form [t_min, +∞[. Any client that
// would want to touch the time range ]-∞, t[ should do so through
// RunWhenUnprotected, and the change will be delayed until ]-∞, t[ becomes
// unprotected. This class is thread-safe.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
//=====[Implementations of private functions]==================================
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn to_code(&self) -> &'static str {
match self {
ElevType::Elevator => ELEV_TYPE_ELEVATOR,
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
export default ContentHeader;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
controller.spargeHigh=89
controller.mashLow=67
controller.mashTarget=68
controller.mashHigh=69
controller.boilLow=99
controller.boilHigh=101
controller.boilTarget=100
controller._recipe="Test Recipe"
controller._brewlog="Test Brewlog"
controller.startOrders()
controller.mainButtonLoop()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class a {
func f<c: a {
}
protocol a : A {
{
}
typealias A
let v: a
| ise-uiuc/Magicoder-OSS-Instruct-75K |
amount_of_target_maps_present -= 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
deleteHostname(hostname); // was not provisioned after all
}
LOG_ERROR << "Failed to provision hostname (no more retries left): " << hostname;
onDone(false);
});
}
void DnsProvisionerVubercool::deleteHostname(const string &hostname, const cb_t& onDone)
{
client_->Process([this, hostname, onDone](Context& ctx) {
auto url = "https://"s + config_.host + "/zone/" + hostname;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
saveAppSettings()
Conductor.sharedInstance.updateDisplayLabel("Freeze Arp+Sequencer: \(value == false ? "false" : "true")")
saveAppSettings()
}
func portamentoChanged(_ value: Double) {
appSettings.portamentoHalfTime = value
saveAppSettings()
Conductor.sharedInstance.updateDisplayLabel("dsp smoothing half time: \(value.decimalString)")
saveAppSettings()
}
func whiteKeysOnlyChanged(_ value: Bool) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static func standardOutput(label: String) -> GitHubActionsLogHandler {
return GitHubActionsLogHandler(outputStream: StandardTextOutputStream())
}
init(outputStream: TextOutputStream) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn diameter(graph: &JsGraph, edge_distance: &Function) -> usize {
let distance = self::algorithm::warshall_floyd(&graph.graph, |e, _| {
let this = JsValue::NULL;
edge_distance
.call1(&this, &(e.index() as u32).into())
.unwrap()
.as_f64()
.unwrap() as usize
});
let n = graph.graph.node_count();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
excludes=["*.so"],
commands=["mkdir -p build && cmake .. && make"],
),
"node": Template(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n_samples=5000,
min_points_in_model=None,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use analysis::*;
pub use core_types::{Fbas, Groupings, NodeId, NodeIdSet, QuorumSet};
pub use io::{AnalysisResult, FilteredNodes, PrettyQuorumSet};
use core_types::*;
use log::{debug, info, warn};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
func previewingContext(_ previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public List<ID> TemplateIds { get; set; }
public SimpleFacets ()
{
this.TemplateIds = new List<ID>();
}
public void AddTemplate(string key, System.Xml.XmlNode node)
{
AddTemplate(node);
}
public void AddTemplate(System.Xml.XmlNode node)
{
var value = node.InnerText;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Task AtualizarItemCarrinho(Models.ItemCarrinho item, Carrinho carrinho);
Task Remover(string produto, string user);
Task AtualizarCarrinho(Carrinho carrinho);
Task RemoverTodosItens(string usuario);
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Vocabulary size: ', len(vocab))
# Save vocabulary
with open(config.vocab, 'wb') as writer:
pickle.dump(vocab, writer)
print('Vocabulary saved to', config.vocab) | ise-uiuc/Magicoder-OSS-Instruct-75K |
// LedgerTransactionOperation.swift
import UIKit
import CoreBluetooth
class LedgerTransactionOperation: LedgerOperation, BLEConnectionManagerDelegate, LedgerBLEControllerDelegate {
var bleConnectionManager: BLEConnectionManager {
return accountFetchOperation.bleConnectionManager
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ParentVC: UIViewController {
var deinitCalled: (() -> Void)?
deinit {
deinitCalled?()
}
}
var parent: ParentVC!
var panel: TestPanel!
override func setUp() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
count_numbers += 1
r = json.loads(line)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Calculator functions are pulled by using their names.
Calculator functions must start with "calc_", if they are to be consumed by the framework.
Or they should be returned by overriding the function:
def getCalculationList(self):
"""
import inspect
from pyradioconfig.calculator_model_framework.interfaces.icalculator import ICalculator
| ise-uiuc/Magicoder-OSS-Instruct-75K |
REGISTER_SET_WITH_PROGRAMSTATE(PendingNonLocValueSet, TrackedValueType<clang::Expr>);
REGISTER_SET_WITH_PROGRAMSTATE(PendingMemoryRegionSet, TrackedValueType<clang::ento::MemRegion>);
// For sanity
template <class T>
using PointerToMemberFunctionReturningSourceRange = clang::SourceRange(T::*)() const;
// This template provides a mechanism through which TrackedValueType<T> can determine the appropriate member function to call
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Test cfgenvy."""
from io import StringIO
from typing import Optional
from pytest import mark
from cfgenvy import Parser, yaml_dumps, yaml_type
class Service(Parser):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ $(id -u) = 0 ]; then
printf "\a\n%s\n" "You shouldn't run this installer as root! Aborting..."
exit 1
fi
}
# Simple timer to track rough elapsed time of separate install blocks.
function elapsed_time {
if [[ "$1" == "" ]]; then
printf '%dh %dm %ds' $((SECONDS/3600)) $((SECONDS%3600/60)) $((SECONDS%60)) | sed "s/0[hm][[:blank:]]//g"
elif [[ "$1" == "end" ]]; then
CURRTIME=$(date +%s)
ELAPSED=$(( $CURRTIME - $SCRIPTSTARTTIME ))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub struct SettingsContainer {
pub settings: Settings,
}
pub type Value = SettingsContainer;
//impl From<ayase::Value> for Type {
// // add code here
//} | ise-uiuc/Magicoder-OSS-Instruct-75K |
orientation: property
min_zoom: property
height_at_viewport: type
width_at_viewport: type
zoom_at_viewport: type
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .Data import Data
from .Display import Display
from .Module import Module
| ise-uiuc/Magicoder-OSS-Instruct-75K |
owner = forms.CharField(
required=False,
widget=forms.TextInput(attrs={
'class': 'form-control',
'form': 'filament_form',
'placeholder': 'your name',
}),
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser.add_argument(
"action",
type=str,
choices=("start", "stop", "init"),
help="The type of action to perform.",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
If the condition field is specified as "new", but other fields in the
product imply that the condition is otherwise, this optimizer will reset
the condition value to "used".
"""
import logging
from typing import Any, Dict, List, Set
from flask import current_app
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>palto42/ndscheduler
"""Utilities to be used by multiple jobs"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return ab2v.reshape(-1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package uk.gov.hmcts.reform.pdf.service;
public interface SmokeTest { /* category marker */ }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# response = client.get('/app1/api/posts')
# dump(response)
#dump(client)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Props props = new Props();
Map<String, String> propsMap = new HashMap<>();
propsMap.put("string-prop", "testValue");
propsMap.put("endpoint-prop", "(endpoint)test");
propsMap.put("file-prop", "(file)src/test/resources/util-input/props.txt");
props.setProps(propsMap);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int main(int argc, char **argv) {
ros::console::set_logger_level(ROSCONSOLE_DEFAULT_NAME, ros::console::levels::Debug);
ROS_DEBUG_STREAM("start new lcm to ros node...");
lcm::LCM lcm;
if(!lcm.good()) {
ROS_ERROR_STREAM("LCM init failed.");
return -1;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
A, B = map(int, input().split())
print((A - 1) * (B - 1))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if projector is None:
projector = self.projector()
if projector is None:
return self._frame
# Project back to lon/lat
frame = self._frame.copy().to_crs({"init": "epsg:4326"})
def proj(geo):
return shapely.ops.transform(lambda x,y,z=None : projector(x,y), geo)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def draw_anchors():
"""Draw anchors base on P3 dimension."""
import data
import utils
image = Image.open("images/car58a54312d.jpg")
image, scale, crop = data.encode_image(image, 800, 1024)
anchors = utils.create_anchors(scales=64, ratios=[0.5, 1, 2], shape=[128, 128], feature_stride=8, anchor_stride=1)
data.draw_anchors(image, anchors)
draw_anchors()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>chankyin/tit-for-tat-simulator<gh_stars>0
#include "TitForTatStrategy.h"
string TitForTatStrategy::getStrategyName() {
return "TitForTat";
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private String catalogName;
@XmlElement(required = true)
private BillingMode recurringBillingMode;
@XmlElementWrapper(name = "currencies", required = true)
@XmlElement(name = "currency", required = true)
private Currency[] supportedCurrencies;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pylaas_core.interface.technical.container_configurable_aware_interface import ContainerConfigurableAwareInterface
class DummyConfigurable(AbstractService, ContainerConfigurableAwareInterface):
def __init__(self) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
detector = YoloObjectDetector()
detector.load_model(model_dir_path)
camera = cv2.VideoCapture(0)
detector.detect_objects_in_camera(camera=camera)
camera.release()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
->select("grado c_grado, COUNT(*) AS total")
->select("( SELECT COUNT(*) AS bajas FROM {$this->table} WHERE grado = c_grado AND estatus = 0 ) AS bajas")
->group_by('grado')
->having("c_grado",$grado)
->get($this->table)
->result();
$r['rows'] = $this->db
->where('grado',$grado)
->where('estatus',1)
->order_by('apat,amat,nombre')
->get($this->table)
->result();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Common imports for generated source client library."""
# pylint:disable=wildcard-import
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(4.00, R2(4))
self.assertEqual(4.50, R2(4.5))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
y = data[:, 0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.exe_mode = 'graph' # TODO: Test more runtimes.
# random.choice(self.exe_mode_space(len(dynamic_input_ids) != 0))
def __deepcopy__(self, meno):
module = tvm.parser.parse(self.module.astext())
params = {k:tvm.nd.array(v.numpy()) for k,v in self.params.items()}
n_inp_node = self.n_inp_node
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data = list(load())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
git clone https://github.com/snort3/libdaq.git
cd libdaq
git checkout 2.x
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void MacProtocolBase::clearQueue()
{
if (txQueue)
while (!txQueue->isEmpty())
delete txQueue->popPacket();
}
void MacProtocolBase::handleMessageWhenDown(cMessage *msg)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class GridExtension extends AbstractExtension
{
/**
* {@inheritdoc}
*/
public function getFunctions()
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public string Body { get; set; }
public string SeoDescription { get; set; }
public string SeoTitle { get; set; }
public string Excerpt { get; set; }
public string ThumbnailUrl { get; set; }
public IList<string> Tags { get; set; }
public string Category { get; set; }
public string SafeName => Name.MakeUrlFriendly();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try
{
// Get Template
var dbTemplate = this.templatesList.Where(t => t.CampaignID == campaignID).FirstOrDefault();
if (dbTemplate != null)
{
templateModel = Mapper.Map<TemplateModel>(dbTemplate);
// Get Sender
var sender = dbTemplate.Template_Email_Addresses.Where(cr => cr.IsSender == true).FirstOrDefault();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
public interface Field {
String getFieldName();
String getJQLTerm();
default String getValidationRegex() {
return ".*";
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
config()->set('form-components.floating_label', false);
$html = $this->renderComponent(Input::class, ['name' => 'first_name', 'append' => 'Test append']);
self::assertStringContainsString('<label', $html);
$labelPosition = strrpos($html, '<label');
$inputGroupPosition = strrpos($html, '<div class="input-group">');
self::assertLessThan($inputGroupPosition, $labelPosition);
}
/** @test */
public function it_can_set_input_prepend_addon(): void
{
config()->set('form-components.floating_label', false);
$html = $this->renderComponent(Input::class, ['name' => 'first_name', 'prepend' => 'Test prepend']);
self::assertStringContainsString('<span class="input-group-text">Test prepend</span>', $html);
$addonPosition = strrpos($html, 'input-group-text');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from healthvaultlib.helpers.requestmanager import RequestManager
class Method:
def __init__(self, request, response):
self.request = request
self.response = response
def execute(self, connection):
requestmgr = RequestManager(self, connection)
requestmgr.makerequest()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
export default DevelopmentMode;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def load_ml_10m(filename, sort=True):
names = ['user_id', 'item_id', 'rating', 'timestamp']
ratings = pd.read_csv(filename, sep='::', names=names, engine='python')
| 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.