seed
stringlengths
1
14k
source
stringclasses
2 values
print("connecting") success = mambo.connect(num_retries=3) print("connected") if (success): startTime = time.time()
ise-uiuc/Magicoder-OSS-Instruct-75K
* @author <NAME> * @since 1.0.0 */ public class RuleDaoServices extends AbstractDaoServices<Rule> { public RuleDaoServices() {
ise-uiuc/Magicoder-OSS-Instruct-75K
with self.save_restriction(SAA=0): return all([self.cal() is not None for s in self.for_each_spot() for a in self.for_each_alpha()])
ise-uiuc/Magicoder-OSS-Instruct-75K
self.xpicker.pickerView.dataSource = self self.xpicker.cancelButton.addTarget(self, action: #selector(cancelButtonDidTouch(_:)), for: .touchUpInside) self.xpicker.confirmButton.addTarget(self, action: #selector(confirmButtonDidTouch(_:)), for: .touchUpInside) // self.contentView ...
ise-uiuc/Magicoder-OSS-Instruct-75K
make -C $ROOTDIR/memcached-linux clean
ise-uiuc/Magicoder-OSS-Instruct-75K
return instances def _forward_keypoint(self, features, instances): """ Forward logic of the keypoint prediction branch. Args: features (list[Tensor]): #level input features for keypoint prediction instances (list[Instances]): the per-image instances to t...
ise-uiuc/Magicoder-OSS-Instruct-75K
__package__ = 'tkgeom' __title__ = 'tkgeom' __description__ = '2D geometry module as an example for the TK workshop' __copyright__ = '2019, <NAME>'
ise-uiuc/Magicoder-OSS-Instruct-75K
def make_full_url(self, path: str) -> str: """ Class method to make full url :param path: str :return: str """ return f"{self.base_url}{path}"
ise-uiuc/Magicoder-OSS-Instruct-75K
mUnlockedWalletView.setVisibility(View.VISIBLE); Fragment newFragment = new WaitingForWalletFragment(targetFragment); FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); transaction.replace(mUnlockedWalletView.getId(), newFragment); transaction.commit(...
ise-uiuc/Magicoder-OSS-Instruct-75K
eprintln!("\tshpc_data_json <file> <json output>"); return; } let input = args.get(1).unwrap(); let input_path = Path::new(&input); // Modify the input if no output is specified to allow dragging a file onto the executable. let output_path = args .get(2) .map(PathBuf...
ise-uiuc/Magicoder-OSS-Instruct-75K
int day = 0, int hour_ = 0, int minute_ = 0, int second_ = 0, int ms = 0) { struct tm time_tm;
ise-uiuc/Magicoder-OSS-Instruct-75K
latest_commit_date = environ["UPDATED_DATE"] except: latest_commit_date = "Не доступно" html = bottle.template("templates/index.tpl", latest_commit_date=latest_commit_date) return html bottle.run(host='0.0.0.0', port=sys.argv[1])
ise-uiuc/Magicoder-OSS-Instruct-75K
worksheet.set_column('B:B') rond = pd.read_csv('last_call.csv', sep=';') def hyper_maker(db): # mock link should build down global counter for i in db.values: link = db.loc[counter, 'link']
ise-uiuc/Magicoder-OSS-Instruct-75K
pub(crate) ts_ss: u16, pub(crate) ts_padding6: u16, pub(crate) ts_ds: u16, pub(crate) ts_padding7: u16, pub(crate) ts_fs: u16, pub(crate) ts_padding8: u16, pub(crate) ts_gs: u16, pub(crate) ts_padding9: u16, pub(crate) ts_ldt: u16, pub(crate) ts_padding10: u16, pub(crate) ts_...
ise-uiuc/Magicoder-OSS-Instruct-75K
std::tuple<std::string, std::string, rps::ArgumentList> parseLine(std::string const& line );
ise-uiuc/Magicoder-OSS-Instruct-75K
elif (prbs_length == 15): self.poly = 0xC001 >> 1 elif (prbs_length == 20): self.poly = 0x80005 >> 1 elif (prbs_length == 23): self.poly = 0x840001 >> 1 else: assert (prbs_length == 31) self.poly = 0xA0000001 >> 1 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
CMPR2B4_W { w: self } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from metaconnectors.pubsub import MetaPubSub
ise-uiuc/Magicoder-OSS-Instruct-75K
#Hosp fig.add_trace( go.Scatter( x=yhat_conf_int_75_1.index, y=10**(np.log10(df["hosp"].values[-1-delai_dernier_jour]) + yhat_conf_int_75_1["mean_ci_lower"].cumsum()), line_width=0,
ise-uiuc/Magicoder-OSS-Instruct-75K
ans_m = math.factorial(m)//(math.factorial(m-2)*math.factorial(2))
ise-uiuc/Magicoder-OSS-Instruct-75K
* "https://developer.leapmotion.com/documentation/v4/group___structs.html#struct_l_e_a_p___d_i_s_t_o_r_t_i_o_n___m_a_t_r_i_x">LeapC * API - LEAP_DISTORTION_MATRIX</a> */ @FieldOrder({ "matrix" }) public class LEAP_DISTORTION_MATRIX extends Structure { public static final int LEAP_DISTORTION_MATRIX_N = 64;...
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Note: this functions get's an iterator, so make sure to take only what is required! """ board = cls() next(lines) # skip the first empty line
ise-uiuc/Magicoder-OSS-Instruct-75K
['nombre_provincia'=>'Maipo', 'id_region'=>7], ['nombre_provincia'=>'Melipilla', 'id_region'=>7], ['nombre_provincia'=>'Talagante', 'id_region'=>7], ['nombre_provincia'=>'Cachapoal', 'id_region'=>8], ['nombre_provincia'=>'Card<NAME>', 'id_region'=>8], ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.tcount -= 1 if self.tcount == 0: self.status == 2 yield kind, self.newQName, pos else: yield kind, data, pos elif self.status == 2: yield kind, data, pos
ise-uiuc/Magicoder-OSS-Instruct-75K
double getDeltaY() const { return delta.getY(); } /** * Obtiene el delta en Z * @return Delta en Z */ double getDeltaZ() const { return delta.getZ(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
// extension on a remote device. // Use this method to trigger UI updates in response to the message. } override func didStartSending(_ message: MSMessage, conversation: MSConversation) { // Called when the user taps the send button. } override func didCancelSe...
ise-uiuc/Magicoder-OSS-Instruct-75K
var matchingClaims = identity.Claims.Where(x => x.Type == ClaimType.Auth0Roles).ToList(); var claimsToAdd = new List<Claim>(); for (var index = matchingClaims.Count - 1; index >= 0; index--)
ise-uiuc/Magicoder-OSS-Instruct-75K
} let rio = rio::new().unwrap(); let storage = builder.enable_aio(rio).build().unwrap(); Self { storage } } pub async fn init(&mut self) { self.storage.init().await.unwrap() } pub async fn write(&self, key: impl AsRef<K>, data: Vec<u8>, mut tx: Sender<Report>) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
mov v0.s[2], w2 mov v0.s[3], w3 # storing vector elements sub sp, sp, #64
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>wagtailgeowidget/widgets.py<gh_stars>0 import json import six from django.forms import HiddenInput from django.utils.html import format_html from django.utils.safestring import mark_safe
ise-uiuc/Magicoder-OSS-Instruct-75K
from .generator_attack import Generator_Attack # noqa: F401 from .gradientinversion import GradientInversion_Attack # noqa: F401 from .mi_face import MI_FACE # noqa: F401 from .utils import DataRepExtractor # noqa: F401
ise-uiuc/Magicoder-OSS-Instruct-75K
spark.stop()
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_simple_text(wtext, key, clean=True):
ise-uiuc/Magicoder-OSS-Instruct-75K
self.lb_er_width.grid() self.txt_er_width.grid()
ise-uiuc/Magicoder-OSS-Instruct-75K
println!("Target depth: {}", remote_control.find_target()); println!("Max depth: {}", remote_control.find_max_depth()); Ok(()) }
ise-uiuc/Magicoder-OSS-Instruct-75K
while True:
ise-uiuc/Magicoder-OSS-Instruct-75K
def _get_api_url(self): from is_core.site import get_model_core return get_model_core(self.model).get_api_url(self.request) def _get_menu_group_pattern_name(self): from is_core.site import get_model_core return get_model_core(self.model).get_menu_group_pattern_name()
ise-uiuc/Magicoder-OSS-Instruct-75K
return withdraw, deposit # nonlocal <name>
ise-uiuc/Magicoder-OSS-Instruct-75K
python manage.py dumpdata app > app/fixtures/initial_data.json
ise-uiuc/Magicoder-OSS-Instruct-75K
state_machine.SendSMS(restored_message)
ise-uiuc/Magicoder-OSS-Instruct-75K
designate domain-list # Create random domain name DOMAIN_NAME="exercise-$(openssl rand -hex 4).com." # Create the domain designate domain-create --name $DOMAIN_NAME --email <EMAIL> DOMAIN_ID=$(get_domain_id $DOMAIN_NAME)
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Management.Automation;
ise-uiuc/Magicoder-OSS-Instruct-75K
public ClinicalImpressionBase(BreastRadiologyDocument doc) : base() { this.Init(doc, new ClinicalImpression()); } public override void Write() { base.Write(); this.Resource.Encounter = this.Doc.EncounterReference; this.Resource.Sub...
ise-uiuc/Magicoder-OSS-Instruct-75K
--stack-name "${STACK_NAME}" \ --template-file "${FILE_PATH}" \ --parameter-overrides "Account=${ACCOUNT_NAME}" \ --capabilities "CAPABILITY_NAMED_IAM" \ --region "${REGION}" exit 0
ise-uiuc/Magicoder-OSS-Instruct-75K
TORRENTS_PER_PAGE = 25
ise-uiuc/Magicoder-OSS-Instruct-75K
bcU = np.array([get_convex_hull_barycenter(s, pts) for s in coverU]) bcV = np.array([get_convex_hull_barycenter(s, pts) for s in coverV]) bcUV = np.array([get_convex_hull_barycenter(s, pts) for s in coverUV]) # this is just for point cloud F = filtration_from_bats(Fbats, pts, color=BLACK) F.shift(3*RIGHT) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
@ApiTags('Assets') @UseGuards(AuthGuard())
ise-uiuc/Magicoder-OSS-Instruct-75K
l.append(str(i)) print (l)
ise-uiuc/Magicoder-OSS-Instruct-75K
# # TODO: rename this # print('[RE solver:]'.ljust(15, ' ') + # ' `re_bk` is depreciated. Use `klein` instead.') # if B is None: # B = np.eye(A.shape[0]) # MM, PP, alp, bet, Q, Z = sl.ordqz(A, B, sort='iuc') # if not fast0(Q @ MM @ Z.T - A, 2): # raise ValueError('Numerical errors in QZ')
ise-uiuc/Magicoder-OSS-Instruct-75K
A `DataFrame` is a collection of immutable, potentially heterogeneous blogs of data. Args: name (`str`): Name of the dataframe; `DataFrame` names should be the same as its representation.
ise-uiuc/Magicoder-OSS-Instruct-75K
else echo "Unkown source" fi
ise-uiuc/Magicoder-OSS-Instruct-75K
'http://127.0.0.1:8000', 'http://127.0.0.1:8000', ]
ise-uiuc/Magicoder-OSS-Instruct-75K
scale_to_0th=scale_to_0th, zero_section=zero_section, scale_section=scale_section ) arr = do_zs(arr, zeros=zeros, scales=scales) # ---------------------------------...
ise-uiuc/Magicoder-OSS-Instruct-75K
import sys if __name__ == '__main__':
ise-uiuc/Magicoder-OSS-Instruct-75K
R('''rownames(rna) <- rna$taxa''') R('''rna <- rna[,1:ncol(rna)]''') R('''dna <- read.csv("%s", header = T, stringsAsFactors = F, sep = "\t")''' % dnacounts) R('''rownames(dna) <- dna$taxa''') R('''dna <- dna[,1:ncol(dna)]''') R('''taxa.rna <- rownames(rna)''') R('''taxa.dna <- rownames(dna...
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod imdb;
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Enables the `<>` operators. You can use `<>` to match a numeric range. For example: ///
ise-uiuc/Magicoder-OSS-Instruct-75K
parser.add_argument("name", help="Name of the assignment to lock.") parser.add_argument("--section", nargs="?", help="Section to lock") parser.add_argument("--student", metavar="id", help="ID of student whose assignment needs locking.")...
ise-uiuc/Magicoder-OSS-Instruct-75K
func updateMessage(message: Message, withTitle title: String, andCompletion completion: NSError? -> Void) -> Void { message.title = title let operation = CKModifyRecordsOperation(recordsToSave: [message.record], recordIDsToDelete: nil) operation.savePolicy = .IfServerRecordUnchanged ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return PrintToTerminal(DebugTerminal, val); } /****************** Pml3 Struct ******************/
ise-uiuc/Magicoder-OSS-Instruct-75K
[command] python slurpThatSoup_4.py
ise-uiuc/Magicoder-OSS-Instruct-75K
* @memberMatcherName toHaveArrayOfSize * @matcherMessage expected ${value} to be an array containing exactly ${size} * items * @matcherNotMessage expected ${value} not to be an array containing exactly * ${size} items */ export const isArrayOfSize: {
ise-uiuc/Magicoder-OSS-Instruct-75K
def pagination(self, start, fetch_rows): self._start = start self._fetch_rows = fetch_rows return self def _build_cursor(self): return self._context.session.connection().execute(text(self._sql), **self._params)
ise-uiuc/Magicoder-OSS-Instruct-75K
alert = 'test'
ise-uiuc/Magicoder-OSS-Instruct-75K
tsdata = XShardsTSDataset.from_xshards(shards_multiple, dt_col="datetime", target_col="value", extra_feature_col=["extra feature"], id_col="id") assert tsdata._id_list == [0, 1] assert tsdata.feature_co...
ise-uiuc/Magicoder-OSS-Instruct-75K
info!("-----"); info!("Connecting..."); // spawn client threads for i in 0..config.threads {
ise-uiuc/Magicoder-OSS-Instruct-75K
FractalComplexFunctionHole, FractalComplexFunctionKnot, FractalComplexFunctionSphere, FractalComplexFunctionWhirl ] export default complexFractalTypeList;
ise-uiuc/Magicoder-OSS-Instruct-75K
'CONTROLLER': { 'MODULE': 'daq.controller.controller', 'CLASS': 'Controller', } }
ise-uiuc/Magicoder-OSS-Instruct-75K
stringedQueryVerify?: StringedResult; stringedParamsVerify?: StringedResult; stringedCookiesVerify?: StringedResult; stringedBodyVerify?: StringedResult; readonly infos: Record<string, any>; readonly extras: Record<string, any>; } & SudooExpressExtendRequest;
ise-uiuc/Magicoder-OSS-Instruct-75K
url(r'^SendFAX$', views.sendFAX, name='SendFAX'), url(r'^FAXSend$', views.FAXSend, name='FAXSend'), url(r'^AttachStatement$', views.attachStatement, name='AttachStatement'), url(r'^DetachStatement$', views.detachStatement, name='DetachStatement'), url(r'^ListEmailConfig', views.listEmailConfig, name...
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "./Civilization.hpp" #ifndef BUBBLE #define BUBBLE namespace Emperor2 { class Bubble { public: Civilization *BubbleSort(Civilization *civilizations, int numberOfCivilizations); }; } // namespace Emperor2 #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
pip install dist/utilities-0.0.1-py3-none-any.whl rm -rf build dist utilities.egg-info
ise-uiuc/Magicoder-OSS-Instruct-75K
@classmethod def destination_from_bytes(cls, frame_bytes: bytes, address_type: str): destination_address_data, _ = HdlcAddress.find_address_in_frame_bytes( frame_bytes ) ( destination_logical, destination_physical, destination_length, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
inf=10**20 sys.setrecursionlimit(10000000) input=lambda : sys.stdin.readline().rstrip() '''''✂'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
ise-uiuc/Magicoder-OSS-Instruct-75K
echo 'configure vpp ...' vppctl -s /run/vpp/cli-vpp1.sock show ver vppctl -s /run/vpp/cli-vpp1.sock show threads vppctl -s /run/vpp/cli-vpp1.sock create host-interface name veth11 vppctl -s /run/vpp/cli-vpp1.sock set int state host-veth11 up vppctl -s /run/vpp/cli-vpp1.sock show int
ise-uiuc/Magicoder-OSS-Instruct-75K
rm -rf build/units_arm32 mkdir build/units_arm32 fpc @src/linux-arm32-dbg.cfg -B src/dss_capid.lpr mkdir -p release/dss_capi/lib cp -R lib/linux_arm32 release/dss_capi/lib/linux_arm32 cp -R include release/dss_capi/
ise-uiuc/Magicoder-OSS-Instruct-75K
t.deepEqualIgnoreOrder(stub.parents, []) t.deepEqualIgnoreOrder( await client.get({ $language: 'en', $id: match2, title: true, parents: true, }), {
ise-uiuc/Magicoder-OSS-Instruct-75K
'Netman-Model': 'juniper', 'Netman-Password': '<PASSWORD>', 'Netman-Username': 'tutu', 'Netman-Max-Version': "2", 'Netman-Verbose-Errors': 'yes', } def tearDown(self): flexmock_teardown() def test_switch_has_a_logger_configured_with_t...
ise-uiuc/Magicoder-OSS-Instruct-75K
// svg/camera-marker.svg import { createSvgIcon } from './createSvgIcon'; export const SvgCameraMarker = createSvgIcon(
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.fobj.read(size) def close(self): self.fobj.close() self.tqdm.close() def __getattr__(self, attr): return getattr(self.fobj, attr)
ise-uiuc/Magicoder-OSS-Instruct-75K
val_sigs_path = 'val_sigs/' val_segs_path = 'val_labels/' val_batch_size = 2 lr_scheduler = keras.callbacks.LearningRateScheduler(lr_schedule) model = Unet(n_classes, input_length=input_length) model.compile(loss='categorical_crossentropy', optimizer=optimizer_name, metrics=['accuracy'])...
ise-uiuc/Magicoder-OSS-Instruct-75K
import * as _ from 'lodash'; @Component({ selector: 'app-task-list', templateUrl: './task-list.component.html', styleUrls: ['./task-list.component.scss'] })
ise-uiuc/Magicoder-OSS-Instruct-75K
maxLengthSentence = max(map(lambda x : len(x), sequences)) sequencePadded, _ = _padSequences(sequencePadded, [padtok]*maxLengthWord, maxLengthSentence) sequenceLength, _ = _padSequences(sequenceLength, 0, maxLengthSentence) return sequencePadded, sequenceLen...
ise-uiuc/Magicoder-OSS-Instruct-75K
_node.GetTextBuffer(), className, paramCount ), "PythonNonCodeFileNode.FindMethods"); } public InsertionPoint GetInsertionPoint(string className) { var fileInfo = _node.TryGetAnalysisEntry(); ...
ise-uiuc/Magicoder-OSS-Instruct-75K
aspect_ratio = height/width img_height = int(aspect_ratio * img_width) os.system('mkdir -p /tmp/pdf2write') new_page_height = 0 for page in range(n_pages):
ise-uiuc/Magicoder-OSS-Instruct-75K
<Route path='/story/:id' component={StoryItem} /> </Switch> ); export default AppRouter;
ise-uiuc/Magicoder-OSS-Instruct-75K
def new_target(self, name, tid, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
// // PontosNetwork.swift // TesteCidades // // Created by Andre Lucas Ota on 26/11/2017. // Copyright © 2017 AndreOta. All rights reserved. // import UIKit
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <param name="proxy">The proxy which should be deleted</param>
ise-uiuc/Magicoder-OSS-Instruct-75K
import UIKit class ClassifyVC: GDNormalVC { override func viewDidLoad() {
ise-uiuc/Magicoder-OSS-Instruct-75K
deleted, } = next_state; self.leaf_hashes.append(&mut leaf_hashes); self.deleted.or_inplace(&deleted); } } impl From<Vec<Hash>> for MutableMmrLeafNodes {
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { return [ 'id' => $this->id, 'tmdb_id' => $this->tmdb_id, 'title' => $this->title, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
}, }); } } } } objects.push({ center: [0, 1, 0], radius: 1.0, material: {
ise-uiuc/Magicoder-OSS-Instruct-75K
model_name='medresult', name='date_of_exam', field=models.DateField(), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
]) assert pandoc_numbering.numbering(src['t'], src['c'], 'latex', {}) == dest def test_numbering_double(): init() src = Para(createListStr(u'Exercise #'))
ise-uiuc/Magicoder-OSS-Instruct-75K
final InputStream is, final boolean atFirstRecord) throws IOException { final InputStream stream = asRepositionable(is); if (ARCReaderFactory.isARCSuffix(id)) { return ARCReaderFactory.get(id, stream, atFirstRecord); } else if (WARCReaderFactory.isWARCSuffix(id)) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
std::mem::drop(t2); assert_eq!(t1.get_total(), 100); assert_eq!(start.get_total(), 100);
ise-uiuc/Magicoder-OSS-Instruct-75K
return app(CityRepository::class)->getCitiesByCountryId(strip_tags($request->country_id)); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
class RatingConfig(AppConfig): name = 'forum.rating' verbose_name = _('Forum: Ratings') label = 'forum_rating'
ise-uiuc/Magicoder-OSS-Instruct-75K
("Informations personnelles", {"fields": ("first_name", "last_name")}), ("Autres", {"fields": ("is_active", "is_staff")}),
ise-uiuc/Magicoder-OSS-Instruct-75K