seed
stringlengths
1
14k
source
stringclasses
2 values
) __all__ = [ 'create_regressor_workflow', 'create_nuisance_regression_workflow', 'filtering_bold_and_regressors', 'find_offending_time_points', 'temporal_variance_mask', 'generate_summarize_tissue_mask', 'bandpass_voxels', 'cosine_filter' ]
ise-uiuc/Magicoder-OSS-Instruct-75K
public function all() { return $this->model->all(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { Article article = new Article(); Elements title = e.getElementsByTag("a"); if (title.isEmpty()) { continue; } article.setTitle(title.get(0).text()); Elements span = e.getElementsByTag...
ise-uiuc/Magicoder-OSS-Instruct-75K
now = datetime.datetime.now() print(f"The time right now is {now}")
ise-uiuc/Magicoder-OSS-Instruct-75K
fatalError("init(coder:) has not been implemented") } deinit { NotificationCenter.default.removeObserver(self) } } extension ReplyViewController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) didReceivePaletteChangeNotification(nil)
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public int hashCode() { int hash = 0; hash += (idcity != null ? idcity.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instan...
ise-uiuc/Magicoder-OSS-Instruct-75K
class Pet(BaseModel): id: int name: str tag: Optional[str] = None kind: Optional[Kind] = None type: Optional[Literal['animal']] = None
ise-uiuc/Magicoder-OSS-Instruct-75K
def __str__(self): return self.email
ise-uiuc/Magicoder-OSS-Instruct-75K
} } $article_hot_comment = $model_article->getList(array('article_state'=>self::ARTICLE_STATE_PUBLISHED), null, 'article_comment_count desc', '*', 10); Tpl::output('hot_comment', $article_hot_comment);
ise-uiuc/Magicoder-OSS-Instruct-75K
supported_entity: str = "IP_ADDRESS", ): patterns = patterns if patterns else self.PATTERNS context = context if context else self.CONTEXT super().__init__( supported_entity=supported_entity, patterns=patterns, context=context, supporte...
ise-uiuc/Magicoder-OSS-Instruct-75K
->changeColumn('assigned_at', 'datetime', ['null' => true, 'after' => 'is_paid']) ->update(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
FSL_TEST_FUNCTION(not_implemented) { FSL_CHECK_EXCEPTION( throw fostlib::exceptions::not_implemented( "Not implemented exception thrown"), fostlib::exceptions::not_implemented &); FSL_CHECK_EXCEPTION( throw fostlib::exceptions::not_implemented( ...
ise-uiuc/Magicoder-OSS-Instruct-75K
fn main() { let table1 = [ ("Jonah", 27),
ise-uiuc/Magicoder-OSS-Instruct-75K
smask = target.mask * ref.mask bmask = np.ones(smask.shape, dtype=bool)
ise-uiuc/Magicoder-OSS-Instruct-75K
import argparse
ise-uiuc/Magicoder-OSS-Instruct-75K
"$PYTHON" setup.py install --single-version-externally-managed --record=/tmp/record.txt
ise-uiuc/Magicoder-OSS-Instruct-75K
public void setCodigo(String codigo) { this.codigo = codigo; } public String getNombre() { return nombre;
ise-uiuc/Magicoder-OSS-Instruct-75K
FunctionGroup::overloads_iterator FunctionGroup::overloads_begin() const { return mOverloads.begin(); } FunctionGroup::overloads_iterator FunctionGroup::overloads_end() const { return mOverloads.end();
ise-uiuc/Magicoder-OSS-Instruct-75K
content: any = {}; opened: Boolean = false; id: string;
ise-uiuc/Magicoder-OSS-Instruct-75K
<link rel="stylesheet" href="../stylesheets/app.css"> <link rel="icon" href="../favicon.ico" type="image/x-icon"> <script src="../javascripts/modernizr.foundation.js"></script> <!-- IE Fix for HTML5 Tags --> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from Cython.Build import cythonize setup(ext_modules=cythonize("sieve_module.py"))
ise-uiuc/Magicoder-OSS-Instruct-75K
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\mfapi.h(1674,9)
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 pub(crate) mod token_utils;
ise-uiuc/Magicoder-OSS-Instruct-75K
__version__ = '5.0.2'
ise-uiuc/Magicoder-OSS-Instruct-75K
cap=cv2.VideoCapture(1) while True: _,frame=cap.read() hsv=cv2.cvtColor(frame,cv2.COLOR_BGR2HSV) #hsv hue sat value lower_red=np.array([0,0,0]) upper_red=np.array([255,255,255]) mask=cv2.inRange(hsv,lower_red,upper_red) res=cv2.bitwise_and(frame,mask=mask)
ise-uiuc/Magicoder-OSS-Instruct-75K
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import unittest from algocli import algocli from algocli import util class TestAlgocli(unittest.TestCase): #def setUp(self): # self.args = { # 'input': None, # 'version': False, # 'list_colors': False,
ise-uiuc/Magicoder-OSS-Instruct-75K
@IBOutlet var button: UIButton! @IBOutlet var img: UIImageView! var imgString = "" var index = 0 var finished = false override func viewDidLoad() { super.viewDidLoad() img.image = UIImage.init(named: imgString) if(imgString == "t6"){ finished = true
ise-uiuc/Magicoder-OSS-Instruct-75K
p.negate() with f(t, p) as q: save(q, f)
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Validates the request with the `rules` array method if it exists. */ private function validateRequest(Request $request): void { $rules = $this->rules(); if (!isset($rules)) { return; }
ise-uiuc/Magicoder-OSS-Instruct-75K
"name": "West Oakland",
ise-uiuc/Magicoder-OSS-Instruct-75K
return ( <Svg width={size} height={size} viewBox="0 0 24 24" fill="none"> <Path d="M11.592 4.548V16.98h.816V4.548c.768.768 1.56 1.56 2.304 2.328l2.232 2.232.552-.552L12 3.06 6.504 8.556l.552.552 2.232-2.232 2.304-2.328zM3.6 20.94h16.8v-.84H3.6v.84z" fill={color} /> </Svg> ); }
ise-uiuc/Magicoder-OSS-Instruct-75K
def run_command(cmd, var, result): try: output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True).decode("utf-8") output = output.strip().replace(',','') result[var] = float(output) if output != "" else output except:
ise-uiuc/Magicoder-OSS-Instruct-75K
from fastapi import HTTPException def is_higher_role(role1, role2): roles = {} roles["admin"] = 10 roles["moderator"] = 5 roles["player"] = 1 roles["guest"] = 0 if role1 not in roles:
ise-uiuc/Magicoder-OSS-Instruct-75K
shared_items = {k: result_mongo[k] for k in result_mongo if k in result_python and result_mongo[k] == result_python[k]} assert len(shared_items) == len(result_mongo)
ise-uiuc/Magicoder-OSS-Instruct-75K
X, y = check_X_y(X, y) self.voter = keras.Sequential() self.voter.add( layers.Dense( 1, activation="linear", input_shape=(X.shape[1],), name="transform_to_vote", ) )
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/sh java -Dspring.profiles.active=test -jar build/libs/content-uauth-service-1.0-SNAPSHOT.jar > /dev/null 2>&1 &
ise-uiuc/Magicoder-OSS-Instruct-75K
except ValueError: _LOG.info('failed to get version from %s', path, exc_info=True) def test_query_git_repo(self): self._check_examples_count('git repo', GIT_REPO_EXAMPLES) self._query_test_case(GIT_REPO_EXAMPLES, query_git_repo) def test_predict_caller_bad(s...
ise-uiuc/Magicoder-OSS-Instruct-75K
if not value: nums[zero] = 0 zero += 1 elif value == 2: two += 1 for i in range(zero, len(nums)-two):
ise-uiuc/Magicoder-OSS-Instruct-75K
return new string { "General" }; } vector<ModuleId> Application::dependsOn() const { return vector<ModuleId>{}; } uint8_t Application::init() {
ise-uiuc/Magicoder-OSS-Instruct-75K
def studentnum(cls): print(Student.studentCounter) studendt1 = Student('<NAME>', '021074', 'M','Amethyst','16', '49') print(studendt1.getName()) studendt1.setName('<NAME>') print(studendt1.getName())
ise-uiuc/Magicoder-OSS-Instruct-75K
run_solvers_and_plot(solvers, rhs, T, dt, title=title, filename=filename) plt.show() raw_input()
ise-uiuc/Magicoder-OSS-Instruct-75K
continue; } notebookAccessKeys = ListNotebookKeysResult.DeserializeListNotebookKeysResult(property.Value); continue; }
ise-uiuc/Magicoder-OSS-Instruct-75K
subprocess.check_output(shlex.split(compose + ' ' + command)) @retry(tries=30, delay=3)
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.getTypedRuleContext(SygusParser.SortExprContext,0) def sortStar(self): return self.getTypedRuleContext(SygusParser.SortStarContext,0) def getRuleIndex(self): return SygusParser.RULE_sortStar
ise-uiuc/Magicoder-OSS-Instruct-75K
helpers.color( "[!] Could not read additional module source path at: " + str(sql_instance_source) ) ) script_end = " Get-SQLInstanceDomain " if username != "": script_end += " ...
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Run the database seeds. * * @return void */ public function run() { // $now = \Carbon\Carbon::now(); DB::table('items')->insert([
ise-uiuc/Magicoder-OSS-Instruct-75K
* @var integer */ private $refregirator; /** * @var integer */ private $tv; /** * @var integer */
ise-uiuc/Magicoder-OSS-Instruct-75K
<li><a href="https://examples2.ext.net/">Web Forms Examples (2.5)</a></li>
ise-uiuc/Magicoder-OSS-Instruct-75K
h = int(readline()) w = int(readline()) print((n - h + 1) * (n - w + 1))
ise-uiuc/Magicoder-OSS-Instruct-75K
__copyright__ = "Copyright 2014 <NAME>" __credits__ = ["<NAME>"] __license__ = "MIT" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" __status__ = "Development"
ise-uiuc/Magicoder-OSS-Instruct-75K
def set_flash_voltage(esp, efuses, args): sdio_force = _get_efuse(efuses, "XPD_SDIO_FORCE") sdio_tieh = _get_efuse(efuses, "XPD_SDIO_TIEH") sdio_reg = _get_efuse(efuses, "XPD_SDIO_REG")
ise-uiuc/Magicoder-OSS-Instruct-75K
@objc optional func didSelectVideo(url: URL?,imageData:Data?) @objc optional func didSelectDocumet(url: URL?,documentData:Data?) } public final class ImagePickerCollectionView: UICollectionView { var takePhoto: (() -> ())? var showCollection: (() -> ())? weak var pickerDelegate: ImagePickerResult...
ise-uiuc/Magicoder-OSS-Instruct-75K
return .flow(friendsFlow, with: FriendsStep.start)
ise-uiuc/Magicoder-OSS-Instruct-75K
curr = parent[curr] return cost, path[::-1] if __name__ == "__main__": flights = [ ("JFK", "ATL", 150), ("ATL", "SFO", 400), ("ORD", "LAX", 200), ("LAX", "DFW", 80), ("JFK", "HKG", 800), ("ATL", "ORD", 90),
ise-uiuc/Magicoder-OSS-Instruct-75K
seq.add(tmp) if fill_noise: seq.add(GenNoise(inp)) seq.add(conv(inp, conv_num, 3, pad=pad)) seq.add(normalization(conv_num)) seq.add(act())
ise-uiuc/Magicoder-OSS-Instruct-75K
} } // namespace pointcloud_preprocessor #include <rclcpp_components/register_node_macro.hpp> RCLCPP_COMPONENTS_REGISTER_NODE(pointcloud_preprocessor::VoxelGridDownsampleFilterComponent)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.saveButton = QPushButton("Save") self.saveButton.setEnabled(False) self.saveButton.setProperty('accent', True) self.saveButton.released.connect(self.saveCmd) self.mainGridLayout.addWidget(self.saveButton, self.fieldsRow, self.supplierParamsColumn + 1) self.upd...
ise-uiuc/Magicoder-OSS-Instruct-75K
wget -qO - https://evebox.org/files/GPG-KEY-evebox | apt-key add - echo "deb http://files.evebox.org/evebox/debian stable main" | \ tee /etc/apt/sources.list.d/evebox.list apt-get -y update apt-get -y install evebox evebox version
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': main(sys.argv)
ise-uiuc/Magicoder-OSS-Instruct-75K
# print(employees.values()) # new_list = list(iter(employees)) # for key, value in employees.iteritems(): # print(key,value) # print(new_list) # t = ('a', 'b', 'c', 'd') # print(t.index('c')) # print(1 > 2) # myfile = open('test_file.txt') # read = myfile.read() # print(read)
ise-uiuc/Magicoder-OSS-Instruct-75K
@Controller('customer') export class CustomerController { constructor (private readonly customerService: CustomerService ){} }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.swa_max_acc = 0.0
ise-uiuc/Magicoder-OSS-Instruct-75K
}, "required": [ "follow", "url" ] } """)
ise-uiuc/Magicoder-OSS-Instruct-75K
typedef typename meta::as_logical<sA0>::type result_type; BOOST_SIMD_FUNCTOR_CALL(1)
ise-uiuc/Magicoder-OSS-Instruct-75K
/* * MIT License * * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal
ise-uiuc/Magicoder-OSS-Instruct-75K
// //change status function // $('.status').on('click', function() { // var orderItemId = $(this).data("order_item_id"); // var itemStatus = $(this).data("item_status"); // var item_status; // if(itemStatus === "pending") { // item_status = "ongoing"; // } else if(ite...
ise-uiuc/Magicoder-OSS-Instruct-75K
$table->string('norma_relacionadas'); }); }
ise-uiuc/Magicoder-OSS-Instruct-75K
#[macro_export] macro_rules! ffi_dispatch( ($handle: ident, $func: ident, $($arg: expr),*) => ( ($handle.$func)($($arg),*)
ise-uiuc/Magicoder-OSS-Instruct-75K
inth=int(self.hashid,16) self.hashvector=[0]*vectorlength self.neighbors=[[-1,'',8888]]*max_neighbors #list of 2 element arrays of HASHID, IP ADDRESS, AND THEIR PORT self.ip=homeip self.logs='' r=0 while inth>0:
ise-uiuc/Magicoder-OSS-Instruct-75K
faces_rect = haar_cascade.detectMultiScale(gray, scaleFactor=1.1, minNeighbors=4)
ise-uiuc/Magicoder-OSS-Instruct-75K
config: RabbitFetchParams = { method: "GET" } ): Promise<T> => { const responseType: ResponseType = config.responseType ?? "json"; try { !config.suppressLoading && emitLoadingInc(); const token = localStorage.getItem("token"); let headers: { [key: string]: string } = config.headers ?? {}; if (t...
ise-uiuc/Magicoder-OSS-Instruct-75K
# empty fallback mime = inline = [] # search for PGP/MIME messages ok, res = session.uid('search', None, '(HEADER Content-Type "pgp-encrypted")') if ok == "OK": mime = res[0].decode().split() # search for inline messages (boundaries in body) ok, res = session.uid('search', None, f'...
ise-uiuc/Magicoder-OSS-Instruct-75K
from .simec import SimilarityEncoder, masked_mse, masked_binary_crossentropy, LastLayerReg from .utils import center_K
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Configure a Composable with an item and a collection of Spotable objects /// /// - parameter item: The Item struct that is Composable /// - parameter spots: A collection of Spotable objects that should be used to configure the child func configure(_ item: inout Item, compositeSpots: [CompositeSpot]?) }
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @author jetmore * @since 1.0.0 */ public class AccountClient extends ApiClient<Account, Account, Account> { /** * API endpoint for account information */ public static final String ENDPOINT = "account"; public AccountClient(ApiHandle handle) { super(handle);
ise-uiuc/Magicoder-OSS-Instruct-75K
def map_not(process): """ """ param_dict = {'y': 'bool'} return map_default(process, 'not_', 'apply', param_dict) def map_if(process):
ise-uiuc/Magicoder-OSS-Instruct-75K
fn main(){ let x:&str="Hola mundo"; let x1:String=x; println(x1); }
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <cuda/api/array.hpp> #include <cuda/api/error.hpp> #include <cuda_runtime.h> namespace cuda {
ise-uiuc/Magicoder-OSS-Instruct-75K
LOGGER.info("time in getendinstance: " + time.getTime()); return TimeUtil.getMinutes(processElement.getInputs().getInputs().get(0).getEnd(), time); } public void setDatasetInstances(String startInstance, String endInstance) { ProcessMerlin processElement = getProcessObject(); pr...
ise-uiuc/Magicoder-OSS-Instruct-75K
returnCode = subprocess.check_call(['git', 'merge', 'origin/master']) if returnCode != 0: return IRCResponse(ResponseType.Say, 'Merge after update failed, please merge manually',
ise-uiuc/Magicoder-OSS-Instruct-75K
# cd path project php artisan create:order
ise-uiuc/Magicoder-OSS-Instruct-75K
arr=[4,5,2,10,8] for i in range(len(arr)-1): if (len(stack)==0): vector.append(-1) elif (len(stack)>0 and stack[-1]<arr[i]): vector.append(stack[-1]) elif (len(stack)>0 and stack[-1]>=arr[i]): while(len(stack)>0 and stack[-1]>=arr[i]): stack.pop(-1)
ise-uiuc/Magicoder-OSS-Instruct-75K
string,
ise-uiuc/Magicoder-OSS-Instruct-75K
<td class="pt-3"> <span class="fa fa-user mr-1"></span> ` +services.firstname+` `+services.lastname+`</td> <td class="pt-3">`+services.contact+`</td> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
EMAIL_EXPIRES = 60 * 2
ise-uiuc/Magicoder-OSS-Instruct-75K
def preprocess_input ( self ) : self.h, self.w = self.X.shape grid = 8 image = np.repeat(self.X [:,:,np.newaxis], 3, axis=2) mask = np.repeat( self. mask[:,:,np.newaxis], 3, axis=2) #eventually resize the image
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "<p>"."No eres mayor de edad"."</p>"; } ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
from flask import Blueprint, render_template # from flask_login import current_user from app.services import ConfigInfo, JobHandler config_bp = Blueprint("config", __name__)
ise-uiuc/Magicoder-OSS-Instruct-75K
import android.content.Context; import android.text.format.DateFormat; public abstract class TimePrintHelper { public static String getTime(Context context, int hour, int minute){ if(DateFormat.is24HourFormat(context)){ return ((hour<10)?"0"+hour:""+hour)+" : "+((minute<10)?"0"+minute:""+minut...
ise-uiuc/Magicoder-OSS-Instruct-75K
BinaryExpression(Object, Keyword('setvariable'), Array, Nothing), BinaryExpression(Group, Keyword('setvariable'), Array, Nothing), BinaryExpression(Namespace, Keyword('setvariable'), Array, Nothing), BinaryExpression(TeamMember, Keyword('setvariable'), Array, Nothing), BinaryExpression(Task, Keyword...
ise-uiuc/Magicoder-OSS-Instruct-75K
} '
ise-uiuc/Magicoder-OSS-Instruct-75K
public ICommand Command => _undoCommand; public string HeaderLanguageKey => Constants.MenuItemName_Undo; public string Icon => Constants.MenuItemIcon_Undo; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
InjectFreshEvent(session, kFakeCompositorId); EXPECT_TRUE(received_input_events.empty()); scenic::Renderer renderer(&session); BlockingPresent(session); InjectFreshEvent(session, kFakeCompositorId); EXPECT_TRUE(received_input_events.empty());
ise-uiuc/Magicoder-OSS-Instruct-75K
# Then ingredients = Ingredient.objects.all().order_by('-name') serializer = IngredientSerializer(ingredients, many=True) self.assertEqual(res.status_code, status.HTTP_200_OK) self.assertEqual(res.data, serializer.data)
ise-uiuc/Magicoder-OSS-Instruct-75K
rospy.Subscriber('/cmd_vel', Twist, handle_cmd) rospy.spin()
ise-uiuc/Magicoder-OSS-Instruct-75K
constructor() { super(); this.buttons = [ new CommonButton(DAL.BUTTON_ID_UP), new CommonButton(DAL.BUTTON_ID_ENTER), new CommonButton(DAL.BUTTON_ID_DOWN), new CommonButton(DAL.BUTTON_ID_RIGHT), new CommonBut...
ise-uiuc/Magicoder-OSS-Instruct-75K
if config.host_os == 'FreeBSD': clang_msan_cflags += ["-lexecinfo", "-fPIC"] clang_msan_cxxflags = config.cxx_mode_flags + clang_msan_cflags # Flags for KMSAN invocation. This is C-only, we're not interested in C++. clang_kmsan_cflags = (["-fsanitize=kernel-memory"] + [config.target_cflags] + ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return (
ise-uiuc/Magicoder-OSS-Instruct-75K
selector : "content", template : `<h1>Content</h1>` }) export class Content {
ise-uiuc/Magicoder-OSS-Instruct-75K