seed
stringlengths
1
14k
source
stringclasses
2 values
if dot > eps: related.add(j) all_relationships[name].append(sorted(list(related))) return all_relationships def check_visibility(blender_objects, min_pixels_per_object): """ Check whether all objects in the scene have some minimum number of visible
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash . ./hellminer.conf DOCKER=$(which docker) if [ -z "${DOCKER}" ]; then echo "ERROR: Docker does not seem to be installed. Please download and install Docker CE as outlined on https://docs.docker.com/engine/install/." exit 1 else if [ ! -z "${WORKER_NAME}" ]; then PAYOUT_ADDRESS="${PAYOUT_ADDRESS}.${WORKER_NAME}" fi ${DOCKER} run --name ${IMAGE_NAME} --rm -it ${IMAGE_NAME} --cpu=${THREADS} --instances=${SOLVERS} -c ${POOL_HOST}:${POOL_PORT} -u ${PAYOUT_ADDRESS} -p x fi # EOF
ise-uiuc/Magicoder-OSS-Instruct-75K
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
ise-uiuc/Magicoder-OSS-Instruct-75K
urlpatterns = [ url(r'^json_index/$', json_index), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
ms_param = 1 # Mumford-Shah parameter -- higher values means less likely splits
ise-uiuc/Magicoder-OSS-Instruct-75K
def validate_international_phone_number(value): if not value.startswith('0032'):
ise-uiuc/Magicoder-OSS-Instruct-75K
]
ise-uiuc/Magicoder-OSS-Instruct-75K
* distributed under the License is distributed on an "AS IS" BASIS,
ise-uiuc/Magicoder-OSS-Instruct-75K
} } /// Week of year. public var weekOfYear: Int { return calendar.component(.weekOfYear, from: self) } /// Week of month. public var weekOfMonth: Int { return calendar.component(.weekOfMonth, from: self)
ise-uiuc/Magicoder-OSS-Instruct-75K
* file that was distributed with this source code. */
ise-uiuc/Magicoder-OSS-Instruct-75K
(1, 1, 3): 3.0, (2, 1, 1): 0.7, (2, 1, 2): 0.9, (2, 1, 3): 1.1, (3, 1, 1): 1.3, (3, 1, 2): 1.5, (3, 1, 3): 1.7, (4, 1, 1): 0.0, (4, 1, 2): 0.0, (4, 1, 3): 0.0,
ise-uiuc/Magicoder-OSS-Instruct-75K
then NB_EXE="jupyter-notebook" NB_DIR="${NB_DIR}/stdnotes" fi } function cmddef {
ise-uiuc/Magicoder-OSS-Instruct-75K
).extra( select={'public_images_count': 'select count(*) from mediaman_artefactrepresentation a WHERE a.artefact_id = cat_museumobject.id AND a.public'} ).order_by('-public_images_count') objects = do_paging(request, collection_objects) return render(request, 'collections/collection_detail.html', {'collection': collection, 'objects': objects})
ise-uiuc/Magicoder-OSS-Instruct-75K
@IBOutlet var contentView: UIView! @IBOutlet weak var coverPhoto: UIImageView! @IBOutlet weak var bloggerImageView: CircularImageView! @IBOutlet weak var nameLabel: UILabel! @IBOutlet weak var handleLabel: UILabel!
ise-uiuc/Magicoder-OSS-Instruct-75K
import os
ise-uiuc/Magicoder-OSS-Instruct-75K
from andes.models.dc.rlc import R, L, C, RCp, RLCp, RLCs, RCs, RLs # noqa
ise-uiuc/Magicoder-OSS-Instruct-75K
{ String str[] = Client.getConfig().getProp("fullScreenResolution","800x600").split("x"); int w = Integer.parseInt(str[0]); int h = Integer.parseInt(str[1]);
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_info(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
->resetQueryPart('orderBy') ->update($this->getTableName(), $this->getTableAlias()) ; foreach ($data as $column => $value) {
ise-uiuc/Magicoder-OSS-Instruct-75K
return true; } struct Item { int32_t x, y; char ext[4]; uint32_t off; bool isDir, isIconLoaded, isIconValid; void setOffset( uint32_t off ){ if( off == this->off ) return; isDir = false;
ise-uiuc/Magicoder-OSS-Instruct-75K
from client import * import command import username import log
ise-uiuc/Magicoder-OSS-Instruct-75K
public static Icon GetIcon(string name) { Icon icon = WinFormsResourceService.GetIcon(name); if (icon != null) { return icon; } return WinFormsResourceService.GetIcon("Icons.16x16.MiscFiles"); } public static string GetImageForProjectType(string projectType)
ise-uiuc/Magicoder-OSS-Instruct-75K
@Value("${excel.filepath}") private String excelFilePath; @Value("${excel.worksheet}") private String excelWorksheet; @Value("${excel.worksheet.column.name}") private int excelColumnName; @Value("${excel.worksheet.column.bemerkung}") private int excelColumnBemerkung; @Value("${excel.worksheet.column.labels_nachgefuehrt}")
ise-uiuc/Magicoder-OSS-Instruct-75K
self.rect.size = self.size self.rect.pos = self.pos def set_value(self, value: str, percent: float) -> None: if percent < 0.0: percent = 0.0 self.label.text = f'[b][size=20]{value}[/size][/b]\n{self.text}' if percent >= 0.9: fg, bg = style.SUCCESS_FG, style.SUCCESS_BG elif percent >= 0.70:
ise-uiuc/Magicoder-OSS-Instruct-75K
RuntimeError: if the executor output to a output channel is partial. """ output_artifacts = copy.deepcopy(output_artifacts) or {} output_artifacts = cast(MutableMapping[str, List[types.Artifact]], output_artifacts) if executor_output: if not set(executor_output.output_artifacts.keys()).issubset( output_artifacts.keys()): raise RuntimeError( 'Executor output %s contains more keys than output skeleton %s.' % (executor_output, output_artifacts)) for key, artifact_list in output_artifacts.items(): if key not in executor_output.output_artifacts: continue
ise-uiuc/Magicoder-OSS-Instruct-75K
return this.b.a(entityliving, false); } } public boolean apply(Object object) {
ise-uiuc/Magicoder-OSS-Instruct-75K
seen = set() return [x for x in l if x not in seen and not seen.add(x)] def escape_glob(path): characters = ['[', ']', '?', '!'] replacements = {re.escape(char): '[' + char + ']' for char in characters} pattern = re.compile('|'.join(replacements.keys())) return pattern.sub(lambda m: replacements[re.escape(m.group(0))], path) def get_from_module(identifier, module_params, module_name, instantiate=False, kwargs=None):
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <cstdlib> #include <cmath> #include <algorithm> #include <cassert>
ise-uiuc/Magicoder-OSS-Instruct-75K
use std::fmt; pub struct Face { pub v1: usize, pub vn1: usize, pub v2: usize, pub vn2: usize, pub v3: usize, pub vn3: usize
ise-uiuc/Magicoder-OSS-Instruct-75K
F8 = huaxian_ssa.reconstruct(8) F9 = huaxian_ssa.reconstruct(9) F10 = huaxian_ssa.reconstruct(10) F11 = huaxian_ssa.reconstruct(11) orig_TS = huaxian_ssa.orig_TS
ise-uiuc/Magicoder-OSS-Instruct-75K
class UserActionSystemMessageContent(TypedDict):
ise-uiuc/Magicoder-OSS-Instruct-75K
fi bundle exec jekyll build lftp -c "set sftp:auto-confirm yes ; open -u $DEPLOY_USER,$DEPLOY_PASS sftp://$DEPLOY_HOST ; mirror -R -e _site $DEPLOY_PATH ; quit"
ise-uiuc/Magicoder-OSS-Instruct-75K
# iterate file for line in file: fields = line.strip().split('\t')
ise-uiuc/Magicoder-OSS-Instruct-75K
piece_len = info['piece length'] pieces = info['pieces'] file_infos = None torrent_name = info['name'] if 'files' in info: file_infos = info['files'] else: file_infos = [info] info['path'] = [f'{self._datadir}/{torrent_name}'] datadir = pathlib.Path(self._datadir, torrent_name) with concurrent.futures.ThreadPoolExecutor( max_workers=self._checkers) as executor:
ise-uiuc/Magicoder-OSS-Instruct-75K
N = [{b:2,c:1,d:3,e:9,f:4}, #a {c:4,e:3}, #b {d:8}, #c {e:7}, #d {f:5}, #e {c:2,g:2,h:2}, #f {f:1,h:6}, #g {f:9,g:8}] #h print(b in N[a]) #neighborhood membership/es vecino b de a?? print(len(N[f])) #degree of f print(N[a][b]) #edge weight for (a,b)
ise-uiuc/Magicoder-OSS-Instruct-75K
}, v4, v3 ] }, v2 ] } ] } };
ise-uiuc/Magicoder-OSS-Instruct-75K
Text("+") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
const float SQRT2 = sqrt(2.0f); const float HALF_SQRT2 = SQRT2*0.5f;
ise-uiuc/Magicoder-OSS-Instruct-75K
extension VersionEntity { func update(app: AppSummary) { self.date = app.version.date self.version = app.version.name self.releaseNotes = app.version.notes
ise-uiuc/Magicoder-OSS-Instruct-75K
"Instruction address misaligned", // 0 "Instruction access fault", // 1 "Illegal instruction", // 2 "Breakpoint", // 3 "Load address misaligned", // 4 "Load access fault", // 5 "Store/AMO address misaligned", // 6 "Store/AMO access fault", // 7 ]; let dp = unsafe { pac::Peripherals::steal() }; // Print header for exception report for c in "Exception:\r\n\t".as_bytes() { while dp.UART.uart_fifo_config_1.read().tx_fifo_cnt().bits() < 1 {} dp.UART
ise-uiuc/Magicoder-OSS-Instruct-75K
return item return None
ise-uiuc/Magicoder-OSS-Instruct-75K
extension Storefront {
ise-uiuc/Magicoder-OSS-Instruct-75K
time.sleep(period) timeout-=period if reply is None: _logger.info(f"Error: Time-out without server reply...")
ise-uiuc/Magicoder-OSS-Instruct-75K
idx = None if fname is not None:
ise-uiuc/Magicoder-OSS-Instruct-75K
init(style: Style, direction: Direction) { super.init() self.style = style self.direction = direction } func transitionDuration(using context: UIViewControllerContextTransitioning?) -> TimeInterval {
ise-uiuc/Magicoder-OSS-Instruct-75K
using System; namespace Micro.Auth.Business.EmailVerification { public class UserAlreadyActivatedException : Exception {
ise-uiuc/Magicoder-OSS-Instruct-75K
for username, timestamp, link in self._stream.userstream(): if self._evt.is_set(): break self._logger.debug(username) self._redis.set(f"{self._subreddit}|{username}", f"{timestamp}|{link}")
ise-uiuc/Magicoder-OSS-Instruct-75K
xxxxxxxxx
ise-uiuc/Magicoder-OSS-Instruct-75K
{ private string partName; private int workedHours;
ise-uiuc/Magicoder-OSS-Instruct-75K
"runHash": None, }, } datacore_node = Node.parse_obj(workbench["89f95b67-a2a3-4215-a794-2356684deb61"]) rawgraph_node = Node.parse_obj(workbench["88119776-e869-4df2-a529-4aae9d9fa35c"]) simcore_node = Node.parse_obj(workbench["75c1707c-ec1c-49ac-a7bf-af6af9088f38"])
ise-uiuc/Magicoder-OSS-Instruct-75K
// // ServiceConstants.swift // Split // // Created by Javier Avrudsky on 12/01/2021.
ise-uiuc/Magicoder-OSS-Instruct-75K
UserMode, &return_size
ise-uiuc/Magicoder-OSS-Instruct-75K
Time can be specified in milliseconds since UNIX epoch, or as an ArcGIS Server timestamp. For example { "startTime": "2011-08-01T15:17:20,123", ... }, { "startTime": 1312237040123, ... }, respectively. ------------------ -------------------------------------------------------------------- end_time Optional string. The oldest time to include in the result set. You can use this to limit the query to the last n minutes or hours as needed. Default is the beginning of all logging. ------------------ -------------------------------------------------------------------- since_server_start Optional string. Gets only the records written since the server
ise-uiuc/Magicoder-OSS-Instruct-75K
let m = track_any_err!(matches.value_of("PARITY_FRAGMENTS").unwrap().parse())?; let checksum = match matches.value_of("CHECKSUM").unwrap() {
ise-uiuc/Magicoder-OSS-Instruct-75K
return cuda_sleep def pytest_report_header(): return f'torch: {torch.__version__}'
ise-uiuc/Magicoder-OSS-Instruct-75K
backend = getattr(user, 'backend', None) if backend == 'lazysignup.backends.LazySignupBackend': return True
ise-uiuc/Magicoder-OSS-Instruct-75K
curl -L# 'http://grappa.cs.washington.edu/files/giraph-1.1.0-bc9f823e23d110d3c54d6eb0f5ccf7eff155a6b7-prebuilt.tar.bz2' | tar -xj -C $PREFIX ln -s $PREFIX/giraph-1.1.0-HEAD $PREFIX/giraph echo Installing Zookeeper.... curl -L# 'http://apache.claz.org/zookeeper/current/zookeeper-3.4.6.tar.gz' | tar -xz -C $PREFIX ln -s $PREFIX/zookeeper-3.4.6 $PREFIX/zookeeper
ise-uiuc/Magicoder-OSS-Instruct-75K
} sal_uInt16 nWhich = nType; if( RES_DATEFLD==nType || RES_TIMEFLD==nType ) nWhich = RES_DATETIMEFLD;
ise-uiuc/Magicoder-OSS-Instruct-75K
if ( !HasFlag(wxCAL_SEQUENTIAL_MONTH_SELECTION) ) { CreateYearSpinCtrl(); m_staticYear = new wxStaticText(GetParent(), wxID_ANY, m_date.Format(_T("%Y")), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE); CreateMonthComboBox(); m_staticMonth = new wxStaticText(GetParent(), wxID_ANY, m_date.Format(_T("%B")), wxDefaultPosition, wxDefaultSize,
ise-uiuc/Magicoder-OSS-Instruct-75K
else BUILD_DIR="build" fi
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(os.path.join(base, "settings.yml"), "r") as f: cfg = yaml.load(f, Loader=yaml.FullLoader) savedirname = input( f"[now:{cfg['MOVE']['savedirname']}]:press enter or input savedir path") if savedirname == "": cfg["MOVE"]["savedirname"] = cfgold["MOVE"]["savedirname"] elif os.path.isdir(savedirname): cfg["MOVE"]["savedirname"] = savedirname else: flg = "No" while True: flg = input(f"create {savedirname}:Yes/[No]")
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "aadAuthority = $aadAuthority" echo "confidentialClientId = $confidentialClientId" echo "confidentialClientSecret = $confidentialClientSecret" echo "serviceClientId = $serviceClientId" echo "serviceClientSecret = $serviceClientSecret" echo "publicClientId = $publicClientId" echo "dashboardJSTemplate = $dashboardJSTemplate"
ise-uiuc/Magicoder-OSS-Instruct-75K
reply = ("@{} {}\n".format(self._info["nick"], data["title"]) + "By: {}\n{}".format(data["author"], data["poem"])) cut = utility.shorten_lines(reply, self._charsPerLine, self._maxLines - 1) self._hackChat.send(cut + linked) else: reply = "@{} Sorry, I couldn't find any poems for that." self._hackChat.send(reply.format(self._info["nick"])) else: if self._cmd == "poem": self._hackChat.send( "@{} finds a poem by its name ".format(self._info["nick"]) + "(e.g., {}poem sonnet)".format(self._trigger))
ise-uiuc/Magicoder-OSS-Instruct-75K
List<ISpell> GetAllUnlockedSpells(); void AddStatus(eStatusEffect iNTANGIBLE, double v); bool HandleDamage(int damage); IResourceBank InitResourceBank(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
qaurl = 'https://uat-ecp-site.adidas.com.cn' qaauthurl = 'https://sit-auth-api.adidas.com.cn/v1/users/login/sms' class GetToken(unittest.TestCase): def test_get_qa_token(self): get_header = { 'origin': qaurl, 'referer': qaurl, 'source': 'A001', 'Content-Type':'application/x-www-form-urlencoded' } get_post = { 'smsOtp': '000000', 'phone': '18437909853' }
ise-uiuc/Magicoder-OSS-Instruct-75K
from pyspark.sql.functions import max, col # flightData2015.select(max(col("count"))).show(1) # COMMAND ---------- maxSql = spark.sql(""" SELECT DEST_COUNTRY_NAME, sum(count) as destination_total FROM flight_data_2015 GROUP BY DEST_COUNTRY_NAME
ise-uiuc/Magicoder-OSS-Instruct-75K
solution = Solution() self.assertEqual(solution.escapeGhosts( [[1, 8], [-9, 0], [-7, -6], [4, 3], [1, 3]], [6, -9]), False) self.assertEqual(solution.escapeGhosts([[2, 0]], [1, 0]), False) self.assertEqual(solution.escapeGhosts([[1, 0]], [2, 0]), False) self.assertEqual(solution.escapeGhosts([[1, 0], [0, 3]], [0, 1]), True) self.assertEqual(solution.escapeGhosts(
ise-uiuc/Magicoder-OSS-Instruct-75K
return img_set def save(file_name, data): with open("./data/" + file_name, "w+") as f: f.write(json.dumps(data)) def read(file_name): with open("./data/" + file_name, "r+") as f: return json.loads(f.read())
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright 2020 New Vector Ltd // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // 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
ise-uiuc/Magicoder-OSS-Instruct-75K
class Vector(Point): def __mul__(self, scale: int) -> Vector: x = self.x * scale y = self.y * scale return self.__class__(x, y)
ise-uiuc/Magicoder-OSS-Instruct-75K
import mcp.mobius.waila.api.IWailaDataAccessor; import net.minecraft.block.Block; import net.minecraft.block.ITileEntityProvider; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState;
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "catch2/catch.hpp" #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
# orca for plotly export # https://github.com/plotly/orca/releases # https://github.com/plotly/orca#linux echo "Downloading orca binary..." mkdir -p $DD_POSE_DIR/bin curl -L https://github.com/plotly/orca/releases/download/v1.2.1/orca-1.2.1-x86_64.AppImage -o $DD_POSE_DIR/bin/orca-1.2.1-x86_64.AppImage ln -f -s orca-1.2.1-x86_64.AppImage $DD_POSE_DIR/bin/orca chmod +x $DD_POSE_DIR/bin/orca echo "Done!" echo "Make sure you re-source 00-activate.sh to use the virtualenv"
ise-uiuc/Magicoder-OSS-Instruct-75K
# TODO!
ise-uiuc/Magicoder-OSS-Instruct-75K
valores.append(valor) print(f'Foram digitados {len(valores)} números') valores.sort(reverse=True) print(f'Lista ordenada de forma decrescente: {valores}') if 5 in valores: valores.reverse() print(f'O valor 5 foi digitado e está na {valores.index(5)} posição.')
ise-uiuc/Magicoder-OSS-Instruct-75K
class DeMinimisAidFactory(factory.django.DjangoModelFactory): granter = factory.Faker("sentence", nb_words=2) # delay evaluation of date_start and date_end so that any freeze_time takes effect granted_at = factory.Faker( "date_between_dates", date_start=factory.LazyAttribute( lambda _: date.today() - timedelta(days=365 * 2) ), date_end=factory.LazyAttribute(lambda _: date.today()), ) amount = factory.Faker("pyint", min_value=1, max_value=100000) ordering = factory.Iterator(itertools.count(0))
ise-uiuc/Magicoder-OSS-Instruct-75K
def add_arguments(self, parser): parser.add_argument('--outputfile', type=str, default=None, dest="output_file")
ise-uiuc/Magicoder-OSS-Instruct-75K
# [332] Reconstruct Itinerary # # @lc code=start import collections class Solution: def findItinerary(self, tickets): graph = collections.defaultdict(list) city_counter = len(tickets) + 1 for pair in tickets:
ise-uiuc/Magicoder-OSS-Instruct-75K
import { DocumentKeySet, DocumentMap, MaybeDocumentMap, NullableMaybeDocumentMap } from '../model/collections'; import { MaybeDocument } from '../model/document'; import { DocumentKey } from '../model/document_key'; import { SnapshotVersion } from '../core/snapshot_version'; import { IndexManager } from './index_manager'; import { PersistenceTransaction } from './persistence'; import { PersistencePromise } from './persistence_promise'; import { RemoteDocumentCache } from './remote_document_cache';
ise-uiuc/Magicoder-OSS-Instruct-75K
paddingLeft: 40, paddingRight: 40, }, }; }
ise-uiuc/Magicoder-OSS-Instruct-75K
@objc func openDevMenuFromReactNative() { guard let rctDevMenu = manager.session?.bridge.devMenu else { return } DispatchQueue.main.async { rctDevMenu.show() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = [] def foo(): """docstring""" def bar(): """docstring"""
ise-uiuc/Magicoder-OSS-Instruct-75K
result[word] = ids return result def _encode_block(self, block: Block): tokenized = self.tokenizer.tokenize(self.clean_text(block.text)) if not tokenized: return token_index = self._create_word_token_dict(block, tokenized) start = 0 n = len(tokenized) token_ids = self.tokenizer.convert_tokens_to_ids(tokenized) embeddings = [] while start < n: end = min(n, start + self.max_seq_len - 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Debug, Clone)] pub struct HannedFftDetector { fft_space: Option<FftSpace>, } impl PitchDetector for HannedFftDetector {} impl Default for HannedFftDetector {
ise-uiuc/Magicoder-OSS-Instruct-75K
'name' => '组名', );
ise-uiuc/Magicoder-OSS-Instruct-75K
def fgsm(model_fn, x, eps, loss_fn=None, clip_min=-1, clip_max=1, y=None, targeted=False): x = x.clone().detach().to(torch.float).requires_grad_(True) if y is None: _, y = torch.max(model_fn(x), 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
streamer_local_id=5, int_value=5 ) StreamData.objects.create( stream_slug=stream1.slug, type='ITR', timestamp=timezone.now(), streamer_local_id=6, int_value=6
ise-uiuc/Magicoder-OSS-Instruct-75K
app = app_setting.creat_app() async def fetch(session, url): async with session.get(url) as response: return await response.text() @app.get("/") async def read_main(): async with aiohttp.ClientSession() as session: a = await fetch(session, 'http://127.0.0.1:5481/favicon.ico')
ise-uiuc/Magicoder-OSS-Instruct-75K
import { ClassementComponent } from "./vraiFaux/classement/classement.component"; import { OptionComponent } from "./vraiFaux/option/option.component"; import { ListQuestionComponent } from "./vraiFaux/list-question/list-question.component"; const routes: Routes = [ { path: "", redirectTo: "/home", pathMatch: "full" }, { path: "home", component: HomeComponent }, { path: "game", component: GameComponent }, { path: "gameOver", component: GameOverComponent}, { path: "classement", component: ClassementComponent}, { path: "listQuestion", component: ListQuestionComponent}, { path: "option", component: OptionComponent},
ise-uiuc/Magicoder-OSS-Instruct-75K
package set license "MIT"
ise-uiuc/Magicoder-OSS-Instruct-75K
tokens.push(token_text); } tokens } #[test] fn test_ascii_folding_filter() { assert_eq!(vec!["Ramon".to_string()], helper("Rámon")); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
use Illuminate\Database\Eloquent\Model; class ArticleImg extends Model { protected $table = 'product_img'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
fn test_bad_add_rule() { let mut filter = Filter::new(Action::Allow).unwrap(); // Trying to match on the "6th" syscall argument (does not exist) will fail with EINVAL. assert_eq!( filter .add_rule( Action::KillThread,
ise-uiuc/Magicoder-OSS-Instruct-75K
use flatten_serde_json::flatten; use libfuzzer_sys::fuzz_target; fuzz_target!(|object: ArbitraryObject| { let _ = flatten(&object); });
ise-uiuc/Magicoder-OSS-Instruct-75K
class DataSource<T : DataSourceItem> { } class TableDataSource<T : TableDataSourceItem>: DataSource<T> { } class DataSourceBuilder<T : TableDataSourceItem, U : TableDataSource<T>> { } class TableDataSourceBuilder<T : TableDataSourceItem, U : TableDataSource<T>> : DataSourceBuilder<T, U> { } enum MyItem: TableDataSourceItem { }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ #region Constructors and Destructors
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ['csv_backend', 'sportstracker_backend', 'xml_backend', 'xml_backend_old']
ise-uiuc/Magicoder-OSS-Instruct-75K
from rest_framework import serializers from .models import Tweet class TweetModelSerializer(serializers.ModelSerializer): class Meta: model = Tweet fiels = ('author', 'content', 'likes')
ise-uiuc/Magicoder-OSS-Instruct-75K
DomNode::DomEvent(Event::CData(ref doc_type)) => { print!("<![CDATA[{}]]>", from_utf8(doc_type.escaped()).unwrap()); }, DomNode::DomEvent(Event::PI(ref doc_type)) => { print!("<?{}?>", from_utf8(doc_type.escaped()).unwrap()); }, DomNode::DomEvent(Event::Text(ref text)) => { print!("{}", from_utf8(text.escaped()).unwrap()); }, //// unexpected Event: //// Start, Empty, End - but was tested by remove them on dom_from_reader //// and Eof
ise-uiuc/Magicoder-OSS-Instruct-75K
pub use and::BitAnd; pub use iter::BitIter; pub use producer::BitProducer;
ise-uiuc/Magicoder-OSS-Instruct-75K