seed
stringlengths
1
14k
source
stringclasses
2 values
</div> <div> <div class="widget-button" id="open-button"> <i class="fab fa-spotify"></i> </div> </div> </div> </div> `; export function buildWidget(id: string): void { document.getElementById(id).innerHTML = `
ise-uiuc/Magicoder-OSS-Instruct-75K
'name': 'name', 'store_type': 'store_type', 'store_data': 'store_data', 'created': 'created' } self._name = name self._store_type = store_type self._store_data = store_data self._created = created @classmethod
ise-uiuc/Magicoder-OSS-Instruct-75K
import tensorflow as tf from scaaml.aes import ap_preds_to_key_preds from scaaml.aes_forward import AESSBOX def test_bs_in(): """Test that sub_bytes_in outputs XOR of its inputs.""" for i in range(256): for j in range(256): b_i = bytearray([i]) b_j = bytearray([j]) assert i ^ j == AESSBOX.sub_bytes_in(b_i, b_j)[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
# __init__.py from .extract_sekd import extract_sekd, extract_sekd_desc from .extract_opencv_features import extract_opencv_features, extract_opencv_desc __all__ = ['extract_sekd', 'extract_sekd_desc', 'extract_opencv_features', 'extract_opencv_desc']
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ["SAC"]
ise-uiuc/Magicoder-OSS-Instruct-75K
/// it in this specialized constructor. @_inlineable // FIXME(sil-serialize-all) @_versioned internal init(_uncheckedUnsafeBufferObject buffer: AnyObject) { ManagedBufferPointer._sanityCheckValidBufferClass(type(of: buffer)) self._nativeBuffer = Builtin.unsafeCastToNativeObject(buffer) }
ise-uiuc/Magicoder-OSS-Instruct-75K
// limitations under the License. import Foundation @testable import Fuzzilli extension Program: Equatable { // Fairly expensive equality testing, but it's only needed for testing anyway... :) public static func == (lhs: Program, rhs: Program) -> Bool { // We consider two programs to be equal if their code is equal let code1 = lhs.code.map({ $0.asProtobuf() }) let code2 = rhs.code.map({ $0.asProtobuf() }) return code1 == code2
ise-uiuc/Magicoder-OSS-Instruct-75K
global payload if out is None: out = wire() payload += circuit_template.format( circuit(), in1, in2, out )
ise-uiuc/Magicoder-OSS-Instruct-75K
import stl_create_rings import stl_create_mesh input_filename = "biceps_full.stl" output_filename = "sliced.stl" bottom_clip = 20 top_clip = 100 n_loops = 5 if len(sys.argv) < 2: print("usage: ./slice_stl.py [<input filename> [<output filename> [<bottom clip> [<top clip> [<n loops>]]]]]") sys.exit(0)
ise-uiuc/Magicoder-OSS-Instruct-75K
cell = reader.read(Cell.class); } catch (IOException e) {
ise-uiuc/Magicoder-OSS-Instruct-75K
sources=["sgxwrapper.pyx"], libraries=['iiv'],
ise-uiuc/Magicoder-OSS-Instruct-75K
u[(m - 1 - j) * m + i] = u_init(x_min + i * dx, y_min + j * dy) for k in range(n): data = [] row = [] col = [] L = csr_matrix((matr_size, matr_size)) to_plot = np.zeros((m, m)) for i in range(m): for j in range(m):
ise-uiuc/Magicoder-OSS-Instruct-75K
} [Test] public void EmptyArrayTest() { const string expectedValue = "[]"; var value = GetParsedValue(expectedValue);
ise-uiuc/Magicoder-OSS-Instruct-75K
} public void Dispose() { if (workbook != null) workbook.Dispose(); } public IEnumerator GetEnumerator() { IEnumerable<DOMSheet> sheets = workbook.Worksheets.Select(ws => new DOMSheet(ws)); return sheets.GetEnumerator(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
} public void setSessionManager(SessionManager sessionManager) { this.sessionManager = sessionManager; } @Override protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { return false; }
ise-uiuc/Magicoder-OSS-Instruct-75K
facetFields: { 'fields': [ { 'field': 'content.size', 'mincount': 1, 'label': 'Label with spaces' } ]} }; const builder = new SearchQueryBuilderService(buildConfig(config), null); const field = builder.getFacetField('Label with spaces'); expect(field.label).toBe('"Label with spaces"');
ise-uiuc/Magicoder-OSS-Instruct-75K
pbar.update(1) pbar.close() return vidor_dataset_list class VidorPytorchTrain(data_utl.Dataset): def __init__(self, anno_rpath, splits, video_rpath, frames_rpath, mode, save_dir, task='action', transforms=None, low_memory=True): self.data = make_vidor_dataset( anno_rpath=anno_rpath, splits=splits, video_rpath=video_rpath,
ise-uiuc/Magicoder-OSS-Instruct-75K
""" splitdir, (integer) Search data structure description (datastc) to see if it contains data in a given direction (horns, time, etc...) Returns all fields that need splitting up
ise-uiuc/Magicoder-OSS-Instruct-75K
'VraManager': 'constant' }, 'delete': { 'VraManager': 'constant' } } properties = { 'name': { 'type': 'string', 'title': 'name',
ise-uiuc/Magicoder-OSS-Instruct-75K
//Constructeurs/Destructeur Deck(std::string fichier); ~Deck(); //Getters/Setters int getTaille(); void setTaille(int t); std::stack<Carte> getStack();
ise-uiuc/Magicoder-OSS-Instruct-75K
""" bio.write_bps_asm(bio.read_bps(in_buf), out_buf) def assemble(in_buf, out_buf):
ise-uiuc/Magicoder-OSS-Instruct-75K
def update(xmax, xcon): return plot_gender_boxplot(xmax, xcon) @app.callback(
ise-uiuc/Magicoder-OSS-Instruct-75K
<div className="container"> <hr className="border-primary" /> <p> {title} <Link to="/profile/"> <br />
ise-uiuc/Magicoder-OSS-Instruct-75K
); } match self.items[idx].0 { Item::UpButton => { // TODO center the text inside the rectangle. and actually, g should have a // method for that. let mut txt = Text::new().no_bg(); if self.top_idx == 0 { // TODO text::INACTIVE_CHOICE_COLOR txt.add(Line("scroll up").fg(Color::grey(0.4))); } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
aws s3 mb s3://"$TERRAFORM_BUCKET_NAME" --region "$DEFAULT_REGION"
ise-uiuc/Magicoder-OSS-Instruct-75K
from pycontacts.models import Person from pycontacts.managers import ( EmailAddressManager, GroupManager, PhoneNumberManager,
ise-uiuc/Magicoder-OSS-Instruct-75K
def spiral(sides,turn,color,width): t=turtle.Turtle() t.color(color) t.width(width) t.speed(0) for n in range(sides): t.forward(n) t.right(turn)
ise-uiuc/Magicoder-OSS-Instruct-75K
@FXML private TableColumn<Question, String> option2; @FXML private TableColumn<Question, String> option3; @FXML private TableColumn<Question, String> option4; @FXML private TableColumn<Question, String> right; @FXML private TableColumn<Question, String> edit;
ise-uiuc/Magicoder-OSS-Instruct-75K
properties?: any /** System Temp */ position?: IPosition } export interface ILink { id: string from: { nodeId: string portId: string,
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(response.status_code, 403) mock_req_7.assert_has_calls([ mock.call( method='post', url=f'{settings.KEYCLOAK_SERVER_URL}/{REALM}/protocol/openid-connect/token', data={ 'grant_type': 'refresh_token', 'client_id': settings.KEYCLOAK_CLIENT_ID, 'refresh_token': FAKE_TOKEN['refresh_token'],
ise-uiuc/Magicoder-OSS-Instruct-75K
$tmp_year = isset( $_POST['year'] ) ? $_POST['year'] : '' ;
ise-uiuc/Magicoder-OSS-Instruct-75K
use bincode::Options; #[path = "src/metadata/loader.rs"]
ise-uiuc/Magicoder-OSS-Instruct-75K
oid sha256:f5560a534c009c6467d66b038b72457b0342a18451db41aaa454ad29232ecafa size 1155072
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Tests the GetFormatStringAttributeNames function.""" event_formatter = srum.SRUMNetworkDataUsageEventFormatter() expected_attribute_names = [ 'application', 'bytes_received', 'bytes_sent', 'interface_luid',
ise-uiuc/Magicoder-OSS-Instruct-75K
public enum ValidationResult: Equatable { case pass case fail(reason: String) } open class DataValidator<T> {
ise-uiuc/Magicoder-OSS-Instruct-75K
# Download & install homebrew rm -f /tmp/install-homebrew curl -o /tmp/install-homebrew -fsSL "https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh" chmod +x /tmp/install-homebrew /tmp/install-homebrew
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="col-md-9 input-group"> <input type="text" name="search_words" id="search_words" value="{{old('search_words', $codes_search->search_words)}}" class="form-control" aria-describedby="basic-addon2"> <div class="ml-2"> <a href="https://connect-cms.jp/manual/manager/code#collapse-search-help" target="_brank"> <span class="btn btn-link"><i class="fas fa-question-circle" data-toggle="tooltip" title="オンラインマニュアルはこちら"></i></span> </a> </div> </div> @if ($errors && $errors->has('search_words')) <div class="text-danger offset-md-3 col-md-9">{{$errors->first('search_words')}}</div> @endif </div> <div class="form-group form-row"> <label for="display_sequence" class="col-md-3 col-form-label text-md-right">表示順</label> <div class="col-md-9"> <input type="text" name="display_sequence" id="display_sequence" value="{{old('display_sequence', $codes_search->display_sequence)}}" class="form-control">
ise-uiuc/Magicoder-OSS-Instruct-75K
fourcc = cv2.VideoWriter_fourcc(*'DIVX') videoWriter = cv2.VideoWriter(output_path_video, fourcc, fps, frame_size) success, frame = videoCapture.read() success, frame = videoCapture.read() print(success) count=0 while success: frame_1 = frame[0:frame_size[1], 0:frame_size[0]]
ise-uiuc/Magicoder-OSS-Instruct-75K
Solution sol; REQUIRE(sol.minOperations("0100") == 1); REQUIRE(sol.minOperations("01") == 0); REQUIRE(sol.minOperations("1111") == 2); }
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->assertEquals($this->kataTemplate->getTitle(), 'FizzBuzz'); } public function testGetKataStepsFromFile() { $this->assertCount(4, $this->kataTemplate->getSteps()); } public function testGetKataDescriptionFromFile() { $this->assertTrue(strpos($this->kataTemplate->getDescription(), 'multiples of three print "Fizz"') !== false);
ise-uiuc/Magicoder-OSS-Instruct-75K
U = SUF.UBezier(p=4) Hgood = np.array([0, 0, 1, 0, 0]) Htest = SUF.transformUtoH(U, j=3) np.testing.assert_almost_equal(Hgood, Htest) U = SUF.UUniform(p=1, n=6) Hgood = np.array([0.2, 0.2, 0.2, 0.2, 0.2]) Htest = SUF.transformUtoH(U, j=0) np.testing.assert_almost_equal(Hgood, Htest) U = SUF.UUniform(p=2, n=6) Hgood = np.array([0.25, 0.25, 0.25, 0.25]) Htest = SUF.transformUtoH(U, j=0)
ise-uiuc/Magicoder-OSS-Instruct-75K
self._markdown_parser_class = markdown_parser_class self._jinja_loader_class = jinja_loader_class self._data_class = data_class @property def open_file(self) -> _t.Callable: return self._open_file or open @property def utils_copy_file(self) -> _t.Callable: from . import utils return self._utils_copy_file or utils.copy_file @property def utils_iter_files(self) -> _t.Callable:
ise-uiuc/Magicoder-OSS-Instruct-75K
} fn eval_builtin_call( arg: Argument, Builtin { function, .. }: Builtin,
ise-uiuc/Magicoder-OSS-Instruct-75K
f.column: f'{self.snapshot}."{f.column}"' for f in self.event_model._meta.fields if not isinstance(f, models.AutoField) and hasattr(self.event_model.pgh_tracked_model, f.name) } fields['pgh_created_at'] = 'NOW()' fields['pgh_label'] = f"'{self.label}'" if hasattr(self.event_model, 'pgh_obj'): fields[ 'pgh_obj_id'
ise-uiuc/Magicoder-OSS-Instruct-75K
return s.post( "https://" + host + "/api/rules", json=svalue ).headers["Location"] def get_objects(object): return s.get( "https://" + host + "/api/" + object + "s?page=0&size=30" ) def create_remote_artifact(endpoint): return s.post( "https://" + host + "/api/artifacts", json={"accessUrl": endpoint } ).headers["Location"]
ise-uiuc/Magicoder-OSS-Instruct-75K
return github_usernames
ise-uiuc/Magicoder-OSS-Instruct-75K
import { AgreementService, RespondToProposalRequest, RespondToProposalResponse } from 'src/app/services/agreements/agreement.service'; import { FacilityService, GetFilteringOptionsResponse } from 'src/app/services/facilities/facility-service.service'; import { Agreement } from 'src/app/services/agreements/models'; import { FormGroup, FormControl } from '@angular/forms';
ise-uiuc/Magicoder-OSS-Instruct-75K
def meow(self): print(self.name + ': meowww..')
ise-uiuc/Magicoder-OSS-Instruct-75K
// Created by アンドレ on 2016/07/16. // Copyright © 2016年 アンドレ. All rights reserved. // import UIKit import Overlayer class ViewController: OverlayableViewController { }
ise-uiuc/Magicoder-OSS-Instruct-75K
FOR_EACH_OBSERVER(WorkAreaWatcherXObserver, observers_, WorkAreaChanged()); } } // namespace ui
ise-uiuc/Magicoder-OSS-Instruct-75K
import views
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Represents an identifier. Identifier(String, InputPosition), /// Represents the addition of two expressions. Addition(Box<Expression>, Box<Expression>, InputPosition), /// Represents the subtraction of two expressions. Subtraction(Box<Expression>, Box<Expression>, InputPosition), /// Represents the multiplication of two expressions. Multiplication(Box<Expression>, Box<Expression>, InputPosition), /// Represents the division of two expressions. Division(Box<Expression>, Box<Expression>, InputPosition), /// Represents the negation of an expression. Negation(Box<Expression>, InputPosition), /// Represents a list of statements possibly followed by an expression.
ise-uiuc/Magicoder-OSS-Instruct-75K
if [ $count -gt $periodTime ]; then ### print example file lp -d $printer -o media=A4 $file2print ### adding current timestamp to log
ise-uiuc/Magicoder-OSS-Instruct-75K
from os import path #Project constants MACRO_EXTRACT_TABLE_SHEET = "ExtraerTablaHoja" #routes PRINCIPAL_FILE_SOURCE = "" ROOT_DIR = path.abspath(path.join(__file__ ,"../../.."))
ise-uiuc/Magicoder-OSS-Instruct-75K
gFetchServer->send(""); } else { auto top = gVectTodoPathJA.back(); DUMP_VAR(top); gVectTodoPathJA.pop_back(); DUMP_VAR(gVectTodoPathJA.size()); gFetchServer->send(top); } } else { } gFetchServer->send(""); } #include "urlstorage.hpp"
ise-uiuc/Magicoder-OSS-Instruct-75K
Some(prefix.to_string()), Some(in_merge_conflict), ) } _ => delta_unreachable(""), }; let maybe_minus_raw_line = || { maybe_raw_line( new_raw_line, config.minus_style.is_raw, diff_type.n_parents(),
ise-uiuc/Magicoder-OSS-Instruct-75K
start = 0 if end is None: end = len(index)
ise-uiuc/Magicoder-OSS-Instruct-75K
abstract partial class AbstractChannelHandlerContext : IChannelHandlerContext, IResourceLeakHint { private AbstractChannelHandlerContext v_next; internal AbstractChannelHandlerContext Next { [MethodImpl(InlineMethod.AggressiveOptimization)] get => Volatile.Read(ref v_next); set => Interlocked.Exchange(ref v_next, value); } private AbstractChannelHandlerContext v_prev; internal AbstractChannelHandlerContext Prev
ise-uiuc/Magicoder-OSS-Instruct-75K
""" reference = 353.6632048700001 * 1.1 sentence_tokens_first_text = tokenize_big_file('lab_2/data.txt')[:30000] sentence_tokens_second_text = tokenize_big_file('lab_2/data_2.txt')[:30000] plagiarism_threshold = 0.0001 start_time = timeit.default_timer() find_lcs_length_optimized(sentence_tokens_first_text, sentence_tokens_second_text, plagiarism_threshold)
ise-uiuc/Magicoder-OSS-Instruct-75K
--dropout 0.5
ise-uiuc/Magicoder-OSS-Instruct-75K
if (method.Name != nameof(Enum.TryParse) || method.ReturnType != typeof(bool)) { continue; } var tryParseParameters = method.GetParameters(); // Enum.TryParse<T>(string, out object) if (method.IsGenericMethod &&
ise-uiuc/Magicoder-OSS-Instruct-75K
''' mask processing part ''' a = max((a2, b2)) / 2 radius = round(a + 8) max_mask = min_mask.copy()
ise-uiuc/Magicoder-OSS-Instruct-75K
setup_package()
ise-uiuc/Magicoder-OSS-Instruct-75K
return ((p2-p1)/p1)*100
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>code.sh<gh_stars>1-10 code server;
ise-uiuc/Magicoder-OSS-Instruct-75K
return Result.Draw.rawValue } } else if grid[0][0] == "O" { if result == .Pending || result == .B { result = .B } else if result == .A || result == .Draw { return Result.Draw.rawValue } } } // Checks diagonal
ise-uiuc/Magicoder-OSS-Instruct-75K
kernel_protocol_version_info = (5, 0) kernel_protocol_version = "%i.%i" % kernel_protocol_version_info license = 'BSD' authors = {'Fernando' : ('<NAME>','<EMAIL>'),
ise-uiuc/Magicoder-OSS-Instruct-75K
identity.authorizedForApp, controllers.updateUserProfile
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->call(AnswersTableSeeder::class); $this->call(CourseDetailsTableSeeder::class); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
path: 'initiation-of-new-members', // tslint:disable-next-line:max-line-length loadChildren: () => import('../tile-content/initiation-of-new-members/initiation-of-new-members.module').then( m => m.InitiationOfNewMembersPageModule)
ise-uiuc/Magicoder-OSS-Instruct-75K
return super.onOptionsItemSelected(item); } @Override
ise-uiuc/Magicoder-OSS-Instruct-75K
canevas.pack() ### set Temperature ###
ise-uiuc/Magicoder-OSS-Instruct-75K
template <class Op> inline hb_vector_size_t process (const hb_vector_size_t &o) const { hb_vector_size_t r; for (unsigned int i = 0; i < ARRAY_LENGTH (v); i++)
ise-uiuc/Magicoder-OSS-Instruct-75K
import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.entities.VoiceChannel; import net.dv8tion.jda.api.events.guild.voice.GuildVoiceJoinEvent; import net.dv8tion.jda.api.requests.RestAction; import net.dv8tion.jda.api.requests.restaction.ChannelAction; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.*; import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestPropertySource; import java.util.Arrays; import java.util.function.Consumer;
ise-uiuc/Magicoder-OSS-Instruct-75K
setup( name='aiomailserver', version=__version__,
ise-uiuc/Magicoder-OSS-Instruct-75K
destination: PathBuf, }
ise-uiuc/Magicoder-OSS-Instruct-75K
where P: Policy<Request>, S: Service<Request> + Clone,
ise-uiuc/Magicoder-OSS-Instruct-75K
# Need to check sanity if self.typecode == "b":
ise-uiuc/Magicoder-OSS-Instruct-75K
num } fn number_of_bags_to_buy(graph: &HashMap<String, Vec<(String, i32)>>) -> i32 { let mut num_bags = HashMap::new(); compute_num_bags("shiny gold", graph, &mut num_bags)-1 } pub fn solve(data : &Vec<String>, part : Part) { let graph: HashMap<String, Vec<(String, i32)>> = data.iter().map(parse_line).collect(); let mut parents: HashMap<&str, Vec<&str>> = HashMap::new();
ise-uiuc/Magicoder-OSS-Instruct-75K
f1=Frame(root,bg="grey") f1.pack(side=BOTTOM,fill=X) b1=Button(f1, text="Submit", borderwidth=5, relief=SUNKEN,pady=0 ,command=func) b1.pack(pady=30,side=RIGHT,padx=30) root.mainloop()
ise-uiuc/Magicoder-OSS-Instruct-75K
<span> <?= $dc['direccion'] ?> </span> <br><br> <label for="localidad">Localidad </label> <span> <?= $dc['localidad'] ?> </span> <label for="listaPrecios">Tipo de lista de precios: </label> <span><?= $dc['descripcion'] ?></span> <br /> <br /> <!-- <button type="submit">Modificar cliente</button>--> </form> <?php } ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
}; // Message pump hook function that monitors for WM_MOVE and WM_MOVING // messages on a top-level window, and passes notification to the appropriate // Chrome-Frame instances. LRESULT CALLBACK TopWindowProc(int code, WPARAM wparam, LPARAM lparam) { CWPSTRUCT* info = reinterpret_cast<CWPSTRUCT*>(lparam); const UINT &message = info->message; const HWND &message_hwnd = info->hwnd; switch (message) {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.set_secure_cookie(self.role, username) response = { 'status': "success",
ise-uiuc/Magicoder-OSS-Instruct-75K
export declare function getIonic1Version(env: IonicEnvironment): Promise<string | undefined>;
ise-uiuc/Magicoder-OSS-Instruct-75K
{ SBase::writeElements(stream); // // (EXTENSION) // SBase::writeExtensionElements(stream); } CSGPseudoPrimitive*
ise-uiuc/Magicoder-OSS-Instruct-75K
return result; } };
ise-uiuc/Magicoder-OSS-Instruct-75K
doc = info["doc"] bucket = info["jsplayer"]["video_bucket"] ext = info["jsplayer"]["video_extension"] video_url = compat_urlparse.urljoin(bucket, doc + "-SD." + ext) description = get_element_by_id( "slideshow-description-paragraph", webpage ) or self._html_search_regex( r'(?s)<p[^>]+itemprop="description"[^>]*>(.+?)</p>', webpage, "description", fatal=False, )
ise-uiuc/Magicoder-OSS-Instruct-75K
public static bool TryManagerLogin(string account, string pwd, out string errMsg) { //檢查帳號/密碼是否正確
ise-uiuc/Magicoder-OSS-Instruct-75K
self.max_status_len = 140 self.set_request_type_as_status_update() ## # Sets the type of request to a status update # def set_request_type_as_status_update(self): if( not self.querying ): self.status_update = True self.status_retweet = False self.direct_message = False self.clear_request_params() self.set_request_domain(self.update_url)
ise-uiuc/Magicoder-OSS-Instruct-75K
if message.content.startswith('Info'): await message.channel.send("Made by Byte36. All Rights Reserved® <NAME> :)")
ise-uiuc/Magicoder-OSS-Instruct-75K
class Solution: def singleNumber(self, nums: List[int]) -> int: a = itertools.accumulate(nums,lambda t,x:t^x) return list(a)[-1]
ise-uiuc/Magicoder-OSS-Instruct-75K
) : ( <i>Never logged in.</i> )} </td> </tr> <tr> <th>Images</th>
ise-uiuc/Magicoder-OSS-Instruct-75K
$log .= "<th>".$x."</th>"; } $log .= "<th>Kokku</th></tr>"; foreach($sheet as $val){ $ridaa = "<tr>"; $ridaa.= "<th>".$kood[$val[0]]."</th>"; $tulemus = false; $i=0; foreach($val as $a){ $ridaa.= "<th>".$a."</th>"; if(ord($a) >= 48 && ord($a) <= 55 && $i>0 && $i < 6){
ise-uiuc/Magicoder-OSS-Instruct-75K
DB::table('institutions')->insert([ 'id' => $i, 'name' => $faker->lastName, 'state_id' => $faker->numberBetween(1, 37), 'lga_id' => $faker->numberBetween(1, 700), 'term_id' => $faker->numberBetween(2, 4), 'category_id' => $faker->numberBetween(1,4), 'address' => $faker->address, 'schooltype_id' => $faker->numberBetween(1, 3), ]); }
ise-uiuc/Magicoder-OSS-Instruct-75K
// newCol = back; // if(relativeLuminance(back) < 0.5) {
ise-uiuc/Magicoder-OSS-Instruct-75K
gt_boxes.row(j++) = batch_gt_boxes.row(i); } //---------------------------------------------- // select rois related to the current batch element, images have different // size so rois count can also be different auto batch_rois_count = (all_rois.col(0).array() == static_cast<float>(batch_idx)).count(); Eigen::MatrixXf batch_rois( batch_rois_count, all_rois.cols() - 1); // exclude batch index col for (Eigen::Index i = 0, j = 0; i < all_rois.rows(); ++i) { // col major if (static_cast<int>(all_rois(i, 0)) == batch_idx) batch_rois.row(j++) = all_rois.row(i).rightCols(4); }
ise-uiuc/Magicoder-OSS-Instruct-75K
from distutils import spawn class ActionList: def __init__(self): self.normal_types = [
ise-uiuc/Magicoder-OSS-Instruct-75K
DIR=$(cd $(dirname $0) && pwd) INFO_COLOR='\033[0;33m' ERROR_COLOR='\033[0;3om' NC='\033[0m' # No Color info(){ echo -e ${INFO_COLOR}$@${NC} } error(){ >&2 echo -e ${ERROR_COLOR}$@${NC} } docker push frol2103/gamefront:$(git rev-parse HEAD)
ise-uiuc/Magicoder-OSS-Instruct-75K
* Welcome to Java! * This may be your first ever java program! * We'll begin your journey with the infamous Hello World program! */ // a class is an "object" where we will place all our code inside public class HelloWorld { // the main method (below) is the first thing that runs when your program is run public static void main(String[] args) { // write code here (replace the "" with "Hello World!") System.out.println(""); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
# print("zeta hat history: " + str(zeta_hat_history)) return zeta_hat_history, torch.tensor(position_list[:, 2]), torch.tensor(linear_velocity_list[:, 2]) def do_display(input_i, position_list, zeta_target, zeta_hat, s_i):
ise-uiuc/Magicoder-OSS-Instruct-75K