seed
stringlengths
1
14k
source
stringclasses
2 values
else: dot.edge(from_class, to_class) _file.close() def addLegend(self, dot, template=_legend): subdot = Digraph('legend', node_attr={'shape': 'plaintext'}) subdot.node('_legend', template)
ise-uiuc/Magicoder-OSS-Instruct-75K
platforms: [.iOS(.v11)], products: [ .library(name: "FluentDarkModeKit", targets: [ "DarkModeCore", "FluentDarkModeKit", ]) ], targets: [ .target(name: "DarkModeCore", cSettings: [.define("SWIFT_PACKAGE")]), .target(name: "FluentDarkModeKit", depen...
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App\Repositories; use Prettus\Repository\Eloquent\BaseRepository; use Prettus\Repository\Criteria\RequestCriteria; use App\Repositories\ComorbidadeRepository; use App\Entities\Comorbidade; use App\Validators\ComorbidadeValidator; /** * Class ComorbidadeRepositoryEloquent. *
ise-uiuc/Magicoder-OSS-Instruct-75K
import Accelerate import BrainCore import Upsurge
ise-uiuc/Magicoder-OSS-Instruct-75K
for host in hosts: with gNMIclient(target=(host["ip_address"], host["port"]), username=host["username"], password=host["password"], insecure=True) as gc: result = gc.get(path=paths, encoding='json') print(f"{host['ip_address']}: {result}\n\n")
ise-uiuc/Magicoder-OSS-Instruct-75K
sources = read_dataset_metadata(dataset_folder)["sources"] def compute_clim_im(source_name): path = os.path.join( dataset_folder, sources[source_name]["image"]["imageData"]["ome.zarr"]["relativePath"] )
ise-uiuc/Magicoder-OSS-Instruct-75K
@Target({java.lang.annotation.ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) public @interface StorageReference { boolean mapKey() default true; boolean mapValue() default false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
m["itertools_01"] = itertools01.go
ise-uiuc/Magicoder-OSS-Instruct-75K
'story': 15, 'regimen': 16, 'essay': 17} config.id2category = {index: label for label, index in config.category2id.items()} return config
ise-uiuc/Magicoder-OSS-Instruct-75K
assert p1 != p2 def test_namespaces(): p1 = DataPack() p2 = DataPack() assert p1 == p2
ise-uiuc/Magicoder-OSS-Instruct-75K
#ifdef CLASS_TEST ci("3: class : %f", stats[idx++].getMedian()); #endif #ifdef CLASS_PRECOMP_TEST ci("4: precomp : %f", stats[idx++].getMedian()); #endif #ifdef CLASS_COLORPARALLEL_TEST ci("5: colorPara: %f", stats[idx++].getMedian()); #endif #ifdef FAST_TEST ci("6: fast : %f", stats[idx++].getMedia...
ise-uiuc/Magicoder-OSS-Instruct-75K
header=( 'ply\nformat ascii 1.0\nelement vertex {:d}\nproperty float x\nproperty float y\nproperty float z\nproperty uchar red\nproperty uchar green\nproperty uchar blue\nproperty float prob\nend_header').format( points.shape[0]) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
traj = mda.Universe(args.parm, args.crd, in_memory=True, in_memory_step=args.step_size) fh_dist_base = Calc_FH_Dists(traj, dist=3).run() """ For each distance value, calculate the R1 and R2 value. """ # TODO: update to ndarrays, maybe make into function, seperate script? # test speed and o...
ise-uiuc/Magicoder-OSS-Instruct-75K
po_pw_list = [process_line(l) for l in input_file]
ise-uiuc/Magicoder-OSS-Instruct-75K
'Development Status :: 4 - Beta', 'Environment :: Other Environment',
ise-uiuc/Magicoder-OSS-Instruct-75K
print "-p : Post Backup handling -m <mount_points>" print "-v : <backup_id> Verify from backup"
ise-uiuc/Magicoder-OSS-Instruct-75K
void setParent(Node *theParent) { parent = theParent; parent->children.push_back(this); } }; void set_kernel_stack_size(); int findMaxHeight(std::vector<Node>& nodes); #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
self._read("2. Multiply Array\n") self._read("3. Try Insertion Sort\n") self._read("4. Try Selection Sort\n") self._read("5. Try Heap Sort\n") self._read("6. Try Merge Sort\n") self._read("7. Reprint Array\n") self._read("0. Exit\n") self._read(" -----\n...
ise-uiuc/Magicoder-OSS-Instruct-75K
static void clean(); //! 通知をシステムにセットします。
ise-uiuc/Magicoder-OSS-Instruct-75K
''' Z argumetu funkce si přečtu nejprve všechny argumenty a pak se rozhoduji. nejprve provedu funkci "all_subsets" a pak dle exclude_empty rozhoduji co vrátím ''' listtmp = all_subsets(list(args)) if not arg: del listtmp[0] return listtmp elif arg['exclude_empty'] == False:
ise-uiuc/Magicoder-OSS-Instruct-75K
from datasets.s3dis import S3DIS
ise-uiuc/Magicoder-OSS-Instruct-75K
# main if __name__ == "__main__": data_dict = {"sentence": [[1, 2], [2, 3], [1, 2], [2, 3]], "label": [1, 2, 1, 2],
ise-uiuc/Magicoder-OSS-Instruct-75K
$catalog_single = $this->catalog_model->read_single($id); $data = array( 'judul' => 'Catalog | Detail', 'page' => 'admin/catalog/detail', 'user' => $user, 'catalog' => $catalog_single ); $this->load->view('theme/admin/index', $data);
ise-uiuc/Magicoder-OSS-Instruct-75K
if line.var: db[line_num] = set([line.var_name]) return db def available_definitions(analysis): variables = defaultdict(set) for line in analysis.lines.values(): if line.var: variables[line.var].add(line.var_name) pb = defaultdict(set) for line_num, line in ...
ise-uiuc/Magicoder-OSS-Instruct-75K
/// public static final [TYPE_ACQUIRE_DRM_INFO_FAILED](https://developer.android.com/reference/android/drm/DrmErrorEvent.html#TYPE_ACQUIRE_DRM_INFO_FAILED) pub const TYPE_ACQUIRE_DRM_INFO_FAILED : i32 = 2008; /// public static final [TYPE_NOT_SUPPORTED](https://developer.android.com/reference/a...
ise-uiuc/Magicoder-OSS-Instruct-75K
</td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @endsection
ise-uiuc/Magicoder-OSS-Instruct-75K
bzip2 -d disttar.tar.bz2 tar -xf disttar.tar chmod +x triana.sh ./triana.sh $*
ise-uiuc/Magicoder-OSS-Instruct-75K
extension CGPoint { func rounded() -> IntPoint { return IntPoint( x: Int(x.rounded()), y: Int(y.rounded()) ) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_bakes(self) -> AsyncIterator[Bake]: return self.storage.list_bakes() async def get_bake_attempt(self, bake_id: str, *, attempt_no: int = -1) -> Attempt: return await self._storage.bake(id=bake_id).attempt(number=attempt_no).get() async def list_bakes( self, tags: A...
ise-uiuc/Magicoder-OSS-Instruct-75K
//------------------------------------------------------------------------------ namespace notifier.Properties {
ise-uiuc/Magicoder-OSS-Instruct-75K
}); } handleChangeActiveIndex = () => { this.setState({ activeIndex: 1, }); } render() { let images = [{ src: img, alt: 'lake', downloadUrl: '',
ise-uiuc/Magicoder-OSS-Instruct-75K
/** The length of the bucket in seconds. Matches the job with the longest bucket_span value. */ bucket_span: long /** If true, this is an interim result. In other words, the results are calculated based on partial input data. */ is_interim: boolean /** An array of objects that contain the max_anomaly_score pe...
ise-uiuc/Magicoder-OSS-Instruct-75K
[Required] [StringLength(maximumLength: DescriptionMaxLength, MinimumLength = DescriptionMinLength)] public string Description { get; set; } [Range(typeof(long), "1", "999999999999999")] [Display(Name = "Revenue in USD")] public long? RevenueUSD { get; set; } [...
ise-uiuc/Magicoder-OSS-Instruct-75K
def get(self, image_id:int): """ Collects all the annotations / detections for that particular image. """ return [self.annotations[x] for x in self.images[image_id]['anns']]
ise-uiuc/Magicoder-OSS-Instruct-75K
iseq(tabw(), "\n\n\n\n", "\n\n\n\n"); } #[test] fn test_empty_cell() { iseq(tabw().padding(0).minwidth(2), "\t\n", " \n"); } #[test] fn test_empty_cell_no_min() { iseq(tabw().padding(0).minwidth(0), "\t\n", "\n"); }
ise-uiuc/Magicoder-OSS-Instruct-75K
it('highest', function () { expect(ServerError(599)).toBeTrue(); });
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return view('dosen/datakampus'); } public function datakampusmahasiswa() { return view('mahasiswa/datakampus'); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
inp = input("-> ").lstrip(" ").rstrip(" "); if inp in choices: return(inp); ''' payload format:
ise-uiuc/Magicoder-OSS-Instruct-75K
return NULL; } return rgba; } void WriteEXR(const char *name, float *pixels, int xRes, int yRes) { Rgba *hrgba = new Rgba[xRes * yRes]; for (int i = 0; i < xRes * yRes; ++i) hrgba[i] = Rgba(pixels[4*i], pixels[4*i+1], pixels[4*i+2], pixels[4*i+3]); Box2i displayWindow(V2i(0,0), V2...
ise-uiuc/Magicoder-OSS-Instruct-75K
void HdRprApiFramebuffer::AttachAs(lava::Aov aov) { if (m_aov != kAovNone || aov == kAovNone) { //LAVA_ERROR_CHECK(m_context->SetAOV(m_aov, nullptr), "Failed to detach aov framebuffer"); } if (aov != kAovNone) { //LAVA_ERROR_CHECK_THROW(m_context->SetAOV(aov, m_rprFb), "Failed to attach aov...
ise-uiuc/Magicoder-OSS-Instruct-75K
export interface IBForA { getName(): string; } export interface IBForSomeOtherModule { getLastName(): string; getBirthDate(): Date; }
ise-uiuc/Magicoder-OSS-Instruct-75K
public struct HTMLSummaryRenderer: SummaryRenderer { private var tempPyFile: String = { let dirPath = NSTemporaryDirectory() return dirPath.appending("\(UUID().uuidString).py")
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>libs/ethers/src/lib/wallet/pages/wallet-no-key/wallet-no-key.component.ts import { Component, ChangeDetectionStrategy } from "@angular/core";
ise-uiuc/Magicoder-OSS-Instruct-75K
Skipped.Add(assembly.FullName); } catch (System.BadImageFormatException) { continue; } } } return null; } public override AssemblyDefinition Resolve(Assemb...
ise-uiuc/Magicoder-OSS-Instruct-75K
pending_job: Union[Unset, SherpaJobBean] = UNSET def to_dict(self) -> Dict[str, Any]:
ise-uiuc/Magicoder-OSS-Instruct-75K
public class Spider
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } res = es.indices.create(index = "raw", body = body, include_type_name =True, ignore=[400, 404]) return res def create_analysis_index():
ise-uiuc/Magicoder-OSS-Instruct-75K
logger.debug(scriptList.get(i).scriptName+" executed successfully"); } PowershellExecutionUtil.logger.debug( msg); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} export default CompetitionPageCarousel; const styles = StyleSheet.create({ carouselContainerStyle: { height: carouselHeight, width: width, justifyContent: 'space-evenly', display: 'flex', flexDirection: 'row', }, });
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestCreditCardProvider(unittest.TestCase): def setUp(self): self.fake = Faker(locale='en_US') Faker.seed(0) self.provider = self.fake.provider('faker.providers.credit_card') self.mastercard_pattern = r'^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0...
ise-uiuc/Magicoder-OSS-Instruct-75K
Ok(()) } #[cfg_attr(feature="cargo-clippy", allow(needless_return))] pub fn assert_minority_of_nodes_recovering(quorum: usize, states: &[VrState]) -> Result<(), String> { let mut recovering_count = 0; for state in states { if let VrState::Recovery(_) = *st...
ise-uiuc/Magicoder-OSS-Instruct-75K
name='dateMade', field=models.DateField(),
ise-uiuc/Magicoder-OSS-Instruct-75K
PURPLE='\033[0;35m' #version NODEJS_VERSION='10' MONGODB_VERSION='3.6' echo "***** Installing MongoDB, Express-Generator, Angular and NodeJS ********"
ise-uiuc/Magicoder-OSS-Instruct-75K
logger.info("Finish all the images.") logger.info("Elapsed time: {:.3f}s".format(time.time() - start))
ise-uiuc/Magicoder-OSS-Instruct-75K
self.parsed = False else: msg = 'Invalid as boolean: %s' % given raise ValueError(msg) def __bool__(self): return self.parsed
ise-uiuc/Magicoder-OSS-Instruct-75K
AMLMapView(mapState: mapState) .edgesIgnoringSafeArea(.all) }
ise-uiuc/Magicoder-OSS-Instruct-75K
# augmentation h.input_rand_hflip = True h.train_scale_min = 0.1 h.train_scale_max = 2.0
ise-uiuc/Magicoder-OSS-Instruct-75K
else: mask = torch.ones_like(self.targets).bool() self.task_ids = torch.masked_select(torch.arange(self.targets.size(0)), mask) def __getitem__(self, index):
ise-uiuc/Magicoder-OSS-Instruct-75K
?> <div class="container order my-4"> <div class="row align-items-center"> <div class="col-sm-10"> <h4>Order detail</h4> <table class="w-100">
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <summary> /// 将对象转换为实体代理 /// </summary> /// <returns>实体代理</returns>
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo apt-get -y install vivacious-colors-gtk-dark sudo apt-get -y install vivacious-colors-gtk-light
ise-uiuc/Magicoder-OSS-Instruct-75K
medium_solved = "" for el in medium: medium_solved += "{}, ".format(el) readme.write(medium_solved[:-2] + '\n')
ise-uiuc/Magicoder-OSS-Instruct-75K
transform="translate(40.000000, 15.000000)" > <g id="Raido"> <mask id="mask-2" fill="white">
ise-uiuc/Magicoder-OSS-Instruct-75K
<< endl; } } } return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
else: self._colors.appendleft(color) self._colors.appendleft(color)
ise-uiuc/Magicoder-OSS-Instruct-75K
setup( name='django-render-url', version='0.11', packages=find_packages(), author='<NAME>', author_email='<EMAIL>', url='https://github.com/wangtai/django_render', description='a very light django plugin', long_description=long_description, licens...
ise-uiuc/Magicoder-OSS-Instruct-75K
cells.push( new vscode.NotebookCellData( 1, `## ![Icon](${SMALL_ICON_URL})&nbsp;&nbsp; CodeTour (${tour.title}) - ${ steps.length } steps\n\n${tour.description === undefined ? "" : tour.description}`, "markdown" ) ); steps.forEach((step, index) => { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
int inputNumber, inputNumberCopy; for(int i = 0; i < testCases; i++) { inputNumber = scanner.nextInt(); inputNumberCopy = inputNumber; for(int x = 0; x < inputNumber; x++) { total = inputNumberCopy * --inputNumberCopy; } System....
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Acme.HelpDesk.Tags { public class EfCoreTagRepository : EfCoreRepository<HelpDeskDbContext, Tag, Guid>, ITagRepository { public EfCoreTagRepository(IDbContextProvider<HelpDeskDbContext> dbContextProvider) : base(dbContextProvider) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
print(data.resultados()[0]['logradouroDNEC']) print(data.resultados()[0]['logradouroTextoAdicional']) print(data.resultados()[0]['logradouroTexto']) print(data.resultados()[0]['baiNu']) print(data.resultados()[0]['nomeUnidade']) print(data.resultados()[0]['cep'])
ise-uiuc/Magicoder-OSS-Instruct-75K
bad_channels=self.__filter_extension_list_with_electrodes_valid_map(electrodes_valid_map, bad_channels), probe_shank=self.__filter_extension_list_with_electrodes_valid_map(electrodes_valid_map, probe_shank), probe_electrode=self.__filter_extension_list_with_electrodes_valid_map(elect...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <string> #include "gmock.h" #include "gunit.h" #include "autotest2/cpp/util/cpl_cstringlist.h" #include "autotest2/cpp/util/error_handler.h" #include "ogr/ogr_core.h" #include "port/cpl_conv.h" #include "port/cpl_csv.h"
ise-uiuc/Magicoder-OSS-Instruct-75K
#[test] // empty params fn password_decode1() { // echo -n "\!A4T@hh'cUj7LXXvk\"" | xxd -p |sed 's/../%&/g' let dsn = parse(r#"mysql://root:%21%41%34%54%40%68%68%27%63%55%6a%37%4c%58%58%76%6b%22@tcp(10.0.0.1:3306)/test"#).unwrap(); println!("{:#?}", dsn); assert_eq!(dsn.driver, "mysql"); assert_eq!...
ise-uiuc/Magicoder-OSS-Instruct-75K
import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? }
ise-uiuc/Magicoder-OSS-Instruct-75K
class InvalidAmountError(ValueError): def __init__(self): super().__init__("Invalid amount for currency") class CurrencyMismatchError(ValueError):
ise-uiuc/Magicoder-OSS-Instruct-75K
\nAs for **__vents__**, MIRA HQ is rather **unique** since the entire network is connected. There are a total of __**11**__ vents on this map and you can use them to **reach** anywhere on the map. This makes it much **easier** to get away, just be careful as you can easily become **spotted emerging** from one of these ...
ise-uiuc/Magicoder-OSS-Instruct-75K
* 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Lice...
ise-uiuc/Magicoder-OSS-Instruct-75K
window.__hasRunRAF = false; requestAnimationFrame(function() { window.__hasRunRAF = true; }); """ ) action_runner.WaitForJavaScriptCondition("window.__hasRunRAF")
ise-uiuc/Magicoder-OSS-Instruct-75K
from ctypes import CDLL, c_char_p, c_size_t, c_int from pathlib import WindowsPath import platform def _libcmark(): system = platform.system() if system == 'Darwin':
ise-uiuc/Magicoder-OSS-Instruct-75K
public func napiValue(_ env: napi_env) throws -> napi_value { var result: napi_value? let status = napi_get_null(env, &result) guard status == napi_ok else { throw NAPI.Error(status) }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Content.Server.AI.WorldState.States.Inventory { /// <summary> /// AKA what's in active hand /// </summary> [UsedImplicitly] public sealed class EquippedEntityState : StateData<IEntity>
ise-uiuc/Magicoder-OSS-Instruct-75K
public class CreateItemMenuAction extends MenuActions { public CreateItemMenuAction(String description) { super(description); } @Override public void run() {
ise-uiuc/Magicoder-OSS-Instruct-75K
pub const SOLID_BP_CSABORT: usize = 16; #[inline(always)] pub fn breakpoint_program_exited(tid: usize) { unsafe { match () { #[cfg(target_arch = "arm")] () => asm!("bkpt #{}", const SOLID_BP_PROGRAM_EXITED, in("r0") tid), #[cfg(target_arch = "aarch64")]
ise-uiuc/Magicoder-OSS-Instruct-75K
<li class="list-group-item">{{ $mods->nama_course}}</li> </ul> </div> </div> @endforeach </div> </div> @endsection
ise-uiuc/Magicoder-OSS-Instruct-75K
_ => false, }) } fn resolve_enum_def( db: &impl HirDatabase, analyzer: &hir::SourceAnalyzer,
ise-uiuc/Magicoder-OSS-Instruct-75K
# This allows using the @attr() decorator from nose to set these on a # test by test basis self.proxy = getattr(self, 'proxy', None) @classmethod def setUpClass(cls): """ Override NeedleTestCase's setUpClass method so that it does not
ise-uiuc/Magicoder-OSS-Instruct-75K
author_email='<EMAIL>', url='http://github.com/Commonists/pageview-api', description='Wikimedia Pageview API client', long_description=open('README.md').read(), license='MIT', packages=packages, install_requires=requires, classifiers=classifiers )
ise-uiuc/Magicoder-OSS-Instruct-75K
filter, VoucherListUrlFiltersEnum.channel
ise-uiuc/Magicoder-OSS-Instruct-75K
{ Py_INCREF(self); return reinterpret_cast<PyObject*>(self); } static PyObject* _exit_MediaPlayer(py::wrapper::Windows::Media::Playback::MediaPlayer* self) noexcept
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public static function hostDoesNotExist(string $hostName): self { return new static("The host named `{$hostName}` does not exist."); }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.deleteTable.setColumnCount(9) self.deleteTable.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.deleteTable.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.deleteTable.setHorizontalHeaderItem(1, item) item = QtWidgets.QTableW...
ise-uiuc/Magicoder-OSS-Instruct-75K
__variant2, }
ise-uiuc/Magicoder-OSS-Instruct-75K
---------- x : tensor Input tensor overload : dict All parameters defined at build time can be overridden at call time. Returns -------
ise-uiuc/Magicoder-OSS-Instruct-75K
protected Integer partyRolePartyId; protected Integer RoleTypeId; public PartyRoleOperation(final @MapsTo("partyRole") PartyRole partyRole, final @MapsTo("sourceQueueSessionId") String sourceQueueSessionId) {
ise-uiuc/Magicoder-OSS-Instruct-75K
struct _IO_COUNTERS { unsigned __int64 ReadOperationCount; unsigned __int64 WriteOperationCount;
ise-uiuc/Magicoder-OSS-Instruct-75K
lst.remove(head) prilst.append(head)
ise-uiuc/Magicoder-OSS-Instruct-75K
categories: { default: { appenders: ["out"], level: "debug" } }, }); export default logger4js;
ise-uiuc/Magicoder-OSS-Instruct-75K
/home/runner/.cache/pip/pool/24/e8/39/183700a0b2d2a9545f3da2571d82b53df290aab3a51dc229b113d16e6c
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright (C) DataStax Inc. // // Licensed under the Apache License, Version 2.0 (the "License");
ise-uiuc/Magicoder-OSS-Instruct-75K
imageTypes = ['jpg', 'jpeg', 'png'] if __name__ == "__main__": parser = argparse.ArgumentParser(description="Generates File Identities with an option to quarantine duplicates") parser.add_argument("--allow-quarantine", action="store_true", help='Enable moving files - Dangerous') parser.add_argument(...
ise-uiuc/Magicoder-OSS-Instruct-75K