seed
stringlengths
1
14k
source
stringclasses
2 values
//Next prefetches pages before even navigating to it.
ise-uiuc/Magicoder-OSS-Instruct-75K
app.register_blueprint(ticket, url_prefix='/ticket')
ise-uiuc/Magicoder-OSS-Instruct-75K
user = request.user signer = obj.signed_by return user == signer
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Threading.Tasks; using System.Linq.Expressions; using System.Reflection; using More.Net.Linq.Expressions; namespace More.Net.Reflection { public static class ObjectExtensions { public static TProperty GetPropertyValue<TSource, TProperty>( this TSource source, Expression<Func<TSource, TProperty>> propertyExpression) { return (TProperty)source
ise-uiuc/Magicoder-OSS-Instruct-75K
/************************************************************************************************** * * VARIABLES * **************************************************************************************************/
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * {@inheritdoc} */ public function safeDown()
ise-uiuc/Magicoder-OSS-Instruct-75K
<h5 class="extension-name<?= (!$record->class) ? ' text-muted' : ''; ?>"> <?php if ($record->class) { ?> <?= $record->title; ?> <?php } else { ?> <s><?= $record->title; ?></s>&nbsp;&nbsp; <?php } ?> </h5> <span class="extension-desc text-muted"><?= $record->meta['description']; ?></span>
ise-uiuc/Magicoder-OSS-Instruct-75K
categories = ['gitignore', 'license_', 'source'] interfaces = [ 'build', 'doc', 'doc_host', 'github', 'gitignore', 'license', 'package_readme', 'read_the_docs', 'readme', 'source', 'todo',
ise-uiuc/Magicoder-OSS-Instruct-75K
author_email='<EMAIL>', )
ise-uiuc/Magicoder-OSS-Instruct-75K
{ uri.SetQueryString(SerializePayload()); }
ise-uiuc/Magicoder-OSS-Instruct-75K
return imageRotation(image: img, orientation: UIImage.Orientation.right) } // 根据二维码的区域截取二维码区域图像
ise-uiuc/Magicoder-OSS-Instruct-75K
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (GlobalNamespace::ColorHueSlider::*)(System::Action_3<GlobalNamespace::ColorHueSlider*, float, GlobalNamespace::ColorChangeUIEventType>*)>(&GlobalNamespace::ColorHueSlider::add_colorHueDidChangeEvent)> { static const MethodInfo* get() { static auto* value = &::il2cpp_utils::MakeGeneric(::il2cpp_utils::GetClassFromName("System", "Action`3"), ::std::vector<const Il2CppClass*>{::il2cpp_utils::GetClassFromName("", "ColorHueSlider"), ::il2cpp_utils::GetClassFromName("System", "Single"), ::il2cpp_utils::GetClassFromName("", "ColorChangeUIEventType")})->byval_arg; return ::il2cpp_utils::FindMethod(classof(GlobalNamespace::ColorHueSlider*), "add_colorHueDidChangeEvent", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{value}); } }; // Writing MetadataGetter for method: GlobalNamespace::ColorHueSlider::remove_colorHueDidChangeEvent // Il2CppName: remove_colorHueDidChangeEvent template<> struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (GlobalNamespace::ColorHueSlider::*)(System::Action_3<GlobalNamespace::ColorHueSlider*, float, GlobalNamespace::ColorChangeUIEventType>*)>(&GlobalNamespace::ColorHueSlider::remove_colorHueDidChangeEvent)> {
ise-uiuc/Magicoder-OSS-Instruct-75K
### Reuters 데이터(말뭉치)를 이용한 Tri-gram 모델 생성 print("\n----- Tri-gram 모델 생성 -----") model = defaultdict(lambda : defaultdict(lambda : 0))
ise-uiuc/Magicoder-OSS-Instruct-75K
yolo_cfg_file = 'yolo/darknet/yolov3-tiny.cfg' yolo_weights_file = 'yolo/darknet/yolov3-tiny.weights' img_size = (320,320) conf_threshold = 0.5 nms_threshold = 0.3
ise-uiuc/Magicoder-OSS-Instruct-75K
PersonalFile fileModel = new PersonalFile(sendFileDTO.getFileDTO()); NetworkFileDTO fileDTO = fileModel.toFileDTO(); fileDTO.setType(CommConstants.FILE_TYPE_TEMP); User sendUser = userMapper.getUser(sendFileDTO.getSendId()); if (sendUser != null) { message.setFromUser(sendUser.getUserName()); // add file to sender's disk PersonalFolder sendFolder = new PersonalFolder(); sendFolder.setFolderName(CommConstants.SendFileFolderName); sendFolder.setUserId(sendFileDTO.getSendId()); long sendFolderId; PersonalFolder folder = personalFolderMapper.getDefaultFolder(sendFolder); if (folder == null) { sendFolderId = sequence.getNextId(); sendFolder.setFolderId(sendFolderId);
ise-uiuc/Magicoder-OSS-Instruct-75K
command_defn=protocol.get_command_defn(command), ) log.debug(f"Send and Receive Response {raw_response}") # Handle errors # Maybe there should a decode for ERRORs and WARNINGS... # Some inverters return the command if the command is unknown: if raw_response == full_command: return { "ERROR": [ f"Inverter returned the command string for {command} - the inverter didnt recognise this command", "",
ise-uiuc/Magicoder-OSS-Instruct-75K
FHIR_SERVER_URL = os.environ.get("FHIR_SERVER_URL", "http://localhost:8080/fhir") FHIR_SERVER_AUTHORIZATION = os.environ.get( "FHIR_SERVER_AUTHORIZATION", BasicAuth("root", "secret").encode() )
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 <div class="bg_widget"> <script type="text/javascript"> var _bt = _bt || []; _bt.push(['server', 'https://integrations01-widget.betgames.tv']); _bt.push(['partner', 'robert_local_test_env']); _bt.push(['token', '-']); _bt.push(['language', 'en']);
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(self.to_remove): print('Deleting removed tracks from local file system.') self._remove_songs() print('\n') if len(self.to_download): print('Downloading added tracks to local file system.') self._download_songs() print('\n') # Show a notification if anything was done if len(self.to_remove) or len(self.to_download): notify_message = 'Synchronization complete. Playlist contains ' \ '%d tracks.\n' % len(self._local_data)
ise-uiuc/Magicoder-OSS-Instruct-75K
app = Flask(__name__) @app.route('/') def index_route(): return render_template('index.html') @app.route('/user/<user_id>') def show_user_info(user_id): return render_template('index.html', name=user_id) @app.route('/api/get/hope/<user_id>') def get_hope_by_user_id(user_id): return hopes.get_hopes(user_id)
ise-uiuc/Magicoder-OSS-Instruct-75K
echo $(date -u "+%F %H:%M:%S") - Waiting for emulator to fully boot... sleep 5 done adb shell input keyevent 82
ise-uiuc/Magicoder-OSS-Instruct-75K
return true; } @Override public String patternMatchingText() { return operator.operatorName();
ise-uiuc/Magicoder-OSS-Instruct-75K
hf_pretrained_model_name_or_path="bert-base-uncased", output_base_path="./spatial_experiment/models/bert", )
ise-uiuc/Magicoder-OSS-Instruct-75K
# Calculate size of embedding output_shapes = (tf.TensorShape(embedding_shape), tf.TensorShape([]))
ise-uiuc/Magicoder-OSS-Instruct-75K
public subscript(key: JSONKey<Int?>) -> Int? { return self[key.type].int } /** Returns the value associated with the given key as a 64-bit signed integer or 0 if not present/convertible. - parameter key: The key. - returns: The value associated with the given key as a 64-bit signed integer or 0 if not present/convertible. */ public subscript(key: JSONKey<Int>) -> Int { return self[key.type].intValue
ise-uiuc/Magicoder-OSS-Instruct-75K
void rpcz_protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() { } } // namespace protobuf } // namespace google
ise-uiuc/Magicoder-OSS-Instruct-75K
returnButton.GetComponent<RectTransform>().anchoredPosition = new Vector2(0, returnButton.GetComponent<RectTransform>().rect.height / (2 * selectedMenu.GetComponent<RectTransform>().localScale.y) + uiPadding); returnButton.GetComponentInChildren<Text>().text = "Return"; returnButton.GetComponent<Button>().onClick.AddListener(delegate { removeMenu(); makePanel(unitPanel); makeGodButtons(); makeEndTurnButton(); abilityPanelInUse = false; }); //Make ability buttons for (int i = 0; i < Abilities.Length; i++) { //Instantiate new button and make it the child of our panel GameObject newAbilityButton = Instantiate(abilityButton); newAbilityButton.transform.SetParent(selectedMenu.transform);
ise-uiuc/Magicoder-OSS-Instruct-75K
import urllib.request from collections import defaultdict, namedtuple
ise-uiuc/Magicoder-OSS-Instruct-75K
github_authenticate() { my_curl_cmd="$CURL_CMD -u "$GH_USER" https://api.github.com" #response=$($CURL_CMD -u "$GH_USER" -s -o /dev/null -w '%{http_code}' https://api.github.com) ####response=$($CURL_CMD -u "$GH_USER" --write-out %{http_code} --silent --output /dev/null https://api.github.com) ####echo $response #curl -i https://api.github.com/repos/wolfeidau/usage/collaborators
ise-uiuc/Magicoder-OSS-Instruct-75K
@abstractmethod def get_canonical_block_root(self, slot: Slot) -> Hash32: pass @abstractmethod def import_block(
ise-uiuc/Magicoder-OSS-Instruct-75K
) // RenderFlat2D plugin is used to render entities // with a `SpriteRender` component. .with_plugin(RenderFlat2D::default()) .with_plugin(RenderUi::default()), )? .with_bundle(TransformBundle::new())? .with_bundle(input_bundle)? .with_bundle(UiBundle::<StringBindings>::new())? .with_bundle(AudioBundle::default())? .with( DjSystem::new(|music: &mut Music| music.music.next())
ise-uiuc/Magicoder-OSS-Instruct-75K
def upgrade(): op.execute("ALTER TABLE services ALTER rate_limit DROP DEFAULT") op.execute("ALTER TABLE services_history ALTER rate_limit DROP DEFAULT") def downgrade(): op.execute("ALTER TABLE services ALTER rate_limit SET DEFAULT '3000'") op.execute("ALTER TABLE services_history ALTER rate_limit SET DEFAULT '3000'")
ise-uiuc/Magicoder-OSS-Instruct-75K
// for (size_t i=0;i<= M;i+=N_ROWS_TILE_SZ) // for(size_t j=0;j<= N;j+=N_COLS_TILE_SZ){ // uint64_t sub_m =(i==M)?(BlockM_final-i*N_ROWS_TILE_SZ):( (BlockM_final<N_ROWS_TILE_SZ)? BlockM_final:N_ROWS_TILE_SZ); // uint64_t sub_n = (j==N)?(BlockN-j*N_ROWS_TILE_SZ):((BlockN<N_COLS_TILE_SZ)?BlockN:N_COLS_TILE_SZ); // uint64_t sub_pos = i*n_cols*N_COLS_TILE_SZ+j*sub_n; // computeInner_stencil2d(bp+pos+sub_pos, sub_m,sub_n,Initial,New, n_cols); // }
ise-uiuc/Magicoder-OSS-Instruct-75K
export default function Retired() { return ( <div className="pt-8 pb-8 bg-gray-800 light:bg-gray-300 text-gray-200 light:text-gray-900 rounded-lg"> <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div className="lg:text-center"> <h2 className="text-base font-semibold tracking-wide uppercase">Time Changes</h2> <p className="mt-2 text-3xl leading-8 font-extrabold tracking-tight sm:text-4xl">
ise-uiuc/Magicoder-OSS-Instruct-75K
from .constant import CONSTANT_ADJACENCIES from .physics import PHYSICS_ADJACENCIES
ise-uiuc/Magicoder-OSS-Instruct-75K
./bootstrap.sh --prefix=${LIB_INSTALL_DIR} #./bootstrap.sh --show-libraries
ise-uiuc/Magicoder-OSS-Instruct-75K
package_with_utils(src='.', dest=job_dir) task_info = bolt.submit(new_config, tar=str(job_dir), interactive=args.interactive, exclude=['submit.py']) print(simcloud_good_citizen_reminder()) if __name__ == '__main__': main()
ise-uiuc/Magicoder-OSS-Instruct-75K
// TargetView.LoadData(TargetView.DocList)
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Torch " + torch.__version__) print("OpenCV " + cv2.__version__) print("GDAL " + rasterio._base.gdal_version()) print("Cuda " + torch.version.cuda) print("Cudnn " + str(torch.backends.cudnn.version())) print("========================================") print("CPUs " + str(os.cpu_count())) print("GPUs " + str(torch.cuda.device_count())) for i in range(torch.cuda.device_count()): print(" - " + torch.cuda.get_device_name(i)) print("========================================")
ise-uiuc/Magicoder-OSS-Instruct-75K
* Microchip DAC library. This works with the MCP4822 chip and * similar chips that work with the same protocol. */ #include <Arduino.h>
ise-uiuc/Magicoder-OSS-Instruct-75K
Default is ``0.001``. The larger the randomness value, the more exploration of the partition space is possible. This is a major difference from the Louvain algorithm, which is purely greedy in the partition exploration. use_modularity : bool Default is ``True``. If ``False``, will use a Constant Potts Model (CPM). random_seed : Optional[int] Default is ``None``. Can provide an optional seed to the PRNG used in Leiden for deterministic output.
ise-uiuc/Magicoder-OSS-Instruct-75K
#### JOB IS DONE WE PUT THINGS IN PLACE AND CLEAN AUP
ise-uiuc/Magicoder-OSS-Instruct-75K
a.matrix=np.array([0]) #free up some memory
ise-uiuc/Magicoder-OSS-Instruct-75K
import utils GPIO.setmode(GPIO.BOARD) last = utils.Load() while(1): try: last.store(1) except: pass
ise-uiuc/Magicoder-OSS-Instruct-75K
configuration connected to the prometheus metrics """
ise-uiuc/Magicoder-OSS-Instruct-75K
elif score < 80: grade = 'C+' elif score < 87: grade = 'B' elif score < 90: grade = 'B+' elif score < 97: grade = 'A' else: grade = 'A+' print(name + ' ' + grade) if __name__ == '__main__': main()
ise-uiuc/Magicoder-OSS-Instruct-75K
'key': 'draughtcraft', 'type': 'cookie', 'validate_key': '{{ session_key }}', '__force_dict__': True } cache = { 'key': 'resources_to_compile', 'data_backend': FileSystemResourceCache, '__force_dict__': True } postmark = { 'api_key': '{{ postmark_api_key }}' }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.W = np.zeros((n, n), dtype=float) self.b = np.zeros(n, dtype=float) def u(self, r, x, dt): ked = self.k*(r - x)*dt self.W += np.outer(ked, x) self.b += ked return self.W.dot(x) + self.b ##################################################
ise-uiuc/Magicoder-OSS-Instruct-75K
#cp dist/webpack-dev-server.js ../coldbreeze/bp-web2/app/assets/js/ang2/webpack-dev-server.js cp dist/polyfills.bundle.js ../coldbreeze/bp-web2/app/assets/js/ang2/polyfills.bundle.js cp dist/vendor.bundle.js ../coldbreeze/bp-web2/app/assets/js/ang2/vendor.bundle.js cp dist/main.bundle.js ../coldbreeze/bp-web2/app/assets/js/ang2/main.bundle.js
ise-uiuc/Magicoder-OSS-Instruct-75K
By catching this exception type, you catch all exceptions that are
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo weave run 10.0.100.2/24 -itd -e WORDPRESS_DB_HOST=10.0.100.1 -e WORDPRESS_DB_PASSWORD=<PASSWORD> -p 8080:80 wordpress
ise-uiuc/Magicoder-OSS-Instruct-75K
import time f = open('testlist.csv','w') for x in range(100): f.write(str(time.clock())) f.write("\n")
ise-uiuc/Magicoder-OSS-Instruct-75K
from visuanalytics.analytics.control.procedures.step_data import StepData from visuanalytics.analytics.transform.transform import transform def prepare_test(values: list, data, expected_data: dict, config=None): if config is None: config = {} step_data = StepData(config, "0", 0) step_data.insert_data("_req", data, {}) transform({"transform": values}, step_data)
ise-uiuc/Magicoder-OSS-Instruct-75K
| grep --color -i -e error -e warn -e version
ise-uiuc/Magicoder-OSS-Instruct-75K
system_label.grid(row=0,column=1) copy_button.grid(row=0,column=3) top_frame.grid(row=0) bottom_frame.grid(row=2) scroll_bar = tk.Scrollbar(bottom_frame)
ise-uiuc/Magicoder-OSS-Instruct-75K
->leftJoin('manufacturer', 'company.user_id', '=', 'manufacturer.user_id') ->select('manufacturer.month_payment')->sum('manufacturer.month_payment'); return $totalPayments; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return pandas.read_excel(excel_file, sheetname) except: return None
ise-uiuc/Magicoder-OSS-Instruct-75K
@app.route('/drop-session') def drop_session(): session.pop('mode', None) return redirect(url_for('index'))
ise-uiuc/Magicoder-OSS-Instruct-75K
"topics": stored_settings.get('samsa', 'topics'), "polling_freq": stored_settings.getint('samsa', 'polling_freq'), "max_history": stored_settings.getint('samsa', 'max_history'), "view_mode": stored_settings.get('samsa', 'view_mode') }
ise-uiuc/Magicoder-OSS-Instruct-75K
from environment import TestEnv np.set_printoptions(precision=2, suppress=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
} ngOnInit(): void { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} int result = 0; for(int i = 0; i < N; i++) { dp[i] = 1;
ise-uiuc/Magicoder-OSS-Instruct-75K
} template<class Func> constexpr auto make_TaskType() { return TaskType<bool, true, ExternalFunctorObjectToBeCached::no, Func>(); } template<typename T, std::conditional_t<std::is_class<T>::value, T&, T> val, class Func> constexpr auto make_TaskType(Func&& func) {
ise-uiuc/Magicoder-OSS-Instruct-75K
gold_file=${LEMMA_DATA_DIR}/${short}.test.gold.conllu results_dir=${RESULTS_DIR}/${treebank} echo "Running systems ranking with $args..." python -m lexenlem.utils.paired_bootstrap --gold_file $gold_file --systems $results_dir $args
ise-uiuc/Magicoder-OSS-Instruct-75K
repos = [] for date in date_list: yestarday = date - datetime.timedelta(days=7) payload = { 'q': query + " sort:updated" + " created:%d-%02d-%02d..%d-%02d-%02d" % (yestarday.year, yestarday.month, yestarday.day, date.year, date.month, date.day)}
ise-uiuc/Magicoder-OSS-Instruct-75K
// OK #else # error "Not an ARM architecture" #endif int main() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
def compute_cost(self, theta, classIndex): y = self.get_labeled_set(classIndex) distances = self.compute_distances(theta, y) costMatrix = np.power(distances, 2) cost = (1 / (2 * float(self.m))) * np.sum(costMatrix) if (self.lambdaRate > 0.0): cost = self.regularize_cost(cost, theta) return cost
ise-uiuc/Magicoder-OSS-Instruct-75K
long_description=open("README").read(), install_requires=[ "pandas==1.0.1" ] )
ise-uiuc/Magicoder-OSS-Instruct-75K
def f(workdir=None): if workdir is None: workdir = os.getcwd() else: workdir = str(workdir) if not os.path.exists(os.path.join(workdir, "no.txt")): with open(os.path.join(workdir, "yes.txt"), "w") as f: f.write("42")
ise-uiuc/Magicoder-OSS-Instruct-75K
{ rholang.parsing.delimc.Absyn.Expr RESULT = null; rholang.parsing.delimc.Absyn.Tuple p_1 = (rholang.parsing.delimc.Absyn.Tuple)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;
ise-uiuc/Magicoder-OSS-Instruct-75K
activeStreams.assertNoActiveStreams(); // state machine check stateAssert.isTerminated(); } @ParameterizedTest @ValueSource(strings = {"inbound", "outbound"}) public void errorShouldTerminateExecution(String terminationMode) { final TestRequesterResponderSupport activeStreams = TestRequesterResponderSupport.client(); final LeaksTrackingByteBufAllocator allocator = activeStreams.getAllocator(); final TestDuplexConnection sender = activeStreams.getDuplexConnection(); final TestPublisher<Payload> publisher = TestPublisher.create();
ise-uiuc/Magicoder-OSS-Instruct-75K
WriteLine(sumCircles(5)); WriteLine(sumSquares(5)); } static double sumCircles(double depth) { if (depth == 0) return 1;
ise-uiuc/Magicoder-OSS-Instruct-75K
name = ''.join(list_name) illegal_char_index = name.find("@") # print name
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Created by user143116 on 10/15/18. // Copyright © 2018 MSU. All rights reserved. // import UIKit
ise-uiuc/Magicoder-OSS-Instruct-75K
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. }
ise-uiuc/Magicoder-OSS-Instruct-75K
This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable,
ise-uiuc/Magicoder-OSS-Instruct-75K
('gpu', True),
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.slf4j.LoggerFactory; import org.springframework.http.ResponseEntity; import org.springframework.http.converter.HttpMessageNotReadableException; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.context.request.NativeWebRequest; import org.zalando.nakadi.exceptions.IllegalClientIdException; import org.zalando.nakadi.exceptions.NakadiException;
ise-uiuc/Magicoder-OSS-Instruct-75K
export function refreshDiagnostics(document: TextDocument): void { // Check if the user specified not to enable the linter for this file. const range = new Range(0, 0, 1, 0); const text = document.getText(range);
ise-uiuc/Magicoder-OSS-Instruct-75K
<FeedOptionGroup /> </FeedSelector> } > {stories.map((post, idx) => <li key={post.id}> <FeedItem id={post.id}
ise-uiuc/Magicoder-OSS-Instruct-75K
] operations = [ migrations.RunPython(make_permissions, reverse_code=lambda *args, **kwargs: True) ]
ise-uiuc/Magicoder-OSS-Instruct-75K
[ -f /usr/obj/${PROJECT}.${ARCH}/$i ] && mv /usr/obj/${PROJECT}.${ARCH}/$i ${IMAGES_DIR}/bisec.log.$i.${SVN_REV} done mv ${IMAGES_DIR}/bisec.log ${IMAGES_DIR}/bisec.log.${SVN_REV} continue fi mv /usr/obj/${PROJECT}.${ARCH}/BSDRP-${SVN_REV}* ${IMAGES_DIR} echo "done" done echo "All images were put in ${IMAGES_DIR}"
ise-uiuc/Magicoder-OSS-Instruct-75K
} fn write_file(&self, path: &Path, data: &[u8]) -> Result<()> { debug!("Writing file: {:?}", path); let mut data_vec = Vec::new(); data_vec.extend_from_slice(data); self.master_interface .upload_file_chunk(&path.to_string_lossy(), 0, data_vec) .chain_err(|| "Error writing file") } fn get_local_file(&self, path: &Path) -> Result<PathBuf> { debug!("Getting local file: {:?}", path);
ise-uiuc/Magicoder-OSS-Instruct-75K
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'test.sqlite3'), }
ise-uiuc/Magicoder-OSS-Instruct-75K
} } reader.Close(); if ((lineCount - 1) != psms.Count) { warnings.Add("Warning: " + ((lineCount - 1) - psms.Count) + " PSMs were not read."); }
ise-uiuc/Magicoder-OSS-Instruct-75K
use std::path::Path; use std::path::PathBuf; use std::fs; /// Using rust's built-in read_dir function, add the ability to choose to list only files of a certain type #[allow(unused)] pub fn list_all_files_with_ext<P: AsRef<Path>>(path: P, ext: &str) -> Vec<PathBuf> {
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="container"> <div class="row"> <div class="col-xl-12"> <div class="bradcam_text text-center"> <h3>Lets have a talk</h3> </div> </div> </div> </div> </div> <!-- /bradcam_area --> <!-- ================ contact section start ================= -->
ise-uiuc/Magicoder-OSS-Instruct-75K
var select_delete_file = "<?php echo _('select_delete_file'); ?>"; var notice_cascade_delete = "<?php echo _('notice_cascade_delete'); ?>";
ise-uiuc/Magicoder-OSS-Instruct-75K
aws s3 mb s3://mateusz-demo-sam-bucket # 2. package cloudformation aws cloudformation package --s3-bucket mateusz-demo-sam-bucket --template-file template.yaml --output-template-file gen/template-generated.yaml # 3. deploy cloudformation aws cloudformation deploy --template-file gen/template-generated.yaml --stack-name sam-hello-world --capabilities CAPABILITY_IAM
ise-uiuc/Magicoder-OSS-Instruct-75K
import React, { FunctionComponent } from "react" import { createStackNavigator, TransitionPresets, } from "@react-navigation/stack" import MyHealthScreen from "../MyHealth/" import SelectSymptomsScreen from "../MyHealth/SelectSymptoms" import { MyHealthStackScreens } from "./index" export type MyHealthStackParams = { MyHealth: undefined AtRiskRecommendation: undefined SelectSymptoms: { logEntry?: string } }
ise-uiuc/Magicoder-OSS-Instruct-75K
class MNISTModel: def __init__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
Expand predicates with requirements into concrete lists of predicates. This takes a permission map which contains predicates which reference other ones (using `@requires`), and converts each clause to include the parents in parent first order. This means any parent which is referred to by a predicate is executed before it, and no predicate appears more than once. """
ise-uiuc/Magicoder-OSS-Instruct-75K
posts = models.ManyToManyField(to=Post, related_name="tags") def __str__(self) -> str: """Represent the tag by its name.""" return str(self.name)
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """Weighers that weigh hosts by volume number in backends: 1. Volume Number Weigher. Weigh hosts by their volume number.
ise-uiuc/Magicoder-OSS-Instruct-75K
chainBuffer.write(block) chainBuffer.close()
ise-uiuc/Magicoder-OSS-Instruct-75K
import glob
ise-uiuc/Magicoder-OSS-Instruct-75K
// (zoom >= Config.ShowNameZoomLevel ? Name : "") + // (multiLine ? "\n" : "") + // (zoom >= Config.ShowValueZoomLevel ? (float.IsNaN(intensity) ? "-" : intensity.ToString("0.0")) : ""), // CultureInfo.CurrentCulture, // FlowDirection.LeftToRight, // TypeFace, // 14, // isDarkTheme ? Brushes.White : Brushes.Black, // 96)
ise-uiuc/Magicoder-OSS-Instruct-75K
// Don't add create and update timestamps in database. public $timestamps = false; /** * The primary key associated with the table. * * @var string */ protected $primaryKey = 'product_id'; /** * The active product */ public function product() {
ise-uiuc/Magicoder-OSS-Instruct-75K
# ################################################################################ set -eu source "$(dirname $0)/test_util.sh" # If we're runnig via Bazel, find the source files via $TEST_SRCDIR; # otherwise, default to dir of current file and search relative to that. # # Also, if we're running via Bazel, it already defines $TEST_TMPDIR which we # don't have to clean up; otherwise, create our own dir and schedule cleanup. if [ -n "${TEST_SRCDIR:-}" ]; then declare -r SRCDIR="${TEST_SRCDIR}/${TEST_WORKSPACE}" declare -r TMPDIR="${TEST_TMPDIR}"
ise-uiuc/Magicoder-OSS-Instruct-75K
} } struct MenuRow_Previews: PreviewProvider { static var previews: some View { MenuRowView(row: rowData[0]) } }
ise-uiuc/Magicoder-OSS-Instruct-75K