seed
stringlengths
1
14k
source
stringclasses
2 values
from bs4 import BeautifulSoup f = open("../raw_data/kateigominodashikata/page0007.xhtml") soup = BeautifulSoup(f, 'lxml') #要素を抽出 #print(soup) category = { "燃": "もえるごみ", "不燃": "もえないごみ", "資1": "資源物1類(びん・かん・ペット・食品包装プラ)",
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_output_shape_for(self, input_shape): batch_size = input_shape[0] input_width, input_height = input_shape[2:4] output_width = (input_width + 2*self.pad[0] - self.filter_size[0]) // self.strides[0] + 1 output_height = (input_height + 2*self.pad[1] - self.filter_size[1]) // self.strides[1] + 1 return (batch_size, self.num_filters, output_width, output_height) def get_output_for(self, input, *args, **kwargs): filters = self.W if self.flip_filters:
ise-uiuc/Magicoder-OSS-Instruct-75K
@flask_login.login_required def refresh_output(): resp = AccesspointsBackend.refresh_output()
ise-uiuc/Magicoder-OSS-Instruct-75K
// CHECK-SAME: %swift.type* @"$sSiN", // CHECK-SAME: i8** getelementptr inbounds ([1 x i8*], [1 x i8*]* @"$sSi4main1PAAWP", i32 0, i32 0), // CHECK-SAME: i8** getelementptr inbounds ([1 x i8*], [1 x i8*]* @"$sSi4main1QAAWP", i32 0, i32 0), // CHECK-SAME: i8** getelementptr inbounds ([1 x i8*], [1 x i8*]* @"$sSi4main1RAAWP", i32 0, i32 0), // CHECK-SAME: i8** getelementptr inbounds ([1 x i8*], [1 x i8*]* @"$sSi4main1SAAWP", i32 0, i32 0), // CHECK-SAME: i32 0{{(, \[4 x i8\] zeroinitializer)?}}, // CHECK-SAME: i64 3 // CHECK-SAME: }>, align [[ALIGNMENT]] protocol P {} protocol Q {} protocol R {} protocol S {} extension Int : P {} extension Int : Q {}
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param addr The address to convert. */ protected getFileAndLineForAddress(addr: number): SourceFileEntry { const location = Labels.getFileAndLineForAddress(addr); if (location.fileName.length == 0) { // Try disasm file const lineNr = Disassembly.getLineForAddress(addr);
ise-uiuc/Magicoder-OSS-Instruct-75K
return ret
ise-uiuc/Magicoder-OSS-Instruct-75K
# Create payload2.usda self.__payload2 = stageCreateFn("payload2"+ext) p = self.__payload2.DefinePrim("/Baz/Garply", "Scope") p.SetPayload(self.__payload3.GetRootLayer(), "/Garply")
ise-uiuc/Magicoder-OSS-Instruct-75K
#d, e, f = G1.edge[u][v]['weight'], G1.edge[u][w]['weight'], G1.edge[v][w]['weight'] #print(d, e, f, end='\t') if (x+y>z and y+z>x and x+z>y) or (x==maxd or y==maxd or z==maxd): cnt = 1
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.apps import AppConfig class JournalappConfig(AppConfig): name = 'JournalApp'
ise-uiuc/Magicoder-OSS-Instruct-75K
class JobStoreCreationException( Exception ): def __init__( self, message ): super( JobStoreCreationException, self ).__init__( message ) class AbstractJobStore( object ): """ Represents the physical storage for the jobs and associated files in a toil. """ __metaclass__ = ABCMeta def __init__( self, config=None ): """
ise-uiuc/Magicoder-OSS-Instruct-75K
//return Observable.of(true).delay(7000).flatMap(_ => fn()); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Enter FE(which is 254) the result should be 254 Console.Write("Enter a hex number: "); string hex = Console.ReadLine();
ise-uiuc/Magicoder-OSS-Instruct-75K
} impl GetInvitationsCount { /// Creates a new builder-style object to manufacture [`GetInvitationsCountInput`](crate::input::GetInvitationsCountInput) pub fn builder() -> crate::input::get_invitations_count_input::Builder { crate::input::get_invitations_count_input::Builder::default() } pub fn new() -> Self { Self { _private: () } }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Created by Igor Djachenko on 13/12/2019. // Copyright (c) 2019 justin. All rights reserved. // import XCTest @testable import AutofillerExamples class ImplicitFieldsAutofillerTests: GenericAutofillerTests {
ise-uiuc/Magicoder-OSS-Instruct-75K
remote_path='/first_batch')
ise-uiuc/Magicoder-OSS-Instruct-75K
stack.pop(); sp -= 1; } self.poly_edge[idx] = vnext; } stack.push((idx, side)); } else { // opposite side
ise-uiuc/Magicoder-OSS-Instruct-75K
main: () => { /**/ }, }, }, ], }) .compile();
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(10): print(f"say {i}")
ise-uiuc/Magicoder-OSS-Instruct-75K
if check_wall((x, y - 1)): queue.append((x, y - 1, steps + 1)) if check_wall((x, y + 1)): queue.append((x, y + 1, steps + 1)) return False print(day13())
ise-uiuc/Magicoder-OSS-Instruct-75K
return true; }
ise-uiuc/Magicoder-OSS-Instruct-75K
private static boolean isLetter(char ch) { ch = Character.toUpperCase(ch); return (ch >= 'A' && ch <= 'Z'); }
ise-uiuc/Magicoder-OSS-Instruct-75K
try: with self.i2c_device as i2c: i2c.readinto(data) if data[0] != 0xFF: # Check if read succeeded. break except OSError: pass value, checksum = struct.unpack(">HB", data)
ise-uiuc/Magicoder-OSS-Instruct-75K
pass print("connected") known_notifications = set() while radio.connected:
ise-uiuc/Magicoder-OSS-Instruct-75K
@app.route('/connect/google/done') @login_required def google_connected(): action_url = session['action_url'] error_url = session['error_url'] del session['action_url'] del session['error_url'] try: code = request.args.get('code', None)
ise-uiuc/Magicoder-OSS-Instruct-75K
Refine type for sources decl """ if decl.location: if decl.what == 'function' and not decl.type: info = symbol_info(decl.location.filename, decl.module.name, decl.name, None, no_ghci = no_ghci) if info: decl.type = info.type def refine_decl(decl):
ise-uiuc/Magicoder-OSS-Instruct-75K
import { CreateUserDto } from './dtos' import { User } from './user.entity' import { UsersService } from './users.service'
ise-uiuc/Magicoder-OSS-Instruct-75K
private LocalDateTime lastLogin; private int incorrectAttempts; private boolean isLocked; private boolean isActive; private Set<SeSectorUser> lstSeSectorsUser = new HashSet<SeSectorUser>(0);
ise-uiuc/Magicoder-OSS-Instruct-75K
] operations = [ migrations.AlterField(
ise-uiuc/Magicoder-OSS-Instruct-75K
from invitations.models import Invitation import csv from django.http import HttpResponse class GetUserAdminMixin: @cached_property def user_admin(self): if self.user_was_invited:
ise-uiuc/Magicoder-OSS-Instruct-75K
:param Ci: the coavriance matrix :returns: the matrix logarithm """ return _matrix_operator(Ci, numpy.log) def expm(Ci): """Return the matrix exponential of a covariance matrix defined by : .. math:: \mathbf{C} = \mathbf{V} \exp{(\mathbf{\Lambda})} \mathbf{V}^T
ise-uiuc/Magicoder-OSS-Instruct-75K
indicoio.config.api_key = '27df1eee04c5b65fb3113e9458d1d701' fileDir = os.path.dirname(os.path.realpath('__file__')) fileResumeTxt = open(os.path.join(fileDir, "data/resume.txt"), 'w') resume = "data/resumePDF.pdf" print(json.dumps(indicoio.pdf_extraction(resume)))
ise-uiuc/Magicoder-OSS-Instruct-75K
@ViewChild(МodalComponent) public modal: МodalComponent; @Output() public newTechUser = new EventEmitter<FormGroup>(); constructor( private readonly authService: AuthService, private readonly notificator: NotificatorService, private formBuilder: FormBuilder ) { }
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. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.transport.rest.vertx;
ise-uiuc/Magicoder-OSS-Instruct-75K
Inspector.manager.addInteraction(to: self) }
ise-uiuc/Magicoder-OSS-Instruct-75K
wf, bto_ref_dirs, params_to_check=["ENCUT", "LWAVE"], check_potcar=False ) return wf def untar_test_files(): ferro_dir = ref_dir / "ferroelectric_wf"
ise-uiuc/Magicoder-OSS-Instruct-75K
expect(chk.length).toBe(3, "should return 3 of team templates for basic"); }); });
ise-uiuc/Magicoder-OSS-Instruct-75K
var body: some Scene { WindowGroup {
ise-uiuc/Magicoder-OSS-Instruct-75K
return builder.toString(); } public void bindSelector(SourceImpl source) { selector1 = source.getExistingSelector(selector1Name); selector2 = source.getExistingSelector(selector2Name); } @Override public boolean evaluate() { String p1 = selector1.currentPath(); String p2 = selector2.currentPath();
ise-uiuc/Magicoder-OSS-Instruct-75K
u[1:-1] = (un[1:-1] -
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <prequel/exception.hpp> #include <vector> namespace prequel {
ise-uiuc/Magicoder-OSS-Instruct-75K
@commands.Cog.listener() async def on_message(self, message): for user in variables.tags.all():
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_shape(self): return self.flatparam().shape @property def shape(self): return self.get_shape() def __getitem__(self, idx): return self.__class__(self.flatparam()[idx]) class PdType(nn.Module): """
ise-uiuc/Magicoder-OSS-Instruct-75K
/// </summary> Actual = 2, }
ise-uiuc/Magicoder-OSS-Instruct-75K
this.Name = "FontBox"; this.ResumeLayout(false); this.PerformLayout(); } #endregion private Button cmdShowDialog; private Label lblFont; private TextBox txtFont; }
ise-uiuc/Magicoder-OSS-Instruct-75K
"PaginationConfig": {"PageSize": 50}, } for response in cw_logs.get_paginator("describe_log_streams").paginate(**kwargs): for stream in response["logStreams"]: log_stream_name = stream["logStreamName"] last_event = ms_to_datetime( stream.get("lastEventTimestamp", stream.get("creationTime")) )
ise-uiuc/Magicoder-OSS-Instruct-75K
public function membership() { return $this->belongsTo(Membership::class); } public function course() { return $this->belongsTo(Course::class); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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 # limitations under the License. """Setup script.""" import importlib import os import types
ise-uiuc/Magicoder-OSS-Instruct-75K
private void Awake() { _component = GetComponent<Text>(); } protected override void UpdateValue(string value) {
ise-uiuc/Magicoder-OSS-Instruct-75K
class OptimizerV2Modified(optimizer_v2.OptimizerV2): """This is a subclass optimizer that performs variable updates in Distribution Strategy replica context. OptimizerV2 base class is currently under refactoring and will have better support of this. Please refer to optimizer_v2.OptimizerV2 for more details regarding the APIs. """
ise-uiuc/Magicoder-OSS-Instruct-75K
PUBMED_FREQS="https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/data/pubmed.freqs" PUBMED_VECTORS="https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/data/pubmed_with_header.txt.gz" if [ "${SIZE}" = "small" ]; then python scripts/init_model.py en ${OUT_PATH} ${PUBMED_FREQS} -m ./data/meta_small.json elif [ "${SIZE}" = "medium" ]; then python scripts/init_model.py en ${OUT_PATH} ${PUBMED_FREQS} -v ${PUBMED_VECTORS} -x -V 100000 -mwf 20 -m ./data/meta_medium.json else echo "Usage (run from base SciSpaCy repository): base_model.sh <size> {small|medium} <build_directory> {default=./base_model}" fi
ise-uiuc/Magicoder-OSS-Instruct-75K
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.
ise-uiuc/Magicoder-OSS-Instruct-75K
public bool onceOnly = false; public Transform targetCenter; public Transform baseTransform; public Transform fallenDownTransform; public float fallTime = 0.5f; const float targetRadius = 0.25f; private bool targetEnabled = true; //-------------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
from alembic import op import sqlalchemy as sa def downgrade(): op.drop_table('server_log') op.drop_table('user') op.drop_table('server')
ise-uiuc/Magicoder-OSS-Instruct-75K
montage $(ls | sort -V | xargs) -geometry 16x16 ../output.png cd ..
ise-uiuc/Magicoder-OSS-Instruct-75K
self._error_handler(error) except: pass def _on_status(self, state): if self._status_handler is None: return try:
ise-uiuc/Magicoder-OSS-Instruct-75K
in.close(); } public void testRootLong() throws Exception { for (long l : new long[] { 0L, 1L, -1L, // [dataformats-binary#113] -5580797459299185431L, 0x1234567890abcdefL, Long.MAX_VALUE,
ise-uiuc/Magicoder-OSS-Instruct-75K
number of times add button has been clicked. - nTabClicks (number; default 0): number of times add button has been clicked. - size (string; default "small") - style (dict; optional): new tab to add on click. - tabPosition (string; optional) - targetKey (string; optional)""" @_explicitize_args
ise-uiuc/Magicoder-OSS-Instruct-75K
from .message import Request, Response from .registry import MessageTypeRegistry
ise-uiuc/Magicoder-OSS-Instruct-75K
public Set<String> getNegativeTests(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# 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
//Get texture to the gpu in an optimal format device->transitionImageLayout(outTex.mImage.mImage, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, outTex.mMipLevels); device->copyBufferToImage(stagingBuffer.mBuffer, outTex.mImage.mImage, imageExtent); device->generateMipmaps(outTex.mImage.mImage, VK_FORMAT_R8G8B8A8_SRGB, imageExtent, outTex.mMipLevels); //Generate MipMaps
ise-uiuc/Magicoder-OSS-Instruct-75K
kubectl delete configmap temcon-kube-test
ise-uiuc/Magicoder-OSS-Instruct-75K
import graphene from starlette.graphql import GraphQLApp from schema import Query, Mutation app = FastAPI() app.add_route( "/graphiql", GraphQLApp(schema=graphene.Schema(query=Query, mutation=Mutation)) )
ise-uiuc/Magicoder-OSS-Instruct-75K
from ipkg.build import Formula, File class five(Formula): name = 'five' version = '1.0' sources = File(dirname(__file__) + '/../../sources/five-1.0.tar.gz') platform = 'any'
ise-uiuc/Magicoder-OSS-Instruct-75K
def __ror__(self, other): return self.function(other)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.final_use = True if stride == 1: self.final = nn.Conv2d(inplanes, feat_planes, 1) else: self.final = nn.Conv2d(inplanes, feat_planes, kernel_size=1, stride=2, padding=1) def forward(self, x):
ise-uiuc/Magicoder-OSS-Instruct-75K
$content .= '</tbody>'; return $content; } public function footTable($data = array())
ise-uiuc/Magicoder-OSS-Instruct-75K
# self.uip.queues.Get_Queue("Master Of The Universe", org_unit) # output_based = self.uip.queues.search_queue_items(queue, output_data={"test": "test2"}) # self.assertTrue(len(output_based) > 0) # date_based = self.uip.queues.search_queue_items(queue, end_processing_greater_than=datetime(2019, 7, 30)) # self.assertTrue(len(date_based) > 0) # date_status_based = self.uip.queues.search_queue_items(queue, statuses=["Successful"], end_processing_greater_than=datetime(2018, 6, 13)) # self.assertTrue(len(date_status_based) > 0)
ise-uiuc/Magicoder-OSS-Instruct-75K
</html>
ise-uiuc/Magicoder-OSS-Instruct-75K
Q(status=Event.RegStatus.regHidden) | Q(status=Event.RegStatus.linkOnly) ).order_by(*self.get_ordering()) return self.allEvents def get_listing(self): ''' This function gets all of the information that we need to either render or validate the form. It is structured to avoid duplicate DB queries '''
ise-uiuc/Magicoder-OSS-Instruct-75K
# skipBadFiles = cms.untracked.bool(True), inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
ise-uiuc/Magicoder-OSS-Instruct-75K
{ m_small_lcp[i] = 255; if (l > max_l) max_l = l; max_big_idx = i; ++big_sum; } } m_big_lcp = int_vector<>(big_sum, 0, bits::hi(max_l) + 1); m_big_lcp_idx = int_vector<>(big_sum, 0, bits::hi(max_big_idx) + 1); for (size_type i = 0, ii = 0; i < m_small_lcp.size(); ++i) { if ((l = lcp_buf[i]) >= 255)
ise-uiuc/Magicoder-OSS-Instruct-75K
Node nStart = getNode(startPt); Node nEnd = getNode(endPt); double maxOverlap=0.0; DirectedEdge de0 = new PolygonizeDirectedEdge(nStart, nEnd, CompoundCurve.getDirectionPt(line,true,0.0), true); DirectedEdge de1 = new PolygonizeDirectedEdge(nEnd, nStart, CompoundCurve.getDirectionPt(line,false,0.0), false); Edge edge = new PolygonizeEdge(line); edge.setDirectedEdges(de0, de1); add(edge); }
ise-uiuc/Magicoder-OSS-Instruct-75K
// // InternalSearch.swift // Tracker // import Foundation
ise-uiuc/Magicoder-OSS-Instruct-75K
from nltk.stem import WordNetLemmatizer from nltk.stem.snowball import SnowballStemmer from sklearn.feature_extraction.text import ENGLISH_STOP_WORDS, CountVectorizer from sklearn.utils import Bunch ENGLISH_WORDS = set(nltk.corpus.words.words()) STEMMER = SnowballStemmer('english') class LemmaTokenizer: def __init__(self, stem=False): self.wnl = WordNetLemmatizer() if stem: self.stemmer = SnowballStemmer('english') else:
ise-uiuc/Magicoder-OSS-Instruct-75K
* under the License. */ package com.spotify.helios.servicescommon; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException;
ise-uiuc/Magicoder-OSS-Instruct-75K
where D: IntoIterator<Item = &'a Disk> { let mut sums = [0u64; 3]; let mut count = 0; for d in disks { let (disk_count, disk_sums) = d.backgrounds_sums(img); count += disk_count; for i in 0..sums.len() {
ise-uiuc/Magicoder-OSS-Instruct-75K
_ => map!(data, rest, |d| Context::Unknown(d)),
ise-uiuc/Magicoder-OSS-Instruct-75K
{ mMapperTables = new List<MapperTable>(); } return mMapperTables; } } /// <summary> /// Gets a value indicating whether this instance is editable. /// </summary> /// <value> /// <c>true</c> if this instance is editable; otherwise, <c>false</c>.
ise-uiuc/Magicoder-OSS-Instruct-75K
$pm25_forchart = Air::where('id', '>', $maxid)->pluck('PM25'); $ch2o_forchart = Air::where('id', '>', $maxid)->pluck('CH2O'); $humi = Air::pluck('HUM')->last(); $temp = Air::pluck('TEM')->last(); return [$co2_forchart, $voc_forchart, $pm25_forchart, $ch2o_forchart, $humi, $temp]; } public function update(){
ise-uiuc/Magicoder-OSS-Instruct-75K
public var maximumNodes: Int64? public var removeApplicationCapacity: Bool?
ise-uiuc/Magicoder-OSS-Instruct-75K
mod text_unit; mod text_range; mod text_buf; mod text; mod text_edit; mod text_slice; pub mod prop; pub use crate::text_unit::{TextUnit, tu}; pub use crate::text_range::TextRange; pub use crate::text_buf::TextBuf;
ise-uiuc/Magicoder-OSS-Instruct-75K
of any two words and the similarity of their encodings, this feature-weight combination is not meaningful. '''
ise-uiuc/Magicoder-OSS-Instruct-75K
m_importonMapSize = ei::nextPrimeGreaterOrEqual(minPixelMapSize); mapDataSize = numPixels; } m_pixelMap = std::make_unique<gl::Buffer>(m_importonMapSize * 2 * 4, gl::Buffer::IMMUTABLE); m_pixelMapData = std::make_unique<gl::Buffer>(mapDataSize * 8 * 4 + 4 * 4, gl::Buffer::IMMUTABLE); LOG_LVL2("Allocated " << (m_pixelMap->GetSize() + m_pixelMapData->GetSize()) / (1024*1024) << " MB for importon map."); m_pixelMapLTUBOInfo = m_importonDistributionShader.GetUniformBufferInfo().find("ImportonMapperUBO")->second; m_pixelMapLTUBO = std::make_unique<gl::Buffer>(m_pixelMapLTUBOInfo.bufferDataSizeByte, gl::Buffer::MAP_WRITE);
ise-uiuc/Magicoder-OSS-Instruct-75K
return reid_losses
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Cound't power off"""
ise-uiuc/Magicoder-OSS-Instruct-75K
DEFAULT_THEME = "core"
ise-uiuc/Magicoder-OSS-Instruct-75K
// to a normal stat() call is the file creation date (stx_btime). It is only // used by attributesOfItem(atPath:) which is why the return is a simple stat() // structure and optional creation date. internal func _statxFile(atPath path: String) throws -> (stat, Date?) { // Fallback if statx() is unavailable or fails func _statxFallback(atPath path: String, withFileSystemRepresentation fsRep: UnsafePointer<Int8>?) throws -> (stat, Date?) { let statInfo = try _lstatFile(atPath: path, withFileSystemRepresentation: fsRep) return (statInfo, nil) }
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Serialize, Deserialize, Debug, Default)] pub struct SyncBucket {
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param deltaTime The elapsed time in seconds since the last update.
ise-uiuc/Magicoder-OSS-Instruct-75K
public string[] ProductIds { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
/// A frankenstein testing monster. It asserts that for `PendingStreamWritesManager` `pwm` and `EventLoopPromises` `promises` /// the following conditions hold: /// - The 'single write operation' is called `exepectedSingleWritabilities.count` number of times with the respective buffer lenghts in the array. /// - The 'vector write operation' is called `exepectedVectorWritabilities.count` number of times with the respective buffer lenghts in the array. /// - after calling the write operations, the promises have the states in `promiseStates` /// /// The write operations will all be faked and return the return values provided in `returns`. /// /// - parameters: /// - pwm: The `PendingStreamWritesManager` to test. /// - promises: The promises for the writes issued. /// - expectedSingleWritabilities: The expected buffer lengths for the calls to the single write operation.
ise-uiuc/Magicoder-OSS-Instruct-75K
using System; using System.Collections.Generic;
ise-uiuc/Magicoder-OSS-Instruct-75K
n = int(sys.argv[1]) list = [n] print(f"Calculating the collatz conjecture from the number {n}...") collatz(n) # calculates print("The results are in: ", end="") print(f"{list}")
ise-uiuc/Magicoder-OSS-Instruct-75K
class GrupoModel(BaseModel): codigo: int
ise-uiuc/Magicoder-OSS-Instruct-75K
'matmul', 'mm', 'mv', ]
ise-uiuc/Magicoder-OSS-Instruct-75K
} let bit = self.extract_bit(self.byte[0]); Ok(bit) } pub fn read_bits(&mut self, number_of_bits: usize) -> Result<u128, Error> { if number_of_bits > 128 { // Make sure we're not writing more than 128 bits return Err(Error::new( ErrorKind::InvalidData, "Tried to read more than 128 bits", ));
ise-uiuc/Magicoder-OSS-Instruct-75K
int64_t utils::now() { return current_time_millis(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.response.status_int = response.status_code for key, value in response.headers.iteritems(): self.response.headers[key] = value self.response.out.write(response.content) app = webapp2.WSGIApplication([
ise-uiuc/Magicoder-OSS-Instruct-75K
fn main() { assert_eq!("11foo1bar11".trim_matches('1'), "foo1bar");
ise-uiuc/Magicoder-OSS-Instruct-75K