seed
stringlengths
1
14k
source
stringclasses
2 values
M_s = np.amax(scoreMap, axis = 2) M_s = np.repeat(M_s[:, :, np.newaxis], band, axis=2) ##? Normalization? maxIdxMap = np.argmax(scoreMap, axis = 2) return M_s, maxIdxMap def Fun_stickPatch(maxIdxMap, M_Ref, M_s, patchSize = 3): m, n, band = M_Ref.shape
ise-uiuc/Magicoder-OSS-Instruct-75K
mod romanian_test { use super::super::romanian_count;
ise-uiuc/Magicoder-OSS-Instruct-75K
cst_index.common().member_flags().IS_OPTIONAL(false); cst_index.common().member_flags().IS_MUST_UNDERSTAND(false); cst_index.common().member_flags().IS_KEY(false); cst_index.common().member_flags().IS_DEFAULT(false); { std::string cppType = "uint32_t"; if (cppType == "long double") ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from utils.database import db
ise-uiuc/Magicoder-OSS-Instruct-75K
alias ddg='s --binary lynx --provider duckduckgo'
ise-uiuc/Magicoder-OSS-Instruct-75K
// HeaderView 설정 func fetchAverageCosts() { firebaseUtility.getAverageCost(productName: "gasolinCost") { (data) in self.gasolineTitleLabel.text = "휘발유" self.gasolineCostLabel.text = data["price"] as? String ?? "" if data["difference"] as? Bool ?? true { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
data = torch.save(self.data, self.pp_path) print(f'[!] save preprocessed dataset into {self.pp_path}') def collate(self, batch): assert len(batch) == 1 ids, rids, pos_w, label, text, owner = batch[0] rids = pad_sequence(rids, batch_first=True, padding_value=self.pad)...
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ interface MotivoRepository extends RepositoryInterface { // }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Simplex has to set all vertices
ise-uiuc/Magicoder-OSS-Instruct-75K
return "".join(modified)
ise-uiuc/Magicoder-OSS-Instruct-75K
systemctl daemon-reload systemctl enable puma-server.service systemctl start puma-server.service
ise-uiuc/Magicoder-OSS-Instruct-75K
} return buffer.toString(); } public String getTradeRecordType() { return config.getString(PropertyConstants.TRADE_RECORD_TYPE); } public String getTradeDayType() { return config.getString(PropertyConstants.TRADE_DAY_TYPE); } /** * *...
ise-uiuc/Magicoder-OSS-Instruct-75K
reportServiceContext.SetupGet(c => c.Ukprn).Returns(ukprn); reportServiceContext.SetupGet(c => c.CollectionYear).Returns(academicYear); reportServiceContext.SetupGet(c => c.Container).Returns(container); reportServiceContext.SetupGet(c => c.ReturnPeriod).Returns(returnPer...
ise-uiuc/Magicoder-OSS-Instruct-75K
{ if (rb2d.position.y >= maxHeight) { movingUp = false; } if (rb2d.position.y <= -maxHeight) { movingUp = true; } if (movingUp) { //rb2d.velocity = Vector2.up * moveRate; rb2d.velocity = new Vector2(worldMove, mo...
ise-uiuc/Magicoder-OSS-Instruct-75K
class SpriteUtils: @staticmethod def get_closet_enemy(x, y, max_radius, sprites: [pygame.sprite.Sprite], metric_func): radius_sprites = list( filter(lambda pos: distance((x, y), (pos.rect.centerx, pos.rect.centery)) <= max_radius, sprites)) if radius_sprites:
ise-uiuc/Magicoder-OSS-Instruct-75K
} for (int i = 0; i < lefts.size(); i++) { final int comparison = lefts.get(i).compareTo(rights.get(i)); if (comparison != 0) { return comparison; } } return 0; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
@router.get('/') def getProfiles():
ise-uiuc/Magicoder-OSS-Instruct-75K
board.get_tile("G", 5).set_color(TileColor.WHITE) board.get_tile("J", 1).set_color(TileColor.WHITE)
ise-uiuc/Magicoder-OSS-Instruct-75K
} function useTime() { return use<TimeType>(TimeSymbol); }
ise-uiuc/Magicoder-OSS-Instruct-75K
}; type Props = { isPreview?: boolean; };
ise-uiuc/Magicoder-OSS-Instruct-75K
ret = default_value else: ret = default_value return ret def get_uuid(): return str(uuid.uuid4())
ise-uiuc/Magicoder-OSS-Instruct-75K
#[no_coverage] pub fn add_to_output_corpus(&self, path: &Path, name: String, content: Vec<u8>, extension: &str) -> Result<()> { if self.settings.corpus_out.is_none() { return Ok(()); } let folder = self.settings.corpus_out.as_ref().unwrap().join(path); if !folder.is_...
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.CreateModel( name='GoodsQuery',
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy;
ise-uiuc/Magicoder-OSS-Instruct-75K
# Only the best and worst classifier outputs are displayed. # ''' # # # Decision tree # # classifier = tree.DecisionTreeClassifier() # # run(classifier, "Decision tree") # # # Random forest classifier (low accuracy) # # classifier = RandomForestClassifier() # # run(classifier, "Random fo...
ise-uiuc/Magicoder-OSS-Instruct-75K
''' Required for tests to recognize folder and perform tests. '''
ise-uiuc/Magicoder-OSS-Instruct-75K
from gssl.datasets import load_dataset from gssl.inductive.datasets import load_ppi from gssl.utils import seed
ise-uiuc/Magicoder-OSS-Instruct-75K
let l = &bb.liveness_ref(); !l.live_in.contains(&copy_dst) && !l.live_out.contains(&copy_dst) && !l.live_in.contains(&copy_src) && !l.live_out.contains(&copy_src) }; if !can_elimin...
ise-uiuc/Magicoder-OSS-Instruct-75K
# psi is real so far, convert it to complex: psi = np.array(psi, dtype=complex)
ise-uiuc/Magicoder-OSS-Instruct-75K
const { inputRef, onChange, MaskProps, ...other } = props; const { formattedValue, ...others } = MaskProps; return ( <IMask {...other} inputRef={inputRef} onAccept={(value, mask) => { onChange({ target: { name: props.name, value: formattedValue ? mas...
ise-uiuc/Magicoder-OSS-Instruct-75K
// right if(x != N-1 && sol.isValid(x+1, y)) operator()(c, x+1, y) += prob * probRight; else operator()(c, x, y) += prob * probRight; // up if(y != 0 && sol.isValid(x, y-1)) operator()(c, x, y-1) += prob * probUp; else opera...
ise-uiuc/Magicoder-OSS-Instruct-75K
import argparse import os import random from typing import Dict, Tuple, List, Any, Callable def lazy_nonparse(text: str): for sentence in text.split("\n\n"): if sentence:
ise-uiuc/Magicoder-OSS-Instruct-75K
apt-get install -y nodejs vsftpd openssh-server echo MegaMaxCorpInc server booted. Please login to our intranet website at address \\4 | tee /etc/issue mkdir /srv/hackerman/ chown -R hackerman:root /srv/hackerman/ chmod 775 /srv/hackerman/ cp -R challenges/challenge00/ /srv/hackerman/ cp -R challenges/challenge01/ /sr...
ise-uiuc/Magicoder-OSS-Instruct-75K
Route::get('showFromNotification/{topic}/{notification}', 'TopicController@showFromNotification')->name('topics.showFromNotification'); //Comments Route::post('/comments/{topic}', 'CommentController@store')->name('comments.store'); Route::post('/mark-as-solution','TopicController@markAsSolution')->name('markAsSolutio...
ise-uiuc/Magicoder-OSS-Instruct-75K
public GroupServiceImpl(Scheduler scheduler, Validator validator,
ise-uiuc/Magicoder-OSS-Instruct-75K
libfreetype6-dev \ liblcms2-dev \ libwebp-dev \ tcl8.6-dev \ tk8.6-dev \ python3-tk \
ise-uiuc/Magicoder-OSS-Instruct-75K
import datetime import os import uuid from os.path import join as opjoin from pathlib import Path import numpy as np import requests import yaml
ise-uiuc/Magicoder-OSS-Instruct-75K
using System; namespace Discard { class Program { static void Main(string[] args) { if (bool.TryParse("TRUE", out var parsedValue)) { Console.WriteLine("Parsed"); } if (bool.TryParse("TRUE", out bool _)) { Console.WriteLine("Skipped"); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def xdc_concave(self, radius, focal_radius, ele_size): ret = self._mateng.xdc_concave(radius, focal_radius, ele_size) return ret def xdc_convex_array(self): raise NotImplementedError def xdc_convex_focused_array(self): raise NotImplementedError
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->shutdown = $handler; }); }); context('when the given debug mode is false', function () {
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './is-moment.guard'; export * from './is-null.guard';
ise-uiuc/Magicoder-OSS-Instruct-75K
this.eodSummaryMinistries = ko.observableArray([]); this.fetchingData = ko.observable<boolean>(false); } public unloadPage = () => { this.showEodReport(false); } public unloadSummaryPage = () => { this.showEodSummaryReport(false); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
] operations = [
ise-uiuc/Magicoder-OSS-Instruct-75K
# ( # acc_to_join[np.newaxis].T # ,self.ClassRecall[np.newaxis].T
ise-uiuc/Magicoder-OSS-Instruct-75K
# trbjsplit[1] = '204215091027' cur.execute(sql, trbjsplit) # print(soup.text) # print(button.text)
ise-uiuc/Magicoder-OSS-Instruct-75K
}; template <class F> struct SendFunctor { F f; SendFunctor(F&& _rf) : f{std::forward<F>(_rf)} { } void operator()(ThisT& _rthis, ReactorContext& _rctx) { if (!_rctx.error()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
XCTAssert(waitForPromises(timeout: 10)) XCTAssertEqual(count, numbers.count + 1) } func testPromiseReduceThrow() { // Arrange. var count = 0 // Act. Promise("").reduce(1, 2, 3) { partialString, nextNumber in guard partialString.isEmpty else { throw Test.Error.code42 } count += ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} /// List offerings available for purchase. public func listOfferingsPaginator( _ input: ListOfferingsRequest, on eventLoop: EventLoop? = nil, logger: Logger = AWSClient.loggingDisabled,
ise-uiuc/Magicoder-OSS-Instruct-75K
class PostData(webapp2.RequestHandler): def post(self): client_id = self.request.get('client_id') chrome_user = UserId(parent=ndb.Key("ID", client_id or "*no_id*"), content = self.request.get('client_id')) chrome_user.put()
ise-uiuc/Magicoder-OSS-Instruct-75K
echo $i dbus-send --print-reply --dest=$respuesta org.freedesktop.DBus.Properties.Set string:org.kde.kdialog.ProgressDialog string:value variant:int32:$i done dbus-send --print-reply --dest=$respuesta org.kde.kdialog.ProgressDialog.close
ise-uiuc/Magicoder-OSS-Instruct-75K
@Value("${spring.redis.cluster.nodes}") private String clusterNodes; //集群的节点 @Value("${spring.redis.cluster.max-redirects}") private Integer maxRedirectsac; /* @Value("${redis.sentinel.host1}") private String sentinelHost1; @Value("${redis.sentinel.port1}") private In...
ise-uiuc/Magicoder-OSS-Instruct-75K
original_stdout = sys.stdout init() scope = Scope() def set_verbose(status): """turns verbose flag on and off"""
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>SongRb/DeepDiveSpouseChinese #! /usr/bin/env bash
ise-uiuc/Magicoder-OSS-Instruct-75K
"add_additional_fields", "add_tags", ] def run_task(self, fw_spec): # get the database connection db_file = env_chk(self["db_file"], fw_spec) mmdb = VaspCalcDb.from_db_file(db_file, admin=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Sidekick.Core.Loggers { public class Log { public DateTime Date { get; set; } public string Message { get; set; } public LogState State { get; set; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
sio = StringIO() json.dump({}, sio) self.assertEquals(sio.getvalue(), '{}') def test_dumps(self): self.assertEquals(json.dumps({}), '{}') def test_encode_truefalse(self): self.assertEquals(json.dumps( {True: False, False: True}, sort_keys=True), ...
ise-uiuc/Magicoder-OSS-Instruct-75K
public WebViewVM() { _SlideShowTimer = new DispatcherTimer(); // インターバルを設定 _SlideShowTimer.Interval = new TimeSpan(0, 0, 1);
ise-uiuc/Magicoder-OSS-Instruct-75K
cd ${APP_DIR} \ && docker pull ${APP_DOCKER_IMAGE} \ && docker-compose stop \ && docker-compose up -d " # We use 'ssh' instead of 'doctl compute ssh' to be able to bypass key checking. ssh -i ~/.ssh/deploy_rsa -oStrictHostKeyChecking=no \ ${DIGITAL_OCEAN_USER}@${PRODUCTION_HOST} \ ${RUN_APP} if [ $?...
ise-uiuc/Magicoder-OSS-Instruct-75K
class CountryEntity(BaseEntity):
ise-uiuc/Magicoder-OSS-Instruct-75K
options={defaultFlatSelectOptions}
ise-uiuc/Magicoder-OSS-Instruct-75K
def combine(self, n, m): """ Combine n and m into n and return n """ # Copy associated moves and temporaries into n: n.temps |= m.temps n.moves.update(m.moves) # Update local temp map: for tmp in m.temps: self.temp_map[tmp] = n super().combine(n,...
ise-uiuc/Magicoder-OSS-Instruct-75K
target.policy={'parameter_protection':tmp_pol} return target
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="col-sm-2"> </div> </div><hr>'; //echo "<form method=post action='modul/act_modrealisasi.php?module=realisasi&act=addx'>"; echo "<form method=post action='modul/act_modrealisasi.php?module=realisasi&act=add'>"; ...
ise-uiuc/Magicoder-OSS-Instruct-75K
const rule = new Selector([new List([new Value('one'), new Value('two'), new Value('three')])]) const val = rule.eval(context) expect(String(val)).to.eq('one,two,three') })
ise-uiuc/Magicoder-OSS-Instruct-75K
self.root = new self.size += 1 def remove(self, data): current = self.root prev_node = None while current: if current.get_data() == data:
ise-uiuc/Magicoder-OSS-Instruct-75K
<a href="javascript:;" id="regional_stat_russia">Russia</a>
ise-uiuc/Magicoder-OSS-Instruct-75K
mel_spectro_training = joblib.load('data/mel_spectro_training.pkl') spectro_training = joblib.load('data/spectro_training.pkl') text_input_training = joblib.load('data/text_input_ml_training.pkl') vocabulary = joblib.load('data/vocabulary.pkl') model = get_tacotron_model(N_MEL, r, K1, K2, NB_CHARS_MAX, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
ProtoconfSync, ProtoconfMutation, ProtoconfMutationSync, )
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.xlabel("Time[sec]", fontsize=16) plt.ylabel("EMG", fontsize=16)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ /** * Run the migrations. * * @return void */ public function up() { Schema::create('students', function (Blueprint $table) { $table->increments('id'); $table->string("msv",10)->unique(); $table->string("name");
ise-uiuc/Magicoder-OSS-Instruct-75K
# !/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/11/20 13:34
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ void updateMovieWriterByMovieAll(@Param("movieId") Integer movieId,@Param("writerId")Integer writerId);
ise-uiuc/Magicoder-OSS-Instruct-75K
method: 'GET', }) .then(({ payload }) => expect(payload).toBe('Hallo')); }); });
ise-uiuc/Magicoder-OSS-Instruct-75K
class NumMatrix { vector<vector<int>> matrixSum; public: NumMatrix(vector<vector<int>>& matrix) : matrixSum(matrix.size()) { if (matrix.size() > 0) { const int height = matrix.size(); const int width = matrix[0].size(); for (int i = 0; i < height; i++) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def runReader(readerId, sleep): print ("Run reader#{}".format(readerId)) #concurrent mode os.system("python queue_publish_read.py -r -c -d {}".format(sleep)) #non concurrent mode # os.system("python queue_publish_read.py -r -d {}".format(sleep))
ise-uiuc/Magicoder-OSS-Instruct-75K
auxi = n;
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './adapters/index'; export * from './config/index'; export * from './tmf-appointment-models/index'; export * from './services/index'; export * from './tmf-appointment.module';
ise-uiuc/Magicoder-OSS-Instruct-75K
you should use the Status table and cntn_fk_status for status queries.""") class Status(Enum): """List of content statusses in SLims Can be used to fetch or update content Examples: >>> slims.fetch("Content", equals("cntn_status", Status.PENDING.value)) """
ise-uiuc/Magicoder-OSS-Instruct-75K
text = 'Надішліть у відповідь вашу електронну пошту, з якої ' \ 'бажаєте отримувати нові листи (тільки GMail)' # get available emails and put it in a keyboard layout await message.answer(text, reply_markup=await chat_emails_keyboard(message.chat.id)) await WatchGmail.Add.set() @dp.message_...
ise-uiuc/Magicoder-OSS-Instruct-75K
Inputs - node1: first node - node2: second node """ root1 = self.find(node1) root2 = self.find(node2) if root1 != root2: # only merge if the connected components differ if self.ranks[root1] > self.ranks[root2]: self.parents[root2] = root1 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
private final ClienteRepository clienteRepository; private final ServicoPrestadoRepository repository; private final BigDecimalConverter bigDecimalConverter;
ise-uiuc/Magicoder-OSS-Instruct-75K
} public int UpdateFrom1() { SchemaBuilder.DropTable("DownloadAsPdfSettingsPartRecord"); return 2;
ise-uiuc/Magicoder-OSS-Instruct-75K
if opt.model == 'resnet50_v2': # Use a smaller learning rate for pre-trained convolutional layers. for v in net.base_net.collect_params().values(): if 'conv' in v.name:
ise-uiuc/Magicoder-OSS-Instruct-75K
firebase deploy --only functions:"$SECOND_ARG"
ise-uiuc/Magicoder-OSS-Instruct-75K
raise e @importsizelimit.setter def importsizelimit(self, importsizelimit) :
ise-uiuc/Magicoder-OSS-Instruct-75K
gettingFile: false }, (subscribe, child) => ( <context-consumer subscribe={subscribe} renderer={child} /> ) );
ise-uiuc/Magicoder-OSS-Instruct-75K
for idx, row in sheet_data.iterrows(): # Checks metadata info matches the validator options # Need to track specific rows/cells to make the chec if idx == 6: test_attack_version, test_attack_version_value = row[3], row[5] assert "ATT&CK version" == test_attack_version...
ise-uiuc/Magicoder-OSS-Instruct-75K
class AnalysisVersionSchema(SQLAlchemyAutoSchema): class Meta: model = AnalysisVersion load_instance = True class AnalysisTableSchema(SQLAlchemyAutoSchema): class Meta: model = AnalysisTable load_instance = True class CronField(fields.Field): def _deserialize(self, value...
ise-uiuc/Magicoder-OSS-Instruct-75K
2. a presentation-ready figure on a black background Four steps are involved in each figure:
ise-uiuc/Magicoder-OSS-Instruct-75K
cv2.imwrite(res_path_geo, prob_arr) if __name__ == "__main__": root = '/results' merge_tiffs(os.path.join(root, '2m_4fold_512_30e_d0.2_g0.2_test'))
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual([], ss.absorbing()) expected = [2.213, 2.250] for e,a in zip(expected, ss.steady_state_delays()): self.assertAlmostEqual(e, a, 3) if __name__ == '__main__': unittest.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
} [Theory] [MemberData(nameof(InvalidValues))] public void ConvertFromInvariantString_InvalidValue_ThrowException(string value) {
ise-uiuc/Magicoder-OSS-Instruct-75K
case settings case lock //case buy var title: String { switch self { case .security: return S.MenuButton.security //case .support: // return S.MenuButton.support case .settings: return S.MenuButton.settings case .lock:
ise-uiuc/Magicoder-OSS-Instruct-75K
if l_type in ('expanded_conv',): assert None not in (expand, ks, stride, id_skip) infos += ['expand:%d' % expand, 'kernel:%d' % ks, 'stride:%d' % stride, 'idskip:%d' % id_skip] key = '-'.join(infos) return self.lut[key]['mean'] def predict_network_latency(self, net, image_size=224): predicted_latency = ...
ise-uiuc/Magicoder-OSS-Instruct-75K
for j in range(MedicalExample.MedShkDstn[0].pmf.size): MedShk = MedicalExample.MedShkDstn[0].X[j] * np.ones_like(M) Sav = ( M_temp - MedicalExample.solution[0].cFunc(M_temp, P, MedShk) - MedicalExample.MedPrice[0] * MedicalExample.solution[0].MedFunc(M_temp, P, MedShk) ) ...
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
ise-uiuc/Magicoder-OSS-Instruct-75K
GermanyItemView() .padding(.horizontal, 10) GermanyVaccinatedView() .padding(.horizontal, 10) GermanyBedsItemView(...
ise-uiuc/Magicoder-OSS-Instruct-75K
ip_addr = '192.168.1.1' #check it with boolean:(True) ip_addr == '192.168.1.1' #(false) ip_addr == '10.1.1.1' #is this substring in this variable? '192.168' in ip_addr '1.1' in ip_addr '15.1' not in ip_addr
ise-uiuc/Magicoder-OSS-Instruct-75K
path = os.path.join(dump, path) else: file_name = path path = dump if not os.path.exists(path): os.makedirs(path) if not file_name.endswith('.xml'): file_name += '.xml' ...
ise-uiuc/Magicoder-OSS-Instruct-75K
forecast_out = int(math.ceil(0.01 * len(df))) print(forecast_out)
ise-uiuc/Magicoder-OSS-Instruct-75K