seed
stringlengths
1
14k
source
stringclasses
2 values
"a=recvonly" ]
ise-uiuc/Magicoder-OSS-Instruct-75K
cumlcache = { "version": head_version, "changes": replay_changes_nodel([cumlcache["changes"], changes]) } file = open(cache_dir, "w") json.dump(cumlcache, file) (tvsdir / "revisions" / "latest").touch() file = open(tvsdir / "revisions" / "latest", "w") file.write(str(head_version))
ise-uiuc/Magicoder-OSS-Instruct-75K
mol_Or.remove(O1) # The remaining set of O excluding O1 def find_C2(O1, mol_C):
ise-uiuc/Magicoder-OSS-Instruct-75K
set -e CURRENT=$(cd $(dirname ${BASH_SOURCE}) && pwd) search() {
ise-uiuc/Magicoder-OSS-Instruct-75K
"Active": {}, } @dataclass class Tie: discriminator: typing.ClassVar = 1 kind: typing.ClassVar = "Tie" @classmethod def to_json(cls) -> TieJSON:
ise-uiuc/Magicoder-OSS-Instruct-75K
this.length = length; this.reason = reason; }
ise-uiuc/Magicoder-OSS-Instruct-75K
ABORT_ERROR = 0xFFFE UNKNOWN_ERROR = 0xFFFF ## Error message of each error code gErrorMessage = { FILE_NOT_FOUND : "File/directory not found in workspace", FILE_OPEN_FAILURE : "File open failure", FILE_WRITE_FAILURE : "File write failure", FILE_PARSE_FAILURE : "File parse failure",
ise-uiuc/Magicoder-OSS-Instruct-75K
// Add row(s) to assets DGV in parent form for every file in new asset foreach (string fn in lbx_Files.SelectedItems.Cast<string>()) { this.ftFrm.AssetsList.Rows.Add(new string[] { cb_AssetName.Text, fn }); } this.Close(); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
const Spacebar24Regular = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <svg {...props} width={24} height={24} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" className={className}><path d="M20.5 11v2c0 .14-.11.25-.25.25H3.75A.25.25 0 013.5 13v-2A.75.75 0 002 11v2c0 .97.78 1.75 1.75 1.75h16.5c.97 0 1.75-.78 1.75-1.75v-2a.75.75 0 00-1.5 0z" fill={primaryFill} /></svg>; }; export default Spacebar24Regular;
ise-uiuc/Magicoder-OSS-Instruct-75K
import useRState from './useRefState'; describe('useRefState', () => { it('should be defined', () => { expect(useRState).toBeDefined() }); });
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = (
ise-uiuc/Magicoder-OSS-Instruct-75K
self.parameter_distributions = parameter_distributions self.cv = cv self.x = x self.y = y self.class_weights = class_weights self.sample_weights = sample_weights def __call__(self, trial):
ise-uiuc/Magicoder-OSS-Instruct-75K
fn metering_app2() { inject_and_cmp("app2", &InstructionCostTable::new());
ise-uiuc/Magicoder-OSS-Instruct-75K
#mutsToIgnore=["Mut3","Mut10","Mut33"] to_write = [] # Go through each mutation for mut in mutations: mutID=mut[0] ESE_motifStrengths = fdm.getSumOfMotifScoreDiffsPerSRECluster(TMPfolder,folderTitle,mutID,"ESE",dict_NumCluster["ESE"],strength_threshold_dict) ESS_motifStrengths = fdm.getSumOfMotifScoreDiffsPerSRECluster(TMPfolder,folderTitle,mutID,"ESS",dict_NumCluster["ESS"],strength_threshold_dict) ISE_motifStrengths = fdm.getSumOfMotifScoreDiffsPerSRECluster(TMPfolder,folderTitle,mutID,"ISE",dict_NumCluster["ISE"],strength_threshold_dict)
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, *args, **kwargs): super(FortinetOVSIntegrationBridge, self).__init__(*args, **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
lblErrorMessage.Text = "Could not Deactivate Account, please try again"; } } List<Qaelo.Models.AccommodationModel.Manager> managers = managerConnection.getAllManagers(); foreach (Qaelo.Models.AccommodationModel.Manager item in managers) { if (item.verified) { lblManagers.Text += string.Format(@"<tr> <td>{0}</td> <td>{1}</td>
ise-uiuc/Magicoder-OSS-Instruct-75K
#[cfg(test)] mod tests {
ise-uiuc/Magicoder-OSS-Instruct-75K
stack.pop() self.assertEqual(1, stack.maximum())
ise-uiuc/Magicoder-OSS-Instruct-75K
if number < 2 { return false } let squareRoot = Int(sqrt(Double(number))) if squareRoot * squareRoot == number { return false } for i in 2..<Int(ceil(sqrt(Double(number)))) where number % i == 0 { return false } return true }
ise-uiuc/Magicoder-OSS-Instruct-75K
} )* } } declare_layer! { (LAYER1, LtdcLayer1, layer1, "Layer 1"), (LAYER2, LtdcLayer2, layer2, "Layer 2"), } impl Ltdc {
ise-uiuc/Magicoder-OSS-Instruct-75K
from functions.functions import if_plus_in_phone @dp.message_handler(content_types=types.ContentTypes.CONTACT) async def bot_start(message: types.Message): user_id = message.contact.user_id full_name = message.contact.full_name
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @param salt the salt to add to the encryption * @param key the password to use for encryption/decryption * @param algorithm the algorithm to encrypt with * @return an initialized encryptor object */ public void initEncryptor(final byte[] salt, final String key, final CryptoAlgorithm algorithm) { initEncryptor(null, key, algorithm, 1); } /** * Initializes an encryption object
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(plot.table_list) > 1: self.plain_cell(worksheet, row, 2 + OVERALL_HEADERS.COLUMN_HAS_SUBPLOTS, "x") # get the final table
ise-uiuc/Magicoder-OSS-Instruct-75K
} internal static void RemoveDeviceContext(DeviceContext dc) { t_activeDeviceContexts?.RemoveByHashCode(dc);
ise-uiuc/Magicoder-OSS-Instruct-75K
mc = qmmm.mm_charge(mc, coords, charges) mc.run(mo_init) mf = scf.RHF(mol) mc = mcscf.CASCI(mf, 6, 6) mc = qmmm.mm_charge(mc, coords, charges) mc.run(mo_init)
ise-uiuc/Magicoder-OSS-Instruct-75K
return this; } public IFile WhenNotExists(Action<IFile> action) { action(this);
ise-uiuc/Magicoder-OSS-Instruct-75K
super(); } /** * @param message */ public UUIDConversationException(String message) { super(message); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
__global__ void write_size(size_t *output) {
ise-uiuc/Magicoder-OSS-Instruct-75K
context = self.get_context(request=request) if not context["is_verified"]:
ise-uiuc/Magicoder-OSS-Instruct-75K
import { useKibana } from '../../../../../../../../src/plugins/kibana_react/public'; import { Resolver } from '../../../../embeddables/resolver/view'; import { EndpointPluginServices } from '../../../../plugin'; import { ResolverEvent } from '../../../../../common/types'; import { storeFactory } from '../../../../embeddables/resolver/store'; export const AlertDetailResolver = styled( React.memo(
ise-uiuc/Magicoder-OSS-Instruct-75K
JAVA_OPTS="${JAVA_OPTS} -server -Djava.awt.headless=true -Xms256m -Xmx512m -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false"
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Snoop.mscoree
ise-uiuc/Magicoder-OSS-Instruct-75K
} extension NSApplication {
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 from gym_duckhunt.envs.duckhunt_env import DuckHuntEnv
ise-uiuc/Magicoder-OSS-Instruct-75K
} self.contentView.addSubview(self.priceLabel) self.priceLabel.mas_makeConstraints { (make: MASConstraintMaker!) in make.left.right()?.equalTo()(0) make.centerY.equalTo()(kAutoSize(size: 15)) } } // MARK: setter @objc var item: NSString! {
ise-uiuc/Magicoder-OSS-Instruct-75K
from mhealth.users.models import User
ise-uiuc/Magicoder-OSS-Instruct-75K
time.sleep_ms(100) gc.collect() ntptime.settime() start_service()
ise-uiuc/Magicoder-OSS-Instruct-75K
for k,v in count.items(): print(k, len(v))
ise-uiuc/Magicoder-OSS-Instruct-75K
TAB = " "
ise-uiuc/Magicoder-OSS-Instruct-75K
return } } //强制 DispatchQueue.main.asyncAfter(deadline: 0.2) { guard let topVC = UIApplication.topViewController() else { return }
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './useWallet';
ise-uiuc/Magicoder-OSS-Instruct-75K
void PikaCmdTableManager::InsertCurrentThreadCmdTable() { pid_t tid = gettid(); CmdTable* cmds = new CmdTable(); cmds->reserve(300); InitCmdTable(cmds); slash::RWLock l(&map_protector_, true); thread_table_map_.insert(make_pair(tid, cmds)); }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.covariate_mean = None self.covariate_var = None self.sigma = None self.b_true = None self.w_true = None def test_case_control_gen(self): """
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in 0..NUM_POINTS { // Replace a random point. let replace: usize = random::<usize>() % NUM_POINTS; m.delete(replace); initial_quantity -= state[replace] * points[replace].capacity; points[replace] = Point::new(); state[replace] = Point::random_state() * 1000.0; crank_nicholson.insert(replace, state[replace]); initial_quantity += state[replace] * points[replace].capacity; m.touch(replace); // Advance the numeric integrations. let mut derivative = |s: &SparseVector, d: &mut SparseVector| Point::derivative(s, d, &points); m.advance(&state, &mut next_state, derivative);
ise-uiuc/Magicoder-OSS-Instruct-75K
<th>Country Code</th> <th>Population</th> </tr> @foreach(var detail in Model) { <tr> <td>@detail.GetCityId()</td> <td>@detail.GetCityName()</td> <td>@detail.GetCityCountryCode()</td> <td>@detail.GetCityPopulation()</td> </tr>
ise-uiuc/Magicoder-OSS-Instruct-75K
returned_outputs) print(img.shape)
ise-uiuc/Magicoder-OSS-Instruct-75K
private extension Int64 { func duplicate4bits() -> Int64 { return (self << 4) + self } } /// An extension of UIColor (on iOS) or NSColor (on OSX) providing HEX color handling.
ise-uiuc/Magicoder-OSS-Instruct-75K
if stopID is not '' and routeID is '': json_response = stopRequest(stopID, dev_key) api_utils.recordDeveloperRequest(devStoreKey,api_utils.GETARRIVALS,self.request.query_string,self.request.remote_addr); elif stopID is not '' and routeID is not '': json_response = stopRouteRequest(stopID, routeID, devStoreKey) api_utils.recordDeveloperRequest(devStoreKey,api_utils.GETARRIVALS,self.request.query_string,self.request.remote_addr); elif routeID is not '' and vehicleID is not '': json_response = routeVehicleRequest(routeID, vehicleID, devStoreKey) api_utils.recordDeveloperRequest(devStoreKey,api_utils.GETVEHICLE,self.request.query_string,self.request.remote_addr); else: logging.debug("API: invalid request") api_utils.recordDeveloperRequest(devStoreKey,api_utils.GETARRIVALS,self.request.query_string,self.request.remote_addr,'illegal query string combination');
ise-uiuc/Magicoder-OSS-Instruct-75K
Profile profile = new Profile(uuid); boolean exists = profile.load().join();
ise-uiuc/Magicoder-OSS-Instruct-75K
$sobrenome = filter_input(INPUT_POST, 'sobrenome', FILTER_SANITIZE_SPECIAL_CHARS); $sobrenome = AttackPrevent($sobrenome); $email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL); $email = AttackPrevent($email); $idade = filter_input(INPUT_POST, 'idade', FILTER_SANITIZE_NUMBER_INT); $idade = AttackPrevent($idade); //Inserindo os dados das variáveis no Banco de Dados na tabela 'clientes': $sql = "INSERT INTO clientes (nome, sobrenome, email, idade) VALUES ('$nome', '$sobrenome', '$email', '$idade')"; //Verificando se a query(comando sql) foi executada com sucesso: if(mysqli_query($connect, $sql)){
ise-uiuc/Magicoder-OSS-Instruct-75K
input { font-size: 2em; width: 90%; } } `; export default curtain;
ise-uiuc/Magicoder-OSS-Instruct-75K
riba.bind(el, model); expect(el.textContent).toEqual('300'); }); }); });
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.AlterField( model_name='orderitem', name='product', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='order_item', to='core.product', verbose_name='produto'), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash adb=~/Library/Android/sdk/platform-tools/adb $adb shell screencap -p /sdcard/screenshot.png $adb pull /sdcard/screenshot.png screenshot.png
ise-uiuc/Magicoder-OSS-Instruct-75K
{ jQuery('#subject_selection_holder').html(response); } }); } </script>
ise-uiuc/Magicoder-OSS-Instruct-75K
description=about['__description__'], long_description=readme, long_description_content_type='text/markdown', url=about['__url__'], license=about['__license__'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Natural Language :: English', 'Topic :: Software Development', 'Topic :: Software Development :: Libraries :: Python Modules', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX',
ise-uiuc/Magicoder-OSS-Instruct-75K
July 5 2017 Copyright 2017 Harvard University, Wu Lab Licensed under the Apache License, Version 2.0 (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 Unless required by applicable law or agreed to in writing, software
ise-uiuc/Magicoder-OSS-Instruct-75K
""" return None def has_perm(self, user_obj, perm, obj=None): """ Check if user have permission (of object) based on registered handlers. It will raise ``ObjectDoesNotExist`` exception when the specified string permission does not exist and ``PERMISSION_CHECK_PERMISSION_PRESENCE`` is ``True`` in ``settings`` module. Parameters
ise-uiuc/Magicoder-OSS-Instruct-75K
vtkSmartPointer<vtkAssignAttribute> assigner = vtkSmartPointer<vtkAssignAttribute>::New(); if( validPart->getGeometryData()->GetPointData() ->HasArray(qPrintable(m_datasetInfo.first)) ) { if( gFilter ) { assigner->SetInputConnection(gFilter->GetOutputPort()); } else
ise-uiuc/Magicoder-OSS-Instruct-75K
if copy_bufs.len() < subscribed.len() { for _ in 0..subscribed.len() - copy_bufs.len() { copy_bufs.push(vec![0; source_buf.len()]); }
ise-uiuc/Magicoder-OSS-Instruct-75K
struct c { class case ,
ise-uiuc/Magicoder-OSS-Instruct-75K
setup_gpu() train()
ise-uiuc/Magicoder-OSS-Instruct-75K
return ( torch.zeros(first_dim, batch_size, self._hidden_size, device=self._device), torch.zeros(first_dim, batch_size, self._hidden_size, device=self._device) ) class ResidualRNNEncoder(RNNEncoder): def __init__( self, base_rnn, input_size, hidden_size, embedding_dim, device, bias=False, num_layers=1, dropout=0, bidirectional=False, pad_token=0, drop_rate=0.1
ise-uiuc/Magicoder-OSS-Instruct-75K
/// A new <see cref="IItemSection"/>. /// </returns> delegate IItemSection Factory( string name, INode node, int total, IAutoTrackValue? autoTrackValue = null, IMarking? marking = null, IRequirement? requirement = null, INode? visibleNode = null); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.data_bag[number_modules_in_cascade][metadata_str] = [[signal, out]] all_train_input_EDFA = [] all_train_output_EDFA = [] all_train_input_SMF = []
ise-uiuc/Magicoder-OSS-Instruct-75K
for baseline_dimension in baseline_dimensions: baselines[baseline_dimension] = baselines_population[[baseline_dimension] + metrics_columns]\ .copy().groupby(baseline_dimension).agg([np.mean, np.sum, np.std]) # baselines[baseline_dimension].set_index(baselines[baseline_dimension].columns[0], inplace=True) baselines[baseline_dimension].columns = baseline_columns for shot_type in shots_types + [COLUMNS.SHOOTING]:
ise-uiuc/Magicoder-OSS-Instruct-75K
private static final String TAG = "RNVideoEdit";
ise-uiuc/Magicoder-OSS-Instruct-75K
import pandas as pd import numpy as np import plotly.graph_objects as go import plotly.io as pio import os import math np.set_printoptions(precision=3, suppress=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_false_value(): assert Boolean(False).value is False def test_false_raw_value(true): assert Boolean(False).raw_value == b'\x00' # === UNCHANGED VALUES === def test_raw_tag(true): assert true.raw_tag == b'\x83'
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>batchBatchFeatures_tile.sh #!/bin/bash #-V
ise-uiuc/Magicoder-OSS-Instruct-75K
int n; scanf("%d", &n); printf("%d\n", n/2); for(int i=1; i<n/2; i++){ printf("2 "); } printf(n%2==0 ? "2" : "3"); return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
sut = _MongoDBBaseMapper() docs = sut.to_documents([the_agg]) aggs = sut.to_aggregates(docs) for agg in aggs: assert agg.id() == the_agg.id()
ise-uiuc/Magicoder-OSS-Instruct-75K
* @memberof TransferNetworkPropertiesDTO */ maxMessageSize?: string; } export declare function TransferNetworkPropertiesDTOFromJSON(json: any): TransferNetworkPropertiesDTO; export declare function TransferNetworkPropertiesDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransferNetworkPropertiesDTO; export declare function TransferNetworkPropertiesDTOToJSON(value?: TransferNetworkPropertiesDTO | null): any;
ise-uiuc/Magicoder-OSS-Instruct-75K
if rescale: display_batch = [ rescale_image( im.copy(), new_scale=[0, 1], current_scale=[-1, 1] ) for im in batch ] else: display_batch = batch.copy() if not normalize: for im in display_batch: im[0,0,0] = 1.0 # Adjust some values so that matplotlib doesn't rescale im[0,1,0] = 0.0 # Now adjust the min return display_batch
ise-uiuc/Magicoder-OSS-Instruct-75K
* Created by weixinfei on 2016/11/28. */ public abstract class GankDataRepository implements GankDataSource { @NonNull private final GankDataSource mRemoteDataSource; /** * This variable has package local visibility so it can be accessed from tests. */ @VisibleForTesting @Nullable private Map<String, GankData> mCachedGankDatas; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
if hasattr(settings, 'CACHE_DEBUG'): warn_deprecated_setting("DEBUG")
ise-uiuc/Magicoder-OSS-Instruct-75K
// TODO(<EMAIL>): must access VAO instead! assert(false); auto ibo = m_color_mesh->get_mesh()->index_buffer().get(); //auto old_ibo = static_cast<void>(r.set_buffer(Buffer::Target::element_array_buffer, ibo)); gr.set_transform(m_hsv_transform); gr.set_hsv_matrix(c); gr.set_color_scale(vec4(1.0f, 1.0f, 1.0f, 1.0f)); gr.set_color_add(vec4(0.0f, 0.0f, 0.0f, 1.0f)); //m_color_mesh->render(m_color_mesh->fill_indices());
ise-uiuc/Magicoder-OSS-Instruct-75K
// See the License for the specific language governing permissions and // limitations under the License. /// Identifies a node in the AST. #[derive(Clone, Debug, PartialEq, Serialize, Hash, Eq, Default)] pub struct NodeId { /// The ID of the Node pub(crate) id: String, /// The module of the Node
ise-uiuc/Magicoder-OSS-Instruct-75K
S3_BUCKET = os.environ.get("S3_BUCKET_NAME") PROPERTY_S3_BUCKET = os.environ.get("PROPERTY_S3_BUCKET") FILES_S3_BUCKET = os.environ.get("FILES_S3_BUCKET") ABOUT_S3_BUCKET = os.environ.get("ABOUT_S3_BUCKET")
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f'Connecting to the ES Endpoint {ES_ENDPOINT}') try: auth = (ES_AUTH_USER, ES_AUTH_PW)
ise-uiuc/Magicoder-OSS-Instruct-75K
/** Location of the place. */
ise-uiuc/Magicoder-OSS-Instruct-75K
'options': None, 'vlan': None } ]
ise-uiuc/Magicoder-OSS-Instruct-75K
set('actionBarActionModeDefaultTop', self.secondary.lighten(0.25)) set('chats_actionPressedBackground', self.accent.lighten(0.25)) set('avatar_backgroundArchived', self.secondary.lighten(0.5)) set('avatar_backgroundArchivedHidden', self.secondary.lighten(0.25)) set('chats_unreadCounterMuted', self.secondary.lighten(0.5)) set('chats_archivePinBackground', self.primary.lighten(0.5))
ise-uiuc/Magicoder-OSS-Instruct-75K
int n; cin >> n; for (int i = 0; i < n; i++) cin >> playlist[i]; int i = 0, j = 0; gp_hash_table<int, bool, chash> seen; int ans = 0; while (j < n) { if (seen.find(playlist[j]) != seen.end()) { seen.erase(playlist[i++]); if (i > j) j++;
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * 写入响应信息
ise-uiuc/Magicoder-OSS-Instruct-75K
{ using ForumApi.Model; public interface ILike { bool GetLike(int postId, int commentId, int supportId); int GetLikes(int postId,int commentId); bool AddLike(Like like); bool DeleteLike(int postId,int commentId,int supportId); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
sed "s?//\(.*\)?/*\1 */?" -i $1
ise-uiuc/Magicoder-OSS-Instruct-75K
slice("slice_1d", x, axes=[0], start=[0], end=[1]) if __name__ == "__main__": main()
ise-uiuc/Magicoder-OSS-Instruct-75K
curl -L --url "https://github.com/ONSdigital/design-system/releases/download/$DESIGN_SYSTEM_VERSION/templates.zip" --output ${TEMP_DIR}/templates.zip unzip ${TEMP_DIR}/templates.zip -d ${TEMP_DIR}/templates rm -rf frontstage/templates/components
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface IManagerViewRepository { Task<IList<ManagerView>> GetAll(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
let pixelRadius = pixelRadiusForBlurSigma(Double(sigma)) self.shader = crashOnShaderCompileFailure("GaussianBlur"){try sharedImageProcessingContext.programForVertexShader(vertexShaderForOptimizedGaussianBlurOfRadius(pixelRadius, sigma:Double(sigma)), fragmentShader:fragmentShaderForOptimizedSingleComponentGaussianBlurOfRadius(pixelRadius, sigma:Double(sigma)))}
ise-uiuc/Magicoder-OSS-Instruct-75K
.get_Buffers() .iter() .find(|b| (b.get_MaxHeight() as usize) > b.get_BottomToTop().len()) { let mut mov = CraneMove::new(); mov.set_BlockId(block.get_Id()); mov.set_SourceId(world.get_Production().get_Id()); mov.set_TargetId(free.get_Id()); schedule.mut_Moves().push(mov);
ise-uiuc/Magicoder-OSS-Instruct-75K
kind: String::from("reqwest"), message: err.to_string(), } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<tr> <td>Repair Start:</td> <td>{!! Form::date('started_at', date('d.m.Y'), array('class'=>'form-control date-picker')) !!}</td> </tr> <tr> <td>RMINST:</td> <td>{!! Form::text('rminst') !!}</td>
ise-uiuc/Magicoder-OSS-Instruct-75K
result = [] for err, right in confusions.items(): idx = text.find(err) if idx > -1: for i, (e, r) in enumerate(zip(err, right)): if e != r:
ise-uiuc/Magicoder-OSS-Instruct-75K
Notes ----- This method adapted from Matplotlibs boxplot_stats. The key difference is the use of a weighted percentile calculation and then using linear interpolation to map weight percentiles back to data. """ if weights is None: q1, med, q3 = np.percentile(x, (25, 50, 75)) n = len(x) else: q1, med, q3 = weighted_percentile(x, (25, 50, 75), weights) n = np.sum(weights)
ise-uiuc/Magicoder-OSS-Instruct-75K
def _get_merged_dict(self, dictionary: Optional[Dict] = None) -> Dict: """ Override default config with `dictionary` if provided. """ if dictionary is None: return self.config.copy() return {**self.config, **dictionary} if __name__ == "__main__": unittest.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
} set { _items = new ObservableCollection<T>(value); InitStuff(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
unlock_pin.add_subcommand(subparsers) disable_pin.add_subcommand(subparsers)
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Sds.Osdr.WebApi.Responses { [BsonIgnoreExtraElements] public class Node { public Guid Id { get; set; } public Guid ParentId { get; set; } public string Name { get; set; } public int Version { get; set; } public dynamic Status { get; set; } public dynamic SubType { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K