seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
* @param genConfig
* @param tableName
*/
void generator(List<ColumnInfo> columnInfos, GenConfig genConfig, String tableName);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return f'''lp solution:
x: {lp.x}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
// "If she deals damage this way..."
if (DidDealDamage(damageResults))
{
// "... destroy any number of Clusters..."
IEnumerator destroyCoroutine = base.GameController.SelectAndDestroyCards(base.HeroTurnTakerController, new LinqCardCriteria((Card c) => c.IsInPlayAndHasGameText && c.DoKeywordsContain("cluster"), "cluster"), null, requiredDecisions: 0, responsibleCard: base.Card, cardSource: GetCardSource());
if (base.UseUnityCoroutines)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{'name': "viscous-strain-xx",
'units': "None",
'data': vstrain[:,0]},
{'name': "viscous-strain-yy",
'units': "None",
'data': vstrain[:,1]},
{'name': "viscous-strain-zz",
'units': "None",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
aima.core.logic.fol.CollectAllVariables
aima.core.logic.fol.StandardizeApartInPlace
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$clean_phone = '+'.substr($phone, 2);
} else {
$clean_phone = $phone;
}
return $clean_phone;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extern "C" {
pub fn pam_open_session(
pamh: *mut pam_handle_t,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return view('auth.login', $binding);
}
// 登入處理
public function logInProcess(){
// 接收登入資料
$input = request()->all();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { About } from './About'
import { Options } from './Options'
export const Menu = (props) => {
return (
<TabFolder className="menu">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (q1 > 3 || q2 < 2) {
return ret;
}
return this.dArr[q2] - this.dArr[q1];
}
/**
* Formats latest quarter of data into predetermined string.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cost_output[i] = ag.ADScalar(total_cost)
print('cost arr=', cost_output)
return cost_output
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
#[must_use = "streams do nothing unless polled"]
impl futures::future::Future for ResizeFuture {
type Item = ResizeStream;
type Error = Error;
fn poll(&mut self) -> futures::Poll<Self::Item, Self::Error> {
self.stream_fut.poll()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dest=resultFile) # file handle to recieve result
# close output file
resultFile.close() # close output file
# return True on success and False on errors
return pisaStatus.err
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能会导致不正确的行为,并且如果
| ise-uiuc/Magicoder-OSS-Instruct-75K |
code,
redirect_uri,
vendor,
):
"""Oauth.
:param code: The OAuth code
:param redirect_uri: The redirect_uri used to get the code parameter
:param vendor: The OAuth vendor (doximity|google|brand)
"""
request_data = {
'code': code,
'redirect_uri': redirect_uri,
'vendor': vendor,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return error;
}
function getLogLevel(error: BaseError): "error" | "warn" | "info" {
if (error.status >= 500) {
return "error";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace ImageProcessing.App.PresentationLayer.DomainEvents.SettingsArgs
{
/// <summary>
/// Rotation method which is used on an image container.
/// </summary>
public sealed class ChangeRotationEventArgs : BaseEventArgs
{
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm -rf "${tmpdir}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def log_message(self, message: str):
self._common_logger.info(message)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# summarize how many we keep
count = {}
for s in keep:
count[explib[s]] = count.get(explib[s], 0) + 1
for c in count:
print(c + "\t" + str(count[c]))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if general.deployed: return
if general.requisition + self.requisition[general.side] >= general.cost:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
DataDog exporter class
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_node(self, request, *args):
model = self.service.model
return {"node": model.json}
def update_node(self, request, *args):
model = self.service.model
frozen_keys = ['id', 'name', 'original_name', 'created_at', 'updated_at']
newname = request.params.get("name")
if newname:
model.node_name = newname
modelkeys = model.__data__.keys() - frozen_keys
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-v geclass_instance:/app/instance \
-v geclass_log:/var/log/geclass\
-p 80:80 \
-e FLASK_KEY=${FLASK_KEY} \
-e QUAMP_USER=$QUAMP_USER \
-e QUAMP_PASSWD=$<PASSWORD> \
--name geclass \
geclass:latest
| ise-uiuc/Magicoder-OSS-Instruct-75K |
license='BSD 3 New',
packages = ['pyqm']
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Copyright (c) <NAME> & <NAME>. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityServer4.Models;
using System.Collections.Generic;
namespace Headway.IdentityProvider
{
public static class Config
{
public static IEnumerable<IdentityResource> IdentityResources =>
new IdentityResource[]
{
new IdentityResources.OpenId(),
new IdentityResources.Profile(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* 获取模板解析信息列表。
*
* @return 解析信息列表
*/
public List<ParseMessage> getParseMessages() {
return messages;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rled2=LED(12)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.encoding = AbstractEncoding(element.find(nspv("swe20:encoding")))
except:
self.encoding = None
class Matrix(AbstractDataComponent):
def __init__(self, element):
super(Matrix, self).__init__(element)
self.elementCount = element.find(nspv("swe20:elementCount/swe20:Count")) # required
self.elementType = ElementType(element.find(nspv("swe20:elementType"))) # required
self.encoding = AbstractEncoding(element.find(nspv("swe20:encoding")))
self.values = testXMLValue(element.find(nspv("swe20:values")))
self.referenceFrame = testXMLAttribute(element, "referenceFrame") # anyURI, required
self.localFrame = testXMLAttribute(element, "localFrame") # anyURI, optional
class DataStream(AbstractSWEIdentifiable):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
list_box.set_margin_bottom(margin=12)
list_box.set_margin_start(margin=12)
list_box.connect('row-selected', self.on_row_clicked)
scrolled.set_child(child=list_box)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mask = cnt.new(n, nc, res, res, res).zero_()
cam_bp_lib.get_surface_mask(depth_t, cam_dist, fl, cnt, mask)
surface_vox = torch.clamp(cnt, min=0.0, max=1.0)
return surface_vox, mask
| ise-uiuc/Magicoder-OSS-Instruct-75K |
nbIts = int(len(files)/nbSeries) # Number of timestep extracted (here 2)
its = [1, 2] # Values of timestep extracted
if nbIts != len(its):
sys.exit("Error: number of files and iterations extracted incompatible")
print('Number of iterations extracted:', nbIts)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public var isPresenting: Bool = true
public init(duration: TimeInterval = 0.55) {
self.duration = duration
}
public static func navigationController(duration: TimeInterval = 0.35, navigationController: UINavigationController, animationControllerForOperation operation: UINavigationController.Operation, fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
let animator = SlideInFromBottomAnimator(duration: duration)
animator.isPresenting = operation == .push
return animator
}
public func present(_ transitionContext: UIViewControllerContextTransitioning) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Nomad
*
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
),
.testTarget(
name: "DataLayerTests",
dependencies: [
"DataLayer"
]
)
]
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param level Level to set the dimmer to, expressed in %
*/
public void fade(Integer level) {
this.gateway.sendCommand("FADEDIM, " + level + ", 1, 0", address, null);
}
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("\(hexStr(v))")
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Cleanup temporary storage
documents.close()
# Run search and validate result
index, _ = embeddings.search("search text", 1)[0]
self.assertEqual(index, 0)
self.assertEqual(data[0][1], "txtai builds an AI-powered index over sections")
def testConcurrentWorkflow(self):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def campoints(self):
return self._campoints
@campoints.setter
def campoints(self, campoints):
self._campoints = campoints
@property
def campoints_true(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
dependencies = [
('fpl', '0016_auto_20180816_2020'),
]
operations = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_func_result(a, x, b, c ):
return a*(x**2) + b*x + c
def read_input():
return [int(item) for item in input().split()]
if __name__ == "__main__":
a, x, b, c = read_input()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print 'welcome boss' # 并输出欢迎信息
else:
print name # 条件不成立时输出变量名称
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let inquireVC : TableInquireViewController = self.storyboard!.instantiateViewController(withIdentifier: "TableInquire") as! TableInquireViewController
self.present(inquireVC, animated: true)
}
else{
let selfinquireVC : sentInquireViewController = self.storyboard!.instantiateViewController(withIdentifier: "sentInquire") as! sentInquireViewController
self.present(selfinquireVC, animated: true)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_decrement():
score = np.asarray([[0, 1, 2], [1, 2, 3]])
alphas = np.asarray([0, 1, 2])
fuzzy = np.asarray([0, 1, 2])
data = np.asarray([0, 1, 2])
score, alphas, fuzzy, data = iFBTSVM._decrement([0], score, alphas, fuzzy, data)
assert np.array_equal(score, np.asarray([[1, 2], [2, 3]]))
assert np.array_equal(alphas, np.asarray([1, 2]))
assert np.array_equal(fuzzy, np.asarray([1, 2]))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"id": "5"
},
{
"city": "基隆市",
"id": "2"
},
{
"city": "宜蘭縣",
"id": "21"
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"protocol": "TCP"
}
]
}
]
}
}
}
}
EOF
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return 0;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.http import HttpResponse
from django.contrib.humanize.templatetags.humanize import naturaltime
from datetime import timedelta
from datetime import datetime
import json
import random
import string
class PostError(Exception):
def __init__(self, msg=None):
self.msg = msg
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rv_obtained,
rv,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# directory specified will be used and not deleted at the end.
# The resulting coredns binary will be copied to the coredns-mdns
# repo root.
set -ex -o pipefail
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
TestNullableSpecifiedFalse(l => l.TTACCOM, Long(), l => l.TTACCOMSpecified, l => l.TTACCOMNullable);
}
[Fact]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async def authenticate(email: str, password: str) -> Optional[UserDB]:
try:
user = await UserTortoise.get(email=email)
except DoesNotExist:
return None
if not verify_password(password, user.hashed_password):
return None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
regex = regex + '\\' + c
escape = False
else:
if c == '\\':
escape = True
elif c == '{':
in_repl = True
elif c == '}':
in_repl = False
if IS_PROPERTY_RE.match(repl):
# Replace value
regex = regex + '(?P<{}>{})'.format(repl, util.regex_for_property(repl))
else:
regex = regex + '{' + repl + '}'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->response([
'token' => $generatedToken
], 200);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_next_expirations(days=3):
""" Gets users whose subscription will expire in some days """
limit_date = timezone.now() + timedelta(days=days)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
help='path to guidance file')
ap.add_argument('-i', '--ipaddress', required=True,
help='username and ip address of remote PC')
ap.add_argument('-d', '--dataset', required=True,
help='path to dataset')
ap.add_argument("-c", "--confidence", type=float, default=0.5,
help="minimum probability to filter weak detections")
ap.add_argument("-f", "--force", type=bool, default=False,
help="force delete dataset folder")
args = vars(ap.parse_args())
if args['force']:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
EXPECT_ABS_WRITE32(0, 0x87654321);
EXPECT_ABS_READ32(0, 0x87654321);
sec_mmio_write32(0, 0x87654321);
EXPECT_EQ(ctx_->write_count, 3);
// Two of the operations were targeting the same offset, so we only expect two
// operations.
EXPECT_EQ(ctx_->last_index, 2);
}
TEST_F(SecMmioTest, CounterInc) {
sec_mmio_write_increment(5);
EXPECT_EQ(ctx_->expected_write_count, 5);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.tight_layout()
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def setup_env_vagrant(machine='magma', apply_to_env=True, force_provision=False):
""" Host config for local Vagrant VM.
Sets the environment to point at the local vagrant machine. Used
whenever we need to run commands on the vagrant machine.
"""
__ensure_in_vagrant_dir()
# Ensure that VM is running
| ise-uiuc/Magicoder-OSS-Instruct-75K |
superview.addSubview(invisibleScrollView)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Job.perform_async_refresh(klass_str, obj_args, obj_kwargs, call_args, call_kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* @return int
*/
public function getPayOptionEscrow()
{
return $this->payOptionEscrow;
}
/**
* @param int $payOptionEscrow
* @return \Imper86\AllegroRestApiSdk\Model\SoapWsdl\ItemPaymentOptions
*/
public function setPayOptionEscrow($payOptionEscrow)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.role_messages[reaction.message.id]=dict(emojiToRoleDict)
for emoji in emojiToRoleDict: #make sure the bot doesn't get the roles as it reacts with the emojis
yield from bot.remove_roles(reaction.message.server.me, self.role_messages[reaction.message.id][emoji])
savetome.save_role_messages(bot.data_config[bot.ROLE_MSG_LOCATION], self.role_messages)
def associateEmojiToRoles(self, content):
result = dict() # {discord.Emoji:discord.Object(id=role id),...}
info = re.search(r'\`{3}((\s|.)+)\`{3}', content, re.I|re.M)
info = info.group(1).splitlines()
for line in info:
lineInfo = re.match(r'(\d{18}|.)\s*:?\s*(\d{18})', line, re.I)
if lineInfo!=None:
if len(lineInfo.group(1))==1: #unicode emoji, WIP
result[self.matchemoji(lineInfo.group(1))] = discord.Object(lineInfo.group(2)) #this may or may not work
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
issue = article_fields[0][5]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<!DOCTYPE html>
<html>
<head>
<title>Light Level's</title>
<style type="text/css">
strong, #a{
padding-right: 20em;
}
*{
text-align:center;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# given
channel_id = graphene.Node.to_global_id("Channel", channel_USD.id)
variables = {"id": channel_id}
# when
response = app_api_client.post_graphql(QUERY_CHANNEL, variables)
content = get_graphql_content(response)
# then
channel_data = content["data"]["channel"]
assert channel_data["id"] == channel_id
assert channel_data["name"] == channel_USD.name
assert channel_data["slug"] == channel_USD.slug
assert channel_data["currencyCode"] == channel_USD.currency_code
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.FirstOrDefault(x => x.Id == userId);
//如果当前用户类型为管理员或者租户管理员,则直接返回
if (user.UserType is UserType.AdminUser or UserType.TenantAdminUser)
{
var result = new AuthorizeModel
{
AuthorizePermissions = GetFunctionOperateList(dbContext, user),
AuthorizeDataRules = GetDataRuleList(dbContext, user)
};
return result;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
else{
NSLog("获取用户信息失败")
}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return cycle
else:
assert not path.items
return None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let currentDate: Date
private static var relativeFormatter = RelativeDateTimeFormatter()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pool1 = MaxPooling2D(pool_size=(2, 2))(conv1)
conv2 = Convolution2D(64, 3, 3, **conv_params)(pool1)
conv2 = Convolution2D(64, 3, 3, **conv_params)(conv2)
pool2 = MaxPooling2D(pool_size=(2, 2))(conv2)
conv3 = Convolution2D(128, 3, 3, **conv_params)(pool2)
conv3 = Convolution2D(128, 3, 3, **conv_params)(conv3)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
}
return new Unbatch<T>(opBuilder.build());
}
/**
* @param container
*/
public static Options container(String container) {
return new Options().container(container);
}
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app_name = "home"
urlpatterns = [
path("", CommentView.as_view(), name="comment"),
path("<int:comment_id>/vote", comment_vote, name="comment-vote"),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
info = cipher.decrypt(data)
return HttpResponse(info)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
"COLLECTION_SUMMARY": str,
Optional("COLLECTION_PROTOCOL_ID"): str,
Optional("COLLECTION_PROTOCOL_FILENAME"): str,
Optional("COLLECTION_PROTOCOL_COMMENTS"): str,
Optional("SAMPLE_TYPE"): str, # assumed optional due to large number of files without
Optional("COLLECTION_METHOD"): str,
Optional("COLLECTION_LOCATION"): str,
Optional("COLLECTION_FREQUENCY"): str,
Optional("COLLECTION_DURATION"): str,
Optional("COLLECTION_TIME"): str,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert cnt_old == tcntobj.gocnts[goid]
def _old_init_count_terms(go2obj, annots_values):
'''
Fills in the counts and overall aspect counts.
'''
gocnts = Counter()
gonotindag = set()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let sportsBar = "sportsbar.jpg";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function store(Request $request)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" Add two floating point numbers together. """
return float_1 + float_2
print('Hello world') # <<<DBGL8R
| ise-uiuc/Magicoder-OSS-Instruct-75K |
blog_create_time = datetime_str_change_fmt(
time_str=personal_blog["createdAt"],
prev_fmt="%Y-%m-%dT%H:%M:%S.%fZ",
)
blog_data: Dict = {
"blogId": personal_blog["objectId"],
"blogTitle": personal_blog["title"],
"blogHref": personal_blog["originalUrl"],
"blogViewers": personal_blog["viewsCount"],
"blogCreateTime": blog_create_time,
}
self._blogs_data.append(blog_data)
next_page_variable = personal_blog["verifyCreatedAt"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logger.info(e.strerror + ' to ' + e.filename)
def fillDirValues(self):
try:
for pidVar in self.pidPathesVars:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
output_dir = hparams.pop("output_dir")
# Append trial_id to path for hptuning
output_dir = os.path.join(
output_dir,
json.loads(os.environ.get("TF_CONFIG", "{}")).get("task",
{}).get("trial", ""))
# Run the training job
model.train_and_evaluate(output_dir, hparams)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setup_env
create_source_tarball
create_specfile
rpmbuild -ba $SPECFILE
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
// MARK: WKNavigationDelegate
extension ViewController : WKNavigationDelegate {
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
print("WebView:", webView, "finished navigation:", navigation)
self.navigationItem.title = webView.title
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void AddPlayer(ushort usRank, string szName, ushort usType, uint dwPoints,
uint dwProf, uint dwLevel, uint dwUnknown)
{
int offset = (int)(16 + Showing * 36);
Showing += 1;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<span class="fa fa-edit"></span>
</a>
<button class="btn btn-danger" type="submit">
<span class="fa fa-trash"></span>
</button>
{{ Form::close() }}
</td>
</tr>
@empty
@endforelse
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@receiver(post_save)
def create_poll(sender, instance, created, **kwargs):
if not isinstance(instance, PollModelMixin):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def to_ref(self):
ref = Ref()
ref.name = self.Name
ref.type = self.qbo_object_name
ref.value = self.Id
return ref
| ise-uiuc/Magicoder-OSS-Instruct-75K |
internal static let constantGreyscale500 = ColorAsset(name: "constant-greyscale500")
internal static let constantGreyscale600 = ColorAsset(name: "constant-greyscale600")
internal static let constantGreyscale700 = ColorAsset(name: "constant-greyscale700")
internal static let constantGreyscale800 = ColorAsset(name: "constant-greyscale800")
internal static let constantGreyscale900 = ColorAsset(name: "constant-greyscale900")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
z0 = np.maximum(z0,val_low)
z0 = np.minimum(z0,val_high)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.reloadDataWithUserObserver.assertValueCount(2)
}
}
func testLogoutCellTapped() {
self.showConfirmLogout.assertValueCount(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# no exception is expected
posFloatOrZeroValidator(value)
@pytest.mark.parametrize("value", negative_float_values)
def test_PosFloatOrZeroValidator_wrong_values(value):
"""Check if improper positive float values are not validated."""
# exception is expected
with pytest.raises(Invalid) as excinfo:
posFloatOrZeroValidator(value)
@pytest.mark.parametrize("value", not_float_type)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Todo:
More information here.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
generate_resource_change(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) -> c_int {
Sys::select(nfds, readfds, writefds, exceptfds, timeout)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return array
*/
function get_months()
{
return [
'01' => __('time.months.01'),
'02' => __('time.months.02'),
'03' => __('time.months.03'),
'04' => __('time.months.04'),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
exe_dir=$1
exe_name="SPSPComparison.out"
case_dir=$2
output_path="output/result.csv"
for caseNum in $(seq 1 32)
do
echo case $caseNum
mkdir -p output/
echo case $caseNum >> $output_path
eval $exe_dir/$exe_name $case_dir/test_case$(printf %02d $caseNum).txt $output_path
echo "" >> $output_path
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Y = pd.DataFrame({})
Y_true = pd.DataFrame({})
for col in out.columns:
if col == self.selected_column:
Y_true[col] = out[col]
#print(out[col])
Y[col] = out[col].fillna(col_mean[city][col])
if col in ["pm25_median", "pm10_median", "o3_median", "so2_median", "no2_median", "co_median"]:
out.drop([col], axis=1, inplace=True)
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#SBATCH --mem-per-cpu=6G
cd $HOME/projects
ID=${SLURM_ARRAY_TASK_ID}
rm -r SETS/MI-LSD/MI-LSD_sO2_melanin_skin_"$ID"_*
python sO2_melanin_sim_array.py ${SLURM_ARRAY_TASK_ID}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[wasm_bindgen(constructor)]
pub fn new(size: usize) -> JsHeap {
let fragment = HeapFragment::new_from_word_size(size).unwrap();
JsHeap {
fragment,
terms: Vec::new(),
}
}
fn push(&mut self, term: Term) -> usize {
| 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.