seed
stringlengths
1
14k
source
stringclasses
2 values
neuerScore = int(input("Neuer HighScore: \n"))
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns ------- df_voxel : :class:`pandas.DataFrame` Indicies, coordinates, and parents of each node in the swc. Coordinates are in voxel units. """ x = [] y = [] z = [] df_voxel = df.copy() for index, row in df_voxel.iterrows(): vox = self._space_to_voxel(row[["x", "y", "z"]].to_numpy(), spacing, origin) x.append(vox[0])
ise-uiuc/Magicoder-OSS-Instruct-75K
mkdir "$path" cd "$path" mkdir "$path/local" # Install MPItrampoline rm -rf "$path/MPItrampoline" git clone https://github.com/eschnett/MPItrampoline cd "$path/MPItrampoline" cmake -S . -B build \ -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_INSTALL_PREFIX="$path/local/mpitrampoline" cmake --build build cmake --install build cd "$path"
ise-uiuc/Magicoder-OSS-Instruct-75K
<th>Jurusan</th> <th></th> </tr> </thead> <tbody id="tbody"> @for ($i = 0; $i < 5; $i++) <tr> <td class="table-loading"><p>#</p></td> <td class="table-loading"><p>#</p></td> <td class="table-loading"><p>#</p></td> </tr> @endfor </tbody>
ise-uiuc/Magicoder-OSS-Instruct-75K
OUTPUT_DIR=${ROOT_DIR}/${OUTPUT_DIR_NAME} CACHE_DIR=${ROOT_DIR}/../data/$datacate/.cache mkdir -p ${CACHE_DIR} if [ ! -d ${OUTPUT_DIR} ];then mkdir -p ${OUTPUT_DIR} else read -p "${OUTPUT_DIR} already exists, delete origin one [y/n]?" yn case $yn in [Yy]* ) rm -rf ${OUTPUT_DIR}; mkdir -p ${OUTPUT_DIR};; [Nn]* ) echo "exiting..."; exit;;
ise-uiuc/Magicoder-OSS-Instruct-75K
class ApikeysProjectsLocationsKeysPatchRequest(_messages.Message): r"""A ApikeysProjectsLocationsKeysPatchRequest object. Fields: name: Output only. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example: `projects/123456867718/ locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. updateMask: The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name` and `restrictions`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value
ise-uiuc/Magicoder-OSS-Instruct-75K
salario = float(input('Qual é o seu salario atual? R$')) casa = float(input('Qual é o valo do imóvel que pretende compar? R$')) anos = int(input('Em quantos anos pretende financiar a casa? ')) fina = casa / (anos * 12) minimo = salario * 30 / 100 print('Para para um imóvel de R${:.2f} em {} ano(s), a prestação e será de R${:.2f}.'.format(casa, anos, fina))
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } if (xmlReader.NodeType == XmlNodeType.Text) { // soup req contains sub xml, so parse them if (xmlReader.Value.StartsWith("<?xml")) {
ise-uiuc/Magicoder-OSS-Instruct-75K
d=0 for ind, val in enumerate(a): p[ind] = val for i, v in p.items(): d += v*(10**i) if (2**31 - 1>= d >= -(2**31)): return d else: return 0 if x>=0: return (solve(x)) if x<0: x = -x return (-solve(x))
ise-uiuc/Magicoder-OSS-Instruct-75K
XCTAssertEqual(destination1.value, 4) XCTAssertEqual(destination2.value, 5)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Logger log = logging.getLogger(__name__) def write_erase_reload_device_without_reconfig(
ise-uiuc/Magicoder-OSS-Instruct-75K
export LANG=C.UTF-8 export PS1="(js9) $PS1"
ise-uiuc/Magicoder-OSS-Instruct-75K
likes.innerHTML = response; }, }); /** * When article is liked, ajax call to toggle like status, then if successful ajax call to retrieve like status and total likes */ $(".{{$comment->id}}_like").click(function(event){ event.preventDefault();
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public boolean addReceive(ReceiveVO receiveVO) { Receive receive = new Receive(); User user = userDao.getUserByAccount((receiveVO.getUserName())); receive.setUser(user); receive.setReceiveDate(receiveVO.getReceiveDate());
ise-uiuc/Magicoder-OSS-Instruct-75K
AKManager.output = flanger
ise-uiuc/Magicoder-OSS-Instruct-75K
// Use XCTAssert and related functions to verify your tests produce the correct results. } func testLaunchPerformance() throws {
ise-uiuc/Magicoder-OSS-Instruct-75K
def iterate(self) -> None: pass
ise-uiuc/Magicoder-OSS-Instruct-75K
import { window } from 'global';
ise-uiuc/Magicoder-OSS-Instruct-75K
router = APIRouter() router.include_router(login.router, tags=["login"], prefix="/api" ) router.include_router(register.router, tags=["register"], prefix="/api")
ise-uiuc/Magicoder-OSS-Instruct-75K
set -e pm2 kill docker-compose down -v
ise-uiuc/Magicoder-OSS-Instruct-75K
pub fn i2c2en(&self) -> I2C2EN_R { I2C2EN_R::new(((self.bits >> 22) & 0x01) != 0) } #[doc = "Bit 21 - I2C1 clock enable bit"] #[inline(always)] pub fn i2c1en(&self) -> I2C1EN_R { I2C1EN_R::new(((self.bits >> 21) & 0x01) != 0) } #[doc = "Bit 18 - LPUART1 clock enable bit"] #[inline(always)] pub fn lpuart1en(&self) -> LPUART1EN_R { LPUART1EN_R::new(((self.bits >> 18) & 0x01) != 0) } #[doc = "Bit 17 - UART2 clock enable bit"] #[inline(always)]
ise-uiuc/Magicoder-OSS-Instruct-75K
// // optionToolStripMenuItem // resources.ApplyResources(this.optionToolStripMenuItem, "optionToolStripMenuItem"); this.optionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuItemImageBackground}); this.optionToolStripMenuItem.Name = "optionToolStripMenuItem"; // // menuItemImageBackground
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_collectors(self) -> List['spectreapi.Collector']: '''Returns the Collectors configured on the server''' collectors = [] results = self.get('zone/collector') for collector in results: collectors.append(spectreapi.Collector( collector['id'], collector['uuid'], collector['name'], spectreapi.Zone(collector['zone']['id'], collector['zone']['name']), server=self, ))
ise-uiuc/Magicoder-OSS-Instruct-75K
if action == 'L': return 1 else: return -1 elif degrees == 180: return 2 else: # the last case is when it's 270 degrees
ise-uiuc/Magicoder-OSS-Instruct-75K
return rowlist def getfrocvalue(results_filename, outputdir): return noduleCADEvaluation(annotations_filename,annotations_excluded_filename,seriesuids_filename,results_filename,outputdir) def getcsv(detp):
ise-uiuc/Magicoder-OSS-Instruct-75K
LOG.info(f'- inserting {Fore.MAGENTA}{layer}{Fore.RESET} into {Fore.BLUE}{schema_name}{Fore.RESET} as {Fore.CYAN}{geometry_type}{Fore.RESET}') LOG.debug(f'with {Fore.CYAN}{sql}{Fore.RESET}') if not dry_run: start_seconds = perf_counter() result = gdal.VectorTranslate(cloud_db, internal_sgid, options=pg_options) LOG.debug(f'- {Fore.GREEN}completed{Fore.RESET} in {Fore.CYAN}{utils.format_time(perf_counter() - start_seconds)}{Fore.RESET}') del result LOG.debug(f'- {Fore.CYAN}make valid{Fore.RESET}')
ise-uiuc/Magicoder-OSS-Instruct-75K
y=alt.Y('sum(values):Q', axis=alt.Axis( grid=False, title='LOC added')), # tell Altair which field to use to use as the set of columns to be represented in each group column=alt.Column('c1:N', title=None), # tell Altair which field to use for color segmentation color=alt.Color('Language:N', scale=alt.Scale( domain=all_languages, # make it look pretty with an enjoyable color pallet range=allColorsValues,
ise-uiuc/Magicoder-OSS-Instruct-75K
} if let skippedTests = element["SkippedTests"]["Test"].all { self.skippedTests = try skippedTests.map(TestItem.init) } else { skippedTests = [] }
ise-uiuc/Magicoder-OSS-Instruct-75K
public SportDriverControls(Engine engine) { super(engine);
ise-uiuc/Magicoder-OSS-Instruct-75K
} class Implementation : Protocol1 {
ise-uiuc/Magicoder-OSS-Instruct-75K
help="smooth factor used when recovering\ response curve")
ise-uiuc/Magicoder-OSS-Instruct-75K
let f = compose() { class case c,
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/Redux/Reducers/stacks/updateEventOffshelfStackListOrder.ts<gh_stars>10-100 import { StacksState, EventAction } from '@Interfaces'; const updateEventOffshelfStackListOrder = (state: StacksState, action: EventAction) => { if (!action.stackIdList || !action.eventId) return state; const { stackIdList } = action; const newList = [...state.list];
ise-uiuc/Magicoder-OSS-Instruct-75K
SRC=$(cd "$(dirname "$0")"; pwd) usage() { echo "Usage: $0 [--link] TARGET_DIR" echo "Create an Arduino-compatible library in the given directory," echo "overwriting existing files. If --link is given, creates symbolic" echo "links for easy testing."
ise-uiuc/Magicoder-OSS-Instruct-75K
equality constraints and variable non-negativity. ``linprog`` converts the original problem to standard form by converting the simple bounds to upper bound constraints, introducing non-negative slack variables for inequality constraints, and expressing unbounded variables as the difference between
ise-uiuc/Magicoder-OSS-Instruct-75K
f(A.a) f(A.b) # > print 1 # > print 2
ise-uiuc/Magicoder-OSS-Instruct-75K
seed_val(int): Random number generator seed Attributes: random (np.random.RandomState) : random number generator """ def __init__(self, R, P, seed_val=-1): super().__init__(seed_val)
ise-uiuc/Magicoder-OSS-Instruct-75K
Err(_) => { error!("Failed to load gitlab configuration, make sure that GITLAB_TOKEN is defined."); return None } } } fn load_from_env() -> anyhow::Result<GitlabConfig> { let token_ = env::var("GITLAB_TOKEN")?; let api_url_ = env::var("GITLAB_API")?; Ok(GitlabConfig { token: token_,
ise-uiuc/Magicoder-OSS-Instruct-75K
}, }
ise-uiuc/Magicoder-OSS-Instruct-75K
#Install kind cd
ise-uiuc/Magicoder-OSS-Instruct-75K
if student_channels != teacher_channels: self.align = nn.Conv2d(student_channels, teacher_channels, kernel_size=1, stride=1, padding=0) else: self.align = None
ise-uiuc/Magicoder-OSS-Instruct-75K
return true; } else { NLOG(6, "Didn't find file \"%s\" in relative path", fileName); } if (!RCSRESOURCEPATH)
ise-uiuc/Magicoder-OSS-Instruct-75K
expectErr( err<string, string>("a failure").flatMap(a => ok(a.length)), "a failure", ); });
ise-uiuc/Magicoder-OSS-Instruct-75K
var text = await m.Content.ReadAsStringAsync(); text.Should().BeEmpty(); } } static public async Task setting_cookie_and_delete_on_sub_path( TestClientBase client ) {
ise-uiuc/Magicoder-OSS-Instruct-75K
""" def createNode(self, data): """ Utility function to create a node. """ return Node(data) def insert(self, node , data):
ise-uiuc/Magicoder-OSS-Instruct-75K
public class SqlDbExecutor : DbExecutorBase, IAsyncDbExecutor<ParameterizedQuery>, IDbTransactionProvider<SqlDbExecutor> {
ise-uiuc/Magicoder-OSS-Instruct-75K
from daemon import Daemon DEVNULL = open("/dev/null", "w") class CommandError(Error): CODE_EXECUTE = "cmd.execute" def spawn(cmd, stdout=DEVNULL, cwd=None): proc = subprocess.Popen(cmd, cwd=cwd, stdout=stdout, stderr=subprocess.STDOUT, close_fds=True) return proc.pid
ise-uiuc/Magicoder-OSS-Instruct-75K
writeln!(handle, "{}", line)?; } } handle.flush()?; Ok(()) }
ise-uiuc/Magicoder-OSS-Instruct-75K
public let publicRepos: UInt } extension User: CustomStringConvertible {
ise-uiuc/Magicoder-OSS-Instruct-75K
pub struct Inner; impl container::StyleSheet for Inner { fn style(&self) -> container::Style { container::Style { background: Some(colors::cool_gray::_100.into()), ..container::Style::default()
ise-uiuc/Magicoder-OSS-Instruct-75K
for iz in range(0, nz): try: # compute PCA and get center or mass
ise-uiuc/Magicoder-OSS-Instruct-75K
self.__connection_mgr.release(connection) # =========================================== # internal coros # =========================================== async def __publish(self, connection, topic, value): await connection.wait_until_open() await connection.request( self.__build_publish_req(topic, value) ) # ===========================================
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_map_reads_bad_outdir(self): message = r'Output directory does not exist. Make sure it does.' with self.assertRaisesRegex(FileNotFoundError, message): star.map_reads(self.reads, self.dir, '/unexisting/outdir')
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_target_should_not_be_challenger(self): arena = DuelArena(AlwaysSecondRandom()) duel_result = arena.add_or_make_duel("1", challenger=self.challenger, prize=self.prize, target=self.challenger) self.assertEqual(duel_result.status, DuelStatus.CANNOT_DUEL_WITH_YOURSELF) def test_should_take_prize_from_proposal(self): arena = DuelArena(AlwaysFirstRandom()) arena.add_or_make_duel("1", challenger=self.challenger, prize=self.prize, target=self.target) duel_result = arena.add_or_make_duel("1", challenger=self.target, prize=self.prize + 1, target=self.challenger) self.assertEqual(duel_result.prize, self.prize) def test_should_list_user_duels(self): arena = DuelArena(AlwaysFirstRandom()) arena.add_or_make_duel("1", challenger=self.challenger, prize=self.prize, target=self.target)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return m_ruleNameHasBeenSet; } string CreateLaneRuleRequest::GetRemark() const { return m_remark; } void CreateLaneRuleRequest::SetRemark(const string& _remark) { m_remark = _remark; m_remarkHasBeenSet = true; }
ise-uiuc/Magicoder-OSS-Instruct-75K
return item elif item['debug']:
ise-uiuc/Magicoder-OSS-Instruct-75K
new MockConnectionBaseUrlFetcher(mcf, TEST_URL); ThrowingMockLockssUrlConnection mconn = new ThrowingMockLockssUrlConnection(new java.net.UnknownHostException()); muf.addConnection(mconn); try { muf.getUncachedInputStream(); fail("Should have thrown"); } catch (CacheException.RetryableNetworkException_2_30S ex) { } } public void testKeepAlive(boolean exp) throws IOException { MockConnectionBaseUrlFetcher muf =
ise-uiuc/Magicoder-OSS-Instruct-75K
case none, shared, automatic case via(_ lock: Lock) } private enum LateInitSynchronizationLock: Lock { case none case via(_ lock: Lock) func acquireAndRun<R>(_ closure: () throws -> R) rethrows -> R { switch self { case .none: return try closure() case let .via(lock):
ise-uiuc/Magicoder-OSS-Instruct-75K
obj.film_with_popcorn_occ = obj.film_with_popcorn.occurrences.create(start=datetime(2010,10,11,18,30))
ise-uiuc/Magicoder-OSS-Instruct-75K
rv = client.get('/search?upc=' + upc) response = json.loads(rv.data) first = response[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(line) > 0: if not any(line.lower().startswith(ignore + ':') for ignore in IGNORED_NAMESPACES) and not line.lower().startswith('list of'):
ise-uiuc/Magicoder-OSS-Instruct-75K
monikers.AddRange(MonikerRetriever.FindMonikers(groups[4].Value)); result = BinaryDataRetriever.GetData(monikers.ToArray()); return result; } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
LIFECYCLE_STATE_WAITER_KEY = "LIFECYCLE_STATE_WAITER" WORK_REQUEST_WAITER_KEY = "WORK_REQUEST_WAITER"
ise-uiuc/Magicoder-OSS-Instruct-75K
nmcli radio wifi on
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>dfederm/ZWave.NET using Microsoft.Extensions.Logging; using ZWave.Serial; using ZWave.Serial.Commands; namespace ZWave; internal static partial class Logging { /* SerialApi: 100-199 */ [LoggerMessage( EventId = 100,
ise-uiuc/Magicoder-OSS-Instruct-75K
subscription.setUserId("Ralph"); subscription.setId(UUID.randomUUID()); return subscription; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
$schema = $this->createSchema($this->user->backend, [
ise-uiuc/Magicoder-OSS-Instruct-75K
assert dt.isoformat() == isoformat assert str(dt) == string_repr
ise-uiuc/Magicoder-OSS-Instruct-75K
assert capture == "MyObject2[{i}]\n".format(i=i) * 4 cstats = ConstructorStats.get(MyObject2) assert cstats.alive() == 1 o = None assert cstats.alive() == 0 assert cstats.values() == ['MyObject2[8]', 'MyObject2[6]', 'MyObject2[7]'] assert cstats.default_constructions == 0 assert cstats.copy_constructions == 0 # assert cstats.move_constructions >= 0 # Doesn't invoke any assert cstats.copy_assignments == 0 assert cstats.move_assignments == 0 # Object3 from pybind11_tests import (MyObject3, print_myobject3_1, print_myobject3_2,
ise-uiuc/Magicoder-OSS-Instruct-75K
fn test_rename_variants() { let (out, err) = utils::run_upgrader("rename_variants", "0.3.0", true); assert_snapshot!(out); assert_snapshot!(err); }
ise-uiuc/Magicoder-OSS-Instruct-75K
BUY = "BUY" SELL = "SELL"
ise-uiuc/Magicoder-OSS-Instruct-75K
containing the rendered barycentric coordinate triplet per pixel, before perspective correction. The triplet is the zero vector if the pixel is outside the mesh boundary. For valid pixels, the ordering of the coordinates
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param Task $objectAnnotation * @param string $propertyName * @param string $methodName * @param null $propertyValue * @return array */ public function parser( string $className, $objectAnnotation = null,
ise-uiuc/Magicoder-OSS-Instruct-75K
} SECTION("Duplicates") { // 1, 4, 1, 7, 3 s.push(3); s.push(7); s.push(1); s.push(4); s.push(1); REQUIRE(s.top() == 1); REQUIRE(s.getMin() == 1); s.pop(); REQUIRE(s.top() == 4);
ise-uiuc/Magicoder-OSS-Instruct-75K
$classes[] = 'Symfony\Component\EventDispatcher\EventDispatcher'; $classes[] = 'Symfony\Component\HttpKernel\EventListener\ErrorListener'; $classes[] = 'Symfony\Component\Filesystem\Filesystem'; $classes[] = 'Symfony\Component\HttpKernel\HttpKernel'; $classes[] = 'Symfony\Component\HttpKernel\Controller\TraceableControllerResolver'; $classes[] = 'Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver';
ise-uiuc/Magicoder-OSS-Instruct-75K
if (ancestorA == ancestorB): return False self.parents[ancestorB] = ancestorA return True
ise-uiuc/Magicoder-OSS-Instruct-75K
pipeline = Classifier() def test_response(requests, response): assert response == pipeline(requests)
ise-uiuc/Magicoder-OSS-Instruct-75K
private void addNewMainWorkoutOnClick() { String mainWorkoutName = getMainWorkoutName();
ise-uiuc/Magicoder-OSS-Instruct-75K
get_and_set_env "TWINE_USERNAME" get_and_set_env "TWINE_PASSWORD" # Install dependencies python3 -m pip install setuptools twine
ise-uiuc/Magicoder-OSS-Instruct-75K
'ActivityTaskConfig', 'domain task_list', ) """An immutable object that stores common SWF values. Used by instances of :class:`~py_swf.clients.ActivityTaskClient`. """
ise-uiuc/Magicoder-OSS-Instruct-75K
# GPIB identity string of the instrument self.id_string = "KEITHLEY INSTRUMENTS INC.,MODEL 2700,0822752,B02" self.manufacturer = 'Keithley' self.model_number = '2700' self.description = 'Multimeter' self.compare_identity() def data(self): result = self.ask(':DATA?') print "result", result array = result.split(',')
ise-uiuc/Magicoder-OSS-Instruct-75K
return result; } @Nullable @Override public String getType(@NonNull Uri uri) { int match = mUriMatcher.match(uri); switch(match) { case MATCHES: return ProviderHelper.CONTENT_TYPE_ENTRIES; default: throw new UnsupportedOperationException("Unknown uri :" + uri ); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np import os from tqdm import tqdm
ise-uiuc/Magicoder-OSS-Instruct-75K
admin.site.register(CustomApp, CustomAppAdmin) admin.site.register(CustomLink, CustomLinkAdmin) admin.site.register(CustomModel, CustomModelAdmin)
ise-uiuc/Magicoder-OSS-Instruct-75K
import json import boto.s3, boto.s3.key conn = boto.s3.connect_to_region("eu-west-1") bucket = conn.get_bucket("quentin-leguay-courses") key = boto.s3.key.Key(bucket, "/result/wordcount.txt")
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.springframework.data.jpa.repository.JpaRepository; public interface OneToOneMainRepository extends JpaRepository<MainPO, Long> { }
ise-uiuc/Magicoder-OSS-Instruct-75K
for a, b, c in itertools.product(letters, repeat=3): yield a + b + c def collect_input_files(paths): input_files = [] for path in paths: if os.path.isdir(path): for filename in os.listdir(path): input_files.append(os.path.join(path, filename))
ise-uiuc/Magicoder-OSS-Instruct-75K
f_image = net.forward(Variable(image[None, :, :, :], requires_grad=True)).data.cpu().numpy().flatten() I = f_image.argsort()[::-1] I = I[0:num_classes] label = I[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
print(i) break
ise-uiuc/Magicoder-OSS-Instruct-75K
from shares import views
ise-uiuc/Magicoder-OSS-Instruct-75K
} fn out_2() { run_test(&Instruction { mnemonic: Mnemonic::OUT, operand1: Some(Literal8(37)), operand2: Some(Direct(AL)), operand3: None, operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[230, 37], OperandSize::Dword) } fn out_3() { run_test(&Instruction { mnemonic: Mnemonic::OUT, operand1: Some(Literal8(33)), operand2: Some(Direct(AL)), operand3: None, operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[230, 33], OperandSize::Qword) } fn out_4() { run_test(&Instruction { mnemonic: Mnemonic::OUT, operand1: Some(Literal8(13)), operand2: Some(Direct(AX)), operand3: None, operand4: None, lock: false, rounding_mode: None, merge_mode: None, sae: false, mask: None, broadcast: None }, &[231, 13], OperandSize::Word) }
ise-uiuc/Magicoder-OSS-Instruct-75K
changedCount
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright © 2019 Leonardo Ferreira. All rights reserved. // import Foundation
ise-uiuc/Magicoder-OSS-Instruct-75K
def get(self, y, t): return (-t * np.log(y + self.ep)).sum() / y.shape[0] class BinomialCrossEntropy(LossFunction): """Loss function which is used for binary-class classification.""" def get_type(self): return 'binomial cross entropy' def get(self, y, t): error = -t * np.log(y + self.ep) - (1 - t) * np.log(1 - y + self.ep) return error.sum() / y.shape[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
along with this program. If not, see <http://www.gnu.org/licenses/>.*/ using System.IO; using Studio.Wizet.Library.Wz.Util;
ise-uiuc/Magicoder-OSS-Instruct-75K
async def start(): await http_connection.start_connection()
ise-uiuc/Magicoder-OSS-Instruct-75K
if (text.length() > maxSize) { throw new ValidationException(String.format("Payload exceeded max size = %d bytes", maxSize)); } try { Base64.getDecoder().decode(text); } catch (Exception e) { throw new ValidationException(e.getMessage());
ise-uiuc/Magicoder-OSS-Instruct-75K
string Render(Dictionary<string, Entity> source, Dictionary<string, IList<IPlaceholder>> contentItems); MetadataManager Metadata { get; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def load(self, fn): data = pandas.from_csv(fn) for _, label, col, value, code in data.iteritems():
ise-uiuc/Magicoder-OSS-Instruct-75K
m_amb_candidates(amb_candidates) {} #endif ~ambiguous_param() BOOST_NOEXCEPT_OR_NOTHROW {}
ise-uiuc/Magicoder-OSS-Instruct-75K