seed
stringlengths
1
14k
source
stringclasses
2 values
constructor(private http: HttpClient) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
if(js==0)cout<<"nil"; cout<<endl; js=0; f { if(fa[i]||fb[i]) { cout<<i-40000<<' ';js=1; } } if(js==0)cout<<"nil"; cout<<endl; f { if(fa[i]&&(!fb[i]))
ise-uiuc/Magicoder-OSS-Instruct-75K
temp = [i for i in next(os.walk(XLSDIR))[2] if i.endswith("xlsx") or i.endswith("xls")] flist = {} for i in temp: name = i.split(" ")[0].split("-")[0].split(".")[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
// Abort if already at the start of the string if (_currentIndex == 0) return false; // Move back one char to ensure we're in the middle of a char sequence do { _currentChar--; } while ((*_currentChar >= 0x80) && (*_currentChar < 0xC0));
ise-uiuc/Magicoder-OSS-Instruct-75K
@reciver('install') def _install_app_options(app): install_options.send(app, options=options)
ise-uiuc/Magicoder-OSS-Instruct-75K
func validate() throws -> Self } public extension Decodable {
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np img = cv.imread('Photos/park.jpg') cv.imshow('Original', img) grayscale = cv.cvtColor(img, cv.COLOR_BGR2GRAY) cv.imshow("Jesmin", grayscale) #Condition for Laplacian: Cannot take negative values #Laplacian Edge Detection lap = cv.Laplacian(grayscale, cv.CV_64F) absouluteLap = np.uint8(np.absolute(lap))
ise-uiuc/Magicoder-OSS-Instruct-75K
grouped_data = data.loc[:, ['month', 'year'] + vars + out_keys].groupby(['month', 'year']) grouped_data = grouped_data.aggregate(aggs).reset_index() grouped_data.to_csv(os.path.join(event_def_dir, 'hot_monthly_data.csv')) grouped_data.drop(columns=['year']).groupby('month').describe().to_csv(os.path.join(event_def_dir, 'hot_monthly_data_desc.csv')) # number of n days out_keys2 = [] for nd in ndays:
ise-uiuc/Magicoder-OSS-Instruct-75K
auth: { clientId: this.azureClientID, // redirectUri: 'http://localhost:4200/assets/login-redirect.html' }, system: { logger: this.azureLogger } }; if (this.azureTenantID) { // To support single-tenant applications msalConfig['auth']['authority'] = `https://login.microsoftonline.com/${this.azureTenantID}` }
ise-uiuc/Magicoder-OSS-Instruct-75K
valueTextField.inputView = inputView } else { self.valueTextField.delegate = self
ise-uiuc/Magicoder-OSS-Instruct-75K
ba.set(i: 0, val: true) ba.set(i: 5, val: false)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.tor_client = c self.change_state_connected_to_tor() def _cleanup(self): ''' Cleanup all of our state while being very careful to not allow any exceptions to bubble up. Use this when in an error state and you want to cleanup before starting over or just dying. ''' if hasattr(self, 'meas_server') and self.meas_server: log.info('cleanup: closing listening sockets for measurers')
ise-uiuc/Magicoder-OSS-Instruct-75K
</a> </li> <li> <a href={'#Cookies'} className={SUBTLE_LINK}> Cookies </a> </li> <li> <a href={'#Webtracking'} className={SUBTLE_LINK}>
ise-uiuc/Magicoder-OSS-Instruct-75K
return Bytes.fromCBOR(ur.cbor); case RegistryTypes.CRYPTO_HDKEY.getType(): return CryptoHDKey.fromCBOR(ur.cbor); case RegistryTypes.CRYPTO_KEYPATH.getType(): return CryptoKeypath.fromCBOR(ur.cbor);
ise-uiuc/Magicoder-OSS-Instruct-75K
class NotLatestVersion(BaseCommonException): """ The installed version is not the latest available version """ def __init__(self, upstream_version): self.upstream_version = upstream_version
ise-uiuc/Magicoder-OSS-Instruct-75K
} public void Insert(Tax model)
ise-uiuc/Magicoder-OSS-Instruct-75K
from dgcnn.pytorch.model import DGCNN as DGCNN_original from all_utils import DATASET_NUM_CLASS class DGCNN(nn.Module): def __init__(self, task, dataset): super().__init__()
ise-uiuc/Magicoder-OSS-Instruct-75K
html = browser.html soup = bs(html, 'html.parser') # In[5]: # Find image relative path
ise-uiuc/Magicoder-OSS-Instruct-75K
def edition_list(request): editions = Edition.objects.all().order_by('-date_published') paginator = Paginator(editions, 21) try: page = int(request.GET.get('pagina', '1')) except ValueError: page = 1 try: editions = paginator.page(page) except (EmptyPage, InvalidPage): editions = paginator.page(paginator.num_pages) return 'list.html', {'editions': editions} @to_response
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(Conversation, ConversationAdmin)
ise-uiuc/Magicoder-OSS-Instruct-75K
 @{ ViewBag.Title = "Anulación"; } <h3>Transacción anulada en forma exitosa!</h3>
ise-uiuc/Magicoder-OSS-Instruct-75K
CONSUMER_SECRET = "<KEY>"
ise-uiuc/Magicoder-OSS-Instruct-75K
# from lino.api import dd from lino.core import constants # from lino.core import auth from lino.core.requests import BaseRequest from lino.core.tablerequest import TableRequest from lino.core.views import action_request from lino.core.utils import navinfo from etgen.html import E, tostring from etgen import html as xghtml PLAIN_PAGE_LENGTH = 15 MENUS = dict()
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="dapos-calculator-sm" id="smCalculatorPopup"> <div class="popup-head"> <button type="button" class="close" aria-label="Close" onclick="closeSmCalculator()"> <i class="material-icons">close</i> </button> </div> <div class="block"> <input type="text" class="popup-input-number input-lg" id="calculator-sm-value" style="width: 300px;" readonly> </div> <div class="block"> <label class="fs18 popup-label"></label> <button type="button" class="btn btn-lg btn-default calculator-button" onclick="setSmCalculatorValue(1)">1</button> <button type="button" class="btn btn-lg btn-default calculator-button" onclick="setSmCalculatorValue(2)">2</button> <button type="button" class="btn btn-lg btn-default calculator-button" onclick="setSmCalculatorValue(3)">3</button> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
def timeNumberPortionPlot(title, x_label, y_label, dim_length, robot_type): """ Plots the relation between the number of robots and the average time taken to clean a certain portion of the room, (each portion is plotted) """ num_robot_range = range(1, 11) coverage_percent_range = range(70, 105, 5) coverage_percent_range = [i/100 for i in coverage_percent_range] alist, blist, clist, dlist, elist, flist, glist = ([] for i in range(7))
ise-uiuc/Magicoder-OSS-Instruct-75K
rm -rf __pycache__
ise-uiuc/Magicoder-OSS-Instruct-75K
ret.append(x) else: ret = li
ise-uiuc/Magicoder-OSS-Instruct-75K
for extra in pool_config_defaults.keys(): if extra in conn_params: del conn_params[extra] self.create_connection_pool(conn_params) return PooledConnection(connection_pools[self.alias]['pool'], test_query=self._test_on_borrow_query)
ise-uiuc/Magicoder-OSS-Instruct-75K
use Livewire\Component;
ise-uiuc/Magicoder-OSS-Instruct-75K
path: routes.api().auth().session().path, tokenType: "refresh", }); const { access_token: accessToken } = response as Record<string, unknown>; if (typeof accessToken === "string") { this.accessToken = accessToken; } else { throw new Error("Expected an 'access_token' in the response");
ise-uiuc/Magicoder-OSS-Instruct-75K
function () { 'use strict'; function FareForecast(recommendation) { this.recommendation = recommendation; } return FareForecast; });
ise-uiuc/Magicoder-OSS-Instruct-75K
videos: typeof _videos;
ise-uiuc/Magicoder-OSS-Instruct-75K
* See the License for the specific language governing permissions and * limitations under the License. */ import PackageDescription let package = Package( name: "Nakama", platforms: [ .macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)
ise-uiuc/Magicoder-OSS-Instruct-75K
/etc/init.d/warsaw start # Run Firefox as non privileged user setpriv --reuid=ff --regid=ff --init-groups --inh-caps=-all --reset-env env DISPLAY=$DISPLAY LANG=$LANG TZ=$TZ startup.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
]), # ImGuiIO & GetIO ( ) 'GetIO': Function(parser.parse('ImGuiIO &'), []), # ImGuiStyle & GetStyle ( ) 'GetStyle': Function(parser.parse('ImGuiStyle &'), []), # void NewFrame ( ) 'NewFrame': Function(cpptypeinfo.Void(), []), 'EndFrame':
ise-uiuc/Magicoder-OSS-Instruct-75K
[Required] public string Name { get; set;} [Required] public string Username { get; set;} public int? TimesLoggedIn { get; set;} [Required] public DateTime DateCreatedUtc { get; set;} public DateTime? LastLoggedInUtc { get; set;} public Pet FavouritePet { get; set;} } public partial class Pet {
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace System.Security.Permissions {
ise-uiuc/Magicoder-OSS-Instruct-75K
}, }, ] WSGI_APPLICATION = 'wsgi.application' # Internationalization LANGUAGE_CODE = const.DEFAULT_LANGUAGE_CODE LANGUAGES_BIDI = ['ar', 'he', 'fa', 'iw', 'ur'] USE_I18N = True
ise-uiuc/Magicoder-OSS-Instruct-75K
# Exit # _exit $EXITSTAT #
ise-uiuc/Magicoder-OSS-Instruct-75K
continue pwfl(f"Msg Received: {msg}\n") msg = codecs.decode(msg, "hex") try: msgHeader = GenericMessageHeader.parse(msg[0:MESSAGE_HEADER_LEN]) except StreamError as e: continue
ise-uiuc/Magicoder-OSS-Instruct-75K
--train_file targetp_dataset_train.csv \ --test_file targetp_dataset_test.csv \ --emb_name dom2vec \ --use_emb 1 \ --emb_file /home/melidis/emb/no_red_gap/dom2vec_w2_sg1_hierSoft0_dim200_e50_norm.txt \ --emb_bin 0 \ --freeze_emb 0 \ --normalize_emb 0 \ --k_fold -1 \ --model_type CNN \ --batch_size 2048 \ --learning_rate 0.0005 \ --epoches 300 \ --weight_decay 0 \ --num_filters 200 \
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np
ise-uiuc/Magicoder-OSS-Instruct-75K
from .discover import ( discover_aces_ctl_transforms, classify_aces_ctl_transforms, unclassify_ctl_transforms, filter_ctl_transforms, print_aces_taxonomy, build_aces_conversion_graph, node_to_ctl_transform, ctl_transform_to_node,
ise-uiuc/Magicoder-OSS-Instruct-75K
fn sass_sprite<'a>(sprite_map:&'a SpriteMap, arg: Option<String>) -> Result<&'a SpriteRegion,String> { match arg { Some(sprite_name) => { match sprite_map.region(&*sprite_name) { Some(ref region) => {
ise-uiuc/Magicoder-OSS-Instruct-75K
return HttpResponse(self.render(request, **kwargs)) def render(self, **kwargs): request = kwargs.get('request') objects = self.gallery.ordered_images() remaining = [] # check if the type is paginated
ise-uiuc/Magicoder-OSS-Instruct-75K
final class FooterContent: UIView, NibLoadable { @IBOutlet var textLabel: UILabel! }
ise-uiuc/Magicoder-OSS-Instruct-75K
def random(): """Generates a random cube and sets the corresponding facelet colors.""" cc = cubie.CubieCube() cc.randomize() fc = cc.to_facelet_cube() idx = 0 for f in range(6): for row in range(3): for col in range(3): canvas.itemconfig(facelet_id[f][row][col], fill=cols[fc.f[idx]] ) idx += 1 ########################################################################################################################
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': unittest.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
text = '\\alpha_{{{}}}'.format(content) tree = self.parse(text) self.assertEqual(len(tree.children), 2) self.assertIsInstance(tree.children[0], P.Macro) self.assertIsInstance(tree.children[1], P.UnaryOperator) self.assertEqual(tree.children[1].children[0].text, content) def test_separator(self): bef = 'a'
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->assertEquals("exclureLfr2012", $obj->getExclureLfr2012()); } /**
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>RyoOzaki/SpeechFeatureExtraction from .speech_feature_extraction import Extractor
ise-uiuc/Magicoder-OSS-Instruct-75K
hote = '' port = 12800
ise-uiuc/Magicoder-OSS-Instruct-75K
assert hash(meas_spec) == hash(meas_spec2) cirq.testing.assert_equivalent_repr(meas_spec)
ise-uiuc/Magicoder-OSS-Instruct-75K
dark_button = wx.Button(self.panel1, 3,"DARK" ) dark_button.Bind(wx.EVT_BUTTON, partial(self.choiceColor, button_label="DARK")) purple_button = wx.Button(self.panel1, 3, "PURPLE") purple_button.Bind(wx.EVT_BUTTON, partial(self.choiceColor, button_label="PURPLE")) blue_button = wx.Button(self.panel1,3,"BLUE") blue_button.Bind(wx.EVT_BUTTON, partial(self.choiceColor, button_label="BLUE")) green_button = wx.Button(self.panel1, 3, "GREEN") green_button.Bind(wx.EVT_BUTTON, partial(self.choiceColor, button_label="GREEN"))
ise-uiuc/Magicoder-OSS-Instruct-75K
# load fields ds = nc.Dataset(indir + fn) s = ds['salt'][:] mask = s[0,:,:].squeeze().mask th = ds['temp'][:]
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="icheck-primary"> <input type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}> <label for="remember"> Remember Me </label>
ise-uiuc/Magicoder-OSS-Instruct-75K
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. import UIKit import Mockingbird extension ViewModifiers.LayoutPriority: UIKitNodeModifierResolvable { private class Node: UIKitNodeModifier {
ise-uiuc/Magicoder-OSS-Instruct-75K
pub trait ZenlinkDexApi<AccountId, AssetId, TokenBalance, Balance, ExchangeId> where AccountId: Codec, AssetId: Codec, TokenBalance: Codec, Balance: Codec, ExchangeId: Codec,
ise-uiuc/Magicoder-OSS-Instruct-75K
interface Props { message: string; onClose?: () => void; open: boolean;
ise-uiuc/Magicoder-OSS-Instruct-75K
from os import path from setuptools import find_packages from setuptools import setup HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, 'requirements.txt')) as f: requirements = [] for line in f: requirements.append(line.strip())
ise-uiuc/Magicoder-OSS-Instruct-75K
guard let number = currentTheme?.value(forKeyPath: keyPath) as? NSNumber else { print("SwiftTheme WARNING: Not found number key path: \(keyPath)") return nil } return number } public class func dictionary(for keyPath: String) -> NSDictionary? {
ise-uiuc/Magicoder-OSS-Instruct-75K
using Mizore.CommunicationHandler.ResponseHandler.Admin; using Mizore.ContentSerializer.Data; namespace Mizore.CommunicationHandler.RequestHandler.Admin {
ise-uiuc/Magicoder-OSS-Instruct-75K
from pytorch_lightning.metrics.functional import accuracy class LinearModel(nn.Module): def __init__(self, input_dim, num_classes): super().__init__() self.in_features = input_dim self.flatten = nn.Flatten() self.out = nn.Linear(input_dim, num_classes)
ise-uiuc/Magicoder-OSS-Instruct-75K
func showToast(message: String?) { var style = ToastManager.shared.style style.backgroundColor = UIColor.Material.green style.maxHeightPercentage = 0.5 UIApplication.shared.keyWindow?.makeToast(message) }
ise-uiuc/Magicoder-OSS-Instruct-75K
} */ private static SonogramConfig ParametersToSonogramConfig(CommonParameters common)
ise-uiuc/Magicoder-OSS-Instruct-75K
from bot.cogs.cog import Cog from log import init_logger, LogLevel __all__ = ["Debug"] log = init_logger(__name__, LogLevel.DEBUG) class Debug(Cog): def __init__(self, bot: commands.Bot, enabled=False) -> None: super().__init__("debug", bot) self.enabled = enabled
ise-uiuc/Magicoder-OSS-Instruct-75K
time = (end - start) / cv2.getTickFrequency() print(time) start = cv2.getTickCount() ksize = 5 sigma = 10 parameters_string = 'ksize_' + str(ksize) + '_sigma_' + str(sigma) pre_processing_list = [parameters_string, gaussian_blur, [ksize, sigma]]
ise-uiuc/Magicoder-OSS-Instruct-75K
csolution = puzzle.getSolution('c') for i in range(w-3): spots = [(i,-2),(i,w-1),(i+1,w-1),(i+2,w-2)] solveRowCol (puzzle, w, 'r', rsolution[i], i, spots, solutionPath) spots = [(-2,i),(w-1,i),(w-1,i+1),(w-2,i+2)]
ise-uiuc/Magicoder-OSS-Instruct-75K
def open_firefox(): tts('Aye aye captain, opening Firefox') webdriver.Firefox()
ise-uiuc/Magicoder-OSS-Instruct-75K
let progress = Arc::new(AtomicU64::new(0)); panel.start(); // todo: shuffle keys for "random write". for _ in 0..repeat_time { let helixdb = helixdb.clone(); let progress = progress.clone();
ise-uiuc/Magicoder-OSS-Instruct-75K
from enum import Enum, auto """Represents the IDs of difficulty levels. """ class DifficultyID(Enum):
ise-uiuc/Magicoder-OSS-Instruct-75K
sudo gedit /opt/proxyscan/proxy.conf chromium-browser
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/database/resource.rs
ise-uiuc/Magicoder-OSS-Instruct-75K
done() } } } afterEach { waitUntil { done in Manager.auth.logout { success in done()
ise-uiuc/Magicoder-OSS-Instruct-75K
actions: bindActionCreators({ createAction, setEditingActions, setInfo, markResourceDirtyAtSplit, }, dispatch) });
ise-uiuc/Magicoder-OSS-Instruct-75K
# Could not find a local log file for the run-folder for which the upload has been initiated # The log file could have been moved or deleted. Treat this as an lapsed upload
ise-uiuc/Magicoder-OSS-Instruct-75K
{ //print_r( $user=USER::all()); // return Session::get('logData');
ise-uiuc/Magicoder-OSS-Instruct-75K
} public function getName() { return 'classcentral_credentialbundle_credentialtype'; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
summary[case] = {
ise-uiuc/Magicoder-OSS-Instruct-75K
def build_weighted_graph(data: List[str]) -> Dict[str, List[Tuple[str, int]]]: root_regex = re.compile(r"([\w ]+) bags contain") children_regex = re.compile(r"(?:(?:(\d+) ([\w ]+)) bags?)+")
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Always returns the constructor-specified HTTP and HTTPS ports. *
ise-uiuc/Magicoder-OSS-Instruct-75K
import { MatTabsModule } from '@angular/material/tabs'; import { TestResultsModule } from '@codelab/utils/src/lib/test-results/test-results.module'; import { TypescriptCheckerRunnerModule } from '@codelab/utils/src/lib/sandbox-runner/typescript-checker-runner/typescript-checker-runner.module'; import { SandboxRunnerModule } from '@codelab/utils/src/lib/sandbox-runner/sandbox-runner.module'; import { SyncDirectivesModule } from '@codelab/utils/src/lib/sync/directives/sync-directives.module'; import { SyncCodeGamePresenterComponent } from './sync-code-game-presenter/sync-code-game-presenter.component'; import { SyncCodeGameAdminComponent } from './sync-code-game-admin/sync-code-game-admin.component'; import { SyncCodeGameViewerComponent } from './sync-code-game-viewer/sync-code-game-viewer.component';
ise-uiuc/Magicoder-OSS-Instruct-75K
This class is optimized for a standard CLI environment. Usage: >>> app = Application('myapp', '1.0 (stable)') >>> app.add(HelpCommand()) >>> app.run() """ def __init__( self, name=None, version=None, complete=True, config=None ): # type: (str, str, bool, Optional[ApplicationConfig]) -> None
ise-uiuc/Magicoder-OSS-Instruct-75K
get_env "$environment" > "$tempdir/cloudenv-edit-$environment" bash -c "source '$tempdir/cloudenv-edit-$environment'; rm -rf $tempdir; $command" rm -rf "$tempdir"
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Copyright 2020 The XLS Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.
ise-uiuc/Magicoder-OSS-Instruct-75K
case .sha256: return SecPadding.PKCS1SHA256
ise-uiuc/Magicoder-OSS-Instruct-75K
Route::post('/ads', [AdsController::class, 'store']); Route::get('/viewads', [ViewAdsController::class, 'index'])->name('viewads'); Route::get('/viewads/{ad}', [ViewAdsController::class, 'show'])->name('viewads.show'); Route::delete('/viewads/{ad}', [ViewAdsController::class, 'destroy'])->name('ads.destroy'); Route::get('/editad/{id}', [ViewAdsController::class, 'edit']); Route::put('/updatead/{id}', [ViewAdsController::class, 'update']); Route::post('/ads/{ad}/likes', [AdLikeController::class, 'store'])->name('ads.likes'); Route::delete('/ads/{ad}/likes', [AdLikeController::class, 'destroy'])->name('ads.likes'); Route::get('/adsliked/{id}', [AdLikeController::class, 'showLikeAd'])->name('adsliked');
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>rishikesh67/django-tenant-oracle-schemas from .tenant_data_mixin import TenantDataMixin
ise-uiuc/Magicoder-OSS-Instruct-75K
std::vector<int> * GetIdxSetFromIdxBuffer(); Tensor<DTYPE> * Concatenate(std::queue<Tensor<DTYPE> *>& setOfData); void Push2GlobalBuffer(std::vector<Tensor<DTYPE> *> *preprocessedData); std::vector<Tensor<DTYPE> *>* GetDataFromGlobalBuffer(); int GetBatchSize(){return m_batchSize;} int GetWorkingSignal(){return m_nowWorking;} int GetNumOfEachDatasetMember(){return m_numOfEachDatasetMember;} Dataset<DTYPE> * GetDataset(){return m_pDataset;}
ise-uiuc/Magicoder-OSS-Instruct-75K
K2 = h * dy(x + h/2, y + K1/2, u + L1/2) L3 = h * du(x + h/2, y + K2/2, u + L2/2) K3 = h * dy(x + h/2, y + K2/2, u + L2/2)
ise-uiuc/Magicoder-OSS-Instruct-75K
object = Order(EXAMPLE_UNIT, SUP(EXAMPLE_UNIT)) str_parse_str_test(object) object = Order(EXAMPLE_UNIT, SUP(EXAMPLE_UNIT, MTO(EXAMPLE_PROVINCE))) str_parse_str_test(object) object = Order(EXAMPLE_UNIT, CVY(EXAMPLE_UNIT, CTO(EXAMPLE_PROVINCE))) str_parse_str_test(object) object = Order(EXAMPLE_UNIT, CTO(EXAMPLE_PROVINCE, VIA([EXAMPLE_PROVINCE, EXAMPLE_PROVINCE])))
ise-uiuc/Magicoder-OSS-Instruct-75K
/// coverting a normal storage result using `into_cache_result` pub(crate) type CacheResult<T> = Result<Option<T>, crate::provider::ProviderError>; /// Converts a storage result into a `CacheResult` pub(crate) fn into_cache_result<T>(res: crate::provider::Result<T>) -> CacheResult<T> {
ise-uiuc/Magicoder-OSS-Instruct-75K
{ } } private void CheckInputs() { //If the player has pressed the left control button //set crouched to what it's not if (Input.GetKeyDown(KeyCode.LeftControl)) { //Sets crouched to what it's not and gives that value to the animator Crouched = !Crouched; if (Crouched == false)
ise-uiuc/Magicoder-OSS-Instruct-75K
/// </param> public static ArmedForces GetInitialForces(ArmedForces computerForces) { var playerForces = default(ArmedForces); // BUG: This loop allows the player to assign negative values to // some branches, leading to strange results. do { View.ShowDistributeForces(); View.PromptArmySize(computerForces.Army);
ise-uiuc/Magicoder-OSS-Instruct-75K
file_name_length = len(emb_path) last_char = emb_path[file_name_length - 1] # Decide if it's a binary or text embedding file, and read in # the embedding as a dict object, where the keys are the tokens # (strings), and the values are the components of the corresponding # vectors (floats).
ise-uiuc/Magicoder-OSS-Instruct-75K
manager=cls.sync_manager, eve_entity=EveEntity.objects.get(id=contact["contact_id"]), standing=contact["standing"], is_war_target=False, ) # user 2 is a normal user and has two alts and permission cls.user_2 = create_test_user(cls.character_2) cls.alt_ownership_1 = CharacterOwnership.objects.create(
ise-uiuc/Magicoder-OSS-Instruct-75K
('status', enumchoicefield.fields.EnumChoiceField(enum_class=wagtailcomments.models.CommentStatus, max_length=10)), ('body', models.TextField()),
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_queryset(self): return super().get_queryset().filter(is_active=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
// Variables computed before market clearing private int nBuyers; private int nBTLBuyers;
ise-uiuc/Magicoder-OSS-Instruct-75K
ax3 = fig.add_subplot(grid[2, 0]) # grid is (row, column) ax3.plot(time, mass, label='mass') set_axes(ax3, True) ax3.set_ylabel('mass (fg)') ax3.set_xlabel('time (s)')
ise-uiuc/Magicoder-OSS-Instruct-75K