seed
stringlengths
1
14k
source
stringclasses
2 values
# # 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. f...
ise-uiuc/Magicoder-OSS-Instruct-75K
SUBTYPE OF ( group ); END_ENTITY; -- verification (line:33687 file:ap242ed2_mim_lf_v1.101.TY.exp) */ //MARK: - ALL DEFINED ATTRIBUTES /* SUPER- ENTITY(1) group
ise-uiuc/Magicoder-OSS-Instruct-75K
}, error: err => { console.log(err) } }); }
ise-uiuc/Magicoder-OSS-Instruct-75K
s = super(oldstr, self).__repr__() # e.g. b'abc' on Py3, b'abc' on Py3 return s[1:] def __str__(self): s = super(oldstr, self).__str__() # e.g. "b'abc'" or "b'abc\\ndef' # TODO: fix this: assert s[:2] == "b'" and s[-1] == "'" return unescape(s[2:-1]) #...
ise-uiuc/Magicoder-OSS-Instruct-75K
print('-=-' * 20)
ise-uiuc/Magicoder-OSS-Instruct-75K
return {'type': 'struct', 'fields': [fld_ty.to_json() for fld_ty in self.field_types]} class LLVMPackedStructType(LLVMType): def __init__(self, field_types : List[LLVMType]) -> None: self.field_types = field_types def to_json(self) -> Any: return {'type': 'packed struct...
ise-uiuc/Magicoder-OSS-Instruct-75K
this.age = age; } } export class Student extends Person { private identNr: number; constructor(name: string, age: number, identNr: number) { super(name, age); this.identNr = identNr; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "XPlatform/typename.h" namespace Tristeon {
ise-uiuc/Magicoder-OSS-Instruct-75K
def save(self): """Save the list and close the dialog.""" with open(self.file, "w") as file: for string in self.exceptions_list.GetStrings(): file.write(string + "\n") self.close() def close(self): """Close the dialog."""
ise-uiuc/Magicoder-OSS-Instruct-75K
accept : bool T/F value of whether to accept change """ if delta_e == 0: accept = True else: random_number = random.random() p_acc = math.exp(-beta * delta_e) if random_number < p_acc: accept = True
ise-uiuc/Magicoder-OSS-Instruct-75K
var skadiLoginConfiguration = new SkadiLoginConfiguration(); Assert.True(skadiLoginConfiguration.StopOnError); Assert.Equal(5, skadiLoginConfiguration.WaitTimeEachError); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
popup = comp.popup() popup.setStyleSheet(hou.qt.styleSheet()) def mouseReleaseEvent(self, event): if False: # Type hint event = QMouseEvent if isRevertToDefaultEvent(event): self.clearEditText() def eventFilter(self, watched, event): if False: ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertTrue(utils.compare_tensors_or_arrays(batch_torch, utils.convert_numpy_to_tensor(batch_np))) if torch.cuda.is_available():
ise-uiuc/Magicoder-OSS-Instruct-75K
{ "targets": [ {
ise-uiuc/Magicoder-OSS-Instruct-75K
text = ["Sources tell us that Google is acquiring Kaggle, a platform that hosts data science and machine learning"] example = YakeTextPrep(top_n=3, unique=False).transform(text)
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Amazon.QLDB.Driver { using System; using System.Collections.Generic;
ise-uiuc/Magicoder-OSS-Instruct-75K
} } /// <summary> /// When a coroutine is started with throttling, yielding this object /// will make the frame skip ONLY if the time budget is exceeded. /// /// If the time budget is not exceeded, no frames will be skipped by yielding this object. /// </summary> public class Sk...
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> <ul class="contact list-unstyled"> <li><span class="icon-map text-primary"></span>{{ __('footer.address') }}</li> <li><a href="mailto:<EMAIL>"><span class="icon-phone text-primary"></span>{{ __('footer.email') }}</a></li> ...
ise-uiuc/Magicoder-OSS-Instruct-75K
if title.startswith('<'):
ise-uiuc/Magicoder-OSS-Instruct-75K
p = 'pkg:pypi/notificationcenter' self.assertEqual(r, p)
ise-uiuc/Magicoder-OSS-Instruct-75K
from const import DECAY_TYPES class ScheduleWithWarmup(tf.keras.optimizers.schedules.LearningRateSchedule): # adopted from here: # https://github.com/google-research/vision_transformer/blob/a51dbfa231262ffd1e8e52c041324e6de644d99b/vit_jax/hyper.py#L20 def __init__(self, base, end, total_steps, warmup_step...
ise-uiuc/Magicoder-OSS-Instruct-75K
import io.restassured.response.Response; import io.restassured.specification.RequestSpecification; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.testng.Assert; import org.testng.annotations.Test; import java.util.Random; public class DriverModifyAndDeleteTests { private static Resp...
ise-uiuc/Magicoder-OSS-Instruct-75K
json.dump(events_json, write_file) print("list saved") print(events_json) except Exception as e: print(e)
ise-uiuc/Magicoder-OSS-Instruct-75K
help="Range of seeds to run. Just a single seed or two seeds representing a range with 2nd "
ise-uiuc/Magicoder-OSS-Instruct-75K
else: end = dt.now() if 'start' in request.inputs:
ise-uiuc/Magicoder-OSS-Instruct-75K
fd.write(th.substitute(data=data_h)) tm = Template(template_opcode_resolver_h) opcode_len = len(opcodes) opcode_str = '' # Only emit this file if model parameters are available if parameter_defines: tp = Template(template_model_parameters_h) with open(os.path.join(output_dir, 'sl_tflite_micro_mo...
ise-uiuc/Magicoder-OSS-Instruct-75K
FMAP_CONVERSION_TO_OUTPUT_EDGES = [("out_file", "fmap_file")]
ise-uiuc/Magicoder-OSS-Instruct-75K
car2 = Car("Toyota","Vios",400000) car3 = Car("BMW","X3",3400000) compare(car3,car1) compare(car1,car2)
ise-uiuc/Magicoder-OSS-Instruct-75K
i.Tags.Select(y => y.Name).ToArray(), i.MyState)); return temp.ToList(); } public IReadOnlyCollection<TaskDTO> ReadAllRemoved()
ise-uiuc/Magicoder-OSS-Instruct-75K
internal sealed class InstrumentedMethod : IInstrumentedMethod { public InstrumentedMethod(int id, IModule module, uint metadataToken, string detailName, ISourceMethod sourceMethod) { InstrumentedMethodId = id; Module = module; MetadataToken = metadataToken;
ise-uiuc/Magicoder-OSS-Instruct-75K
app_id = "344199519780600"
ise-uiuc/Magicoder-OSS-Instruct-75K
// leave this file empty
ise-uiuc/Magicoder-OSS-Instruct-75K
# import sys import lecture_cdn as sut class TestLectureCDN(unittest.TestCase): def test_get_tokens(self): tokens = sut.extract_tokens('trainer:housey;course:csharp-oop-basics;lecture:polymorphism;duration:3h05m') self.assertSequenceEqual( sorted(['polymorphism', 'housey', 'csharp-oop-...
ise-uiuc/Magicoder-OSS-Instruct-75K
def check(): word_check = request.args.get("word")
ise-uiuc/Magicoder-OSS-Instruct-75K
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */
ise-uiuc/Magicoder-OSS-Instruct-75K
urlChatAdd = '/chat/add' urlUserAdd = '/chat/adduser' urlGetUsers = '/chat/getusers/' urlGetChats = '/chat/chats' urlPost = '/chat/post' urlHist = '/chat/hist' urlAuth = '/chat/auth'
ise-uiuc/Magicoder-OSS-Instruct-75K
country_query = 'SELECT * From data_region where level=2' country_map = {} country_data = sql_client.query(country_query) for country_id, country_detail in country_data.items(): states = [] country_data = {'label': country_detail['name'], 'value': country_detail['name'], ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from jtr.load.embeddings.glove import load_glove from jtr.load.embeddings.vocabulary import Vocabulary __all__ = [ 'Embeddings', 'load_embeddings' 'load_word2vec', 'get_word2vec_vocabulary', 'load_glove', 'Vocabulary' ]
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ package com.naver.mei.sdk.core.image.compositor.element; import com.naver.mei.sdk.core.image.animated.Animated; import com.naver.mei.sdk.core.image.animated.AnimatedGif; import com.naver.mei.sdk.core.image.animated.AnimatedMultiFrame; import com.naver.mei.sdk.core.image.animated.MultiFrame; import com.naver.mei.sd...
ise-uiuc/Magicoder-OSS-Instruct-75K
#define LINHAS 2 #define COLUNAS 50 void calculeAreas(double triangulos[LINHAS][COLUNAS], double areas[]) { for (int i = 0; i < COLUNAS; i++) { areas[i] = (triangulos[0][i] * triangulos[1][i]) / 2; cout << "A área do " << i + 1 << "º triângulo é " << areas[i] << endl; } } void imprimaMatriz(double matriz[...
ise-uiuc/Magicoder-OSS-Instruct-75K
runner = CliRunner() result = runner.invoke(cli, ["check", "tests/test-mi/01_base"]) assert result.exit_code == 0 assert "Path to README file docs/inception-v3-readme.md is not a valid file" in result.output
ise-uiuc/Magicoder-OSS-Instruct-75K
* Allowing cross domain for API. * * @author <EMAIL> */
ise-uiuc/Magicoder-OSS-Instruct-75K
* * It's a singleton class for receiving and decoding the Quadrature signal. * It returns the position of the encoder via method 'getCount' and sets the position to zero by method 'reset'. * This counter processes the quadrature signal received on PB6 and PB7 lines. */ class CQuadratureCounter_TIM4:...
ise-uiuc/Magicoder-OSS-Instruct-75K
) -> Result<ProcessedCommands> { let new_agents = if !self.create.is_empty() { Some( self.create .drain(..) .map(|create_cmd| create_cmd.agent)
ise-uiuc/Magicoder-OSS-Instruct-75K
Common.sort_shape_keys(mesh.name)
ise-uiuc/Magicoder-OSS-Instruct-75K
continue } let value = param[1] ?? "" switch param[0] { case "title": title = value break case "group": group = value break...
ise-uiuc/Magicoder-OSS-Instruct-75K
import { Icon } from './Icon'; /** Represents a Clan or Player Label. */ export class Label { /** The label's unique Id. */ public id: number;
ise-uiuc/Magicoder-OSS-Instruct-75K
package com.atguigu.gulimall.pms.dao; import com.atguigu.gulimall.pms.entity.SkuSaleAttrValueEntity; import com.atguigu.gulimall.common.vo.SkuItemSaleAttrVo; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.uti...
ise-uiuc/Magicoder-OSS-Instruct-75K
ClearListBox = (global::Windows.UI.Xaml.Controls.AppBarButton)this.FindName("ClearListBox"); BottomGrid = (global::Windows.UI.Xaml.Controls.Grid)this.FindName("BottomGrid"); textBox = (global::Windows.UI.Xaml.Controls.TextBox)this.FindName("textBox"); button = (global::Wi...
ise-uiuc/Magicoder-OSS-Instruct-75K
# check for NA assert not np.isnan(pvals).any(), 'Error: Cannot have nan in the p-values!' # check range assert not (((pvals < 0).sum() + (pvals > 1).sum()) > 0), "Error: All p-values must be between 0 and 1" # check for p-values that are either exactly 0 or 1 is_zero = (pvals == 0.).any() ...
ise-uiuc/Magicoder-OSS-Instruct-75K
def handle(self, verbosity, *args, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests;
ise-uiuc/Magicoder-OSS-Instruct-75K
$ROOTDIR/testbinseq $file if [ "$?" -eq "0" ]; then echo "$file - OK" else echo "$file - KO" exit 1 fi
ise-uiuc/Magicoder-OSS-Instruct-75K
data: HashMap<String, Vec<String>>, } #[allow(dead_code)] impl Headers { pub fn new() -> Self { Headers { data: HashMap::<String, Vec<String>>::new(), } } pub fn with_data(data: HashMap<String, Vec<String>>) -> Self { Headers { data: data,
ise-uiuc/Magicoder-OSS-Instruct-75K
def dequeue(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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.
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ class RecolorQualifier extends EffectQualifier { /**
ise-uiuc/Magicoder-OSS-Instruct-75K
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership.
ise-uiuc/Magicoder-OSS-Instruct-75K
# with open('config.yaml', 'r') as f: # config = yaml.safe_load(f.read()) # logging.config.dictConfig(config)
ise-uiuc/Magicoder-OSS-Instruct-75K
the common interface for loading and inference.
ise-uiuc/Magicoder-OSS-Instruct-75K
from matplotlib import pyplot as plt cap = cv2.VideoCapture('../../data/vtest.avi')#不支持读取视频 # cap = cv2.VideoCapture('output.avi') # cap = cv2.VideoCapture('Minions_banana.mp4') # 帧率 fps = cap.get(cv2.CAP_PROP_FPS) # 25.0 print("Frames per second using video.get(cv2.CAP_PROP_FPS) : {0}".format(fps)) # 总共有多少帧 num_fr...
ise-uiuc/Magicoder-OSS-Instruct-75K
let app_id = "store.relm4.example.todo-4"; gtk::init().expect("Couldn't initialize gtk"); let application = gtk::Application::builder() .application_id(app_id) .build(); let model = MainWindowViewModel{
ise-uiuc/Magicoder-OSS-Instruct-75K
init_theme()
ise-uiuc/Magicoder-OSS-Instruct-75K
/// </summary> [ResxKey("RET_GIT_COMMAND_FAILED")] FailedToRunGitCommand = 2, /// <summary> /// Indicates that there was a failure while running a nuget command. /// </summary> [ResxKey("RET_NUGET_COMMAND_FAILED")] FailedToRunNugetCommand = 3, //...
ise-uiuc/Magicoder-OSS-Instruct-75K
packages=setuptools.find_packages() )
ise-uiuc/Magicoder-OSS-Instruct-75K
cls, data, current_ids=None, pending_relations=None, save=True, stripe_account=None, ): """ Set the stripe_account to the id of the Account instance being created.
ise-uiuc/Magicoder-OSS-Instruct-75K
import { createBottomTabNavigator } from 'react-navigation' export const createMaterialBottomTabNavigator: typeof createBottomTabNavigator }
ise-uiuc/Magicoder-OSS-Instruct-75K
sut = nil } func testGivenFetchStatus_WhenMissingSlackAccessToken_ThenThrowsAnError() { XCTAssertThrowsError(try sut.fetchStatus(of: .fake())) } func testGivenFetchStatusAndSlackAccessToken_WhenRequestIsValid_ThenParamsAreEncoded() throws { let slackAccessToken = "slack...
ise-uiuc/Magicoder-OSS-Instruct-75K
"""pytest-benchmark function""" benchmark(main) def main(): """main function""" input_path = str(pathlib.Path(__file__).resolve().parent.parent) + "/inputs/" + str(pathlib.Path(__file__).stem) start_time = time.time() input_data = read_input(input_path) entries = extract(input_data) pri...
ise-uiuc/Magicoder-OSS-Instruct-75K
private Type type ; /** * 消息内容 */ private String msg; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
print() print('epoch', epoch+1, '/', n_epochs) print('current/final beta:', current_beta, beta) print('learning rate:', lr) print('noise variance:', np.exp(log_sigma2)) print('kernel width:', np.exp(log_eta2)) if save_losses:
ise-uiuc/Magicoder-OSS-Instruct-75K
#define cb(DType) \ if (src.layout.dtype == DType()) { \ using ctype = typename DTypeTrait<DType>::ctype; \ mask_conv::mask_propagate_exec_proxy<ctype>( ...
ise-uiuc/Magicoder-OSS-Instruct-75K
[AsyncMethodBuilder(typeof(ReusableTaskMethodBuilder))] public readonly struct ReusableTask { internal static ResultHolder<EmptyStruct> CompletedResult = ResultHolder<EmptyStruct>.CreateUncachedCompleted (); /// <summary> /// Gets an instance of <see cref="ReusableTask"/> which has ...
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.client.getCoinProducts(appStoreCode, country, language) def getEventPackages(self, start, size, language='ID', country='ID'): return self.client.getEventPackages(start, size, language, country) def getPopularPackages(self, start, size, language='ID', country='ID'): re...
ise-uiuc/Magicoder-OSS-Instruct-75K
package com.NowakArtur97.WorldOfManga.feature.user; import lombok.RequiredArgsConstructor; import org.modelmapper.ModelMapper; import org.springframework.stereotype.Component; @Component @RequiredArgsConstructor class UserMapper { private final ModelMapper modelMapper;
ise-uiuc/Magicoder-OSS-Instruct-75K
// T.C - O(N)
ise-uiuc/Magicoder-OSS-Instruct-75K
facebook_user = models.CharField(max_length=30, null=True, blank=True, help_text="Example: johndoe") pinterest_user = models.CharField(max_length=30, null=True, blank=True, help_text="Example: johndoe") twitter_user = models.CharField(max_length=30, null=True, blank=True, help_text="Example: @johndoe")
ise-uiuc/Magicoder-OSS-Instruct-75K
g++ -g -I/usr/local/include/hiredis -I/usr/local/include/uredis ./test.cpp -luv -lhiredis -luredis
ise-uiuc/Magicoder-OSS-Instruct-75K
'0' : [np.array([[0, 1], [0, 1], [1, 1]], dtype=bool), np.array([[0, 1], [1, 1], [0, 0]], dtype=bool)], }
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Viewlevels table class.
ise-uiuc/Magicoder-OSS-Instruct-75K
ticketID: number; createdBy: string; actionID: number; oldStatus?: number; newStatus?: number;
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "SimplifyLine/SimplifyLine.hpp" #include <vector> TEST_SUITE("Simplify Line") {
ise-uiuc/Magicoder-OSS-Instruct-75K
public class MySpannable extends ClickableSpan { private boolean isUnderline = false; /** * Constructor */ public MySpannable(boolean isUnderline) { this.isUnderline = isUnderline;
ise-uiuc/Magicoder-OSS-Instruct-75K
let invalidECDRData = Data(count: 22) let invalidECDR = Archive.EndOfCentralDirectoryRecord(data: invalidECDRData,
ise-uiuc/Magicoder-OSS-Instruct-75K
from .convolutional import ConvolutionalLatentVariable
ise-uiuc/Magicoder-OSS-Instruct-75K
matcher(elementMatcherBuilder: elementMatcherBuilder, path: path.dropLast()) } } else { return idMatcher } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
thread.start_new_thread(run_queue, ()) thread.start_new_thread(queuewatch, (900,)) log.info('Going into streaming mode') filterstream.statuses.filter(track=[t.strip() for t in config.track.lower().split(' or ')]) except Exception, e: log....
ise-uiuc/Magicoder-OSS-Instruct-75K
/// 弹出简易提示框,只有一个按钮 /// /// - Parameters: /// - title: 标题 /// - message: 信息
ise-uiuc/Magicoder-OSS-Instruct-75K
elif 'LOCAL_SAMPLE' == workplace: food_data = pd.read_csv(target_local_samples, low_memory=False, dtype={'code': 'object'}) target = target_local_samples else: print('Unknown workplace') #Convert to date food_data['created_datetime'] = pd.to_datetime(food_data['created_datetime'], errors='coerce', inf...
ise-uiuc/Magicoder-OSS-Instruct-75K
std::cout << " === Matched inputs from file with circuit inputs" << std::endl; std::vector<std::vector<PlaintextT>> result_bench = test_ctx->eval_with_plaintexts(C, ordered_inputs, durations, eval_strategy);
ise-uiuc/Magicoder-OSS-Instruct-75K
if s.entPhysicalContainedIn[i] == 0: parent = i break if parent is None: print("[!] %s: Unable to find parent" % host) sys.exit(1) print("[+] %s: %s" % (host, s.entPhysicalDescr[parent])) print("[+] %s: HW %s, FW %s, SW %s" % (host,
ise-uiuc/Magicoder-OSS-Instruct-75K
shading: Optional[str] = None, itemstyle_opts: types.ItemStyle = None, label_opts: types.Label = opts.LabelOpts(is_show=False), xaxis3d_opts: types.Axis3D = opts.Axis3DOpts(type_="category"), yaxis3d_opts: types.Axis3D = opts.Axis3DOpts(type_="category"), zaxis3d_opt...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.get_fval_and_grad(optvars, components_z, prox_param) ## solve proximal mapping # x0 = self.get_rand_startingpoint() x_init = self._theta_to_x(*old_thetaalpha) # starting point as vector, save for input parameters f_init = handle_fg(x_init)[0] sel...
ise-uiuc/Magicoder-OSS-Instruct-75K
return ((Damageable)item.getItemMeta()).getDamage(); } else { return 0; } } private static void setDamageFor(ItemStack item, int damage) {
ise-uiuc/Magicoder-OSS-Instruct-75K
def tearDown(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
{ Product = product }); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
export default () => { const [value, setValue] = React.useState('1'); return ( <RadioGroup error name="error" onChange={e => setValue(e.target.value)} value={value} > <Radio value="1">First</Radio> <Radio value="2">Second</Radio>
ise-uiuc/Magicoder-OSS-Instruct-75K
# Resize height, width = img.shape[:2] max_height = 1024 max_width = 1024
ise-uiuc/Magicoder-OSS-Instruct-75K
poetry = mList.get(new Random().nextInt(mList.size())); author = AuthorDatabaseHelper.getAuthorByName(poetry.author); color = BaseApplication.instance.getRandomColor(); } private void initView() {
ise-uiuc/Magicoder-OSS-Instruct-75K
## Hashcat will load libOpenCL.so library which may be ## incompatible with Termux environment. So LD_* variables ## should be unset. ##
ise-uiuc/Magicoder-OSS-Instruct-75K