seed
stringlengths
1
14k
source
stringclasses
2 values
if __name__ == '__main__': app.run(host='0.0.0.0', port=8080)
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Sices platform default directories """ RAW_DATA_PATH = path.join(ConfigPaths.RAW_DATA_PATH, "sices") """ Sices platform options settings """ PREFERENCES = { 'download.default_directory': RAW_DATA_PATH, 'safebrowsing.enabled': 'false'}
ise-uiuc/Magicoder-OSS-Instruct-75K
###TODO replace this "model" for real one once available Model_BG = {Projectparameters_BG["problem_data"]["model_part_name"].GetString() : main_model_part_bg} Model_BF = {Projectparameters_BF["problem_data"]["model_part_name"].GetString() : main_model_part_bf} ## Solver construction solver_module = __import__(Projectparameters_BG["solver_settings"]["solver_type"].GetString()) solver_bg = solver_module.CreateSolver(main_model_part_bg, Projectparameters_BG["solver_settings"]) solver_bg.AddVariables() solver_module = __import__(Projectparameters_BF["solver_settings"]["solver_type"].GetString()) solver_bf = solver_module.CreateSolver(main_model_part_bf, Projectparameters_BF["solver_settings"])
ise-uiuc/Magicoder-OSS-Instruct-75K
// ~ERR(<1.18.0) recursive type `S` has infinite size // ~HELP(<1.18.0) insert indirection
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.HBaseClassTestRule; import org.apache.hadoop.hbase.testclassification.MediumTests; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.ClassRule; import org.junit.Ignore; import org.junit.experimental.categories.Category;
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright © 2021 RIIS. All rights reserved. //
ise-uiuc/Magicoder-OSS-Instruct-75K
set1 = {"maça","Laranja","Abacaxi"} set2 = {0,3,50,-74} set3 = {True,False,False,False} set4 = {"Roger",34,True}
ise-uiuc/Magicoder-OSS-Instruct-75K
// npx hardhat --network rinkeby vault-deploy --weth 0xc778417E063141139Fce010982780140Aa0cD5Ab --stnd 0xccf56fb87850fe6cff0cd16f491933c138b7eadd --factory 0xb10db5fc1c2ca4d72e6ebe1a9494b61fa3b71385 task("vault-deploy", "Deploy Standard Vault Components") .addParam("weth", "Address of wrapped ether")
ise-uiuc/Magicoder-OSS-Instruct-75K
// the cable index is not valid // LEGACY const cable_segment* cable(index_type index) const; // LEGACY const std::vector<segment_ptr>& segments() const;
ise-uiuc/Magicoder-OSS-Instruct-75K
import sys if sys.version_info >= (3, 5): import importlib # The imp module is deprecated by importlib but importlib doesn't have the # find_spec function on python2. Use the imp module for py2 until we # deprecate python2 support.
ise-uiuc/Magicoder-OSS-Instruct-75K
def binary_search(self, array, val): index = bisect_left(array, val) if index != len(array) and array[index] == val: return index else: return -1 def smallestCommonElement(self, mat: List[List[int]]) -> int: values = mat[0] mat.pop(0) for i, val in enumerate(values): flag = True for arr in mat:
ise-uiuc/Magicoder-OSS-Instruct-75K
open -a Safari 'https://mail.google.com/'
ise-uiuc/Magicoder-OSS-Instruct-75K
interface ResponseFactoryInterface {
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/NForum.Tests.Core/TestUtils.cs using NForum.CQS; using NSubstitute; using System; namespace NForum.Tests.Core { public static class TestUtils { public static IIdValidator GetInt32IdValidator() { return new Int32IdValidator(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
from .forms import DepositForm, WithdrawalForm # Register your models here. @admin.register(Deposit) class DepositAdmin(admin.ModelAdmin): # form = DepositForm
ise-uiuc/Magicoder-OSS-Instruct-75K
continue if not hasattr(self.pojo, key): continue if id is not None: if re.search('id', key, re.IGNORECASE): tempId = key tempSqlStr += f'{key},' tempSqlList.append(key) tempSqlStr = tempSqlStr[:-1] tempSqlStr = tempSqlStr + " from " + self.pojo.table if id is not None: tempSqlStr += tempSqlStr + "where "+tempId+" = " + id
ise-uiuc/Magicoder-OSS-Instruct-75K
untot += "%12d" % (tuntot/nfiles) unper += "%12.2f" % (tunper/nfiles)
ise-uiuc/Magicoder-OSS-Instruct-75K
f'{prefix}{name}{suffix}' for name in self.config.generator.get_prospects( input_words=[self.deity, region], number=number, min_len=min_len )
ise-uiuc/Magicoder-OSS-Instruct-75K
def change(position): # position = (i, j) tuple i = position[0] j = position[1] for w in range(1, 10): if w not in board[:, j] and w not in board[i]: board[i][j] = w return True return False
ise-uiuc/Magicoder-OSS-Instruct-75K
df_training = pd.concat([df_ones_training, df_zeros_training]) df_training = df_training.sample(frac=1).reset_index(drop=True) df_test = pd.concat([df_ones_test, df_zeros_test]) df_test = df_test.sample(frac=1).reset_index(drop=True) sentences_train = df_training['comment'].tolist() sentences_test = df_test['comment'].tolist() labels_train = df_training['label'].tolist() labels_test = df_test['label'].tolist() return sentences_train, sentences_test, labels_train, labels_test def test_6(df, seed=0): """training: unbalanced; test: unbalanced
ise-uiuc/Magicoder-OSS-Instruct-75K
} for (int i = 0; i < cardDisplays.Count; i++) { if (cardDisplays[i].name == currentCards[_index].name) cardDisplays[i].gameObject.SetActive(true); }
ise-uiuc/Magicoder-OSS-Instruct-75K
} impl Casset { pub fn new(resolver: impl AssetResolver + 'static, hot_reload: bool) -> Result<Self> { let assets = Arc::new(RwLock::new(HashMap::new()));
ise-uiuc/Magicoder-OSS-Instruct-75K
kernel = fields.CharField( verbose_name="Kernel type", required=True, default='linear', choices=[ ('linear', 'Linear'), ('poly', 'Polynomial'), ('rbf', 'Radial Basis Function'),
ise-uiuc/Magicoder-OSS-Instruct-75K
from ...connection_cursor import cur
ise-uiuc/Magicoder-OSS-Instruct-75K
wechatInfo: () => string;
ise-uiuc/Magicoder-OSS-Instruct-75K
# self.business.update_business(self.business.id, 'hardware') updated_business = Business.objects.all() self.assertTrue(len(updated_business) > 0)
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Check if the binary string is all zeroes""" if int(case, 2) == 0: return True else: return False def onecase(case): """Check if the binary string is all ones""" if case == "1" * len(case): return True else: return False
ise-uiuc/Magicoder-OSS-Instruct-75K
.target( name: "UIKitXcodePreview", dependencies: []) ] )
ise-uiuc/Magicoder-OSS-Instruct-75K
Err(Error::CgroupLineNotFound( PROC_MOUNTS.to_string(), controller.to_string(), )) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
x0e = max(0, x0 - 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
model.fit(x_train, y_train, epochs=5, verbose=2, batch_size=32) # Evaluate
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Tests of Larch Scripts """ import unittest import time import ast import numpy as np import os from sys import version_info from utils import TestCase from larch import Interpreter class TestScripts(TestCase): '''tests''' def test_basic_interp(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
def __getitem__(self, index): img = load_as_float(self.imgs[index]) depth = np.load(self.depth[index]).astype(np.float32) #;pdb.set_trace() if self.transform is not None: img, _, _ = self.transform([img], depth, None); #this depth is just used to fill the compose transform that is shared(no need for the result) img = img[0] return img, depth def __len__(self): return len(self.imgs)
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.show()
ise-uiuc/Magicoder-OSS-Instruct-75K
public HTMLElement getElement() {
ise-uiuc/Magicoder-OSS-Instruct-75K
node._task_registration_channel = registration_channel node.register_for_task() assert node.get_number_of_registered_nodes() == 1 def test_get_number_of_registered_nodes_same_node_not_counted_twice(redisdb): node = CommitteeCandidate() node.conn = redisdb registration_channel = 'test_registration'
ise-uiuc/Magicoder-OSS-Instruct-75K
fn five_leading_zeros(md5: Vec<u8>) -> bool { md5.iter().take(2).all(|x| x + 0 == 0) && md5.iter().skip(2).take(1).all(|x| x + 0 < 10 as u8) } fn main() { let base = "bgvyzdsv"; let num = (1..).find(|i| correct_hash(String::from(base) + &(i.to_string()))); println!("{}", num.unwrap()); }
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>wyeusk/__init__.py """Top-level package for wyeusk.""" __author__ = """<NAME>""" __email__ = '<EMAIL>' __version__ = '0.1.0'
ise-uiuc/Magicoder-OSS-Instruct-75K
draftField: DraftField; } export interface ContentType { name: string; fields: Field[];
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): dependencies = [ ('HackBitApp', '0002_company_photo'), ] operations = [ migrations.CreateModel( name='Roadmap', fields=[
ise-uiuc/Magicoder-OSS-Instruct-75K
fn get_type(ctx: &'a Context) -> &'a Type { Type::pointer_ty(Type::get::<c_char>(ctx)) } } impl<'a> Compile<'a> for *const str {
ise-uiuc/Magicoder-OSS-Instruct-75K
value_string = str(value) value_sum = 0 for _ in value_string: value_sum += int(_) print(value_sum)
ise-uiuc/Magicoder-OSS-Instruct-75K
"from": "1970-01-01T07:00:00+07:00", "to": "2014-10-24T13:04:48+07:00", "offset": 0, "limit": 20, "total": 1, "data": [ { "object": "card", "id": "card_test", "livemode": false, "location": "/customers/cust_test/cards/card_test", "country": "", "city": null, "postal_code": null,
ise-uiuc/Magicoder-OSS-Instruct-75K
#setfont /usr/share/consolefonts-extra/4x6.psf #setfont /usr/share/consolefonts-extra/MICRlike7x8.psf setfont /usr/share/consolefonts-extra/Noritake6x8.psf exec /usr/local/bin/showfb
ise-uiuc/Magicoder-OSS-Instruct-75K
let (width, height) = crossterm::terminal::size().expect("Could not read current terminal size"); let colors = components::Colors::term_colors(); CrosstermWindow { height, width, colors, title: None } } } impl CrosstermWindow { pub fn height(&self) -> u16 { self.height }
ise-uiuc/Magicoder-OSS-Instruct-75K
from ._base_model import ModelSchema class HelloDB(db.Model, ModelSchema): """Use the Model to Establish a Connection to DB""" __tablename__ = "HelloDB" id = db.Column(db.Integer, primary_key = True, autoincrement = True, nullable = False) field = db.Column(db.String(255), nullable = False)
ise-uiuc/Magicoder-OSS-Instruct-75K
North, East, South, West, } impl Direction { fn left(&self) -> Direction { match self {
ise-uiuc/Magicoder-OSS-Instruct-75K
} public BidsServices(IDbRepository<Bid> bids, IDbRepository<User> users, IDbRepository<Auction> auctions) { this.bids = bids; this.users = users; this.auctions = auctions; } // TODO: Problems with the Database
ise-uiuc/Magicoder-OSS-Instruct-75K
def configure(self): logger.info('Configuring cluster mgmt details in cluster-bootstrap')
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_plot(mocker): directory = Path("directory_path") mocker.patch("pyhf_benchmark.plot.load") mocker.patch("pyhf_benchmark.plot.subplot") plt.plot(directory) plt.load.assert_called_once_with(directory) assert plt.subplot.called def test_plot_comb(mocker): directory = Path("directory_path") mocker.patch("pyhf_benchmark.plot.load_all") plt.load_all(directory) plt.load_all.assert_called_once_with(directory)
ise-uiuc/Magicoder-OSS-Instruct-75K
def __call__(self, request): if request.META["PATH_INFO"] == "/health-check/": return HttpResponse("ok") response = self.get_response(request) return response
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public String toString() { return "ServiceSchemaProblem{" + "service=" + serviceName + ", errors=" + getErrors() + '}'; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
params.insert("enabled".to_string(), enabled); super::call( service, "alertFilter", "action", "removeAlertFilter",
ise-uiuc/Magicoder-OSS-Instruct-75K
def searchInsert(self, nums: List[int], target: int) -> int: # exception case if not isinstance(nums, list) or len(nums) == 0: return 0 # main method: (loop) binary search of sorted list return self._searchInsert(nums, target)
ise-uiuc/Magicoder-OSS-Instruct-75K
// import UIKit extension UIColor { convenience init(r: CGFloat, g: CGFloat, b: CGFloat) { self.init(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: 1.0) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous"> <link rel="stylesheet" href="res/styles.css" />
ise-uiuc/Magicoder-OSS-Instruct-75K
# def get(self, request): # Detalle_orden = OrderDetail.objects.all() # serializer = orderDetailSerializer.OrderDetailSerializer(Detalle_orden, many=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
} public bool CookieSession { get { return _cookieSession; } set { setBoolOption(CurlOption.CookieSession, ref _cookieSession, value); } } public bool SslEngineDefault { get { return _sslEngineDefault; } set { setBoolOption(CurlOption.SslEngineDefault, ref _sslEngineDefault, value); }
ise-uiuc/Magicoder-OSS-Instruct-75K
using Microsoft.Extensions.Logging.Abstractions; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using Ndjson.AsyncStreams.AspNetCore.Mvc.Formatters; using Ndjson.AsyncStreams.AspNetCore.Mvc.NewtonsoftJson.Formatters; using Xunit; namespace Ndjson.AsyncStreams.AspNetCore.Mvc.Tests.Unit.Formatters
ise-uiuc/Magicoder-OSS-Instruct-75K
# otherlist = [0.0023797988891601563, 1.6597139596939088, 1.7730239033699036, 2.4004372358322144, 2.2994803905487062, 1.8459036707878114, 1.3680771589279175] times = [i[0] for i in lst] accuracies = [i[1] for i in lst]
ise-uiuc/Magicoder-OSS-Instruct-75K
@Get('/:id') getTaskById(@Param('id') id: string): Task { return this.taskService.getTaskById(id); } @Delete('/:id') deleteTask(@Param('id') id: string): void { this.taskService.deleteTask(id); } @Put('/:id/status')
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/python3 """ Transforms a list into a string. """ l = ["I", "am", "the", "law"] print(" ".join(l))
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php elseif($each->status == 'admin_approved'):?>
ise-uiuc/Magicoder-OSS-Instruct-75K
// Turn the block's ID into a tile ID, by multiplying with the block's amount of tiles self.base_tile_ids .push((blk_id * self.tiles[0].len()).try_into().unwrap());
ise-uiuc/Magicoder-OSS-Instruct-75K
/** The minimum allowed value */ min: number
ise-uiuc/Magicoder-OSS-Instruct-75K
if PROXY_URL: REQUEST_KWARGS = { 'proxy_url': PROXY_URL
ise-uiuc/Magicoder-OSS-Instruct-75K
for atElement in at { dictionaryElements.append(atElement.toDictionary()) } dictionary["At"] = dictionaryElements as AnyObject?
ise-uiuc/Magicoder-OSS-Instruct-75K
public string Probabilidade { get; set; } public bool Valida { get { if (this.Probabilidade == null) return false; return (this.Probabilidade.Equals("Altíssima probabilidade") || this.Probabilidade.Equals("Alta probabilidade")); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
const PlayerGameDay = ({daysFromMatchupStart, appState, player, setCurrentMatchup, selected} : PlayerGameDayProps) => { const { tokens } = useTheme(); const { teams, currentMatchup } = appState; if (currentMatchup && teams) { const matchupStart = new Date(currentMatchup.start).toISOString(); let text = ''; let found = null;
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 export { default } from "./PacksListError";
ise-uiuc/Magicoder-OSS-Instruct-75K
return { asyncEffectRef, handleThemeToggle, search, ThemeIcon, theme, handleSearchChange: useCallback( // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => { setSearch(e.target.value); },
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import exc from ..cid.cidlineclasses import cidlineclasses __all__ = 'A1 E1'.split() def process(cid): yield from A1(cid) def gen_line(tag): """Validate the CID tag against cidlineclasses""" yield getattr(cidlineclasses, tag) # execution pauses here
ise-uiuc/Magicoder-OSS-Instruct-75K
class Ans(StdAns): AllowGroup = [959613860, 983250332] def GETMSG(self): seconds = int(requests.get("http://127.0.0.1:8095/").text) m, s = divmod(seconds, 60) h, m = divmod(m, 60) return f'{h}小时{m}分钟{s}秒前有人来过。'
ise-uiuc/Magicoder-OSS-Instruct-75K
FLASH_GREEN = 0x34 PEDESTRIAN = 0x35 EMERGENCY = 0x37 class Intersection(CustomEnum): A = 0x62 B = 0x61 BOTH = 0x63 class Mode(CustomEnum): LIVE = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
public: template<typename... Types> struct apply { public:
ise-uiuc/Magicoder-OSS-Instruct-75K
def getLevel(self): return self.depth - 1
ise-uiuc/Magicoder-OSS-Instruct-75K
print("--------")
ise-uiuc/Magicoder-OSS-Instruct-75K
class Components& Components() { return *components; } class Systems& Systems() { return *systems; }
ise-uiuc/Magicoder-OSS-Instruct-75K
for attack_alpha in 1.0 do python train.py --attack_method semantic --alpha $attack_alpha --log-dir ../runs/logs/resume_$alpha --model $model --backbone $backbone --dataset $dataset --val_only --val_backdoor --workers 0 --poison_rate $poison_rate --resume /home/Leeyegy/.torch/models/black_line/$model\_$backbone\_$dataset\_best_model.pth done done done
ise-uiuc/Magicoder-OSS-Instruct-75K
template=imps.PLT_TA_STYLE_TEMPLATE, colorway=imps.PLT_TA_COLORWAY, title=title, title_x=0.1, title_font_size=14, dragmode="pan", ) imagefile = "ta_adosc.png" # Check if interactive settings are enabled plt_link = ""
ise-uiuc/Magicoder-OSS-Instruct-75K
done
ise-uiuc/Magicoder-OSS-Instruct-75K
BasicConv2d(out_channel, out_channel, kernel_size=(7, 1), padding=(3, 0)), BasicConv2d(out_channel, out_channel, 3, padding=7, dilation=7) ) self.conv_cat = BasicConv2d(4*out_channel, out_channel, 3, padding=1) self.conv_res = BasicConv2d(in_channel, out_channel, 1) def forward(self, x): x0 = self.branch0(x) x1 = self.branch1(x) x2 = self.branch2(x) x3 = self.branch3(x) x_cat = self.conv_cat(torch.cat((x0, x1, x2, x3), 1))
ise-uiuc/Magicoder-OSS-Instruct-75K
IGNORED_MODELS = []
ise-uiuc/Magicoder-OSS-Instruct-75K
* @return array|null */ public function get($action) { if (!$action) { return null; } return array_get($this->actions, $action); }
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** Removes leading, trailing and repeated slashes */ private static normalizePath(path: string): string { return path.replace(/^\/+/, '').replace(/\/+$/, '').replace(/\/\/+/, '/');
ise-uiuc/Magicoder-OSS-Instruct-75K
assertThrows(IllegalArgumentException.class, () -> HttpStatus.Series.valueOf(600)); assertTrue(HttpStatus.CONTINUE.is1xxInformational()); assertFalse(HttpStatus.CONTINUE.is2xxSuccessful()); assertFalse(HttpStatus.CONTINUE.is3xxRedirection()); assertFalse(HttpStatus.CONTINUE.is4xxClientError()); assertFalse(HttpStatus.CONTINUE.is5xxServerError()); assertFalse(HttpStatus.OK.is1xxInformational()); assertTrue(HttpStatus.OK.is2xxSuccessful()); assertFalse(HttpStatus.OK.is3xxRedirection());
ise-uiuc/Magicoder-OSS-Instruct-75K
masked_img = masked image data :param rgb_img: numpy.ndarray :param mask: numpy.ndarray :param mask_color: str :return masked_img: numpy.ndarray """ params.device += 1 if mask_color.upper() == 'WHITE':
ise-uiuc/Magicoder-OSS-Instruct-75K
def setup_decimal_context(context): context.prec = 7
ise-uiuc/Magicoder-OSS-Instruct-75K
# ============ MAIN PART ============ def get_recommendations(json): # loading model model = KeyedVectors.load(PATH_TO_SAVE_DATA + WORD2VEC_FILE_NAME, mmap='r') products = json['product_list'] n = check_integer_values(n=json['n']) res = similar_products(model, products, n=n) return {'recommendation': res}
ise-uiuc/Magicoder-OSS-Instruct-75K
# Setting up all folders we can import from by adding them to python path import sys, os, pdb curr_path = os.getcwd(); sys.path.append(curr_path+'/..'); # Importing stuff from all folders in python path import numpy as np from focusfun import * from refocus import * from KSpaceFunctions import * # TESTING CODE FOR FOCUS_DATA Below import scipy.io as sio from scipy.signal import hilbert, gausspulse
ise-uiuc/Magicoder-OSS-Instruct-75K
h.update(struct.pack("Q", ii)) plain = h.digest()[:16]
ise-uiuc/Magicoder-OSS-Instruct-75K
git clone https://github.com/garlett/wave300.git echo -e '\e[1;31m[build_openwrt]\e[0m Linking Wave300 firmware files inside OpenWrt image ... ' mkdir -p openwrt/files/lib/firmware/ ln -s ~/wave300/scripts/firmware/ahmar/*.bin ~/openwrt/files/lib/firmware/
ise-uiuc/Magicoder-OSS-Instruct-75K
NodeType::KeyedNode( key, Node { tag, attrs, children, }, ) }
ise-uiuc/Magicoder-OSS-Instruct-75K
import nltk import nltk from nltk.corpus import stopwords from nltk.tokenize import word_tokenize, sent_tokenize
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0
ise-uiuc/Magicoder-OSS-Instruct-75K
# Set up your gmail credentials. # Any problems could be gmail blocking you # or wrong password etc. I had to allow unsafe apps # in my gmail security settings to get # this to work. YAG_SMTP = yagmail.SMTP(user="<EMAIL>", \
ise-uiuc/Magicoder-OSS-Instruct-75K
import { FiltersValues } from 'store/search/types' interface StateProps { filters: FiltersValues
ise-uiuc/Magicoder-OSS-Instruct-75K
pub const TOP_BORDER: [usize; 8] = [0, 1, 2, 3, 4, 5, 6, 7]; pub const LEFT_BORDER: [usize; 8] = [0, 8, 16, 24, 32, 40, 48, 56]; pub const BOTTOM_BORDER: [usize; 8] = [56, 57, 58, 59, 60, 61, 62, 63]; pub const RIGHT_BORDER: [usize; 8] = [7, 15, 23, 31, 39, 47, 55, 63]; pub const WEIGHTS: [isize; 64] = [
ise-uiuc/Magicoder-OSS-Instruct-75K
case 2:
ise-uiuc/Magicoder-OSS-Instruct-75K
# TODO: Fix sign convention """ Calculates shear force equations for each section of beam :return: list of `sympy` equations """ self._resolve()
ise-uiuc/Magicoder-OSS-Instruct-75K