seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
if check != '':
new_permissions.append(permission[0])
"""
Delete all existing permission for the admin
after which we set the new ones
"""
admin_id = session.query(Admin)\
.filter(Admin.username == username)\
| ise-uiuc/Magicoder-OSS-Instruct-75K |
['Iac', 'Ica']
>>> gm.predict("AI3")
['Iac', 'Ica']
"""
concl_moods = self.heuristic_generalized_matching(syllogism)
return sorted([mood + ac for ac in ["ac", "ca"] for mood in concl_moods])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
aria-hidden="true"
/>
)
}
default:
return (
<ExclamationIcon
className={classNames(
'flex-shrink-0 mr-1.5 h-5 w-5 text-orange-400',
className ?? ''
)}
aria-hidden="true"
/>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if wind_source == 'ws':
if log_type == 'weather':
wind_vel = log[telemetry_path + '/wind/wind_velocity'].astype(np.float64)
elif log_type == 'wing' or log_type == 'cc':
# Each wind_ws point is stored as a Vec3. Use a view to reinterpret it as
# an array.
wind_vel = log[telemetry_path + '/control_input/wind_ws'].view(
np.dtype(('>f8', 3)))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
print('Skipping: ', k)
continue
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Meta:
ordering = ['-start_time']
def __str__(self):
format = "%d.%m.%y %H:%M"
return f'Бронирование №{self.id} (c {self.start_time.strftime(format)} по {self.finish_time.strftime(format)})'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _do_getrank_DelRanks(
self: 'HereditaryStratumOrderedStoreTree',
ranks: typing.Iterator[int],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// let pricesToReturn = pricesForFuelType.map() { price in
// return FuelList.FetchPrices.ViewModel.DisplayedPrice(id: price.id!, company: price.rStation!.rCompany!, actualPrice: price, price: price.price!, dateString: "\(Date.init(timeIntervalSince1970:price.date))", isPriceCheapest: price.price! == pricesForFuelType.first?.price!, fuelType: type, addressDescription: price.rStation!.address!, address: [price.rStation!], city: price.rStation!.city!)
// }
//
// return pricesToReturn
// }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:rtype: datetime
"""
return self._created_at.value
@property
def id(self):
"""Unique entity ID.
:rtype: str
"""
return self._id.value
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import sys
print('json' in sys.modules) # False
print(', '.join(json.loads('["Hello", "World!"]')))
print('json' in sys.modules) # True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private DacII.WinForms.Inventory.FrmItemDataFieldEntry mFrmItemDataFieldEntry = null;
public void ShowItemDataFieldEntry(BOItemDataFieldEntry dfe)
{
if (dfe == null) return;
if (IsInvalid(mFrmItemDataFieldEntry))
{
mFrmItemDataFieldEntry = new FrmItemDataFieldEntry(mApplicationController, dfe);
}
else
{
mFrmItemDataFieldEntry.Model = dfe;
mFrmItemDataFieldEntry.UpdateView();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from spark_auto_mapper_fhir.classproperty import genericclassproperty
from spark_auto_mapper_fhir.extensions.extension_base import ExtensionBase
from spark_auto_mapper_fhir.extensions.us_core.ethnicity_item import EthnicityItem
from spark_auto_mapper_fhir.fhir_types.list import FhirList
from spark_auto_mapper_fhir.fhir_types.uri import FhirUri
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let input = fs::read_to_string("inputs/05.txt").unwrap();
let mut map: HashMap<(u32, u32), usize> = HashMap::new();
for line in input.lines() {
let mut splitted = line.split(" -> ");
let mut start_splitted = splitted.next().unwrap().split(',');
let mut end_splitted = splitted.next().unwrap().split(',');
let start = (start_splitted.next().unwrap().parse::<u32>().unwrap(), start_splitted.next().unwrap().parse::<u32>().unwrap());
let end = (end_splitted.next().unwrap().parse::<u32>().unwrap(), end_splitted.next().unwrap().parse::<u32>().unwrap());
// println!("{:?} -> {:?}", start, end);
if start.0 == end.0 {
let range = if start.1 <= end.1 { start.1 ..= end.1 } else { end.1 ..= start.1 };
for y in range {
*map.entry((start.0, y)).or_insert(0) += 1;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_expander_phy_wwn = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for table in lookuptablestream:
if table.strip("\n") == value:
return True
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
else:
print("No Input !")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Indicates to ignore the transparency behavior.
Ignore = 3,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
}
return .success(request)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
y += 1
y = y // 2
x = x // 2
dx = 0
dy = -1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f.close()
with pytest.raises(RuntimeError):
File(setup_teardown_folder[1], 'w-')
def test_append(setup_teardown_folder):
"""Mode 'a' opens file in append/readwrite mode, creating if necessary."""
f = File(setup_teardown_folder[1], 'a')
assert isinstance(f, File)
f.create_group('foo')
assert 'foo' in f
f = File(setup_teardown_folder[1], 'a')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub async fn connect(&self) -> Result<EventLoop> {
info!("Connecting to MQTT broker");
let (client, eventloop) = AsyncClient::new(self.mqtt_options.clone(), 10);
let mut cli_lock = self.client.lock().await;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
} else {
sb.append(appendString);
sb.append("&start=");
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
register_default_type_sizes(event_type_registry);
}
}
impl System for PhalaNodeRuntime {
type Index = u32;
type BlockNumber = u32;
type Hash = sp_core::H256;
type Hashing = BlakeTwo256;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<li>Investigations</li>
</ul>
</div>
</div>
</section>
<!--End Page Title-->
<section class="kc-elm kc-css-545084 kc_row sidebar-page-container">
<div class="kc-row-container kc-container">
<div class="kc-wrap-columns">
<div class="kc-elm kc-css-643690 kc_col-sm-9 kc_column kc_col-sm-9 content-side">
<div class="kc-col-container">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return pd.read_parquet(path)
except:
initial_path = r'/app/centralbankanalytics/'
path_2 = path[3:]
return pd.read_parquet(initial_path + path_2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
jv_group = f.create_group("/", "jv", "data for jv.py tests")
if force_new or not group_existed:
# group doesn't exist, or forced to create new data.
# This function updates f in place and returns v_vfi, c_vfi, c_pfi
V = _new_solution(jv, f, jv_group)
return V
# if we made it here, the group exists and we should try to read
# existing solutions
try:
# Try reading vfi
if sys.version_info[0] == 2:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return bleu_score
elif (early_stop == 'ENTF1'):
if (F1_score >= matric_best):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(result) > 0:
return False, "The username has been registered."
else:
cursor.execute(
"insert into Users (username, password, history, admin) values('%s', '%s', '%s', 0);" % (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const {
categories,
category
}: any = useGlobalState();
return (
<div className="mesh-selector-wrap">
<nav aria-label="main category selector">
<List className="categories-wrap">
{categories &&
categories.map((cat: any, index: any) => {
return (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pred_array, cv2.RETR_TREE, cv2.CHAIN_APPROX_TC89_L1)
cv2.drawContours(image_array, contours, -1, (0,0, 255) , 1)
cv2.drawContours(image_array, contours2, -1, (255, 0, 0), 1)
image_array=np.flip(image_array,0)
# image_array=cv2.resize(image_array,(256,256),cv2.INTER_LANCZOS4)
cv2.imshow("liver_contour", image_array)
cv2.waitKey()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h2 style=" color: #4c4a4a;margin: 21px 50px;" class="text-center">Get trending posts delivered directly into your inbox</h2>
<div>
<form action="{{route('new_subscriber')}}" method="POST">
<div class="row" style="max-width: 250px; display: block;margin: auto;">
@csrf
<div class="col-md-12">
<div class="form-group">
<input class="form-control" type="name" name="text" placeholder="Enter Name" style=" height: 42px; font-size: 16px;">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<th>Title</th>
<th>Content</th>
</tr>
@foreach ($questions as $index => $question)
<tr id="{{$question->id}}">
<td>{{$index+1}}</td>
<td><a href="/answer/{{$question->id}}">{{$question->title}}</a></td>
<td>{{$question->content}}</td>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn f32_to_s24(&mut self, samples: &[f32]) -> Vec<i32> {
samples
.iter()
.map(|sample| self.clamping_scale(*sample, 0x800000) as i32)
.collect()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
default=False)
if component != "reaper":
parser.add_argument("-l", "--list", "--list-images",
"--image-list",
help=("Use supplied comma-separated list in" +
" addition to repo scan"),
default=None)
parser.add_argument("-s", "--sort", "--sort-field", "--sort-by",
help="Field to sort results by [name]",
default="name")
parser.add_argument("--recommended",
help=(
"Pull image w/tag 'recommended' [True]"),
type=bool,
default=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import type { PrivateRepository } from '@fabric-es/fabric-cqrs';
import { CommandHandler, DataSrc } from '@fabric-es/gateway-lib';
import type { ControllerCommands } from './commands';
import type { Controller } from './controller';
import type { ControllerEvents } from './events';
export * from './controller';
export * from './events';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
canvas_size = 100
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
//}
// MARK: - 机型判断 根据屏蔽尺寸判断/还可以根据命名
public extension UIDevice {
/// iPhoneX判断
func isiPhoneX() -> Bool {
let resultFlag: Bool = UIScreen.main.bounds.size.equalTo(kiPhoneXScreenSize)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Register your models here.
admin.site.register(product)
admin.site.register(price)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
new ChainPrint()
.title("Initial State")
.out(u)
.title("Remove Ali From Java")
.out(u.removeStudentCourse("Java", s1))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn from_str(s: &str) -> Result<Self, Self::Err> {
let splits = s.trim_matches(',').split(',');
Ok(GlobMatchers {
inner: splits
.map(|s| GlobMatcher::from_str(s))
.collect::<Result<Vec<GlobMatcher>, _>>()?,
})
}
}
impl Deref for GlobMatchers {
type Target = [GlobMatcher];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
OnPlayerDamage,
OnPlayerEffect,
OnPlayerAuth,
OnPlayerClassChange,
OnItemPickup,
OnItemDrop,
OnCleanRoomActivate,
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.util.ArrayList;
import at.tuwien.ifs.somtoolbox.apps.helper.SOMLibInputConcatenator;
/**
* The template vector provides the attribute structure of the input vectors used for the training process of a
* Self-Organizing Map. It is usually written by a parser or vector generator program creating the vector structure.
*
* @author <NAME>
* @author <NAME>
* @version $Id: TemplateVector.java 4270 2012-04-03 14:54:46Z mayer $
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div className={styles.todoList}>
{
_.map(todos, (todo) => {
const { id, title, isComplete } = todo;
const styleClass = isComplete ? styles.todoComplete : styles.todoNormal;
return (
<div className={`${styles.todo} ${styleClass}`} key={id}>
<label htmlFor={`${id}`} className={styles.container}>{title}
<input
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.logger.debug('Requesting sentiment analysis score to Microsoft Cognitive Services...')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from clientClass import Client
def main():
mainConfig = loadConfigData("../../config.json")
PORT = mainConfig["PORT"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Map data type
pub mod map;
/// List data type
pub mod list;
/// Tuple data type
pub mod tuple; | ise-uiuc/Magicoder-OSS-Instruct-75K |
# now find z in conv(S) that is closest to y
bounds = lambda_var/(lambda_var-mu)
bounds = bounds[bounds>TOL]
beta = np.min(bounds)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
help = "Retort will not counter various actions infinitely with Imp status")
bug_fixes.add_argument("-fj", "--fix-jump", action = "store_true",
help = "Fix characters disappearing as a result of jump/super ball/launcher interactions")
bug_fixes.add_argument("-fbs", "--fix-boss-skip", action = "store_true",
help = "Poltergeist and Inferno in Kefka's Tower cannot be skipped")
bug_fixes.add_argument("-fedc", "--fix-enemy-damage-counter", action = "store_true",
help = "Enemy damage counters only trigger if HP is reduced")
def process(args):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#endregion
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.request.form['insert-after'] = self.block.__name__
self.landing_zone()
self.assertEqual(
[self.block.__name__, other.__name__], self.source.keys())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void setLevel(Integer level) {
this.level = level;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
<div id="localhost21">
<div>
<a href="http://localhost21"><span style="display: block; position: relative; width: 2px; height: 2px; overflow: hidden;">localhost21</span></a>
</div>
</div>
<div id="localhost19">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# let board be 3x3 bool array
def isWin(board):
start = board[0][0]
win = False
next = [(0, 1), (1, 1), (1, 0)]
while(!win):
while
return win
def main():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[cfg(feature = "geoip2_support")]
fn geoip2_lookup() -> Result<(), Box<dyn Error>> {
init();
let mut engine = get_engine(None, None, None)?;
engine.load_geoip2("tests/misc/GeoLite2-City-Test.mmdb")?;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
unlink("$dir/config/autoload/yawik.config.global.php");
rmdir("$dir/config/autoload");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
It is filled via the register_global_settings signal.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--EXPECTF--
Fatal error: a cannot implement Exception - it is not an interface in %s on line %d
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.network[a]['weights'][b][c] = random.uniform(-1, 1)
for b, element in enumerate(layer['biases']):
if self.mutation_chance >= np.random.random():
self.network[a]['biases'][b] = np.random.random()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
SUBTITLE "Install npm"
npm -g install npm@latest
SUBTITLE "Install grunt"
npm install -g grunt
SUBTITLE "Allow root installation for bower"
COMMENT "This is needed if the installing user is root"
COMMENT "The installing user is root in case we are in a docker container."
# http://stackoverflow.com/a/25674462
sudo bash -c "echo '{ \"allow_root\": true }' > /root/.bowerrc"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm -f /root/eb-ssl/eb-galaxy.*
# the extension file for multiple hosts:
# the container IP, the host IP and the host names
cat >eb-galaxy.ext <<EOF
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# plot histogram
plt.subplot(N_SIMULATIONS, 2, 2*i+2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
currentCount -= 1
return choice, (currentCount,defector,hasDefected)
else:
hasDefected = False
if history.shape[1] >= 1 and history[1,-1] == 0 and not hasDefected:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
money[2] += 1
money[0] -= 3
else:
return False
return True | ise-uiuc/Magicoder-OSS-Instruct-75K |
user.first_name != null ? `${user.first_name} ${user.last_name}` : user.username;
return primaryText || "";
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
completionHandler(success)
}
private func handle(url: URL) -> Bool {
guard let route = Route(url: url) else { return false }
rootCoordinator?.handle(route)
return true
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return 'This is your profile';
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
sp.init_printing()
# Here we simply give the input needed as The Following:
# ( X0 ) & ( X1 ) & ( X2 )
# ( Fx ) is the equation of the function
# ( n ) is the number of Iterations needed
x0 = 4.5
x1 = 5.5
x2 = 5
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BooleanCV,
// PrincipalCV,
UIntCV,
ChainID,
makeStandardSTXPostCondition,
makeContractSTXPostCondition,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, name, desc, price, healing_type, amount):
super().__init__(name, desc, price)
self.healing_type = healing_type
self.amount = amount
def use(self, target):
if self.healing_type == Constants.Statuses.HP:
target.hp = min(target.max_hp, target.hp + self.amount)
elif self.healing_type == Constants.Statuses.MP:
target.mp = min(target.max_mp, target.mp + self.amount)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* SPDX-License-Identifier: Apache-2.0
*/
import { DBaseStateSet } from "../../d-base-state-set";
import { DThemeSliderTrack } from "../../d-slider-track";
import { DThemeDarkButton } from "./d-theme-dark-button";
import { DThemeDarkSliders } from "./d-theme-dark-sliders";
export class DThemeDarkSliderTrack<VALUE = unknown> extends DThemeDarkButton<VALUE>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
broker = Broker.getBroker(hostKey)
broker.installNginx()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const mut FOO: () = ();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public readonly int LineOffset;
public DebugLocationInfo(string name, int lineOffset)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @ORM\JoinColumn(name="id_user",referencedColumnName="id")
*/
private $id_user;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for link in range(len(links)):
links[link].click()
WebDriverWait(driver, 10).until(EC.number_of_windows_to_be(2))
new_windows = driver.window_handles
new_string = ','.join(new_windows)
string = new_string.replace(old_string, '')
another_string = string.replace(",", '')
# это список идентификаторов новых окон
# another_string = list([string.replace(",", '')])
driver.switch_to_window(another_string)
# WebDriverWait(driver, 10).until_not(EC.title_is("Edit Country | My Store"))
driver.close()
driver.switch_to_window(main_window)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
logging.info(f"columns: {part2.columns}")
part2 = part2[["sig_id", "pert_id", "pert_iname", "pert_type", "cell_id", "pert_idose", "pert_itime"]]
#
sign = pd.concat([part1, part2])
sign.drop_duplicates(subset=["sig_id"], keep="first", inplace=True)
sign.to_csv(ofile, "\t", index=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__version__ = '0.3.0+038435e'
short_version = '0.3.0'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/usr/bin/ez-clang --connect=/dev/ttyS91
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
point = RectTransformUtility.WorldToScreenPoint(null, point);
point.z = 0.5f;
return camera.ScreenToViewportPoint(point);
}
return camera.WorldToViewportPoint(point);
}
}
}
#if UNITY_EDITOR
namespace Lean.Gui.Editor
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
'group': 'server',
'diskSize': context.properties['serverDiskSize'],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if numberTaps is None:
raise ValueError( f'{self.path}: numberTaps is undefined' )
if numberChannels is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
})
})
}
const getPlayers = async (q, n) => {
const response = await api.get(`anime/${q}/${n}`).catch((e: Error) => {
throw e
})
return new Promise((resolve, reject) => {
xray(response.body, {
items: xray('div.tw', [
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# File: fizz_buzz.py
# Author: <NAME>
# Description: Fizz-Buzz Coding Challenge
# Reference: https://edabit.com/challenge/WXqH9qvvGkmx4dMvp
def evaluate(inputValue):
result = None
if inputValue % 3 == 0 and inputValue % 5 == 0:
result = "FizzBuzz"
elif inputValue % 3 == 0:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public FriendStateChangeEvent(int state){
this.state = state;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
options->target_env = spvc_private::get_spv_target_env(env, version);
return shaderc_spvc_status_success;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
QSGMaterialType* ShadowedBorderTextureMaterial::type() const
{
return &staticType;
}
int ShadowedBorderTextureMaterial::compare(const QSGMaterial *other) const
{
auto material = static_cast<const ShadowedBorderTextureMaterial *>(other);
auto result = ShadowedBorderRectangleMaterial::compare(other);
if (result == 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tags: any;
data: any;
collection_info: CollectionInfo;
created_at: TimeStamp;
updated_at: TimeStamp;
}
export type ServerListResp = ListType<ServerModel&any>
interface ServerGetParameter {
server_id: string;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return self._opener.open(req, timeout=self._timeout).read()
class _Method(object):
'''some magic to bind an JSON-RPC method to an RPC server.
supports "nested" methods (e.g. examples.getStateName)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.title = 'Edit Requirement';
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assertTrue(appMaster.errorHappenedShutDown);
//Copying the history file is disabled, but it is not really visible from
//here
assertEquals(JobStateInternal.ERROR, appMaster.forcedState);
appMaster.stop();
}
}; | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Some clients (e.g. Google Chrome) will query all DNS servers until an answer is found,
# even if previous DNSs in the list respond with NXDOMAIN (non-existant domain).
# Other clients (e.g. curl, dig, wget) will query the DNS servers in order,
# only proceeding to the next configured DNS if the previous DNS request timed out.
# Because mesos-dns is configured without knowledge of the host's pre-configured DNS,
# once mesos-dns is up (not timing out), domains they cannot resolve will be delegated
# to 8.8.8.8 (Google's public DNS), NOT the host's pre-configured DNS.
if grep -q "macOS" /etc/resolv.conf; then
# Mac >= v10.12
update_dns_mac "${mesos_dns_ip}"
echo
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (index >= _colors.Length)
{
throw new ArgumentOutOfRangeException(nameof(index), index, "The specified index cannot be greater than or equal to the number of colors in the palette.");
}
var shiftedIndex = _offset + index;
if (shiftedIndex >= _colors.Length)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def generate(n: int, output_file: str) -> None:
if n < 3 or n > 8:
print("It isn't valid size")
exit(4)
generator = Generator(n)
data = generator.generate()
lines = map(lambda x: ' '.join(map(str, x)), data)
with open(output_file, 'w', encoding='utf-8') as f:
f.write('\n'.join(lines))
def main():
p = ArgumentParser()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void setNumberOfIntentOccurances(int numberOfIntentOccurances) {
this.numberOfIntentOccurances = numberOfIntentOccurances;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
b=(((2*n)-4)*90)/n;
b=b/2;
c=180-(2*b);
c=((2*acos(0))*c)/180;
area=((r*r)*sin(c))/2;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self._deco.set_foreground(Qt.blue)
self._deco.set_as_underlined()
self.editor.decorations.append(self._deco)
return True
return False
def _add_decoration(self, cursor):
"""
Adds a decoration for the word under ``cursor``.
"""
if self.select_word(cursor):
self.editor.set_mouse_cursor(Qt.PointingHandCursor)
else:
self.editor.set_mouse_cursor(Qt.IBeamCursor)
| 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.