seed
stringlengths
1
14k
source
stringclasses
2 values
A = '192.168.100.100' # spoofed source IP address B = '192.168.127.12' # destination IP address C = 10000 # source port D = 80 # destination port payload = "yada yada yada" # packet payload spoofed_packet = IP(src=A, dst=B) / TCP(sport=C, dport=D) / payload send(spoofed_packet)
ise-uiuc/Magicoder-OSS-Instruct-75K
return wrapper
ise-uiuc/Magicoder-OSS-Instruct-75K
* \addtogroup triton * @{ */ //! The Architecture namespace namespace arch { /*! * \ingroup triton * \addtogroup arch * @{ */ /*! \interface CpuInterface \brief This interface is used as abstract CPU interface. All CPU must use this interface. */
ise-uiuc/Magicoder-OSS-Instruct-75K
return sha256(o.encode("ascii")).hexdigest() def avg(a): return sum(a)/len(a) def test_all(program): scores = [] i = 1 for song in listdir("songs"):
ise-uiuc/Magicoder-OSS-Instruct-75K
angle = int(SERVO_MIN_ANGLE + normalized * (SERVO_MAX_ANGLE - SERVO_MIN_ANGLE)) # Send the command ser.write(b'\xFF') # Synchronization just in case ser.write(bytes([pin - 12, angle])) def disable_servo(pin): """ Attempt to disable the specified servo by turning off the PWM signal. Note tha...
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 input_str = input("문자열을 입력해 주세요. >> ") print("입력받은 문자열의 길이는", len(input_str), "입니다.")
ise-uiuc/Magicoder-OSS-Instruct-75K
a_mean, a_raw_std = torch.chunk(self._policy(x), chunks=2, dim=1) a_std = F.softplus(a_raw_std) + self._eps dist = Normal(a_mean, a_std) t_a_mean = self._squash_gaussian(a_mean) min_q, _, _ = self._q_vals(x, t_a_mean) val = min_q - self.alpha * self._lprob(dist, a_mean, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.fp and getattr(self, "_exclusive_fp", False) and hasattr(self.fp, "close"): self.fp.close() self.fp = None
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns: Number of successfully delivered messages Raises: commons.exceptions.MailerConfigError """ if settings.MAILGUN_API_KEY is None:
ise-uiuc/Magicoder-OSS-Instruct-75K
"MK": 116, "MG": 117, "MW": 118,
ise-uiuc/Magicoder-OSS-Instruct-75K
using MonoTouch.ObjCRuntime; [assembly: LinkWith ("libPSTCollectionView.a",LinkTarget.Simulator | LinkTarget.ArmV7, ForceLoad = true, Frameworks = "UIKit QuartzCore")]
ise-uiuc/Magicoder-OSS-Instruct-75K
mkdir $HOME/projects # Clone Github repositories ./projects/clone.sh # Removes .zshrc from $HOME (if it exists) and symlinks the .zshrc file from the .dotfiles rm -rf $HOME/.zshrc
ise-uiuc/Magicoder-OSS-Instruct-75K
pub trait Inc<T>: EmitBytes { fn emit(&mut self, arg: T) -> Result<(), Error<Self::Error>>; } impl<W> Inc<Operand> for W where W: EmitBytes { fn emit(&mut self, arg: Operand) -> Result<(), Error<Self::Error>> { use operand::Operand::*; match arg { Reg8(a) => Inc::emit(self, a), ...
ise-uiuc/Magicoder-OSS-Instruct-75K
this.thrown.expect(ClassNotFoundException.class); this.reloadClassLoader.loadClass(PACKAGE + ".Sample"); } @Test public void getUpdatedClass() throws Exception { String name = PACKAGE_PATH + "/Sample.class"; this.updatedFiles.addFile(name, new ClassLoaderFile(Kind.MODIFIED, new byte[10])); this.thrown.exp...
ise-uiuc/Magicoder-OSS-Instruct-75K
stop_decision->mutable_stop_point()->set_x(stop_point.x()); stop_decision->mutable_stop_point()->set_y(stop_point.y()); stop_decision->mutable_stop_point()->set_z(0.0); auto* path_decision = reference_line_info.path_decision(); path_decision->AddLongitudinalDecision("SidePass", stop_wall->Id(), sto...
ise-uiuc/Magicoder-OSS-Instruct-75K
ImagePreBarrier.emplace_back(vk::ImageMemoryBarrier( vk::AccessFlagBits::eMemoryWrite, vk::AccessFlagBits::eMemoryRead, vk::ImageLayout::eUndefined, vk::ImageLayout::eTransferDstOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, Image, vk::ImageSubresourceRange( SubresourceLayers.aspectMask, Subreso...
ise-uiuc/Magicoder-OSS-Instruct-75K
for song in page.scrape(): print(song)
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param $success * @param $msg */ public function onUserAfterSave($user, $isnew, $success, $msg) { if (!$success) { return; }
ise-uiuc/Magicoder-OSS-Instruct-75K
import React from 'react'; import type { BoxProps } from '@shopify/restyle'; import type { Theme } from '../theme'; import Box from './Box'; type Props = BoxProps<Theme>; const Divider = ({ ...rest }: Props) => { return <Box backgroundColor={'text'} height={1} width={'100%'} {...rest} />; };
ise-uiuc/Magicoder-OSS-Instruct-75K
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
ise-uiuc/Magicoder-OSS-Instruct-75K
pool_size = MP.cpu_count() * 2 print 'Pool count', pool_size # init process pool
ise-uiuc/Magicoder-OSS-Instruct-75K
def main() -> None: parser = init_env_parser() args = parser.parse_args() config = init_config(args.env) if config.LOGGING_CONFIG != {}: logging.config.dictConfig(config.LOGGING_CONFIG)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Smat(f) = S_11 S_22 S_33 # S_11 S_22 S_33 Smat = auto_spectra[:, None, :] * np.ones(nChannels)[:, None] # Granger i->j needs H_ji entry Hmat = np.abs(Hfunc.transpose(0, 2, 1))**2 # Granger i->j needs Sigma_ji entry SigmaJI = np.abs(Sigma.T) # imag part should be 0
ise-uiuc/Magicoder-OSS-Instruct-75K
[ApiController]
ise-uiuc/Magicoder-OSS-Instruct-75K
result = self.dnode.get(field, self.version.version_num)
ise-uiuc/Magicoder-OSS-Instruct-75K
using JavascriptPrecompiler.Precompilers; using JavascriptPrecompiler.Utilities; using Jurassic; using NUnit.Framework; namespace PrecompilerTests
ise-uiuc/Magicoder-OSS-Instruct-75K
Todo: need to learn string algorithms. ''' f = open('data/keylog.txt') mx = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
ise-uiuc/Magicoder-OSS-Instruct-75K
throw new \Exception( "[".get_class()."] System config not found in `" . $configClass::GetSystemConfigPath() . "`." );
ise-uiuc/Magicoder-OSS-Instruct-75K
import { isFunction, isNil, Monad, MonadType } from "./main"; export function getValueOr<T>(alt: T, candidate: MonadType<T> | undefined): T; export function getValueOr<T>(alt: T): (candidate: MonadType<T> | undefined) => T;
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns ------- scores : torch.Tensor (batch_size, n_classes) Class scores """ # word embedding embeddings = self.embedding1(text).unsqueeze(1) # (batch_size, 1, word_pad_len, emb_size) # multichannel if self.embedding2: embedding...
ise-uiuc/Magicoder-OSS-Instruct-75K
print(hoy) # Errores ''' No incluidos directamente para que el programa corra
ise-uiuc/Magicoder-OSS-Instruct-75K
func testSubmitSucceedsIfAllFieldsAreValid() { viewModelUnderTest.setFirstNameText("FirstName") viewModelUnderTest.setPhoneNumberText("000-000-0000") viewModelUnderTest.setLicensePlateText("ABC1234") viewModelUnderTest.setRiderCapacityText("4") viewModelUnderTest.submit() ...
ise-uiuc/Magicoder-OSS-Instruct-75K
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA """ from threading import RLock from smartcard.scard import * from smartcard.pcsc.PCSCExceptions import EstablishContextException
ise-uiuc/Magicoder-OSS-Instruct-75K
return data def getAssetPolicyRulesSummary(config, assetId, policyId): getParameters=[] code, data = _GET('/api/3/assets/' + str(assetId) + '/policies/' + str(policyId) + '/rules', config, getParameters=getParameters) return data
ise-uiuc/Magicoder-OSS-Instruct-75K
rng = np.random.RandomState(0) n_epochs, n_signals, n_times = 1, 4, 64 data = rng.randn(n_epochs, n_signals, n_times) data_hilbert = hilbert(data, axis=-1) corr = envelope_correlation(data_hilbert)
ise-uiuc/Magicoder-OSS-Instruct-75K
import pysrc.wrapper.star import pysrc.wrapper.fastqc import pysrc.wrapper.ciri_as import wf_profile_circRNA import wf_detect_circRNA
ise-uiuc/Magicoder-OSS-Instruct-75K
g++ benchmark/benchmark-persistent-kernels.cpp -I./include -L.release_build -lprnn -o persistent-rnn-benchmark
ise-uiuc/Magicoder-OSS-Instruct-75K
#%% datapath='data/classData.csv' modes=['NB'] #'rf' test_classes={'test_class':[2,3]} for key,value in test_classes.items(): print('========================================{}:[{}:{}]========================================='.format(modes,key,value)) df = pd.read_csv(datapath)
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Whether this disposable has been disposed already. var disposed: Bool { get } func dispose() } /// A disposable that only flips `disposed` upon disposal, and performs no other /// work. public final class SimpleDisposable: Disposable { private var _disposed = Atomic(false)
ise-uiuc/Magicoder-OSS-Instruct-75K
ViewData["Title"] = "test"; }
ise-uiuc/Magicoder-OSS-Instruct-75K
[TestCase(3, ExpectedResult = false)]
ise-uiuc/Magicoder-OSS-Instruct-75K
// Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct re...
ise-uiuc/Magicoder-OSS-Instruct-75K
Date eDate = sdf.parse(endDate); Session session = sessionFactory.openSession(); Criteria podsCriteria = session.createCriteria(K8sObjectPodsEntity.class, "objPods"); podsCriteria.createCriteria("objPods.environment", "environment"); podsCriteria.add(Restrictions.gt("objPods.statusDate", sDate ));
ise-uiuc/Magicoder-OSS-Instruct-75K
from .residualizer import Residualizer from .residualizer import ResidualizerEstimator __all__ = ['Residualizer',
ise-uiuc/Magicoder-OSS-Instruct-75K
end=min(self.batchsize,self.N_perm)# make sure no greater than N_erm for i in range(blocks): print('running {}/{}......'.format(i+1,blocks)) pool = multiprocessing.Pool(processes=self.n_processess) for n_perm in np.arange(start,end): pool.apply_async(s...
ise-uiuc/Magicoder-OSS-Instruct-75K
output[groupname].append(i.public_dns_name) try: comments[groupname][i.public_dns_name] = "# %s\t%s\t%s\t%s\t%s" % (i.tags['Name'], myregion, i.instance_type, i.ip_address, i.launch_time) except: comments[groupname][i.public_dns_name] = "# MISSING DATA" for group in output: print("[%s]" % gro...
ise-uiuc/Magicoder-OSS-Instruct-75K
"Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.", "invalid", ), grandchallenge.challenges.models.validate_short_name, ], ), ), migrations.AlterField(
ise-uiuc/Magicoder-OSS-Instruct-75K
from loguru import logger from proxypool.utils.parse import parse_redis_connection_string env = Env() env.read_env()
ise-uiuc/Magicoder-OSS-Instruct-75K
if x < (a + 1) / (a + b + 2): return math.exp(lbeta) * contfractbeta(a, b, x) / a else: return 1 - math.exp(lbeta) * contfractbeta(b, a, 1 - x) / b
ise-uiuc/Magicoder-OSS-Instruct-75K
class="btn btn-block btn-outline-primary" >Back</a> </p> </div> </div> </div> </div> </body> </html>
ise-uiuc/Magicoder-OSS-Instruct-75K
const size_t size = static_cast<size_t>(reader->GetFileSize()); if (size == 0) { // Skip directories and empty files. continue; } if (!reader->OpenFile(password)) break;
ise-uiuc/Magicoder-OSS-Instruct-75K
class CacheMode(object):
ise-uiuc/Magicoder-OSS-Instruct-75K
parser.add_argument('file', help="The PE file to load") parser.add_argument('--addr', type=lambda x: int(x, 0), default=0, help="The load address of the PE") parser.add_argument('--tag', type=lambda x: int(x, 0), default=0)
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "stderr" 1>&2; echo "stdout";
ise-uiuc/Magicoder-OSS-Instruct-75K
// components import Content from '../components/AddPageContent'
ise-uiuc/Magicoder-OSS-Instruct-75K
echo building docs... rm -r ./docs/source/API cd ./${SCRIPT_DIR}/docs make $@
ise-uiuc/Magicoder-OSS-Instruct-75K
await ctx.respond(f"Banning {len(user_ids)} users...") for user_id in user_ids: try: user = await self.bot.client.get_entity(user_id) except ValueError: if single_user: lines.append(f"__Unable to find user__ `{user_id}`.")
ise-uiuc/Magicoder-OSS-Instruct-75K
# print dc.wlsHome dc.props=configProps dc.domainPath=configProps.get("domain.path") dc.adminUsername=configProps.get("admin.username") dc.adminPassword=configProps.get("admin.password") dc.adminAddress=configProps.get("admin.address") dc.adminPort=configProps.get("admin.port") dc.admi...
ise-uiuc/Magicoder-OSS-Instruct-75K
phy = self.ethphy, mac_address = etherbone_mac_address, ip_address = etherbone_ip_address, clk_freq = self.clk_freq) # Etherbone Core self.submodules.etherbone = LiteEthEtherbone(self.ethcore.udp, 1234) self.add_wb_master(self.etherbone...
ise-uiuc/Magicoder-OSS-Instruct-75K
export = parse; }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .user import UserAdminModel
ise-uiuc/Magicoder-OSS-Instruct-75K
[TestMethod] public void DerivedClassTest() { TypeMetadata derivedClass = ReflectorTestClass.Reflector.MyNamespace.m_Types.Single(x => x.m_typeName == "DerivedClass"); Assert.IsNotNull(derivedClass.m_BaseType); } [TestMethod] public void EnumTest() { Assert.Inconclusive("Th...
ise-uiuc/Magicoder-OSS-Instruct-75K
public Libros $lib; public function render() { return view('livewire.libros.update'); } public function update(){
ise-uiuc/Magicoder-OSS-Instruct-75K
* Queries should only use type references as return types (at least when return type is an object). * @see \App\Api\Query for more about query return types */ const HEALTH_CHECK = 'HealthCheck'; private static function healthCheck(): ObjectType { return JsonSchema::object([ ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(bpy.data.actions) > 0: #loop through every animated action for every object in scene for act in bpy.data.actions: for obj in selection: #select the object and toggle through which animation is active obj.select_set...
ise-uiuc/Magicoder-OSS-Instruct-75K
data = source.recv(chunk) buffer += data dest.sendall(data) # Receiving the response now buffer = self._get_data(dest, buffer_size) source.sendall(buffer) if buffer.startswith('VALUE'): # we're getting back a value...
ise-uiuc/Magicoder-OSS-Instruct-75K
require("template/header.php"); ?> <div class="all" style="min-height:92vh;"> <?php require("template/nav.php"); ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Initializes a described value. /// </summary> /// <param name="descriptor">The descriptor of the value.</param> protected RestrictedDescribed(Descriptor descriptor) { this.descriptor = descriptor; } /// <summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
"url": { "type": "string", "title": "Host URL", "description": "Base URL for the Microsoft endpoint", "default": "https://graph.microsoft.com", "order": 2
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import pipeline_manage from . import trainedmodel_manage
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php class SethArmor extends MonsterArmor { public function get_miss_chance(Damage $damage) { return 25; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!(fileURLOrPath instanceof URL)) { return fileURLOrPath; } return fileURLToPath(fileURLOrPath); } export default { toPathIfFileURL, };
ise-uiuc/Magicoder-OSS-Instruct-75K
tests = [ "# h1", "## h2", "### h3", "#### h4", "##### h5", "###### h6" ] nested_tests = [ " # h1", " ## h2",
ise-uiuc/Magicoder-OSS-Instruct-75K
* {@inheritdoc} */ public function attributeLabels() { return [ '_id' => 'ID', 'slug' => 'Slug', 'phone' => 'Phone',
ise-uiuc/Magicoder-OSS-Instruct-75K
abbreviation = models.CharField(max_length=10, null=True) far_order = models.IntegerField(null=True) def __str__(self): return self.short_name
ise-uiuc/Magicoder-OSS-Instruct-75K
self.0.get_version() } pub fn get_current_version(&self) -> anyhow::Result<Option<&Version<String>>> { self.0.get_current_version() } pub fn get_status(&self) -> Status {
ise-uiuc/Magicoder-OSS-Instruct-75K
colors = list(mcolors.XKCD_COLORS.values())
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash . docker/tools/build.sh $1 2.7 $2 ${@:3}
ise-uiuc/Magicoder-OSS-Instruct-75K
self.block.append(nn.Sequential( nn.Conv2d(3, 128, kernel_size=5, padding=2), nn.BatchNorm2d(128), nn.ReLU(), nn.MaxPool2d((3,3)) )) self.block.append(nn.Sequential( nn.Conv2d(128, 128, kernel_size=5, padding=2), nn.BatchNorm2d(128), n...
ise-uiuc/Magicoder-OSS-Instruct-75K
dict(name='fixed acidity', type='float'), dict(name='volatile acidity', type='float'), dict(name='citric acid', type='float'), dict(name='residual sugar', type='float'), dict(name='chlorides', type='float'), dict(name='free sulfur dioxide', type='float'), dict(nam...
ise-uiuc/Magicoder-OSS-Instruct-75K
# traverse in the string for ele in s: url_string += ele
ise-uiuc/Magicoder-OSS-Instruct-75K
async def get_or_fetch_member(guild, member_id): """Looks up a member in cache or fetches if not found. Parameters ----------- guild: Guild The guild to look in. member_id: int The member ID to search for. Returns
ise-uiuc/Magicoder-OSS-Instruct-75K
setContent(layout); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ gInit(View::SetState); if (newState) vcharCopyBounded(newState, myState, MAX_STATE_LEN); else
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ['SchemaInfo', 'SchemasInfo'] def SchemaInfo(schema_vo: Schema, minimal=False): info = { 'name': schema_vo.name, 'service_type': schema_vo.service_type } if not minimal: info.update({
ise-uiuc/Magicoder-OSS-Instruct-75K
logger = logging.getLogger('sentry.errors.client')
ise-uiuc/Magicoder-OSS-Instruct-75K
assert conjugate(lowergamma(x, y)) == lowergamma(conjugate(x), conjugate(y)) assert conjugate(lowergamma(x, 0)) == 0 assert unchanged(conjugate, lowergamma(x, -oo)) assert lowergamma(0, x)._eval_is_meromorphic(x, 0) == False assert lowergamma(S(1)/3, x)._eval_is_meromorphic(x, 0) == False
ise-uiuc/Magicoder-OSS-Instruct-75K
# Building and Distributing Packages with Setuptools # Documentation here: https://setuptools.pypa.io/en/latest/setuptools.html
ise-uiuc/Magicoder-OSS-Instruct-75K
.hasFieldOrPropertyWithValue("leftIndicator", '(') .hasFieldOrPropertyWithValue("leftVersion", new Version(1, 2, 3)) .hasFieldOrPropertyWithValue("rightVersion", new Version(4, 5, 6)) .hasFieldOrPropertyWithValue("rightIndicator", ']'); Assertions.assertThat(new V...
ise-uiuc/Magicoder-OSS-Instruct-75K
["Threads", "Mode", "Block size"], ["Nodes", "BW GB/s"], lambda x: "Read" if (x==1) else "Write", # Plot title lambda x: sizeof_bytes(x), # Legend text lambda x: "Threads = " + str(int(x)), # legend title lambda x,pos: str(int(x)), # X Axis l...
ise-uiuc/Magicoder-OSS-Instruct-75K
return indices def close(self): self.f.close() self.index_f.close() def shuffle(self): random.shuffle(self.indices) def set_loader(self, fn): self.loader = fn def __getitem__(self, idx): self.f.seek(self.indices[idx]) return self.loader(self.f)...
ise-uiuc/Magicoder-OSS-Instruct-75K
n2 = sc.nextInt();
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Copyright (C) 2016-2017 JiNong Inc. All right reserved. # __title__ = 'python-pyjns' __version__ = '0.40' __author__ = 'Kim, JoonYong'
ise-uiuc/Magicoder-OSS-Instruct-75K
using RabbitMQ.Next.Abstractions.Methods; namespace RabbitMQ.Next.Transport.Methods.Connection { internal class CloseMethodFormatter : IMethodFormatter<CloseMethod> { public int Write(Span<byte> destination, CloseMethod method) { var result = destination.Write(method.StatusCode) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
@if(count($loggedUserSites)) <form class="form" action="/sites/change" method="post"> <div class="form-group"> {!! csrf_field() !!} <select class="form-control" name="siteId" data-submit-on-change="true"> @foreach($loggedUserSites as $site) <option value="{{ $site->id }}" {!! $site->id == $currentSite...
ise-uiuc/Magicoder-OSS-Instruct-75K
var num = x while x / tag >= 10 { tag *= 10
ise-uiuc/Magicoder-OSS-Instruct-75K
example_dir.mkdir(parents=True, exist_ok=True) for i in range(0, 30): image_main_name = str(i) + '/image_main/encoded' image_aux1_name = str(i) + '/image_aux1/encoded'
ise-uiuc/Magicoder-OSS-Instruct-75K
url(r'^fix/$', views.get_fix, name='fix'), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
class mysql_user_password(terrascript.Resource): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
@if($val->id == $category->parent_id) selected @endif>{{$val->name}}</option> @endforeach </select> </div> <button type="submit" class="btn btn-primary">Update</button> </form>
ise-uiuc/Magicoder-OSS-Instruct-75K