seed
stringlengths
1
14k
source
stringclasses
2 values
keyword_reduce => reduce, keyword_then => then, keyword_try => try }
ise-uiuc/Magicoder-OSS-Instruct-75K
X = np.load(args.datapath, allow_pickle=True) y = np.load(args.labels, allow_pickle=True) # http://scikit-learn.sourceforge.net/stable/modules/generated/sklearn.svm.LinearSVC.html#sklearn.svm.LinearSVC regr = make_pipeline(StandardScaler(), LinearSVR(verbose=args.verbose, tol = 1e-5, max_iter = 30))
ise-uiuc/Magicoder-OSS-Instruct-75K
# get set elements set = [int(x) for x in line.strip().split(',')] if isSpecialSumSet(set) == True: res += sum(set) print res else: print('Input file does not exist!') print( 'Time cost: %lf s.' %( time.time() - start ) )
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.tms.api.TableElement; import org.tms.api.TableProperty; import org.tms.io.options.ArchivalIOOptions; abstract class ArchivalWriter<T extends ArchivalIOOptions<T>> extends LabeledWriter<T> { public ArchivalWriter(TableExportAdapter tea, OutputStream out, T options)
ise-uiuc/Magicoder-OSS-Instruct-75K
run = False if event.type == pygame.KEYUP: if event.key == pygame.K_ESCAPE: run = False if event.key == pygame.K_SPACE: pause = not pause Grid.Conway(off_color=white, on_color=blue1, surface=screen, pause=pause)
ise-uiuc/Magicoder-OSS-Instruct-75K
static final String PACKAGE_NAME = "VS#Pkg"; static final String DATABASE_NAME = "VS#Db"; /** * Prefix that AppSearchImpl creates for the VisibilityStore based on our package name and * database name. Tracked here to tell when we're looking at our own prefix when looking * through AppSearchImpl. */ private static final String VISIBILITY_STORE_PREFIX = AppSearchImpl.createPrefix(PACKAGE_NAME, DATABASE_NAME);
ise-uiuc/Magicoder-OSS-Instruct-75K
// //
ise-uiuc/Magicoder-OSS-Instruct-75K
errmsg.clear(); bool ok = conn.auth( "test" , "eliot" , "bar" , errmsg ); if ( ! ok ) cout << errmsg << endl;
ise-uiuc/Magicoder-OSS-Instruct-75K
return message; } public override void WriteServerKeyExchange(ServerKeyExchange message, BinaryWriter writer) { writer.WriteShort((ushort)message.PSKIdentityHint.Length);
ise-uiuc/Magicoder-OSS-Instruct-75K
def show_vectors_as_images(vectors: numpy.ndarray, image_size, wait_time=None): for i, vector in enumerate(vectors): temp_image = vector[0].reshape(image_size) cv2.imshow("channel-{}".format(i), temp_image) if wait_time is not None: cv2.waitKey(wait_time) def randomly_split_classes(no_of_classes, samples_per_class, training_samples_per_class): testing_samples_per_class = (samples_per_class - training_samples_per_class) training_samples_total = no_of_classes * training_samples_per_class testing_samples_total = no_of_classes * testing_samples_per_class
ise-uiuc/Magicoder-OSS-Instruct-75K
# Delete topic ./bin/kafka-topics.sh --delete --topic first_topic --zookeeper localhost:2181 # Producing to kafka topic ./bin/kafka-console-producer.sh \ --broker-list 127.0.0.1:9092 --topic first_topic
ise-uiuc/Magicoder-OSS-Instruct-75K
import asyncio from tblink_rpc_core.param_val_map import ParamValMap from tblink_rpc_core.endpoint import Endpoint class TblinkRpcSmoke(TblinkRpcTestcase):
ise-uiuc/Magicoder-OSS-Instruct-75K
enable_salt=False, iter_once=args.once, auto_open=True, auto_test=True, con_check=args.concheck, level=args.level)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.socket.close() self.logger.info("exiting")
ise-uiuc/Magicoder-OSS-Instruct-75K
wait-for-it --timeout 60 --service mysql:3306 wait-for-it --timeout 60 --service debezium:8083 cd /loadgen exec python generate_load.py
ise-uiuc/Magicoder-OSS-Instruct-75K
cursor.close() cnx.close() except: print("Connection has not been established.") return file_location def give_file_gbq(path_to_file, bq_configuration):
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * ClassName: HttpClientUtils <br> * Function: HttpClient 长连接实现类 * * @author wangxujin */ public final class HttpClientUtils { private static final Logger LOG = LoggerFactory.getLogger(HttpClientUtils.class); /** * 最大连接数
ise-uiuc/Magicoder-OSS-Instruct-75K
return {v: k for k, v in source.items()}
ise-uiuc/Magicoder-OSS-Instruct-75K
name='Picture', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('path', models.CharField(max_length=100, verbose_name='图片地址')), ('isdelete', models.CharField(default='0', max_length=1, verbose_name='是否删除')), ('goods', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='picture_by_goods', to='app_goods.Goods')), ], options={ 'verbose_name': 'RawFishSheep', 'db_table': 'goods_picture', }, ),
ise-uiuc/Magicoder-OSS-Instruct-75K
{ } public AraObjectInstance(string vInstanceID) { _InstanceID = vInstanceID; } public AraObjectInstance(IAraObject vAraObject)
ise-uiuc/Magicoder-OSS-Instruct-75K
def dots_test_suite(): """ The dots_test_suite() is designed to test the following: calculate_size(num_dots) is_valid_size(dot_width, dot_height, distance, screen_width, screen_height) :return: None """ # The following tests test the calculate_size() function print("\nTesting calculate_size") testit(calculate_size(25) == (5,5)) testit(calculate_size(36) == (6,6))
ise-uiuc/Magicoder-OSS-Instruct-75K
@dataclass class Token: token_value: str
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_set_element(_set): """get the element from the set to which the iterator points; returns an arbitrary item """ for element in _set: return element
ise-uiuc/Magicoder-OSS-Instruct-75K
} void SaveGraphCutoffsDialogController::accept() { if (!validate()) { return; } bool objectPrepared = ac->prepareAnnotationObject(); if (!objectPrepared) { QMessageBox::critical(this, tr("Error!"), "Cannot create an annotation object. Please check settings"); return; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def main(args=None): parser = create_parser() args = parser.parse_args(args)
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(os.path.join(directory, "turbo-davidson.sub"), 'w') as fout: fout.write("#!/bin/bash\n") fout.write("yhrun -N 1 -n 24 turbo_davidson.x < %s > %s\n" % (inpname1, output1)) fout.write("yhrun -N 1 -n 24 turbo_spectrum.x < %s > %s\n" % (inpname2, output2))
ise-uiuc/Magicoder-OSS-Instruct-75K
""" import numpy as np def get_similarity(query_vec, vec_list,metric_type='cos'): similarity = None if metric_type == 'cos': vec_arr = np.asarray(vec_list) query_arr = np.asarray(query_vec) similarity_arr = np.dot(vec_arr, query_arr.reshape(1, -1).T) similarity_arr_arg = np.argsort(similarity_arr, axis=0)[::-1] # 从大到小排序 similarity = [(similarity_arr[i][0][0],i[0]) for i in similarity_arr_arg] else:
ise-uiuc/Magicoder-OSS-Instruct-75K
board[i][j] = w[0] as char; ret
ise-uiuc/Magicoder-OSS-Instruct-75K
node_names = [pipeline[idx][0] for idx in indices] num_node_choices = [] node_choice_names = [] skip_array_shape = []
ise-uiuc/Magicoder-OSS-Instruct-75K
# # The above copyright notice and this permission notice shall be included in all copies or substantial portions of # the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO # THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # ------------------------------------------------------------------------------ import discord from discord.ext import commands
ise-uiuc/Magicoder-OSS-Instruct-75K
package com.jme3.gde.cinematic.filetype.actions; import com.jme3.gde.cinematic.filetype.CinematicDataObject; import com.jme3.gde.core.assets.ProjectAssetManager; import com.sun.media.jfxmedia.logging.Logger; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File;
ise-uiuc/Magicoder-OSS-Instruct-75K
// mnt6753_G1::coeff_a); // = (ZERO, ZERO, A_COEFF); // ```
ise-uiuc/Magicoder-OSS-Instruct-75K
classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License",
ise-uiuc/Magicoder-OSS-Instruct-75K
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\"" echo " is different from what is expected to be: \"$version\"" return 1 fi } termux_step_pre_configure() { autoreconf -fi CPPFLAGS+=" -D__USE_GNU" }
ise-uiuc/Magicoder-OSS-Instruct-75K
This function is called by the polygon select when a polygon is closed by the user. It adds a patch to the figure and updates the grid map. """ #Close and create patch TODO: Replace with Draggable verts.append(verts[0])
ise-uiuc/Magicoder-OSS-Instruct-75K
$review->order_id = $request->order_id; $review->product_id = $request->product_id; $review->user_id = Auth::user()->id; $review->rating = $request->rating;
ise-uiuc/Magicoder-OSS-Instruct-75K
} public FeedbackViewModel ViewModel { get; set; } object IViewFor.ViewModel { get => ViewModel; set => ViewModel = (FeedbackViewModel)value; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np from solardatatools.signal_decompositions import tl1_l2d2p365
ise-uiuc/Magicoder-OSS-Instruct-75K
{ using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using UnityEngine; public class Reflection : MonoBehaviour { #region 8.7 Reflection /* * Section 8.7 Reflection
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "your .bash* and .profile files after installation!" return fi source $HOME/.rvm/scripts/rvm source $(rvm env --path)
ise-uiuc/Magicoder-OSS-Instruct-75K
metadata: Metadata strings: Strings = field(default_factory=Strings) @classmethod def parse_file(cls, path):
ise-uiuc/Magicoder-OSS-Instruct-75K
start_urls = ["https://www.saoroque.sp.gov.br/portal/diario-oficial"]
ise-uiuc/Magicoder-OSS-Instruct-75K
TEST(Configparser, aConfigVec) {
ise-uiuc/Magicoder-OSS-Instruct-75K
fig = plt.figure() plt.title(f'{mode} episode: {episode}, reward: {reward}') plt.axis('off') im = plt.imshow(frames[0], animated=True) def update_fig(frame, *args): im.set_array(frame) return im, ani = animation.FuncAnimation(fig, update_fig, frames=frames[::skip_frames+1]) ani.save(f'{out_path}{mode}_episode_{episode}_reward_{reward}.gif', writer='imagemagick', fps=fps)
ise-uiuc/Magicoder-OSS-Instruct-75K
pad = (kernel_size - 1, 0) else: pad = ((kernel_size - 1) // 2, (kernel_size - 1) // 2) self.pad = nn.ConstantPad1d(pad, 0) self.weight_init()
ise-uiuc/Magicoder-OSS-Instruct-75K
// package. /** List of the kinds of Mechanisms that are supported.
ise-uiuc/Magicoder-OSS-Instruct-75K
self.about_button = Button(IMG_BUTTON, SPRITE_SCALING_BUTTON) self.about_button.center_x = SCREEN_WIDTH//2 self.about_button.center_y = SCREEN_HEIGHT//2 - 150 self.feedback_button = Button(IMG_BUTTON, SPRITE_SCALING_BUTTON) self.feedback_button.center_x = SCREEN_WIDTH//2
ise-uiuc/Magicoder-OSS-Instruct-75K
// All the built-in macro attributes are "words" at the moment. let template = AttributeTemplate::only_word(); let attr = ecx.attribute(meta_item.clone()); validate_attr::check_builtin_attribute(ecx.parse_sess, &attr, name, template); }
ise-uiuc/Magicoder-OSS-Instruct-75K
switch self { case .invalidTokenLength: return "Invalid token data length! Token must be in 16 bytes length" } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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. # Lint as: python3 """Tests for model_search.search.common.""" from absl.testing import parameterized
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>eanfs/erpnext_chinese<filename>erpnext_chinese/erpnext_chinese/doctype/user_default/test_user_default.py # Copyright (c) 2021, Fisher and Contributors # See license.txt # import frappe import unittest class TestUserDefault(unittest.TestCase): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
print fibo(4) print fibo(5) print fibo(6) print fibo(37) """
ise-uiuc/Magicoder-OSS-Instruct-75K
pool_size = pathos.multiprocessing.cpu_count() desert_island.pool_size = pool_size # desert_island.pool = pathos.multiprocessing.Pool(pool_size) desert_island.pool = pathos.pools.ProcessPool(pool_size) desert_island.pool_size = pool_size return def run_evolve(self, algo, pop):
ise-uiuc/Magicoder-OSS-Instruct-75K
# -*- coding: utf-8 -*-
ise-uiuc/Magicoder-OSS-Instruct-75K
for sample in samples: if sample[:3] == 'SRR' and os.path.isdir(os.path.join(bam_path, sample)): all_sample.append(os.path.join(os.path.join(bam_path, sample), 'accepted_hits.bam')) all_sample.sort() group1 = all_sample[:num_group1]
ise-uiuc/Magicoder-OSS-Instruct-75K
size(800, 600)
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np class ProfileClass: """ A class that represents a single profile, which consists of the name of the person, and his or her average image
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.testsigma.dto.WebDriverSettingsDTO; import com.testsigma.exception.TestsigmaException; import com.testsigma.service.WebDriverSettingsService; import com.testsigma.web.request.WebDriverSettingsRequest; import lombok.RequiredArgsConstructor; import lombok.extern.log4j.Log4j2; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*;
ise-uiuc/Magicoder-OSS-Instruct-75K
assert v == Vector2(0, 1) def test_theta_270_degrees(): v = Vector2(0, -1) assert v.theta == - pi / 2 def test_as_tuple():
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_encode_value_of(self, Message): array = messages.MessageArrayField( "", Message, messages.MessageArrayField.value_of("life")) elements = [Message(byte=255, short=0x11AA)] * 5 encoded = array.encode(elements, {"life": 5}) assert isinstance(encoded, bytes) assert encoded == elements[0].encode() * 5 def test_encode_at_least_minimum(self, Message): array = messages.MessageArrayField( "", Message, messages.MessageArrayField.at_least(3)) elements = [Message(byte=255, short=0x11AA)] * 3 encoded = array.encode(elements)
ise-uiuc/Magicoder-OSS-Instruct-75K
new KeyedBlock("other", "дня") }, new FormatterExtension[0]); var request = new FormatterRequest(new Literal(1, 1, 1, 1, ""), "test", "plural", null); var actual = subject.Pluralize("uk", arguments, new PluralContext(Convert.ToDecimal(Convert.ToDouble(args[request.Variable]))), 0); Assert.Equal(expected, actual); }
ise-uiuc/Magicoder-OSS-Instruct-75K
/// - Parameter title: The title. /// - Parameter listItemStyle: The list item UI style. internal init(component: PaymentComponent, title: String, style: FormComponentStyle, listItemStyle: ListItemStyle) { self.title = title self.style = style self.listItemStyle = listItemStyle
ise-uiuc/Magicoder-OSS-Instruct-75K
# # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import sys from sign_workflow.sign_args import SignArgs from sign_workflow.sign_artifacts import SignArtifacts
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__":
ise-uiuc/Magicoder-OSS-Instruct-75K
class func updateLogMessage(_ textView: UITextView?, message: String!) { guard let textView = textView else { return } MyLogger.appendNormalLog(textView, message: message) MyLogger.appendBreakLine(textView) } class func updateLogMessage(_ textView: UITextView?, message: String!, status: Bool) { guard let textView = textView else {
ise-uiuc/Magicoder-OSS-Instruct-75K
"/login/shib/login", headers={app.config["SHIBBOLETH_HEADER"]: "test"} ) assert r.status_code == 200 def test_shib_login_redirect(app, client): r = client.get("/login/shib?redirect=http://localhost") r = client.get( "/login/shib/login", headers={app.config["SHIBBOLETH_HEADER"]: "test"} ) assert r.status_code == 302 assert r.headers["Location"] == "http://localhost"
ise-uiuc/Magicoder-OSS-Instruct-75K
src[0] == 0 dst[0] == 0 src[-1] == dst[-1]
ise-uiuc/Magicoder-OSS-Instruct-75K
clean(hupas); } else if let Some(hupas_names) = sub_m.values_of("hupa") { let hupas_names: Vec<String> = hupas_names.map(|s| s.to_string()).collect(); clean(&resolve_names(&hupas_names, hupas)); } else { let hupas = select_hupas(hupas, "Select hupas to clean"); clean(&hupas); } } /// Clean hupas with interface pub fn clean(hupas: &[Hupa]) { for hupa in hupas { exec_hupa(
ise-uiuc/Magicoder-OSS-Instruct-75K
CONF_PATH=$REPO_DIR/aux_files/000-default.conf SITE_NAME=mysite SITE_DIR=$REPO_DIR/$SITE_NAME APP_DIR=$SITE_DIR/$SITE_NAME echo "REPO_DIR=$REPO_DIR" echo "CONF_PATH=$CONF_PATH" echo "SITE_NAME=$SITE_NAME" echo "SITE_DIR=$SITE_DIR" echo "APP_DIR=$APP_DIR" cd $HOME/BaseStack/fabric_files fab setup_django:conf_path=$CONF_PATH,app_dir=$APP_DIR # Set up the site context. ADD TO FABFILE? echo "************ Configuration *************" cd $REPO_DIR
ise-uiuc/Magicoder-OSS-Instruct-75K
}; mod ct_variable; mod rt_variable; mod wrapper; mod xof_reader; pub use ct_variable::CtVariableCoreWrapper; pub use rt_variable::RtVariableCoreWrapper; pub use wrapper::{CoreProxy, CoreWrapper}; pub use xof_reader::XofReaderCoreWrapper; pub type Buffer<S> = BlockBuffer<<S as BlockSizeUser>::BlockSize, <S as BufferKindUser>::BufferKind>;
ise-uiuc/Magicoder-OSS-Instruct-75K
set -xe stack build cp -f .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/cut-the-crap/cut-the-crap ppa/bin dpkg-deb --build "$HOME"/ppa .
ise-uiuc/Magicoder-OSS-Instruct-75K
class UnderflowError(InvalidLengthError): pass __all__ = ["InvalidLengthError", "OverflowError", "UnderflowError"]
ise-uiuc/Magicoder-OSS-Instruct-75K
none_miss_sum = sum(range(length+1))
ise-uiuc/Magicoder-OSS-Instruct-75K
def last_block(self): return self.chain[-1] @staticmethod def hash(block): block_string = json.dumps(block, sort_keys=True).encode() return hashlib.sha256(block_string).hexdigest() def proof_of_work(self, last_proof): proof = 0 while self.valid_proof(last_proof, proof) is False: proof += 1 return proof
ise-uiuc/Magicoder-OSS-Instruct-75K
export default withSentry(handlers);
ise-uiuc/Magicoder-OSS-Instruct-75K
long t = System.currentTimeMillis(); final int M = 50; final int TARGET = 1000000; int length = 0; // create array with totals long[] total = new long[M + 1]; // create array with blacks long[] blacks = new long[M + 1]; for (int i = 0; i <= M; i++) {
ise-uiuc/Magicoder-OSS-Instruct-75K
// Now send ListenForOmciRx() request. It will block ListenForOmciTx(); Disconnected(); } while (!stopping); return BCM_ERR_OK; } // Forward message received from ONU to vOMCI bcmos_errno BcmPoltClient::OmciTxToVomci(OmciPacket &grpc_omci_packet) {
ise-uiuc/Magicoder-OSS-Instruct-75K
stack.push(2)
ise-uiuc/Magicoder-OSS-Instruct-75K
{tryOr(() => rule.name && <>: <Hi>{rule.name}</Hi></>)}
ise-uiuc/Magicoder-OSS-Instruct-75K
int height = source.getHeight(); int scaledWidth = width / mSampling; int scaledHeight = height / mSampling;
ise-uiuc/Magicoder-OSS-Instruct-75K
import static pl.plh.app.sudoku.common.SudokuParameters.*; public abstract class GridFormatter { public static final GridFormatter DEFAULT_FORMATTER = new GridFormatter() { private final char emptySymbol = DEFAULT_EMPTY_SYMBOL;
ise-uiuc/Magicoder-OSS-Instruct-75K
surfaces::Surface, };
ise-uiuc/Magicoder-OSS-Instruct-75K
// import SwiftUI struct HSplitViewExample: View { var body: some View { Text("不支持iOS") } } struct HSplitViewExample_Previews: PreviewProvider { static var previews: some View { HSplitViewExample() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if rot is not None and disp is not None: file_string = 'training_{:02d}_{:02d}.hdf5'.format(rot, int(disp*10)) else: file_string = 'training.hdf5' path = CHECKPOINT_PATH.joinpath('regnet', file_string) return path def multimodal(): path = CHECKPOINT_PATH.joinpath('multimodal', 'training.hdf5')
ise-uiuc/Magicoder-OSS-Instruct-75K
verticalAlignment = GafferUI.Label.VerticalAlignment.Center, ) if label is not None : nameWidget.label().setText( label ) nameWidget.label()._qtWidget().setFixedWidth( GafferUI.PlugWidget.labelWidth() ) # cheat to get the height of the label to match the height of a line edit # so the label and plug widgets align nicely. ideally we'd get the stylesheet # sorted for the QLabel so that that happened naturally, but QLabel sizing appears # somewhat unpredictable (and is sensitive to HTML in the text as well), making this # a tricky task.
ise-uiuc/Magicoder-OSS-Instruct-75K
PLUGIN_PATHS = ['./theme/plugins'] PLUGINS = ['toc', 'pelican-gfm', 'sitemap'] # TOC Generator TOC_HEADERS = r"h[1-6]" # Sitemap Generator SITEMAP = { "exclude": ["tag/", "category/"], "format": "xml", "priorities": { "articles": 0.1, "indexes": 0.1, "pages": 0.8
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>HeWeMel/adventofcode import sys lines=[] new=True lc=0 with open('input.txt', 'r') as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ ! -d ~/.local/bin ]; then mkdir ~/.local/bin fi if ! grep 'PATH=.*HOME/.local/bin' ~/.bashrc then echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc fi if ! grep 'PATH=.*HOME/.local/bin' ~/.zshrc then echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
ise-uiuc/Magicoder-OSS-Instruct-75K
def _daysFromToday(self, days):
ise-uiuc/Magicoder-OSS-Instruct-75K
cur_measurement_df = measurements.get_rows_for_condition( measurement_df, condition) if PREEQUILIBRATION_CONDITION_ID not in condition \ or not isinstance(condition[PREEQUILIBRATION_CONDITION_ID], str) \ or not condition[PREEQUILIBRATION_CONDITION_ID]: par_map_preeq = {} scale_map_preeq = {} else: par_map_preeq, scale_map_preeq = get_parameter_mapping_for_condition( condition_id=condition[PREEQUILIBRATION_CONDITION_ID], is_preeq=True, cur_measurement_df=cur_measurement_df, sbml_model=sbml_model, condition_df=condition_df,
ise-uiuc/Magicoder-OSS-Instruct-75K
if mibBuilder.loadTexts: mwMemCeiling.setDescription('bytes of memory the agent memory manager will allow the agent to use.') mwMemUsed = MibScalar((1, 3, 6, 1, 4, 1, 217, 16, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mwMemUsed.setStatus('mandatory') if mibBuilder.loadTexts: mwMemUsed.setDescription("bytes of memory that meterworks has malloc'ed. some of this may be in free pools.") mwHeapTotal = MibScalar((1, 3, 6, 1, 4, 1, 217, 16, 1, 2, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mwHeapTotal.setStatus('mandatory') if mibBuilder.loadTexts: mwHeapTotal.setDescription('bytes of memory given to the heap manager.') mwHeapUsed = MibScalar((1, 3, 6, 1, 4, 1, 217, 16, 1, 2, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mwHeapUsed.setStatus('mandatory') if mibBuilder.loadTexts: mwHeapUsed.setDescription('bytes of available memory in the heap.') mibBuilder.exportSymbols("MWORKS-MIB", mwHeap=mwHeap, mwHeapUsed=mwHeapUsed, mwMemCeiling=mwMemCeiling, meterWorks=meterWorks, tecElite=tecElite, mwMem=mwMem, mw501=mw501, mwHeapTotal=mwHeapTotal, mwMemUsed=mwMemUsed)
ise-uiuc/Magicoder-OSS-Instruct-75K
pg_param_decode_params* params = static_cast<pg_param_decode_params*>(pData); params->client = client; params->payloadCount = payloadCount; MEMCPY_S(params->payloads, sizeof(params->payloads), payloads, sizeof(ia_binary_data) * payloadCount); params->clientStatsHandle = statsHandle; return true; } bool IPCIntelPGParam::serverUnflattenDecode(void* pData, int dataSize, uintptr_t* client, int32_t* payloadCount, ia_binary_data** payloads) { CheckError(!pData, false, "@%s, pData is nullptr", __func__); CheckError(dataSize < sizeof(pg_param_decode_params), false, "@%s, size is small", __func__); CheckError(!client, false, "@%s, nullptr client", __func__); CheckError(!payloadCount, false, "%s, payloadCount is nullptr", __func__);
ise-uiuc/Magicoder-OSS-Instruct-75K
for(Int_t mod=0; mod<6; mod++){ fActiveModule[mod]=kFALSE ; fActiveCPV[mod]=kFALSE ;
ise-uiuc/Magicoder-OSS-Instruct-75K
class_A a; class_A *pa = new class_A; struct_S s; struct_S *ps = new struct_S; class_X x; class_X *px = new class_X; return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
var time: String { get }
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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
def process(self): from taskmda.mda.dmo import GenericTemplateAccess from taskmda.mda.dmo import EntityNgramDictGenerator from taskmda.mda.dto import KbNames from taskmda.mda.dto import KbPaths dictionary = EntityNgramDictGenerator().process(self._labels, list(self._patterns.values()))
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public static IWebHost Migrate(this IWebHost webhost) { using (var scope = webhost.Services.GetService<IServiceScopeFactory>().CreateScope()) { using (var dbContext = scope.ServiceProvider.GetRequiredService<WorkManagerDbContext>()) { dbContext.Database.Migrate(); } } return webhost; }
ise-uiuc/Magicoder-OSS-Instruct-75K
except subprocess.CalledProcessError: return Status.FAILURE return Status.SUCCESS def update(project): pass def compatible(project): support = Support.MASK & (~Support.PROJECT) if os.path.isfile("compile.hxml"): support |= Support.PROJECT
ise-uiuc/Magicoder-OSS-Instruct-75K
pub const TITLE: &'static str = "(meta)programming language for IoT-chipping over 5G"; pub const AUTHOR: &'static str = "<NAME> <<EMAIL>>"; pub const LICENSE: &'static str = "MIT";
ise-uiuc/Magicoder-OSS-Instruct-75K