seed
stringlengths
1
14k
source
stringclasses
2 values
{ public interface IAccountContext { long Id { get; } string HashedId { get; } string PublicHashedId { get; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.toExternalDictionary(mergeFrom, *args, **kwargs) def _ext_accept_update_key(self, k, ext_self, ext_keys): # pylint:disable=unused-argument """ Returns whether or not this key should be accepted for setting on the object, or silently ignored. :param ext_keys: As an optimization, the value of :meth:`_ext_all_possible_keys` is passed. Keys are only accepted if they are in this list. """ return k not in self._excluded_in_ivars_ and k in ext_keys def _ext_accept_external_id(self, ext_self, parsed): # pylint:disable=unused-argument """ If the object we're updating does not have an ``id`` set, but there is an
ise-uiuc/Magicoder-OSS-Instruct-75K
from __future__ import unicode_literals
ise-uiuc/Magicoder-OSS-Instruct-75K
and (not amethod.get("constructor", False)) and (not amethod.get("destructor", False))): try: self._validate_name(amethod, class_method_re) except SyntaxError: is_need_reraise = True
ise-uiuc/Magicoder-OSS-Instruct-75K
if useSwiftCrypto { package.dependencies.append(.package(url: "https://github.com/apple/swift-crypto.git", from: "1.0.0")) package.targets.first { $0.name == "AWSCrypto" }?.dependencies.append(.product(name: "Crypto", package: "swift-crypto")) }
ise-uiuc/Magicoder-OSS-Instruct-75K
type TextMarker = VueConstructor & PluginObject<void>; declare const marker: TextMarker;
ise-uiuc/Magicoder-OSS-Instruct-75K
def queen(n): try_queen(1,n) n=int(input("请输入n:")) queens = [0]*(n+1) # 列标志 col_flags=[0]*(n+1) # 主对角线标志 diag_flags = [0]*(2*n) # 副对角线标志 diag2_flags = [0] * (2*n)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public ParticleSystem particleSystemPrefab;
ise-uiuc/Magicoder-OSS-Instruct-75K
self.rezero_connection = RezeroConnection() self.decoder_init_proj = nn.Linear(gru_hidden_size, hidden_size) def forward(self, src_embed:torch.Tensor, src_mask, src_len, ans_embed): """ :param src_embed: (B, src_len, embed) :param src_mask: (B, src_len) :param src_len: (B,) :param ans_embed: (B, ans_len, embed) :return: """ packed = pack_padded_sequence(src_embed, src_len, batch_first=True) packed_memory, last_hidden = self.bigru(packed) memory, _ = pad_packed_sequence(packed_memory, batch_first=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
# no unicode literals from __future__ import absolute_import, division, print_function import os import pywatchman import WatchmanEdenTestCase
ise-uiuc/Magicoder-OSS-Instruct-75K
assertThat(result.get("description").textValue(), is("description2")); } @Test public void removeDescription() throws Exception { JsonNode road = mapper.readTree("{\"description\":\"description1\"}"); List<PatchOperation> operations = singletonList(PatchOperation.remove("/description"));
ise-uiuc/Magicoder-OSS-Instruct-75K
_filesystems = None
ise-uiuc/Magicoder-OSS-Instruct-75K
/// For more information, please see the documentation at /// https://www.ffmpeg.org/doxygen/trunk/index.html /// or the source code at https://github.com/FFmpeg/FFmpeg. /// </remarks> internal static class AVUtilInterop { /// <summary> /// The DLL for Windows /// </summary> private const string WindowsAVUtilLibrary = "avutil-55.dll"; /// <summary> /// The SO for Linux /// </summary> private const string LinuxAVUtilLibrary = "avutil-55.so";
ise-uiuc/Magicoder-OSS-Instruct-75K
rm *.out rm *.log rm *.bbl rm *.aux
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Codenom\Framework\Views\Templates\Build\Html; use Naucon\HtmlBuilder\HtmlElementUniversalAbstract; class Head extends HtmlElementUniversalAbstract { /**
ise-uiuc/Magicoder-OSS-Instruct-75K
@check_stack def Cleanup(): """Cleans up resources after a Run call. Not needed for Simulate. See Run(t), Prepare(). Closes state for a series of runs, such as flushing and closing files. A Prepare() is needed after a Cleanup() before any more calls to Run(). """
ise-uiuc/Magicoder-OSS-Instruct-75K
return parent::_createQuery($context, $bundle) ->propertyIs('post_user_id', $context->identity->id); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .getters import get_dist_url, scatter_values
ise-uiuc/Magicoder-OSS-Instruct-75K
import caldav #pylint: disable=import-error except ImportError: print("No module found: vobject. Trying to Install") try: os.system("pip install caldav")
ise-uiuc/Magicoder-OSS-Instruct-75K
class Config: env_file = os.getenv("CONFIG_FILE", ".env")
ise-uiuc/Magicoder-OSS-Instruct-75K
for k, row in enumerate(glyphs): if k < 0x20 or 0xD800 <= k <= 0xDFFF or k == 0xFFFF: yield '// %d ;' % k else: yield '// %d %s ;' % (k, chr(k)) yield (',' if k else '') + ','.join('0x%02x' % x for x in row) yield '};' if __name__ == '__main__':
ise-uiuc/Magicoder-OSS-Instruct-75K
if let dsym = self.dsymFile { self.pathLabel.stringValue = dsym.path self.uuidLabel.stringValue = dsym.uuids.joined(separator: "\n") // TODO: self.exportButton.isHidden = !dsym.isApp } self.revealButton.isHidden = (self.dsymFile?.path == nil) } @IBAction func exportDsym(_ sender: Any) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
targets: [ .target( name: "AsciiTurk", dependencies: []),
ise-uiuc/Magicoder-OSS-Instruct-75K
printf("Did not find path %s in %s.", path.getCString(), defaultIom.getSearchDirectory()); } return false; } } return true; }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.showAlertWithOptions(title: "", message: "Want to exclude?", rightButtonTitle: "YES", leftButtonTitle: "NO", rightDissmisBlock: { self.viewModel.deleteAccount(account: self.account) self.popToAccountListViewContoller() }, leftDissmisBlock: {}) } @IBAction func editButtonTouchUpInside(_ sender: UIBarButtonItem) { showAccountRegisterViewController() } @IBAction func showPaswordTouchUpInside(_ sender: UIButton) { showButton.isSelected = !showButton.isSelected
ise-uiuc/Magicoder-OSS-Instruct-75K
super(AlignDistributeToolBar, self).__init__(parent=parent) self.setObjectName('Alignment Tools') self.main_window = parent
ise-uiuc/Magicoder-OSS-Instruct-75K
treasure='dev') compare = filecmp.cmp( os.path.join(self.path, 'decrypted.yaml'), os.path.join(self.path, 'dev.yaml')
ise-uiuc/Magicoder-OSS-Instruct-75K
let f = #file let l = #line let c = #column if #available(iOS 9.0, *) {} #if false #error("Error") #elseif true #warning("Warning") #else
ise-uiuc/Magicoder-OSS-Instruct-75K
{ var homoginizedViewPosition = worldPosition.Transform(this.ModelviewMatrix); if (IsOrthographic) { return new Vector2(homoginizedViewPosition.Transform(this.ProjectionMatrix)); } else { var homoginizedScreenPosition = homoginizedViewPosition.TransformPerspective(this.ProjectionMatrix); // Screen position return new Vector2(homoginizedScreenPosition.X * Width / 2 + Width / 2, homoginizedScreenPosition.Y * Height / 2 + Height / 2); }
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ package org.nrg.xnat.turbine.modules.screens;
ise-uiuc/Magicoder-OSS-Instruct-75K
public function validate($request); public function isRegistered($phone); public function all(); public function getHighscored($start, $end, $category);
ise-uiuc/Magicoder-OSS-Instruct-75K
key_press_exit="q"): """ Show image in RGB format Parameters
ise-uiuc/Magicoder-OSS-Instruct-75K
SHIM_ALWAYS_EXPORT void malloc_stats(void) __THROW { return tc_malloc_stats(); } SHIM_ALWAYS_EXPORT int mallopt(int cmd, int value) __THROW { return tc_mallopt(cmd, value); } #ifdef HAVE_STRUCT_MALLINFO SHIM_ALWAYS_EXPORT struct mallinfo mallinfo(void) __THROW { return tc_mallinfo();
ise-uiuc/Magicoder-OSS-Instruct-75K
neworder.checkpoints = { #"check_data" : "people.check()", "write_table" : "people.write_table()" }
ise-uiuc/Magicoder-OSS-Instruct-75K
for(int phi = 0; phi<72;phi++){ for(int eta = 0; eta<56;eta++){ indices = orcamap(eta,phi); (barrelData.at(indices.at(0))).at(indices.at(1)).at(indices.at(2)) = combEM.at(phi*56 + eta); (barrelData.at(indices.at(0))).at(indices.at(1)).at(indices.at(2)+32) = combHD.at(phi*56 + eta); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
arr.reduce((a: number, b: number): number => a + b, 0) export const initArray = (length: number): number[] => Array.from({ length }, (): number => 0.0)
ise-uiuc/Magicoder-OSS-Instruct-75K
from problems.problem16 import solution class Test(unittest.TestCase): def test(self): self.assertTrue(solution([2, 3, 1, 1, 4])) self.assertFalse(solution([3, 2, 1, 0, 4]))
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Ошибка в доступе к тесту") print("Предмет:", Text_sub) print(Text_buttons_objects) elif TEXT == Lesson_or_test[0] and TEXT == "УРОК": Buttons_objects[i].click() driver.implicitly_wait(1) if len(driver.find_elements_by_class_name('test-button')) != 0 or len(driver.find_element_by_tag_name('iframe').get_attribute("src")) != 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
package com.pubnub.api; class SubscribeManager extends AbstractSubscribeManager {
ise-uiuc/Magicoder-OSS-Instruct-75K
from sensors.ds18b20 import lookup class DS18B20Query (restful.Resource): def __init__(self, *args, **kwargs): self.sensor_service = kwargs['sensor_service'] def get(self): available = lookup(self.sensor_service.get_config()) return success(available)
ise-uiuc/Magicoder-OSS-Instruct-75K
#[cfg(test)] mod tests { use crate::day2::{part1, part2, Present}; #[test] fn test_part1_1() { assert_eq!(Present::new("2x3x4").unwrap().length, 2); assert_eq!(Present::new("2x3x4").unwrap().width, 3); assert_eq!(Present::new("2x3x4").unwrap().height, 4);
ise-uiuc/Magicoder-OSS-Instruct-75K
import imp import importlib def load(name, path):
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, dispatcher: Requestable) -> None: self.dispatcher = dispatcher
ise-uiuc/Magicoder-OSS-Instruct-75K
"color": "#F5BE31", "createdAt": "2022-03-29T14:40:49.231Z", "id": "234234-7fcd-2342f-b1d0-2342342fg", "isAdmin": true, "isSuspended": false, "isViewer": false,
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(struct["id"], id_value)
ise-uiuc/Magicoder-OSS-Instruct-75K
import elib from ._context import Context
ise-uiuc/Magicoder-OSS-Instruct-75K
var initResult = MasterCommandsManager.networkManager.ReadLine(); if (initResult != "OK") { ColorTools.WriteCommandError(initResult == "NotFound" ? "The remote file doesn't exist" : "An IO exception occured"); return; } var path = args[1]; ColorTools.WriteCommandMessage($"Starting download of file '{args[0]}' from the slave"); try
ise-uiuc/Magicoder-OSS-Instruct-75K
from .settings import config
ise-uiuc/Magicoder-OSS-Instruct-75K
from core.ai.behaviors.meleeattack import MeleeAttack from core.ai.behaviors.move import Move from core.ai.behaviors.wait import Wait
ise-uiuc/Magicoder-OSS-Instruct-75K
def addTsValues( self, tsValues ): # TODO: check for more than one value for the same timestamp self._tsValues.update( tsValues ) def addTsTimeouts( self, tsTimeouts ): self._tsTimeouts.update( tsTimeouts ) # stressTestPV.analyze def analyze( self ):
ise-uiuc/Magicoder-OSS-Instruct-75K
A bank account has a holder name (first name, middle name and last name), available amount of money (balance), bank name, IBAN, 3 credit card numbers associated with the account. Declare the variables needed to keep the information for a single bank account using the appropriate data types and descriptive names. */ using System; class BankAccount { static void Main()
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Seydu\DataQueryFilter; interface FilterQueryBuilderInterface { /**
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * 匹配插件
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { Some(&s[i]) } } (Document::Map(ref map), _) => map.get(self), _ => None, }
ise-uiuc/Magicoder-OSS-Instruct-75K
make-release --channel samsung make-release --channel huawei
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Utilus/terraform-aws-datadog-firewall #!/usr/bin/env bash URL=$1 KEY=$2 LIMIT=$3 curl "${URL}/${KEY}.json" | jq \ --arg values_key "${KEY}" \
ise-uiuc/Magicoder-OSS-Instruct-75K
if result: if verbose: availability += "\n" + q + ": " else: if firstone == True: firstone = False
ise-uiuc/Magicoder-OSS-Instruct-75K
for w in words: camel += w.title() return camel def multireplace(string, replacements, ignore_case=False): """ Given a string and a dict, replaces occurrences of the dict keys found in the
ise-uiuc/Magicoder-OSS-Instruct-75K
return res T = int(input())
ise-uiuc/Magicoder-OSS-Instruct-75K
def product_sans_n(nums): if nums.count(0)>=2: return [0]*len(nums) elif nums.count(0)==1: temp=[0]*len(nums) temp[nums.index(0)]=product(nums) return temp res=product(nums) return [res//i for i in nums] def product(arr): total=1
ise-uiuc/Magicoder-OSS-Instruct-75K
class DnireniecConfig(AppConfig): name = 'dnireniec'
ise-uiuc/Magicoder-OSS-Instruct-75K
def run(db_node): func = db.get_executable(db_node) cp_df = cp(df) return func(cp_df) db = None
ise-uiuc/Magicoder-OSS-Instruct-75K
struct ErrorView_Preview: PreviewProvider { static var previews: some View { ErrorView(type: .threadDeleted) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def create_validator( function: Callable[[Text], bool], error_message: Text ) -> Type["Validator"]: """Helper method to create `Validator` classes from callable functions. Should be removed when questionary supports `Validator` objects.""" from prompt_toolkit.validation import Validator, ValidationError from prompt_toolkit.document import Document
ise-uiuc/Magicoder-OSS-Instruct-75K
s = s +(i[0] * i[1]) return s t = [] x= (0,0.2) t.append(x) t.append((137,0.55)) t.append((170,0.25))
ise-uiuc/Magicoder-OSS-Instruct-75K
{ use WithPagination; public function render() {
ise-uiuc/Magicoder-OSS-Instruct-75K
plan = invoiced.Plan(self.client, "starter") plan.name = "Pro" self.assertTrue(plan.save()) self.assertEqual(plan.name, "Pro") @responses.activate def test_list(self): responses.add('GET', 'https://api.invoiced.com/plans',
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "FloorTest.h"
ise-uiuc/Magicoder-OSS-Instruct-75K
// let S1 = try! scanner.scanUpTo(0x58)!.toString() // XCTAssertEqual(S1, "") // } //
ise-uiuc/Magicoder-OSS-Instruct-75K
return browser def open_chat(browser: WebDriver, id: str) -> WebDriver: browser.get('https://mbasic.facebook.com/messages/read/?tid=cid.' + id) return browser def check_message(browser: WebDriver) -> list:
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>api/serializers.py from rest_framework import serializers from .models import * class taskSerializer(serializers.Serializer): task_id = serializers.CharField()
ise-uiuc/Magicoder-OSS-Instruct-75K
}; const UploadDocument = ({ label, onchange }: Props): JSX.Element => { const handleClick = (): void => { document.getElementById("input")?.click(); }; return (
ise-uiuc/Magicoder-OSS-Instruct-75K
float getGrinding(); float getChance(); float getPower(); int getDurability(); }
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 License for the specific language governing permissions and # limitations under the License. from opsramp.api import ORapi
ise-uiuc/Magicoder-OSS-Instruct-75K
git remote add test-origin-1 https://github.com/frost-nzcr4/find_forks.git git remote add test-origin-2 https://github.com/yagmort/symfony1.git git remote add test-origin-3 git@github.com:tjerkw/Android-SlideExpandableListView.git """ user, repo = determine_names() self.assertEqual(user, 'frost-nzcr4') self.assertEqual(repo, 'find_forks') user, repo = determine_names('test-origin-1') self.assertEqual(user, 'frost-nzcr4') self.assertEqual(repo, 'webmoney')
ise-uiuc/Magicoder-OSS-Instruct-75K
search?: string; @IsOptional() @IsEnum(ProductCategory) category?: ProductCategory; }
ise-uiuc/Magicoder-OSS-Instruct-75K
for y in range(size_y): print('Proccessing [{}/{}]'.format(y, size_y - 1), end="\r") for x in range(size_x): if check_point_asph(x - x_pos_asph, y - y_pos_asph, d_asph, diameter_asph, lam, lam_px): eps.append(n_asph) elif check_point_sph(x - x_pos_sph, y - y_pos_sph, radius_sph, d_sph, 10000000): eps.append(n_sph)
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_eh_conn_str_parse_with_entity_path(self, **kwargs): conn_str = 'Endpoint=sb://eh-namespace.servicebus.windows.net/;SharedAccessKeyName=test-policy;SharedAccessKey=<KEY>=;EntityPath=eventhub-name' parse_result = parse_connection_string(conn_str) assert parse_result.endpoint == 'sb://eh-namespace.servicebus.windows.net/' assert parse_result.fully_qualified_namespace == 'eh-namespace.servicebus.windows.net' assert parse_result.shared_access_key_name == 'test-policy' assert parse_result.shared_access_key == '<KEY> assert parse_result.eventhub_name == 'eventhub-name' def test_eh_conn_str_parse_sas_and_shared_key(self, **kwargs): conn_str = 'Endpoint=sb://eh-namespace.servicebus.windows.net/;SharedAccessKeyName=test-policy;SharedAccessKey=THISISATESTKEYXXXXXXXX<KEY>=;SharedAccessSignature=THISISASASXXXXXXX=' with pytest.raises(ValueError) as e: parse_result = parse_connection_string(conn_str) assert str(e.value) == 'Only one of the SharedAccessKey or SharedAccessSignature must be present.'
ise-uiuc/Magicoder-OSS-Instruct-75K
print('Reading data into memory')
ise-uiuc/Magicoder-OSS-Instruct-75K
joint.create(); SUCCEED(); } TEST_F(Box2dJointTest, Update) { jt::Box2DJoint joint { m_mockWorld, nullptr }; joint.update(1.0f); SUCCEED(); } TEST_F(Box2dJointTest, Draw) { jt::Box2DJoint joint { m_mockWorld, nullptr };
ise-uiuc/Magicoder-OSS-Instruct-75K
*~*) echo $1 ;; */*) start=${1%/*} mask=${1#*/} if [ ${#mask} -gt 2 ];then end=$(( $(IP2long $start) + (1<<32) - $(IP2long $mask) -1 )) else end=$(( $(IP2long $start) + (1 << (32-mask)) -1 )) fi echo "$start~$(long2IP $end)" ;; *) echo
ise-uiuc/Magicoder-OSS-Instruct-75K
X = scale(X) X = np.transpose(np.concatenate((np.array([ones]).reshape(-1, 1), X), axis=1)) zeroes = [0] * X.shape[0] theta = np.array([zeroes]) for i in range(self.max_iter): htheta = np.dot(theta, X) diff_theta = htheta - y.values partial_derivative_theta = np.dot(diff_theta, np.transpose(X)) / len(y.values) theta = theta - self.learning_rate * partial_derivative_theta self.new_theta.append(theta)
ise-uiuc/Magicoder-OSS-Instruct-75K
'api/:version/goods_addcart' => 'api/:version.Goods/addCart', //添加购物车 'api/:version/submit_orders_api' => 'api/:version.Order/submit_orders_api', //单个商品订单提交 'api/:version/pay_paysubmit' => 'api/:version.Pay/paySubmit', //支付订单提交 'api/:version/pay_payupdate' => 'api/:version.Pay/payUpdate', //多个订单付款 'api/:version/user_cart_onesubmit' => 'api/:version.Cart/cartOneSubmit', //用户购物车修改数据 'api/:version/cache_cartid' => 'api/:version.Order/cacheCartid', //缓存购物车id 'api/:version/cart_order_submit' => 'api/:version.Order/cart_order_submit', //购物车订单提交 ]);
ise-uiuc/Magicoder-OSS-Instruct-75K
private void Start() { _lifeTime = GetComponent<ParticleSystem>().main.startLifetimeMultiplier; } void Update () { _timer += Time.deltaTime; if (_timer >= _lifeTime) { Destroy(gameObject);
ise-uiuc/Magicoder-OSS-Instruct-75K
mails ) ddev launch -m &>/dev/null return esac ddev exec -- "$@" } ddev-install() {
ise-uiuc/Magicoder-OSS-Instruct-75K
brand_id = db.Column(db.Integer, db.ForeignKey('brands.id')) def __repr__(self): return "<Product '{}'>".format(self.name)
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Deshdeepak1/unstable-packages<gh_stars>1-10 TERMUX_PKG_HOMEPAGE=https://github.com/Tencent/rapidjson/ TERMUX_PKG_DESCRIPTION="fast JSON parser/generator for C++ with SAX/DOM style API" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_VERSION=1.1.0 TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz TERMUX_PKG_SHA256=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DRAPIDJSON_BUILD_EXAMPLES=OFF"
ise-uiuc/Magicoder-OSS-Instruct-75K
(12 - T_axes[1]), (12 - T_axes[2])] return(listofDist) def distanceInt(interval, T_axes): """Return a value that evaluates an interval. A single value in [0-2] estimation of note distance this is used to chose the origin point """ listofDist = distanceOne(T_axes)
ise-uiuc/Magicoder-OSS-Instruct-75K
requires_netmask_conversion = True convert_mac = BaseProfile.convert_mac_to_cisco config_volatile = [r"^ntp clock-period .*?^"] telnet_naws = b"\x7f\x7f\x7f\x7f" rx_card = re.compile( r"1\s+(?P<shelf>\d+)\s+(?P<slot>\d+)\s+" r"(?P<cfgtype>\S+)\s+(?P<realtype>\S+|)\s+(?P<port>\d+)\s+" r"(?P<hardver>V?\S+|)\s+(?P<softver>V\S+|)\s+(?P<status>INSERVICE|OFFLINE|STANDBY|NOPOWER)" ) rx_card2 = re.compile( r"(?P<shelf>\d+)\s+(?P<slot>\d+)\s+" r"(?P<cfgtype>\S+)\s+(?P<realtype>\S+|)\s+(?P<port>\d+)\s+" r"(?P<hardver>V?\S+|N/A|)\s+(?P<status>INSERVICE|OFFLINE|STANDBY|NOPOWER)" )
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param taskFreq {@link TaskFrequency} in display format that describes how * often the task should be executed: "1 DAY", "30 MINUTES", etc. * Can be empty/null when the task is being executed "now". */ public Task(ApplicationDefinition appDef, String tableName, String taskName, String taskFreq) { m_appDef = appDef; m_appName = appDef.getAppName(); m_tenant = Tenant.getTenant(m_appDef); m_tableName = Utils.isEmpty(tableName) ? "*" : tableName; m_taskName = taskName; m_taskFreq = new TaskFrequency(Utils.isEmpty(taskFreq) ? "1 MINUTE" : taskFreq); }
ise-uiuc/Magicoder-OSS-Instruct-75K
import GatherDataSetScripts.Video as VideoClass import json from dateutil import parser
ise-uiuc/Magicoder-OSS-Instruct-75K
* process.thinningThingProducerN * process.thinningThingProducerO * process.testA * process.testB * process.testC )
ise-uiuc/Magicoder-OSS-Instruct-75K
# -------------------------------------------------------------------------- # @mock.patch.object(RSH, '__init__', return_value=None) @mock.patch('radical.utils.which', return_value='/usr/bin/rsh') def test_init_from_scratch(self, mocked_which, mocked_init): lm_rsh = RSH('', {}, None, None, None) lm_info = lm_rsh._init_from_scratch({}, '') self.assertEqual(lm_info['command'], mocked_which())
ise-uiuc/Magicoder-OSS-Instruct-75K
"comp_swapsEager", "comp_swapsLazy", "comp_swapsLazier", "comp_avgBlockSizeEager", "comp_avgBlockSizeLazy", "comp_avgBlockSizeLazier", "comp_avgAltBlockSizeEager", "comp_avgAltBlockSizeLazy", "comp_avgAltBlockSizeLazier", "better"] print(",".join(columns), file=output_fh) # print("sentID,words,swapsEager,swapsLazy,swapsLazier,avgBlockSizeEager,avgBlockSizeLazy,avgBlockSizeLazier,avgAltBlockSizeEager,avgAltBlockSizeLazy,avgAltBlockSizeLazier,better", file=output_fh)
ise-uiuc/Magicoder-OSS-Instruct-75K
ASSERT(CLOCK::now() >= tp); } return ret; } #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
p.x = p2.x + width * dy2; p.y = p2.y - width * dx2; p.z = p2.z; if (!points->Add (&p)) return (false);
ise-uiuc/Magicoder-OSS-Instruct-75K
docker push $tag } function deploy() { # Login first REGISTRY="quay.io" if [ -n "${QUAY_USERNAME}" -a -n "${QUAY_PASSWORD}" ]; then docker login -u ${QUAY_USERNAME} -p ${QUAY_PASSWORD} ${REGISTRY}
ise-uiuc/Magicoder-OSS-Instruct-75K
class AnnotationRequest: def __init__(self, dataset, claim=None): super().__init__() if claim is None: self.example = dataset[random.randint(0, len(dataset))]
ise-uiuc/Magicoder-OSS-Instruct-75K
# create the encoder and decoder networks self.encoder = Encoder(z_dim, hidden_dim) self.decoder = Decoder(z_dim, hidden_dim) self.use_cuda = use_cuda self.z_dim = z_dim # define the model p(x|z)p(z) # x: is batch_size X 784 size def model(self, x): pyro.module("decoder", self.decoder) with pyro.plate("data", x.shape[0]): # we need to identify a separate z for each x, each z_i has a unique prior/posterior # setup hyperparameters for prior p(z) z_loc = x.new_zeros(torch.Size((x.shape[0], self.z_dim))) # unit Gaussian prior, constant values z_scale = x.new_ones(torch.Size((x.shape[0], self.z_dim)))
ise-uiuc/Magicoder-OSS-Instruct-75K
StringBuilder sql = new StringBuilder(); sql.append("select *").append(" from sys_user u inner join oa_emp e on e.uid=u.id").append(" where u.flag!=") .append(EmployeeEntity.FLAG_DELETED).append(" and ").append(field); if (value == null) { sql.append(" is null "); } else { sql.append("=? "); } if (orderbys.length > 0) { sql.append(" order by "); for (String orderby : orderbys) { sql.append(orderby).append(","); } sql.setCharAt(sql.length() - 1, ' '); }
ise-uiuc/Magicoder-OSS-Instruct-75K